[rtduino][lpc55s69] 纠正uart引脚错误并使能相关依赖项 (#6976)

* [rtduino][lpc55s69] 纠正uart引脚错误并使能相关依赖项

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
This commit is contained in:
Yifang 2023-02-25 14:28:03 +08:00 committed by GitHub
parent faddfecbd2
commit 7763183074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -24,8 +24,8 @@ Hardware Drivers Config --->
| Arduino引脚编号 | LPC55引脚编号 | 5V容忍 | 备注 |
| ------------------- | --------- | ---- | ------------------------------------------------------------------------- |
| 0 (D0) | P(1,24) | 是/否 | Serial2-RX默认被RT-Thread的UART设备框架uart1接管 |
| 1 (D1) | P(0,27) | 是/否 | Serial2-TX默认被RT-Thread的UART设备框架uart1接管 |
| 0 (D0) | P(1,24) | 是/否 | Serial2-RX默认被RT-Thread的UART设备框架uart2接管 |
| 1 (D1) | P(0,27) | 是/否 | Serial2-TX默认被RT-Thread的UART设备框架uart2接管 |
| 2 (D2) | P(0,15) | 是/否 | |
| 3 (D3) | P(1,6) | 是/否 | |
| 4 (D4) | P(1,7) | 是/否 | PWM2-CH2默认被RT-Thread的PWM设备框架pwm2接管 |

View File

@ -23,8 +23,8 @@
*/
const pin_map_t pin_map_table[]=
{
{D0, GET_PINS(1,24), "uart1"}, /* Serial2-RX */
{D1, GET_PINS(0,27), "uart1"}, /* Serial2-TX */
{D0, GET_PINS(1,24), "uart2"}, /* Serial2-RX */
{D1, GET_PINS(0,27), "uart2"}, /* Serial2-TX */
{D2, GET_PINS(0,15)},
{D3, GET_PINS(1,6)},
{D4, GET_PINS(1,7), "pwm2", 2}, /* PWM */

View File

@ -44,6 +44,6 @@
#define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c1"
/* Serial2 : P(,27-TX P(,24-RX */
#define RTDUINO_SERIAL2_DEVICE_NAME "uart1"
#define RTDUINO_SERIAL2_DEVICE_NAME "uart2"
#endif /* Pins_Arduino_h */

View File

@ -266,7 +266,7 @@ menu "Onboard Peripheral Drivers"
config BSP_USING_ARDUINO
bool "Compatible with Arduino Ecosystem (RTduino)"
select PKG_USING_RTDUINO
select BSP_USING_STLINK_TO_USART
select BSP_USING_UART2
select BSP_USING_GPIO
select BSP_USING_ADC
select BSP_USING_ADC0