|
@@ -117,6 +117,109 @@ void BOARD_InitPins(void)
|
|
|
/* PORT0_3 (pin 52) is configured as LPUART0_TXD */
|
|
|
PORT_SetPinConfig(PORT0, 3U, &port0_3_pin52_config);
|
|
|
|
|
|
+#ifdef BSP_USING_UART1
|
|
|
+ const port_pin_config_t port1_8_pin2_config = {/* Internal pull-up resistor is enabled */
|
|
|
+ kPORT_PullUp,
|
|
|
+ /* Low internal pull resistor value is selected. */
|
|
|
+ kPORT_LowPullResistor,
|
|
|
+ /* Fast slew rate is configured */
|
|
|
+ kPORT_FastSlewRate,
|
|
|
+ /* Passive input filter is disabled */
|
|
|
+ kPORT_PassiveFilterDisable,
|
|
|
+ /* Open drain output is disabled */
|
|
|
+ kPORT_OpenDrainDisable,
|
|
|
+ /* Low drive strength is configured */
|
|
|
+ kPORT_LowDriveStrength,
|
|
|
+ /* Normal drive strength is configured */
|
|
|
+ kPORT_NormalDriveStrength,
|
|
|
+ /* Pin is configured as LPUART1_RXD */
|
|
|
+ kPORT_MuxAlt2,
|
|
|
+ /* Digital input enabled */
|
|
|
+ kPORT_InputBufferEnable,
|
|
|
+ /* Digital input is not inverted */
|
|
|
+ kPORT_InputNormal,
|
|
|
+ /* Pin Control Register fields [15:0] are not locked */
|
|
|
+ kPORT_UnlockRegister};
|
|
|
+ /* PORT1_8 (pin 2) is configured as LPUART1_RXD */
|
|
|
+ PORT_SetPinConfig(PORT1, 8U, &port1_8_pin2_config);
|
|
|
+
|
|
|
+ const port_pin_config_t port1_9_pin3_config = {/* Internal pull-up resistor is enabled */
|
|
|
+ kPORT_PullUp,
|
|
|
+ /* Low internal pull resistor value is selected. */
|
|
|
+ kPORT_LowPullResistor,
|
|
|
+ /* Fast slew rate is configured */
|
|
|
+ kPORT_FastSlewRate,
|
|
|
+ /* Passive input filter is disabled */
|
|
|
+ kPORT_PassiveFilterDisable,
|
|
|
+ /* Open drain output is disabled */
|
|
|
+ kPORT_OpenDrainDisable,
|
|
|
+ /* Low drive strength is configured */
|
|
|
+ kPORT_LowDriveStrength,
|
|
|
+ /* Normal drive strength is configured */
|
|
|
+ kPORT_NormalDriveStrength,
|
|
|
+ /* Pin is configured as LPUART1_TXD */
|
|
|
+ kPORT_MuxAlt2,
|
|
|
+ /* Digital input enabled */
|
|
|
+ kPORT_InputBufferEnable,
|
|
|
+ /* Digital input is not inverted */
|
|
|
+ kPORT_InputNormal,
|
|
|
+ /* Pin Control Register fields [15:0] are not locked */
|
|
|
+ kPORT_UnlockRegister};
|
|
|
+ /* PORT1_9 (pin 3) is configured as LPUART1_TXD */
|
|
|
+ PORT_SetPinConfig(PORT1, 9U, &port1_9_pin3_config);
|
|
|
+#endif
|
|
|
+#ifdef BSP_USING_UART2
|
|
|
+ const port_pin_config_t port3_14_pin36_config = {/* Internal pull-up resistor is enabled */
|
|
|
+ kPORT_PullUp,
|
|
|
+ /* Low internal pull resistor value is selected. */
|
|
|
+ kPORT_LowPullResistor,
|
|
|
+ /* Fast slew rate is configured */
|
|
|
+ kPORT_FastSlewRate,
|
|
|
+ /* Passive input filter is disabled */
|
|
|
+ kPORT_PassiveFilterDisable,
|
|
|
+ /* Open drain output is disabled */
|
|
|
+ kPORT_OpenDrainDisable,
|
|
|
+ /* Low drive strength is configured */
|
|
|
+ kPORT_LowDriveStrength,
|
|
|
+ /* Normal drive strength is configured */
|
|
|
+ kPORT_NormalDriveStrength,
|
|
|
+ /* Pin is configured as LPUART2_RXD */
|
|
|
+ kPORT_MuxAlt2,
|
|
|
+ /* Digital input enabled */
|
|
|
+ kPORT_InputBufferEnable,
|
|
|
+ /* Digital input is not inverted */
|
|
|
+ kPORT_InputNormal,
|
|
|
+ /* Pin Control Register fields [15:0] are not locked */
|
|
|
+ kPORT_UnlockRegister};
|
|
|
+ /* PORT3_14 (pin 36) is configured as LPUART2_RXD */
|
|
|
+ PORT_SetPinConfig(PORT3, 14U, &port3_14_pin36_config);
|
|
|
+
|
|
|
+ const port_pin_config_t port3_15_pin35_config = {/* Internal pull-up resistor is enabled */
|
|
|
+ kPORT_PullUp,
|
|
|
+ /* Low internal pull resistor value is selected. */
|
|
|
+ kPORT_LowPullResistor,
|
|
|
+ /* Fast slew rate is configured */
|
|
|
+ kPORT_FastSlewRate,
|
|
|
+ /* Passive input filter is disabled */
|
|
|
+ kPORT_PassiveFilterDisable,
|
|
|
+ /* Open drain output is disabled */
|
|
|
+ kPORT_OpenDrainDisable,
|
|
|
+ /* Low drive strength is configured */
|
|
|
+ kPORT_LowDriveStrength,
|
|
|
+ /* Normal drive strength is configured */
|
|
|
+ kPORT_NormalDriveStrength,
|
|
|
+ /* Pin is configured as LPUART2_TXD */
|
|
|
+ kPORT_MuxAlt2,
|
|
|
+ /* Digital input enabled */
|
|
|
+ kPORT_InputBufferEnable,
|
|
|
+ /* Digital input is not inverted */
|
|
|
+ kPORT_InputNormal,
|
|
|
+ /* Pin Control Register fields [15:0] are not locked */
|
|
|
+ kPORT_UnlockRegister};
|
|
|
+ /* PORT3_15 (pin 35) is configured as LPUART2_TXD */
|
|
|
+ PORT_SetPinConfig(PORT3, 15U, &port3_15_pin35_config);
|
|
|
+#endif
|
|
|
+
|
|
|
#ifdef BSP_USING_PWM0
|
|
|
ctimer_config_t config;
|
|
|
CTIMER_Init(CTIMER1, &config);
|