Add LPUART Driver

Pin Define

  1. Go to MCU pin define page

  2. Search which pin can implement to UART

  3. Define UART TX RX pin

  4. Generate the code


Configuring Driver

  1. Go to Driver page

  2. Select new driver

UART Driver

Interrupt Driver

After importing the driver, it will be displayed under the driver layer.


Configuring Driver Parameter

UART Config

UartGlobalConfig: Configure basic UART parameters, including UART channel, baud rate, data bits, stop bits, parity, and flow control.

GeneralConfiguration: Generate a UART callback function.

Interrupt Config

Interrupt Controler: Generate a UART Interrupt handler


Source Code

Include

Callback Function

Init Function


Reference

Last updated