32 #ifndef BSP430_PLATFORM_EXP430F5438_PLATFORM_H
33 #define BSP430_PLATFORM_EXP430F5438_PLATFORM_H
56 #define BSP430_PLATFORM_EXP430F5438 1
61 #define BSP430_PLATFORM_BUTTON0_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
62 #define BSP430_PLATFORM_BUTTON0_PORT_BIT BIT6
63 #define BSP430_PLATFORM_BUTTON1_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
64 #define BSP430_PLATFORM_BUTTON1_PORT_BIT BIT7
68 #define BSP430_LED_RED 0
69 #define BSP430_LED_ORANGE 1
70 #define BSP430_LED_GREEN BSP430_LED_ORANGE
73 #define BSP430_PMM_COREV_FOR_MCLK(mclk_) \
74 ((20000000UL < (mclk_)) ? PMMCOREV_3 : \
75 ((12000000UL < (mclk_)) ? PMMCOREV_2 : \
76 (((8000000UL < (mclk_)) ? PMMCOREV_1 : \
81 #ifndef BSP430_TIMER_CCACLK_ACLK_CCIDX
83 #define BSP430_TIMER_CCACLK_ACLK_CCIDX 6
85 #ifndef BSP430_TIMER_CCACLK_ACLK_CCIS
87 #define BSP430_TIMER_CCACLK_ACLK_CCIS CCIS_1
89 #ifndef BSP430_TIMER_CCACLK_CLK_PORT_BIT
91 #define BSP430_TIMER_CCACLK_CLK_PORT_BIT BIT7
93 #ifndef BSP430_TIMER_CCACLK_CC0_PORT_BIT
95 #define BSP430_TIMER_CCACLK_CC0_PORT_BIT BIT0
97 #ifndef BSP430_TIMER_CCACLK_CC1_PORT_BIT
99 #define BSP430_TIMER_CCACLK_CC1_PORT_BIT BIT1
104 #if (configBSP430_RFEM - 0)
105 #define BSP430_RFEM 1
107 #if (BSP430_RFEM - 0)
108 #define BSP430_RFEM_SERIAL_PERIPH_HANDLE BSP430_PERIPH_USCI5_B0
109 #define BSP430_RFEM_RF1P3_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
110 #define BSP430_RFEM_RF1P3_PORT_BIT BIT4
111 #define BSP430_RFEM_RF1P3_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
112 #define BSP430_RFEM_RF1P3_TIMER_CCIDX 3
113 #define BSP430_RFEM_RF1P3_TIMER_CCIS CCIS_0
114 #define BSP430_RFEM_RF1P5_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
115 #define BSP430_RFEM_RF1P5_PORT_BIT BIT2
116 #define BSP430_RFEM_RF1P5_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
117 #define BSP430_RFEM_RF1P5_TIMER_CCIDX 1
118 #define BSP430_RFEM_RF1P5_TIMER_CCIS CCIS_0
119 #define BSP430_RFEM_RF1P6_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
120 #define BSP430_RFEM_RF1P6_PORT_BIT BIT5
121 #define BSP430_RFEM_RF1P6_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
122 #define BSP430_RFEM_RF1P6_TIMER_CCIDX 4
123 #define BSP430_RFEM_RF1P6_TIMER_CCIS CCIS_0
124 #define BSP430_RFEM_RF1P7_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
125 #define BSP430_RFEM_RF1P7_PORT_BIT BIT5
126 #define BSP430_RFEM_RF1P7_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
127 #define BSP430_RFEM_RF1P7_TIMER_CCIDX 4
128 #define BSP430_RFEM_RF1P7_TIMER_CCIS CCIS_0
129 #define BSP430_RFEM_RF1P8_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
130 #define BSP430_RFEM_RF1P8_PORT_BIT BIT6
131 #define BSP430_RFEM_RF1P9_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
132 #define BSP430_RFEM_RF1P9_PORT_BIT BIT6
133 #define BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
134 #define BSP430_RFEM_RF1P10_PORT_BIT BIT7
135 #define BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
136 #define BSP430_RFEM_RF1P12_PORT_BIT BIT3
137 #define BSP430_RFEM_RF1P12_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
138 #define BSP430_RFEM_RF1P12_TIMER_CCIDX 2
139 #define BSP430_RFEM_RF1P12_TIMER_CCIS CCIS_0
140 #define BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
141 #define BSP430_RFEM_RF1P14_PORT_BIT BIT0
142 #define BSP430_RFEM_RF1P16_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
143 #define BSP430_RFEM_RF1P16_PORT_BIT BIT3
144 #define BSP430_RFEM_RF1P18_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
145 #define BSP430_RFEM_RF1P18_PORT_BIT BIT1
146 #define BSP430_RFEM_RF1P20_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
147 #define BSP430_RFEM_RF1P20_PORT_BIT BIT2
148 #define BSP430_RFEM_RF2P15_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
149 #define BSP430_RFEM_RF2P15_PORT_BIT BIT2
150 #define BSP430_RFEM_RF2P15_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
151 #define BSP430_RFEM_RF2P15_TIMER_CCIDX 1
152 #define BSP430_RFEM_RF2P15_TIMER_CCIS CCIS_0
153 #define BSP430_RFEM_RF2P18_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT8
154 #define BSP430_RFEM_RF2P18_PORT_BIT BIT1
155 #define BSP430_RFEM_RF2P18_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
156 #define BSP430_RFEM_RF2P18_TIMER_CCIDX 1
157 #define BSP430_RFEM_RF2P18_TIMER_CCIS CCIS_1
158 #define BSP430_RFEM_RF2P19_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT8
159 #define BSP430_RFEM_RF2P19_PORT_BIT BIT2
160 #define BSP430_RFEM_RF2P19_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
161 #define BSP430_RFEM_RF2P19_TIMER_CCIDX 2
162 #define BSP430_RFEM_RF2P19_TIMER_CCIS CCIS_1
163 #define BSP430_RFEM_RF3P3_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT11
164 #define BSP430_RFEM_RF3P3_PORT_BIT BIT0
165 #define BSP430_RFEM_RF3P4_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
166 #define BSP430_RFEM_RF3P4_PORT_BIT BIT4
167 #define BSP430_RFEM_RF3P4_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
168 #define BSP430_RFEM_RF3P4_TIMER_CCIDX 3
169 #define BSP430_RFEM_RF3P4_TIMER_CCIS CCIS_0
170 #define BSP430_RFEM_RF3P5_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT9
171 #define BSP430_RFEM_RF3P5_PORT_BIT BIT4
172 #define BSP430_RFEM_RF3P6_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
173 #define BSP430_RFEM_RF3P6_PORT_BIT BIT2
174 #define BSP430_RFEM_RF3P6_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
175 #define BSP430_RFEM_RF3P6_TIMER_CCIDX 1
176 #define BSP430_RFEM_RF3P6_TIMER_CCIS CCIS_0
177 #define BSP430_RFEM_RF3P7_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT9
178 #define BSP430_RFEM_RF3P7_PORT_BIT BIT5
179 #define BSP430_RFEM_RF3P8_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
180 #define BSP430_RFEM_RF3P8_PORT_BIT BIT5
181 #define BSP430_RFEM_RF3P8_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
182 #define BSP430_RFEM_RF3P8_TIMER_CCIDX 4
183 #define BSP430_RFEM_RF3P8_TIMER_CCIS CCIS_0
184 #define BSP430_RFEM_RF3P9_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT8
185 #define BSP430_RFEM_RF3P9_PORT_BIT BIT2
186 #define BSP430_RFEM_RF3P9_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
187 #define BSP430_RFEM_RF3P9_TIMER_CCIDX 2
188 #define BSP430_RFEM_RF3P9_TIMER_CCIS CCIS_1
189 #define BSP430_RFEM_RF3P10_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
190 #define BSP430_RFEM_RF3P10_PORT_BIT BIT6
191 #define BSP430_RFEM_RF3P11_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT8
192 #define BSP430_RFEM_RF3P11_PORT_BIT BIT1
193 #define BSP430_RFEM_RF3P11_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
194 #define BSP430_RFEM_RF3P11_TIMER_CCIDX 1
195 #define BSP430_RFEM_RF3P11_TIMER_CCIS CCIS_1
196 #define BSP430_RFEM_RF3P13_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
197 #define BSP430_RFEM_RF3P13_PORT_BIT BIT7
198 #define BSP430_RFEM_RF3P14_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
199 #define BSP430_RFEM_RF3P14_PORT_BIT BIT3
200 #define BSP430_RFEM_RF3P14_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
201 #define BSP430_RFEM_RF3P14_TIMER_CCIDX 2
202 #define BSP430_RFEM_RF3P14_TIMER_CCIS CCIS_0
203 #define BSP430_RFEM_RF3P15_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
204 #define BSP430_RFEM_RF3P15_PORT_BIT BIT2
205 #define BSP430_RFEM_RF3P16_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
206 #define BSP430_RFEM_RF3P16_PORT_BIT BIT3
207 #define BSP430_RFEM_RF3P17_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
208 #define BSP430_RFEM_RF3P17_PORT_BIT BIT0
209 #define BSP430_RFEM_RF3P18_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT3
210 #define BSP430_RFEM_RF3P18_PORT_BIT BIT1
216 #define BSP430_UTILITY_U8GLIB (configBSP430_UTILITY_U8GLIB - 0)
220 #ifndef configBSP430_PLATFORM_EXP430F5438_LCD
233 #define configBSP430_PLATFORM_EXP430F5438_LCD 0
236 #if defined(BSP430_DOXYGEN) || (configBSP430_PLATFORM_EXP430F5438_LCD - 0)
239 #define BSP430_PLATFORM_EXP430F5438_LCD_SPI_PERIPH_HANDLE BSP430_PERIPH_USCI5_B2
244 #define BSP430_PLATFORM_EXP430F5438_LCD_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT9
249 #define BSP430_PLATFORM_EXP430F5438_LCD_RSTn_PORT_BIT BIT7
254 #define BSP430_PLATFORM_EXP430F5438_LCD_CSn_PORT_BIT BIT6
259 #define BSP430_PLATFORM_EXP430F5438_LCD_COLUMNS 138
263 #define BSP430_PLATFORM_EXP430F5438_LCD_ROWS 110
268 #define BSP430_PLATFORM_EXP430F5438_LCD_BL_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT8
278 #define BSP430_PLATFORM_EXP430F5438_LCD_BL_PORT_BIT BIT3