32 #ifndef BSP430_PLATFORM_EXP430F5529_PLATFORM_H
33 #define BSP430_PLATFORM_EXP430F5529_PLATFORM_H
60 #define BSP430_PLATFORM_EXP430F5529 1
63 #define BSP430_CLOCK_NOMINAL_XT2CLK_HZ 4000000UL
76 #ifndef configBSP430_PLATFORM_EXP430F5529_CCACLK_NEED_CLK
77 #define configBSP430_PLATFORM_EXP430F5529_CCACLK_NEED_CLK 0
83 #if (configBSP430_PLATFORM_SPIN_FOR_JUMPER - 0)
84 #define BSP430_PLATFORM_SPIN_FOR_JUMPER 1
88 #define BSP430_PLATFORM_BUTTON0_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
89 #define BSP430_PLATFORM_BUTTON0_PORT_BIT BIT7
90 #define BSP430_PLATFORM_BUTTON1_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
91 #define BSP430_PLATFORM_BUTTON1_PORT_BIT BIT2
94 #define BSP430_LED_RED 0
95 #define BSP430_LED_ORANGE 1
96 #define BSP430_LED_GREEN 2
97 #define BSP430_LED_BLUE 3
98 #define BSP430_LED_BLUE1 4
99 #define BSP430_LED_BLUE2 5
100 #define BSP430_LED_BLUE3 6
101 #define BSP430_LED_BLUE4 7
104 #define BSP430_PMM_COREV_FOR_MCLK(mclk_) \
105 ((20000000UL < (mclk_)) ? PMMCOREV_3 : \
106 ((12000000UL < (mclk_)) ? PMMCOREV_2 : \
107 (((8000000UL < (mclk_)) ? PMMCOREV_1 : \
119 #ifndef BSP430_TIMER_CCACLK_ACLK_CCIDX
121 #if (configBSP430_PLATFORM_EXP430F5529_CCACLK_NEED_CLK - 0)
122 #define BSP430_TIMER_CCACLK_ACLK_CCIDX 6
124 #define BSP430_TIMER_CCACLK_ACLK_CCIDX 2
127 #ifndef BSP430_TIMER_CCACLK_ACLK_CCIS
129 #define BSP430_TIMER_CCACLK_ACLK_CCIS CCIS_1
132 #if (configBSP430_PLATFORM_EXP430F5529_CCACLK_NEED_CLK - 0)
135 #ifndef BSP430_TIMER_CCACLK_CLK_PORT_BIT
137 #define BSP430_TIMER_CCACLK_CLK_PORT_BIT BIT7
142 #ifndef BSP430_TIMER_CCACLK_CC0_PORT_BIT
144 #define BSP430_TIMER_CCACLK_CC0_PORT_BIT BIT3
146 #ifndef BSP430_TIMER_CCACLK_CC1_PORT_BIT
148 #define BSP430_TIMER_CCACLK_CC1_PORT_BIT BIT4
155 #if (configBSP430_RFEM - 0)
156 #define BSP430_RFEM 1
158 #if (BSP430_RFEM - 0)
159 #define BSP430_RFEM_SERIAL_PERIPH_HANDLE BSP430_PERIPH_USCI5_B0
160 #define BSP430_RFEM_RF1P3_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
161 #define BSP430_RFEM_RF1P3_PORT_BIT BIT1
162 #define BSP430_RFEM_RF1P3_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
163 #define BSP430_RFEM_RF1P3_TIMER_CCIDX 2
164 #define BSP430_RFEM_RF1P3_TIMER_CCIS CCIS_0
165 #define BSP430_RFEM_RF1P5_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
166 #define BSP430_RFEM_RF1P5_PORT_BIT BIT0
167 #define BSP430_RFEM_RF1P5_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
168 #define BSP430_RFEM_RF1P5_TIMER_CCIDX 1
169 #define BSP430_RFEM_RF1P5_TIMER_CCIS CCIS_0
170 #define BSP430_RFEM_RF1P6_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
171 #define BSP430_RFEM_RF1P6_PORT_BIT BIT0
172 #define BSP430_RFEM_RF1P7_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
173 #define BSP430_RFEM_RF1P7_PORT_BIT BIT0
174 #define BSP430_RFEM_RF1P8_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
175 #define BSP430_RFEM_RF1P8_PORT_BIT BIT6
176 #define BSP430_RFEM_RF1P9_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
177 #define BSP430_RFEM_RF1P9_PORT_BIT BIT6
178 #define BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
179 #define BSP430_RFEM_RF1P10_PORT_BIT BIT3
180 #define BSP430_RFEM_RF1P10_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA2
181 #define BSP430_RFEM_RF1P10_TIMER_CCIDX 0
182 #define BSP430_RFEM_RF1P10_TIMER_CCIS CCIS_0
183 #define BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
184 #define BSP430_RFEM_RF1P12_PORT_BIT BIT4
185 #define BSP430_RFEM_RF1P12_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA2
186 #define BSP430_RFEM_RF1P12_TIMER_CCIDX 1
187 #define BSP430_RFEM_RF1P12_TIMER_CCIS CCIS_0
188 #define BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
189 #define BSP430_RFEM_RF1P14_PORT_BIT BIT6
190 #define BSP430_RFEM_RF1P16_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
191 #define BSP430_RFEM_RF1P16_PORT_BIT BIT2
192 #define BSP430_RFEM_RF1P18_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
193 #define BSP430_RFEM_RF1P18_PORT_BIT BIT0
194 #define BSP430_RFEM_RF1P20_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
195 #define BSP430_RFEM_RF1P20_PORT_BIT BIT1
196 #define BSP430_RFEM_RF2P13_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
197 #define BSP430_RFEM_RF2P13_PORT_BIT BIT0
198 #define BSP430_RFEM_RF2P15_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
199 #define BSP430_RFEM_RF2P15_PORT_BIT BIT0
200 #define BSP430_RFEM_RF2P15_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
201 #define BSP430_RFEM_RF2P15_TIMER_CCIDX 1
202 #define BSP430_RFEM_RF2P15_TIMER_CCIS CCIS_0
203 #define BSP430_RFEM_RF2P18_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
204 #define BSP430_RFEM_RF2P18_PORT_BIT BIT7
205 #define BSP430_RFEM_RF2P19_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT7
206 #define BSP430_RFEM_RF2P19_PORT_BIT BIT5
207 #define BSP430_RFEM_RF2P19_TIMER_PERIPH_HANDLE BSP430_PERIPH_TB0
208 #define BSP430_RFEM_RF2P19_TIMER_CCIDX 3
209 #define BSP430_RFEM_RF2P19_TIMER_CCIS CCIS_0
210 #define BSP430_RFEM_RF2P20_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT6
211 #define BSP430_RFEM_RF2P20_PORT_BIT BIT6
212 #define BSP430_RFEM_RF3P3_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
213 #define BSP430_RFEM_RF3P3_PORT_BIT BIT0
214 #define BSP430_RFEM_RF3P4_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
215 #define BSP430_RFEM_RF3P4_PORT_BIT BIT0
216 #define BSP430_RFEM_RF3P4_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
217 #define BSP430_RFEM_RF3P4_TIMER_CCIDX 1
218 #define BSP430_RFEM_RF3P4_TIMER_CCIS CCIS_0
219 #define BSP430_RFEM_RF3P5_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
220 #define BSP430_RFEM_RF3P5_PORT_BIT BIT4
221 #define BSP430_RFEM_RF3P6_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
222 #define BSP430_RFEM_RF3P6_PORT_BIT BIT0
223 #define BSP430_RFEM_RF3P7_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
224 #define BSP430_RFEM_RF3P7_PORT_BIT BIT5
225 #define BSP430_RFEM_RF3P8_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
226 #define BSP430_RFEM_RF3P8_PORT_BIT BIT6
227 #define BSP430_RFEM_RF3P9_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
228 #define BSP430_RFEM_RF3P9_PORT_BIT BIT7
229 #define BSP430_RFEM_RF3P10_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
230 #define BSP430_RFEM_RF3P10_PORT_BIT BIT4
231 #define BSP430_RFEM_RF3P10_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA2
232 #define BSP430_RFEM_RF3P10_TIMER_CCIDX 1
233 #define BSP430_RFEM_RF3P10_TIMER_CCIS CCIS_0
234 #define BSP430_RFEM_RF3P11_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT7
235 #define BSP430_RFEM_RF3P11_PORT_BIT BIT5
236 #define BSP430_RFEM_RF3P11_TIMER_PERIPH_HANDLE BSP430_PERIPH_TB0
237 #define BSP430_RFEM_RF3P11_TIMER_CCIDX 3
238 #define BSP430_RFEM_RF3P11_TIMER_CCIS CCIS_0
239 #define BSP430_RFEM_RF3P13_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
240 #define BSP430_RFEM_RF3P13_PORT_BIT BIT3
241 #define BSP430_RFEM_RF3P13_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA2
242 #define BSP430_RFEM_RF3P13_TIMER_CCIDX 0
243 #define BSP430_RFEM_RF3P13_TIMER_CCIS CCIS_0
244 #define BSP430_RFEM_RF3P14_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
245 #define BSP430_RFEM_RF3P14_PORT_BIT BIT1
246 #define BSP430_RFEM_RF3P14_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
247 #define BSP430_RFEM_RF3P14_TIMER_CCIDX 2
248 #define BSP430_RFEM_RF3P14_TIMER_CCIS CCIS_0
249 #define BSP430_RFEM_RF3P15_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
250 #define BSP430_RFEM_RF3P15_PORT_BIT BIT2
251 #define BSP430_RFEM_RF3P16_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
252 #define BSP430_RFEM_RF3P16_PORT_BIT BIT2
253 #define BSP430_RFEM_RF3P17_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
254 #define BSP430_RFEM_RF3P17_PORT_BIT BIT6
255 #define BSP430_RFEM_RF3P18_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
256 #define BSP430_RFEM_RF3P18_PORT_BIT BIT0
262 #define BSP430_UTILITY_U8GLIB (configBSP430_UTILITY_U8GLIB - 0)
266 #ifndef configBSP430_PLATFORM_EXP430F5529_LCD
279 #define configBSP430_PLATFORM_EXP430F5529_LCD 0
282 #if defined(BSP430_DOXYGEN) || (configBSP430_PLATFORM_EXP430F5529_LCD - 0)
285 #define BSP430_PLATFORM_EXP430F5529_LCD_SPI_PERIPH_HANDLE BSP430_PERIPH_USCI5_B1
290 #define BSP430_PLATFORM_EXP430F5529_LCD_RSTn_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT5
295 #define BSP430_PLATFORM_EXP430F5529_LCD_RSTn_PORT_BIT BIT7
300 #define BSP430_PLATFORM_EXP430F5529_LCD_CSn_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT7
305 #define BSP430_PLATFORM_EXP430F5529_LCD_CSn_PORT_BIT BIT4
310 #define BSP430_PLATFORM_EXP430F5529_LCD_A0_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT5
315 #define BSP430_PLATFORM_EXP430F5529_LCD_A0_PORT_BIT BIT6
318 #define BSP430_PLATFORM_EXP430F5529_LCD_COLUMNS 102
321 #define BSP430_PLATFORM_EXP430F5529_LCD_PAGES 8
324 #define BSP430_PLATFORM_EXP430F5529_LCD_ROWS_PER_PAGE 8