X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm32f1%2Fao_arch.h;h=b58e33f6fac9715b986915dfa406885df7db8690;hb=HEAD;hp=743651330e96cad130890e3a162516837fc980bb;hpb=87b64a15f55ecb20a0f8bb2556e77b45a4d82b82;p=fw%2Faltos diff --git a/src/stm32f1/ao_arch.h b/src/stm32f1/ao_arch.h index 74365133..b58e33f6 100644 --- a/src/stm32f1/ao_arch.h +++ b/src/stm32f1/ao_arch.h @@ -58,4 +58,18 @@ #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) +#define HAS_BOOT_LOADER 1 + #endif /* _AO_ARCH_H_ */