Seeed-Studio / Seeed_Platform

27 stars 23 forks source link

Can't use USART6 on Wio Tracker LTE #10

Closed ghost closed 3 years ago

ghost commented 6 years ago

I want to use PC6 and PC7 as USART on WioLTE.

However, those are not assigned to HardwareSerial. I challenged to implement it myself, but it did not succeed.

#define BOARD_UART6_TX_PIN      Port2Pin('C', 6)
#define BOARD_UART6_RX_PIN      Port2Pin('C', 7)
#define USART6_BASE  (struct usart_reg_map\*)0x4001140
[RCC_USART6] =  { .clk_domain = APB2, .line_num = 5 }
.regs     = USART6_BASE,
.max_baud = 2250000UL,
.clk_id   = RCC_USART6,
.irq_num  = NVIC_USART6

I could use it on programs that developed and deployed using Espruino Web IDE, so I would be happy if it use on Arduino as well.