32 #ifndef BSP430_PLATFORM_EM430_PLATFORM_H
33 #define BSP430_PLATFORM_EM430_PLATFORM_H
57 #define BSP430_PLATFORM_EM430 1
60 #define BSP430_CLOCK_NOMINAL_XT2CLK_HZ 26000000UL
65 #define BSP430_PLATFORM_BUTTON0_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
66 #define BSP430_PLATFORM_BUTTON0_PORT_BIT BIT7
69 #define BSP430_LED_GREEN 0
70 #define BSP430_LED_RED 1
73 #define BSP430_PMM_COREV_FOR_MCLK(mclk_) \
74 ((12000000UL < (mclk_)) ? PMMCOREV_2 : \
79 #ifndef BSP430_TIMER_CCACLK_ACLK_CCIDX
81 #define BSP430_TIMER_CCACLK_ACLK_CCIDX 2
83 #ifndef BSP430_TIMER_CCACLK_ACLK_CCIS
85 #define BSP430_TIMER_CCACLK_ACLK_CCIS CCIS_1
87 #ifndef BSP430_TIMER_CCACLK_CLK_PORT_BIT
89 #define BSP430_TIMER_CCACLK_CLK_PORT_BIT BIT0
91 #ifndef BSP430_TIMER_CCACLK_CC0_PORT_BIT
93 #define BSP430_TIMER_CCACLK_CC0_PORT_BIT BIT1
95 #ifndef BSP430_TIMER_CCACLK_CC1_PORT_BIT
97 #define BSP430_TIMER_CCACLK_CC1_PORT_BIT BIT2