32 #ifndef BSP430_PLATFORM_EXP430F5529LP_PLATFORM_H
33 #define BSP430_PLATFORM_EXP430F5529LP_PLATFORM_H
60 #define BSP430_PLATFORM_EXP430F5529LP 1
63 #define BSP430_CLOCK_NOMINAL_XT2CLK_HZ 4000000UL
68 #define BSP430_PLATFORM_BUTTON0_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
69 #define BSP430_PLATFORM_BUTTON0_PORT_BIT BIT1
70 #define BSP430_PLATFORM_BUTTON1_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
71 #define BSP430_PLATFORM_BUTTON1_PORT_BIT BIT1
74 #define BSP430_LED_RED 0
75 #define BSP430_LED_GREEN 1
78 #define BSP430_PMM_COREV_FOR_MCLK(mclk_) \
79 ((20000000UL < (mclk_)) ? PMMCOREV_3 : \
80 ((12000000UL < (mclk_)) ? PMMCOREV_2 : \
81 (((8000000UL < (mclk_)) ? PMMCOREV_1 : \
86 #ifndef BSP430_TIMER_CCACLK_ACLK_CCIDX
88 #define BSP430_TIMER_CCACLK_ACLK_CCIDX 2
90 #ifndef BSP430_TIMER_CCACLK_ACLK_CCIS
92 #define BSP430_TIMER_CCACLK_ACLK_CCIS CCIS_1
94 #ifndef BSP430_TIMER_CCACLK_CLK_PORT_BIT
96 #define BSP430_TIMER_CCACLK_CLK_PORT_BIT BIT2
98 #ifndef BSP430_TIMER_CCACLK_CC0_PORT_BIT
100 #define BSP430_TIMER_CCACLK_CC0_PORT_BIT BIT3
102 #ifndef BSP430_TIMER_CCACLK_CC1_PORT_BIT
104 #define BSP430_TIMER_CCACLK_CC1_PORT_BIT BIT4
109 #if (configBSP430_RF_CC3000BOOST - 0)
110 #define BSP430_RF_CC3000 1
111 #define BSP430_RF_CC3000_SPI_PERIPH_HANDLE BSP430_PERIPH_USCI5_B0
112 #define BSP430_RF_CC3000_PWR_EN_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT6
113 #define BSP430_RF_CC3000_PWR_EN_PORT_BIT BIT5
114 #define BSP430_RF_CC3000_SCLK_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
115 #define BSP430_RF_CC3000_SCLK_PORT_BIT BIT2
116 #define BSP430_RF_CC3000_IRQn_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
117 #define BSP430_RF_CC3000_IRQn_PORT_BIT BIT0
118 #define BSP430_RF_CC3000_IRQn_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
119 #define BSP430_RF_CC3000_IRQn_TIMER_CCIDX 1
120 #define BSP430_RF_CC3000_IRQn_TIMER_CCIS CCIS_0
121 #define BSP430_RF_CC3000_CSn_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
122 #define BSP430_RF_CC3000_CSn_PORT_BIT BIT2
123 #define BSP430_RF_CC3000_MOSI_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
124 #define BSP430_RF_CC3000_MOSI_PORT_BIT BIT0
125 #define BSP430_RF_CC3000_MISO_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
126 #define BSP430_RF_CC3000_MISO_PORT_BIT BIT1
133 #if (configBSP430_RF_ANAREN_CC110L - 0)
134 #define BSP430_RF_CC110X 1
135 #define BSP430_RF_CC110X_SPI_PERIPH_HANDLE BSP430_PERIPH_USCI5_B0
136 #define BSP430_RF_CC110X_GDO2_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT6
137 #define BSP430_RF_CC110X_GDO2_PORT_BIT BIT5
138 #define BSP430_RF_CC110X_GDO0_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
139 #define BSP430_RF_CC110X_GDO0_PORT_BIT BIT0
140 #define BSP430_RF_CC110X_GDO0_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
141 #define BSP430_RF_CC110X_GDO0_TIMER_CCIDX 1
142 #define BSP430_RF_CC110X_GDO0_TIMER_CCIS CCIS_0
143 #define BSP430_RF_CC110X_CSn_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
144 #define BSP430_RF_CC110X_CSn_PORT_BIT BIT2
145 #define BSP430_RF_CC110X_GDO1_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
146 #define BSP430_RF_CC110X_GDO1_PORT_BIT BIT1
153 #if (configBSP430_RFEM_CCEM - 0)
154 #define BSP430_RFEM_CCEM 1
155 #define BSP430_RFEM 1
157 #if (BSP430_RFEM_CCEM - 0)
158 #define BSP430_RFEM_SERIAL_PERIPH_HANDLE BSP430_PERIPH_USCI5_B0
159 #define BSP430_RFEM_RF1P3_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
160 #define BSP430_RFEM_RF1P3_PORT_BIT BIT3
161 #define BSP430_RFEM_RF1P3_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA2
162 #define BSP430_RFEM_RF1P3_TIMER_CCIDX 0
163 #define BSP430_RFEM_RF1P3_TIMER_CCIS CCIS_0
164 #define BSP430_RFEM_RF1P7_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
165 #define BSP430_RFEM_RF1P7_PORT_BIT BIT3
166 #define BSP430_RFEM_RF1P9_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
167 #define BSP430_RFEM_RF1P9_PORT_BIT BIT4
168 #define BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
169 #define BSP430_RFEM_RF1P10_PORT_BIT BIT0
170 #define BSP430_RFEM_RF1P10_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
171 #define BSP430_RFEM_RF1P10_TIMER_CCIDX 1
172 #define BSP430_RFEM_RF1P10_TIMER_CCIS CCIS_0
173 #define BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT6
174 #define BSP430_RFEM_RF1P12_PORT_BIT BIT5
175 #define BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
176 #define BSP430_RFEM_RF1P14_PORT_BIT BIT2
177 #define BSP430_RFEM_RF1P16_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
178 #define BSP430_RFEM_RF1P16_PORT_BIT BIT2
179 #define BSP430_RFEM_RF1P18_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
180 #define BSP430_RFEM_RF1P18_PORT_BIT BIT0
181 #define BSP430_RFEM_RF1P20_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
182 #define BSP430_RFEM_RF1P20_PORT_BIT BIT1
183 #define BSP430_RFEM_RF2P15_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
184 #define BSP430_RFEM_RF2P15_PORT_BIT BIT6
185 #define BSP430_RFEM_RF2P18_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT8
186 #define BSP430_RFEM_RF2P18_PORT_BIT BIT1
187 #define BSP430_RFEM_RF2P19_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
188 #define BSP430_RFEM_RF2P19_PORT_BIT BIT1
193 #if (configBSP430_PLATFORM_BOOSTERPACK_SHARP96 - 0)
195 #define BSP430_PLATFORM_SHARPLCD_CS_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT6
196 #define BSP430_PLATFORM_SHARPLCD_CS_PORT_BIT BIT6
197 #define BSP430_PLATFORM_SHARPLCD_LCD_EN_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
198 #define BSP430_PLATFORM_SHARPLCD_LCD_EN_PORT_BIT BIT6
199 #define BSP430_PLATFORM_SHARPLCD_PWR_EN_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT6
200 #define BSP430_PLATFORM_SHARPLCD_PWR_EN_PORT_BIT BIT5
201 #define BSP430_PLATFORM_SHARPLCD_SPI_PERIPH_HANDLE BSP430_PERIPH_USCI5_B0