diff options
author | Keith Packard <keithp@keithp.com> | 2018-05-28 19:18:48 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-05-28 19:18:48 -0700 |
commit | 16971e550d1018fb6acf3fee3c56098f5ba9921e (patch) | |
tree | fbdc903865c00364e19b71d6bbcfec170c21eab0 /src | |
parent | 42a261a56606be69b5fb90fd6017c70a1e5d72dd (diff) |
altos/stm: Enable HSI timer when HAS_ADC_SINGLE is set
The ADC unit always uses the HSI timer.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/stm/ao_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm/ao_timer.c b/src/stm/ao_timer.c index 1576a6c9..7b526902 100644 --- a/src/stm/ao_timer.c +++ b/src/stm/ao_timer.c @@ -149,7 +149,7 @@ ao_clock_init(void) #define STM_RCC_CFGR_PLLSRC_TARGET_CLOCK (0 << STM_RCC_CFGR_PLLSRC) #endif -#if !AO_HSE || HAS_ADC +#if !AO_HSE || HAS_ADC || HAS_ADC_SINGLE /* Enable HSI RC clock 16MHz */ stm_rcc.cr |= (1 << STM_RCC_CR_HSION); while (!(stm_rcc.cr & (1 << STM_RCC_CR_HSIRDY))) |