20#ifndef __HAL_DRIVER_NUVOTON_M480_USART_H__
21#define __HAL_DRIVER_NUVOTON_M480_USART_H__
24#include "../../__device.h"
26#if VSF_HAL_USE_USART == ENABLED
31#ifndef VSF_CFG_USART_CLOCK_SOURCE
32# define VSF_CFG_USART_CLOCK_SOURCE HXT
35#define VSF_USART_CFG_REIMPLEMENT_TYPE_MODE ENABLED
36#define VSF_USART_CFG_REIMPLEMENT_TYPE_IRQ_MASK ENABLED
37#define VSF_USART_CFG_REIMPLEMENT_TYPE_STATUS ENABLED
119#define VSF_USART_CFG_DEC_PREFIX vsf_hw
120#define VSF_USART_CFG_DEC_UPCASE_PREFIX VSF_HW
#define VSF_BIT(__N)
Definition __type.h:188
vsf_usart_mode_t
Definition uart.h:32
vsf_usart_irq_mask_t
Definition uart.h:106
@ VSF_USART_1_STOPBIT
Definition usart.h:89
@ VSF_USART_2_STOPBIT
Definition usart.h:91
@ VSF_USART_1_5_STOPBIT
Definition usart.h:90
vsf_usart_mode_t
Definition usart.h:42
@ USART_FIFO_SIZE
Definition usart.h:75
@ VSF_USART_8_BIT_LENGTH
Definition usart.h:43
@ USART_NONE_PARITY
Definition usart.h:60
@ USART_SPACE_PARITY
Definition usart.h:64
@ VSF_USART_EVEN_PARITY
Definition usart.h:62
@ VSF_USART_ODD_PARITY
Definition usart.h:61
@ USART_TX_INVERTED
Definition usart.h:80
@ USART_8_BIT_FIFO
Definition usart.h:73
@ USART_PARITY
Definition usart.h:65
@ USART_14_BIT_FIFO
Definition usart.h:74
@ USART_RX_INVERTED
Definition usart.h:81
@ USART_MARK_PARITY
Definition usart.h:63
@ VSF_USART_7_BIT_LENGTH
Definition usart.h:44
@ USART_1_BIT_FIFO
Definition usart.h:71
@ VSF_USART_5_BIT_LENGTH
Definition usart.h:46
@ USART_BIT_LENGTH
Definition usart.h:47
@ USART_TX_RX_INVERTED
Definition usart.h:82
@ USART_STOPBIT
Definition usart.h:57
@ VSF_USART_6_BIT_LENGTH
Definition usart.h:45
@ USART_4_BIT_FIFO
Definition usart.h:72
vsf_usart_irq_mask_t
Definition usart.h:86
@ VSF_USART_IRQ_MASK_TX_ERROR
Definition usart.h:94
@ VSF_USART_IRQ_MASK_TX_CPL
Definition usart.h:90
@ VSF_USART_IRQ_MASK_TX
Definition usart.h:88
@ VSF_USART_IRQ_MASK_RX
Definition usart.h:87
@ VSF_USART_IRQ_MASK_ERROR
Definition usart.h:95
@ VSF_USART_IRQ_MASK_RX_TIMEOUT
Definition usart.h:98
@ VSF_USART_IRQ_ALL_BITS_MASK
Definition usart.h:100
@ VSF_USART_IRQ_MASK_RX_CPL
Definition usart.h:89
@ VSF_USART_IRQ_MASK_RX_ERROR
Definition usart.h:93
struct vsf_usart_status_t vsf_usart_status_t
unsigned int uint32_t
Definition lvgl.h:43
unsigned char uint8_t
Definition lvgl.h:40
uint8_t is_busy
Definition usart.h:109
uint8_t rx_cancel
Definition usart.h:112
uint32_t more_status
Definition usart.h:114
uint8_t tx_cancel
Definition usart.h:113
uint8_t rx_error_detected
Definition usart.h:110
uint8_t tx_error_detected
Definition usart.h:111