X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstm32f1%2Fao_arch.h;h=b58e33f6fac9715b986915dfa406885df7db8690;hb=bf7d2aaccd41837dd2e032023107616266e22a6d;hp=de5f2159e65f4a0dc938e629e5aaeeacc47dc61b;hpb=d2cb18542f4f6071232bd046fd1b257228c17a25;p=fw%2Faltos diff --git a/src/stm32f1/ao_arch.h b/src/stm32f1/ao_arch.h index de5f2159..b58e33f6 100644 --- a/src/stm32f1/ao_arch.h +++ b/src/stm32f1/ao_arch.h @@ -55,4 +55,21 @@ #define AO_STM_NVIC_LOW_PRIORITY 0xC0 #define AO_STM_NVIC_CLOCK_PRIORITY 0xf0 +#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_ */