@@ -53,7 +53,7 @@ void BOARD_InitPins(void)
5353
5454 RESET_ReleasePeripheralReset (kCTIMER1_RST_SHIFT_RSTn );
5555 RESET_ReleasePeripheralReset (kLPSPI0_RST_SHIFT_RSTn );
56- RESET_ReleasePeripheralReset (kLPSPI1_RST_SHIFT_RSTn );
56+ RESET_ReleasePeripheralReset (kLPSPI1_RST_SHIFT_RSTn );
5757
5858 RESET_ReleasePeripheralReset (kLPI2C0_RST_SHIFT_RSTn );
5959
@@ -117,6 +117,110 @@ void BOARD_InitPins(void)
117117 /* PORT0_3 (pin 52) is configured as LPUART0_TXD */
118118 PORT_SetPinConfig (PORT0 , 3U , & port0_3_pin52_config );
119119
120+ #ifdef BSP_USING_UART1
121+ const port_pin_config_t port1_8_pin2_config = {/* Internal pull-up resistor is enabled */
122+ kPORT_PullUp ,
123+ /* Low internal pull resistor value is selected. */
124+ kPORT_LowPullResistor ,
125+ /* Fast slew rate is configured */
126+ kPORT_FastSlewRate ,
127+ /* Passive input filter is disabled */
128+ kPORT_PassiveFilterDisable ,
129+ /* Open drain output is disabled */
130+ kPORT_OpenDrainDisable ,
131+ /* Low drive strength is configured */
132+ kPORT_LowDriveStrength ,
133+ /* Normal drive strength is configured */
134+ kPORT_NormalDriveStrength ,
135+ /* Pin is configured as LPUART1_RXD */
136+ kPORT_MuxAlt2 ,
137+ /* Digital input enabled */
138+ kPORT_InputBufferEnable ,
139+ /* Digital input is not inverted */
140+ kPORT_InputNormal ,
141+ /* Pin Control Register fields [15:0] are not locked */
142+ kPORT_UnlockRegister };
143+ /* PORT1_8 (pin 2) is configured as LPUART1_RXD */
144+ PORT_SetPinConfig (PORT1 , 8U , & port1_8_pin2_config );
145+
146+ const port_pin_config_t port1_9_pin3_config = {/* Internal pull-up resistor is enabled */
147+ kPORT_PullUp ,
148+ /* Low internal pull resistor value is selected. */
149+ kPORT_LowPullResistor ,
150+ /* Fast slew rate is configured */
151+ kPORT_FastSlewRate ,
152+ /* Passive input filter is disabled */
153+ kPORT_PassiveFilterDisable ,
154+ /* Open drain output is disabled */
155+ kPORT_OpenDrainDisable ,
156+ /* Low drive strength is configured */
157+ kPORT_LowDriveStrength ,
158+ /* Normal drive strength is configured */
159+ kPORT_NormalDriveStrength ,
160+ /* Pin is configured as LPUART1_TXD */
161+ kPORT_MuxAlt2 ,
162+ /* Digital input enabled */
163+ kPORT_InputBufferEnable ,
164+ /* Digital input is not inverted */
165+ kPORT_InputNormal ,
166+ /* Pin Control Register fields [15:0] are not locked */
167+ kPORT_UnlockRegister };
168+ /* PORT1_9 (pin 3) is configured as LPUART1_TXD */
169+ PORT_SetPinConfig (PORT1 , 9U , & port1_9_pin3_config );
170+ #endif
171+
172+ #ifdef BSP_USING_UART2
173+ const port_pin_config_t port3_14_pin36_config = {/* Internal pull-up resistor is enabled */
174+ kPORT_PullUp ,
175+ /* Low internal pull resistor value is selected. */
176+ kPORT_LowPullResistor ,
177+ /* Fast slew rate is configured */
178+ kPORT_FastSlewRate ,
179+ /* Passive input filter is disabled */
180+ kPORT_PassiveFilterDisable ,
181+ /* Open drain output is disabled */
182+ kPORT_OpenDrainDisable ,
183+ /* Low drive strength is configured */
184+ kPORT_LowDriveStrength ,
185+ /* Normal drive strength is configured */
186+ kPORT_NormalDriveStrength ,
187+ /* Pin is configured as LPUART2_RXD */
188+ kPORT_MuxAlt2 ,
189+ /* Digital input enabled */
190+ kPORT_InputBufferEnable ,
191+ /* Digital input is not inverted */
192+ kPORT_InputNormal ,
193+ /* Pin Control Register fields [15:0] are not locked */
194+ kPORT_UnlockRegister };
195+ /* PORT3_14 (pin 36) is configured as LPUART2_RXD */
196+ PORT_SetPinConfig (PORT3 , 14U , & port3_14_pin36_config );
197+
198+ const port_pin_config_t port3_15_pin35_config = {/* Internal pull-up resistor is enabled */
199+ kPORT_PullUp ,
200+ /* Low internal pull resistor value is selected. */
201+ kPORT_LowPullResistor ,
202+ /* Fast slew rate is configured */
203+ kPORT_FastSlewRate ,
204+ /* Passive input filter is disabled */
205+ kPORT_PassiveFilterDisable ,
206+ /* Open drain output is disabled */
207+ kPORT_OpenDrainDisable ,
208+ /* Low drive strength is configured */
209+ kPORT_LowDriveStrength ,
210+ /* Normal drive strength is configured */
211+ kPORT_NormalDriveStrength ,
212+ /* Pin is configured as LPUART2_TXD */
213+ kPORT_MuxAlt2 ,
214+ /* Digital input enabled */
215+ kPORT_InputBufferEnable ,
216+ /* Digital input is not inverted */
217+ kPORT_InputNormal ,
218+ /* Pin Control Register fields [15:0] are not locked */
219+ kPORT_UnlockRegister };
220+ /* PORT3_15 (pin 35) is configured as LPUART2_TXD */
221+ PORT_SetPinConfig (PORT3 , 15U , & port3_15_pin35_config );
222+ #endif
223+
120224#ifdef BSP_USING_PWM0
121225 ctimer_config_t config ;
122226 CTIMER_Init (CTIMER1 , & config );
@@ -249,7 +353,7 @@ void BOARD_InitPins(void)
249353#endif
250354
251355#ifdef BSP_USING_SPI1
252- const port_pin_config_t port2_12_pin22_config = {/* Internal pull-up/down resistor is disabled */
356+ const port_pin_config_t port2_12_pin22_config = {/* Internal pull-up/down resistor is disabled */
253357 kPORT_PullDisable ,
254358 /* Low internal pull resistor value is selected. */
255359 kPORT_LowPullResistor ,
0 commit comments