altos/stm: Stop spewing clock out PA8 pin
authorKeith Packard <keithp@keithp.com>
Sun, 21 Oct 2012 20:01:03 +0000 (13:01 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 21 Oct 2012 20:01:03 +0000 (13:01 -0700)
This was used to debug the clock bringup, but is not useful anymore,
and probably a bad idea to boot.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_timer.c

index 1132f7484fb7262cfd03175d3e001a4ba6d0cd27..f3011d3f0e159097c71ce8c3e3f49443c98d070b 100644 (file)
@@ -266,6 +266,7 @@ ao_clock_init(void)
        stm_rcc.csr |= (1 << STM_RCC_CSR_RMVF);
 
 
        stm_rcc.csr |= (1 << STM_RCC_CSR_RMVF);
 
 
+#if DEBUG_THE_CLOCK
        /* Output SYSCLK on PA8 for measurments */
 
        stm_rcc.ahbenr |= (1 << STM_RCC_AHBENR_GPIOAEN);
        /* Output SYSCLK on PA8 for measurments */
 
        stm_rcc.ahbenr |= (1 << STM_RCC_AHBENR_GPIOAEN);
@@ -276,4 +277,5 @@ ao_clock_init(void)
 
        stm_rcc.cfgr |= (STM_RCC_CFGR_MCOPRE_DIV_1 << STM_RCC_CFGR_MCOPRE);
        stm_rcc.cfgr |= (STM_RCC_CFGR_MCOSEL_HSE << STM_RCC_CFGR_MCOSEL);
 
        stm_rcc.cfgr |= (STM_RCC_CFGR_MCOPRE_DIV_1 << STM_RCC_CFGR_MCOPRE);
        stm_rcc.cfgr |= (STM_RCC_CFGR_MCOSEL_HSE << STM_RCC_CFGR_MCOSEL);
+#endif
 }
 }