54 #ifndef BSP430_PLATFORM_EXP430FR4133_PLATFORM_H
55 #define BSP430_PLATFORM_EXP430FR4133_PLATFORM_H
59 #define BSP430_PLATFORM_EXP430FR4133 1
64 #define BSP430_PLATFORM_BUTTON0_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
65 #define BSP430_PLATFORM_BUTTON0_PORT_BIT BIT2
66 #define BSP430_PLATFORM_BUTTON1_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
67 #define BSP430_PLATFORM_BUTTON1_PORT_BIT BIT6
70 #define BSP430_LED_RED 0
71 #define BSP430_LED_GREEN 1
78 #define BSP430_CS_FRAM_NWAITS_FOR_FREQ(freq_) \
79 ((16000000UL < (freq_)) ? 2 : \
80 ((8000000UL < (freq_)) ? 1 : \
87 #if (configBSP430_RF_CC3000BOOST - 0)
88 #define BSP430_RF_CC3000 1
89 #define BSP430_RF_CC3000_SPI_PERIPH_HANDLE BSP430_PERIPH_EUSCI_B0
90 #define BSP430_RF_CC3000_PWR_EN_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT8
91 #define BSP430_RF_CC3000_PWR_EN_PORT_BIT BIT1
92 #define BSP430_RF_CC3000_SCLK_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT5
93 #define BSP430_RF_CC3000_SCLK_PORT_BIT BIT1
94 #define BSP430_RF_CC3000_IRQn_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
95 #define BSP430_RF_CC3000_IRQn_PORT_BIT BIT7
96 #define BSP430_RF_CC3000_IRQn_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
97 #define BSP430_RF_CC3000_IRQn_TIMER_CCIDX 1
98 #define BSP430_RF_CC3000_IRQn_TIMER_CCIS CCIS_0
99 #define BSP430_RF_CC3000_CSn_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
100 #define BSP430_RF_CC3000_CSn_PORT_BIT BIT6
101 #define BSP430_RF_CC3000_MOSI_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT5
102 #define BSP430_RF_CC3000_MOSI_PORT_BIT BIT2
103 #define BSP430_RF_CC3000_MISO_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT5
104 #define BSP430_RF_CC3000_MISO_PORT_BIT BIT3
111 #if (configBSP430_RF_ANAREN_CC110L - 0)
112 #define BSP430_RF_CC110X 1
113 #define BSP430_RF_CC110X_SPI_PERIPH_HANDLE BSP430_PERIPH_EUSCI_B0
114 #define BSP430_RF_CC110X_GDO2_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT8
115 #define BSP430_RF_CC110X_GDO2_PORT_BIT BIT1
116 #define BSP430_RF_CC110X_GDO0_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
117 #define BSP430_RF_CC110X_GDO0_PORT_BIT BIT7
118 #define BSP430_RF_CC110X_GDO0_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
119 #define BSP430_RF_CC110X_GDO0_TIMER_CCIDX 1
120 #define BSP430_RF_CC110X_GDO0_TIMER_CCIS CCIS_0
121 #define BSP430_RF_CC110X_CSn_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
122 #define BSP430_RF_CC110X_CSn_PORT_BIT BIT6
123 #define BSP430_RF_CC110X_GDO1_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT5
124 #define BSP430_RF_CC110X_GDO1_PORT_BIT BIT3
131 #if (configBSP430_RFEM_CCEM - 0)
132 #define BSP430_RFEM_CCEM 1
133 #define BSP430_RFEM 1
135 #if (BSP430_RFEM_CCEM - 0)
136 #define BSP430_RFEM_SERIAL_PERIPH_HANDLE BSP430_PERIPH_EUSCI_B0
137 #define BSP430_RFEM_RF1P3_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
138 #define BSP430_RFEM_RF1P3_PORT_BIT BIT4
139 #define BSP430_RFEM_RF1P7_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
140 #define BSP430_RFEM_RF1P7_PORT_BIT BIT0
141 #define BSP430_RFEM_RF1P9_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
142 #define BSP430_RFEM_RF1P9_PORT_BIT BIT1
143 #define BSP430_RFEM_RF1P10_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
144 #define BSP430_RFEM_RF1P10_PORT_BIT BIT7
145 #define BSP430_RFEM_RF1P10_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
146 #define BSP430_RFEM_RF1P10_TIMER_CCIDX 1
147 #define BSP430_RFEM_RF1P10_TIMER_CCIS CCIS_0
148 #define BSP430_RFEM_RF1P12_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT8
149 #define BSP430_RFEM_RF1P12_PORT_BIT BIT1
150 #define BSP430_RFEM_RF1P14_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
151 #define BSP430_RFEM_RF1P14_PORT_BIT BIT6
152 #define BSP430_RFEM_RF1P14_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA0
153 #define BSP430_RFEM_RF1P14_TIMER_CCIDX 2
154 #define BSP430_RFEM_RF1P14_TIMER_CCIS CCIS_0
155 #define BSP430_RFEM_RF1P16_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT5
156 #define BSP430_RFEM_RF1P16_PORT_BIT BIT1
157 #define BSP430_RFEM_RF1P18_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT5
158 #define BSP430_RFEM_RF1P18_PORT_BIT BIT2
159 #define BSP430_RFEM_RF1P20_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT5
160 #define BSP430_RFEM_RF1P20_PORT_BIT BIT3
161 #define BSP430_RFEM_RF2P15_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
162 #define BSP430_RFEM_RF2P15_PORT_BIT BIT3
163 #define BSP430_RFEM_RF2P18_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT1
164 #define BSP430_RFEM_RF2P18_PORT_BIT BIT5
165 #define BSP430_RFEM_RF2P19_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT8
166 #define BSP430_RFEM_RF2P19_PORT_BIT BIT3
167 #define BSP430_RFEM_RF2P19_TIMER_PERIPH_HANDLE BSP430_PERIPH_TA1
168 #define BSP430_RFEM_RF2P19_TIMER_CCIDX 2
169 #define BSP430_RFEM_RF2P19_TIMER_CCIS CCIS_0
174 #if (configBSP430_PLATFORM_BOOSTERPACK_SHARP96 - 0)
176 #define BSP430_PLATFORM_SHARPLCD_CS_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT2
177 #define BSP430_PLATFORM_SHARPLCD_CS_PORT_BIT BIT4
178 #define BSP430_PLATFORM_SHARPLCD_LCD_EN_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
179 #define BSP430_PLATFORM_SHARPLCD_LCD_EN_PORT_BIT BIT3
180 #define BSP430_PLATFORM_SHARPLCD_PWR_EN_PORT_PERIPH_HANDLE BSP430_PERIPH_PORT4
181 #define BSP430_PLATFORM_SHARPLCD_PWR_EN_PORT_BIT BIT2
182 #define BSP430_PLATFORM_SHARPLCD_SPI_PERIPH_HANDLE BSP430_PERIPH_EUSCI_B0