32 #ifndef BSP430_PLATFORM_SURF_PLATFORM_H
33 #define BSP430_PLATFORM_SURF_PLATFORM_H
65 #ifndef BSP430_PLATFORM_SURF_REVISION
66 #define BSP430_PLATFORM_SURF_REVISION 2
71 #define BSP430_PLATFORM_SURF 1
74 #define BSP430_CLOCK_NOMINAL_XT2CLK_HZ 26000000UL
78 #if 2 == BSP430_PLATFORM_SURF_REVISION
81 #define BSP430_PLATFORM_BUTTON0_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
82 #define BSP430_PLATFORM_BUTTON0_PORT_BIT BIT0
83 #define BSP430_PLATFORM_BUTTON1_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
84 #define BSP430_PLATFORM_BUTTON1_PORT_BIT BIT1
85 #define BSP430_PLATFORM_BUTTON2_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
86 #define BSP430_PLATFORM_BUTTON2_PORT_BIT BIT6
87 #define BSP430_PLATFORM_BUTTON3_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
88 #define BSP430_PLATFORM_BUTTON3_PORT_BIT BIT7
91 #define BSP430_LED_GREEN 0
92 #define BSP430_LED_RED 1
93 #define BSP430_LED_ORANGE 2
94 #define BSP430_LED_WHITE 3
95 #define BSP430_LED_BLUE 4
98 #define BSP430_PMM_COREV_FOR_MCLK(mclk_) \
99 ((12000000UL < (mclk_)) ? PMMCOREV_2 : \
103 #define BSP430_PLATFORM_SURF_DS1825_PORT_HAL BSP430_HAL_PORT3
104 #define BSP430_PLATFORM_SURF_DS1825_PORT_BIT BIT7
108 #error BSP430_PLATFORM_SURF_REVISION not supported
114 #ifndef BSP430_TIMER_CCACLK_ACLK_CCIDX
116 #define BSP430_TIMER_CCACLK_ACLK_CCIDX 2
118 #ifndef BSP430_TIMER_CCACLK_ACLK_CCIS
120 #define BSP430_TIMER_CCACLK_ACLK_CCIS CCIS_1
122 #ifndef BSP430_TIMER_CCACLK_CLK_PORT_BIT
124 #define BSP430_TIMER_CCACLK_CLK_PORT_BIT BIT0
126 #ifndef BSP430_TIMER_CCACLK_CC0_PORT_BIT
128 #define BSP430_TIMER_CCACLK_CC0_PORT_BIT BIT1
130 #ifndef BSP430_TIMER_CCACLK_CC1_PORT_BIT
132 #define BSP430_TIMER_CCACLK_CC1_PORT_BIT BIT2
144 #ifndef configBSP430_PLATFORM_M25P
145 #define configBSP430_PLATFORM_M25P 0
148 #if (configBSP430_PLATFORM_M25P - 0)
153 #define BSP430_PLATFORM_M25P_SPI_PERIPH_HANDLE BSP430_PERIPH_USCI5_B0
158 #define BSP430_PLATFORM_M25P_CSn_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
163 #define BSP430_PLATFORM_M25P_CSn_PORT_BIT BIT7
169 #define BSP430_PLATFORM_M25P_SECTOR_SIZE 0x8000L
172 #define BSP430_PLATFORM_M25P_SECTOR_COUNT 4
184 #ifndef configBSP430_PLATFORM_SURF_DS1825
185 #define configBSP430_PLATFORM_SURF_DS1825 0
188 #if defined(BSP430_DOXYGEN) || (configBSP430_PLATFORM_SURF_DS1825 - 0)
Basic support for 1-Wire(R) communications.