X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstm32f1%2Fao_arch.h;h=b58e33f6fac9715b986915dfa406885df7db8690;hb=1cad5ca2525fbe067f897871bc2c4dc45a13e85a;hp=7e53f2269ed2901e2119708b8ca77e3b9a2dedca;hpb=3da00a912b07c77d06785933c92e287ab48b0f79;p=fw%2Faltos diff --git a/src/stm32f1/ao_arch.h b/src/stm32f1/ao_arch.h index 7e53f226..b58e33f6 100644 --- a/src/stm32f1/ao_arch.h +++ b/src/stm32f1/ao_arch.h @@ -58,6 +58,15 @@ #define AO_PCLK1 AO_APB1CLK #define AO_PCLK2 AO_APB2CLK +#if AO_RCC_CFGR_PPRE1_DIV == STM_RCC_CFGR_PPRE1_DIV_1 +#define AO_TIM23467_CLK AO_APB1CLK +#else +#define AO_TIM23467_CLK (2 * AO_APB1CLK) +#endif + +/* ADC maximum reported value */ +#define AO_ADC_MAX 4095 + #define AO_BOOT_APPLICATION_BASE ((uint32_t *) 0x08001000) #define AO_BOOT_APPLICATION_BOUND ((uint32_t *) (0x08000000 + stm_flash_size())) #define AO_BOOT_LOADER_BASE ((uint32_t *) 0x08000000)