altosui: Add config and pyro tabs to graph widget
[fw/altos] / src / stm32f1 / ao_arch.h
index 743651330e96cad130890e3a162516837fc980bb..b58e33f6fac9715b986915dfa406885df7db8690 100644 (file)
 #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_ */