56 #ifndef BSP430_PLATFORM_EXP430G2_PLATFORM_H
57 #define BSP430_PLATFORM_EXP430G2_PLATFORM_H
61 #define BSP430_PLATFORM_EXP430G2 1
66 #if (configBSP430_PLATFORM_SPIN_FOR_JUMPER - 0)
67 #define BSP430_PLATFORM_SPIN_FOR_JUMPER 1
71 #define BSP430_PLATFORM_BUTTON0_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
72 #define BSP430_PLATFORM_BUTTON0_PORT_BIT BIT3
75 #define BSP430_LED_RED 0
76 #define BSP430_LED_GREEN 1
80 #ifndef BSP430_TIMER_CCACLK_ACLK_CCIDX
82 #define BSP430_TIMER_CCACLK_ACLK_CCIDX 0
84 #ifndef BSP430_TIMER_CCACLK_ACLK_CCIS
86 #define BSP430_TIMER_CCACLK_ACLK_CCIS CCIS_1
88 #ifndef BSP430_TIMER_CCACLK_CLK_PORT_BIT
90 #define BSP430_TIMER_CCACLK_CLK_PORT_BIT BIT0
92 #ifndef BSP430_TIMER_CCACLK_CC0_PORT_BIT
94 #define BSP430_TIMER_CCACLK_CC0_PORT_BIT BIT1
96 #ifndef BSP430_TIMER_CCACLK_CC1_PORT_BIT
98 #define BSP430_TIMER_CCACLK_CC1_PORT_BIT BIT2
103 #if (configBSP430_RF_ANAREN_CC110L - 0)
104 #define BSP430_RF_CC110X 1
105 #define BSP430_RF_CC110X_SPI_PERIPH_HANDLE BSP430_PERIPH_USCI_B0
106 #define BSP430_RF_CC110X_GDO2_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
107 #define BSP430_RF_CC110X_GDO2_PORT_BIT BIT0
108 #define BSP430_RF_CC110X_GDO0_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
109 #define BSP430_RF_CC110X_GDO0_PORT_BIT BIT6
110 #define BSP430_RF_CC110X_CSn_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
111 #define BSP430_RF_CC110X_CSn_PORT_BIT BIT7
112 #define BSP430_RF_CC110X_GDO1_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
113 #define BSP430_RF_CC110X_GDO1_PORT_BIT BIT6
120 #if (configBSP430_RF_CC3000BOOST - 0)
121 #define BSP430_RF_CC3000 1
122 #define BSP430_RF_CC3000_SPI_PERIPH_HANDLE BSP430_PERIPH_USCI_B0
123 #define BSP430_RF_CC3000_PWR_EN_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
124 #define BSP430_RF_CC3000_PWR_EN_PORT_BIT BIT0
125 #define BSP430_RF_CC3000_SCLK_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
126 #define BSP430_RF_CC3000_SCLK_PORT_BIT BIT5
127 #define BSP430_RF_CC3000_IRQn_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
128 #define BSP430_RF_CC3000_IRQn_PORT_BIT BIT6
129 #define BSP430_RF_CC3000_CSn_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
130 #define BSP430_RF_CC3000_CSn_PORT_BIT BIT7
131 #define BSP430_RF_CC3000_MOSI_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
132 #define BSP430_RF_CC3000_MOSI_PORT_BIT BIT7
133 #define BSP430_RF_CC3000_MISO_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
134 #define BSP430_RF_CC3000_MISO_PORT_BIT BIT6
141 #if (configBSP430_RFEM_CCEM - 0)
142 #define BSP430_RFEM_CCEM 1
143 #define BSP430_RFEM 1
145 #if (BSP430_RFEM_CCEM - 0)
146 #define BSP430_RFEM_SERIAL_PERIPH_HANDLE BSP430_PERIPH_USCI_B0
147 #define BSP430_RFEM_RF1P3_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
148 #define BSP430_RFEM_RF1P3_PORT_BIT BIT4
149 #define BSP430_RFEM_RF1P3_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
150 #define BSP430_RFEM_RF1P3_TIMER_CCIDX 2
151 #define BSP430_RFEM_RF1P3_TIMER_CCIS CCIS_0
152 #define BSP430_RFEM_RF1P7_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
153 #define BSP430_RFEM_RF1P7_PORT_BIT BIT2
154 #define BSP430_RFEM_RF1P7_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
155 #define BSP430_RFEM_RF1P7_TIMER_CCIDX 1
156 #define BSP430_RFEM_RF1P7_TIMER_CCIS CCIS_0
157 #define BSP430_RFEM_RF1P9_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
158 #define BSP430_RFEM_RF1P9_PORT_BIT BIT1
159 #define BSP430_RFEM_RF1P9_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
160 #define BSP430_RFEM_RF1P9_TIMER_CCIDX 0
161 #define BSP430_RFEM_RF1P9_TIMER_CCIS CCIS_0
162 #define BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
163 #define BSP430_RFEM_RF1P10_PORT_BIT BIT6
164 #define BSP430_RFEM_RF1P10_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
165 #define BSP430_RFEM_RF1P10_TIMER_CCIDX 1
166 #define BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
167 #define BSP430_RFEM_RF1P12_PORT_BIT BIT0
168 #define BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
169 #define BSP430_RFEM_RF1P14_PORT_BIT BIT7
170 #define BSP430_RFEM_RF1P16_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
171 #define BSP430_RFEM_RF1P16_PORT_BIT BIT5
172 #define BSP430_RFEM_RF1P16_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
173 #define BSP430_RFEM_RF1P16_TIMER_CCIDX 0
174 #define BSP430_RFEM_RF1P18_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
175 #define BSP430_RFEM_RF1P18_PORT_BIT BIT7
176 #define BSP430_RFEM_RF1P20_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
177 #define BSP430_RFEM_RF1P20_PORT_BIT BIT6
178 #define BSP430_RFEM_RF1P20_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
179 #define BSP430_RFEM_RF1P20_TIMER_CCIDX 1
180 #define BSP430_RFEM_RF2P15_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
181 #define BSP430_RFEM_RF2P15_PORT_BIT BIT5
182 #define BSP430_RFEM_RF2P15_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
183 #define BSP430_RFEM_RF2P15_TIMER_CCIDX 2
184 #define BSP430_RFEM_RF2P15_TIMER_CCIS CCIS_1
185 #define BSP430_RFEM_RF2P18_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
186 #define BSP430_RFEM_RF2P18_PORT_BIT BIT3
187 #define BSP430_RFEM_RF2P18_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
188 #define BSP430_RFEM_RF2P18_TIMER_CCIDX 0
189 #define BSP430_RFEM_RF2P18_TIMER_CCIS CCIS_1
190 #define BSP430_RFEM_RF2P19_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
191 #define BSP430_RFEM_RF2P19_PORT_BIT BIT2
192 #define BSP430_RFEM_RF2P19_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
193 #define BSP430_RFEM_RF2P19_TIMER_CCIDX 1
194 #define BSP430_RFEM_RF2P19_TIMER_CCIS CCIS_1