18#ifndef __HAL_DRIVER_GIGADEVICE_GD32H7XX_USART_H__
19#define __HAL_DRIVER_GIGADEVICE_GD32H7XX_USART_H__
25#if VSF_HAL_USE_USART == ENABLED
27#include "../../__device.h"
39#if defined(__VSF_HAL_HW_USART_CLASS_IMPLEMENT)
40# define __VSF_CLASS_IMPLEMENT__
41#elif defined(__VSF_HAL_HW_USART_CLASS_INHERIT__)
42# define __VSF_CLASS_INHERIT__
59#ifndef VSF_HW_USART_CFG_MULTI_CLASS
60# define VSF_HW_USART_CFG_MULTI_CLASS VSF_USART_CFG_MULTI_CLASS
75#define VSF_USART_CFG_REIMPLEMENT_TYPE_MODE ENABLED
76#define VSF_USART_CFG_REIMPLEMENT_TYPE_STATUS ENABLED
77#define VSF_USART_CFG_REIMPLEMENT_TYPE_IRQ_MASK ENABLED
78#define VSF_USART_CFG_REIMPLEMENT_TYPE_CMD ENABLED
127#define VSF_USART_SYNC_CLOCK_LAST_BIT_ENABLE VSF_USART_SYNC_CLOCK_LAST_BIT_ENABLE
128#define VSF_USART_SYNC_CLOCK_LAST_BIT_DISABLE VSF_USART_SYNC_CLOCK_LAST_BIT_DISABLE
129#define VSF_USART_SYNC_CLOCK_LAST_BIT_MASK VSF_USART_SYNC_CLOCK_LAST_BIT_ENABLE | VSF_USART_SYNC_CLOCK_LAST_BIT_DISABLE
304#undef __VSF_HAL_HW_USART_CLASS_IMPLEMENT
305#undef __VSF_HAL_HW_USART_CLASS_INHERIT__
vsf_usart_mode_t
Definition uart.h:32
vsf_usart_irq_mask_t
Definition uart.h:106
@ VSF_USART_TX_INV
Definition usart.h:144
@ VSF_USART_HALF_DUPLEX_DISABLE
Definition usart.h:108
@ VSF_USART_RX_INV
Definition usart.h:145
@ VSF_USART_SYNC_CLOCK_ENABLE
Definition usart.h:116
@ __VSF_HW_USART_CTL0_MASK
Definition usart.h:152
@ VSF_USART_OVERSAMPLE_16
Definition usart.h:148
@ VSF_USART_SYNC_CLOCK_PHASE_1_EDGE
Definition usart.h:122
@ VSF_USART_NO_PARITY
Definition usart.h:111
@ VSF_USART_10_BIT_LENGTH
Definition usart.h:132
@ VSF_USART_RTS_HWCONTROL
Definition usart.h:101
@ VSF_USART_SWAP
Definition usart.h:142
@ __VSF_HW_USART_CTL2_MASK
Definition usart.h:178
@ VSF_USART_RX_ENABLE
Definition usart.h:96
@ VSF_USART_MUTE
Definition usart.h:140
@ VSF_USART_FORCE_0_PARITY
Definition usart.h:185
@ VSF_USART_OVERSAMPLE_MASK
Definition usart.h:149
@ VSF_USART_TX_ENABLE
Definition usart.h:94
@ VSF_USART_SYNC_CLOCK_POLARITY_HIGH
Definition usart.h:120
@ __VSF_HW_USART_CTL1_MASK
Definition usart.h:163
@ VSF_USART_9_BIT_LENGTH
Definition usart.h:133
@ VSF_USART_1_STOPBIT
Definition usart.h:89
@ VSF_USART_FORCE_1_PARITY
Definition usart.h:186
@ VSF_USART_SYNC_CLOCK_POLARITY_LOW
Definition usart.h:119
@ VSF_USART_RX_DISABLE
Definition usart.h:97
@ VSF_USART_2_STOPBIT
Definition usart.h:91
@ VSF_USART_CTS_HWCONTROL
Definition usart.h:102
@ VSF_USART_SYNC_CLOCK_DISABLE
Definition usart.h:117
@ VSF_USART_RTS_CTS_HWCONTROL
Definition usart.h:103
@ VSF_USART_SYNC_CLOCK_PHASE_2_EDGE
Definition usart.h:123
@ VSF_USART_HALF_DUPLEX_ENABLE
Definition usart.h:107
@ VSF_USART_TX_DISABLE
Definition usart.h:95
@ VSF_USART_OVERSAMPLE_8
Definition usart.h:147
@ VSF_USART_0_5_STOPBIT
Definition usart.h:88
@ VSF_USART_NO_HWCONTROL
Definition usart.h:100
@ VSF_USART_1_5_STOPBIT
Definition usart.h:90
@ __VSF_HW_USART_CTL0_IRQ_MASK
Definition usart.h:236
@ __VSF_HW_USART_CTL2_IRQ_MASK
Definition usart.h:242
@ __VSF_HW_USART_IRQ_MASK
Definition usart.h:229
#define VSF_USART_SYNC_CLOCK_LAST_BIT_ENABLE
Definition usart.h:127
#define VSF_USART_SYNC_CLOCK_LAST_BIT_DISABLE
Definition usart.h:128
vsf_usart_mode_t
Definition usart.h:42
@ VSF_USART_8_BIT_LENGTH
Definition usart.h:43
@ VSF_USART_EVEN_PARITY
Definition usart.h:62
@ VSF_USART_ODD_PARITY
Definition usart.h:61
@ VSF_USART_7_BIT_LENGTH
Definition usart.h:44
@ VSF_USART_5_BIT_LENGTH
Definition usart.h:46
@ VSF_USART_6_BIT_LENGTH
Definition usart.h:45
vsf_usart_irq_mask_t
Definition usart.h:86
@ 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_RX_TIMEOUT
Definition usart.h:98
@ VSF_USART_IRQ_MASK_RX_CPL
Definition usart.h:89
struct vsf_usart_status_t vsf_usart_status_t
@ VSF_USART_TX_FIFO_THRESHOLD_EMPTY
Definition usart.h:116
@ VSF_USART_RX_FIFO_THRESHOLD_NOT_EMPTY
Definition usart.h:117
@ VSF_USART_RX_FIFO_THRESHOLD_HALF_FULL
Definition usart.h:118
@ VSF_USART_TX_FIFO_THRESHOLD_NOT_FULL
Definition usart.h:114
@ __VSF_HW_USART_NOT_SUPPORT_MASK
Definition usart.h:167
@ VSF_USART_RX_FIFO_THRESHOLD_FULL
Definition usart.h:119
@ VSF_USART_TX_FIFO_THRESHOLD_HALF_EMPTY
Definition usart.h:115
vsf_usart_cmd_t
Definition usart.h:217
@ VSF_USART_CMD_SET_BREAK
Definition usart.h:220
@ __VSF_HW_USART_SUPPORT_CMD_MASK
Definition usart.h:223
@ VSF_USART_CMD_CLEAR_BREAK
Definition usart.h:221
@ VSF_USART_CMD_SEND_BREAK
Definition usart.h:218
@ VSF_USART_IRQ_MASK_OVERFLOW_ERR
Definition usart.h:210
@ VSF_USART_IRQ_MASK_CTS
Definition usart.h:183
@ VSF_USART_IRQ_MASK_BREAK_ERR
Definition usart.h:209
@ VSF_USART_IRQ_MASK_PARITY_ERR
Definition usart.h:192
@ __VSF_HW_USART_NOT_SUPPORT_IRQ_MASK
Definition usart.h:212
@ VSF_USART_IRQ_MASK_FRAME_ERR
Definition usart.h:208
unsigned int uint32_t
Definition lvgl.h:43
uint32_t tfnf
Definition usart.h:274
uint32_t noise_err
Definition usart.h:269
uint32_t __dummy2
Definition usart.h:281
uint32_t cts_changed
Definition usart.h:276
uint32_t trans_complete
Definition usart.h:273
uint32_t cts_level
Definition usart.h:277
uint32_t overrun_err
Definition usart.h:270
uint32_t idle
Definition usart.h:271
uint32_t __dummy0
Definition usart.h:275
uint32_t __dummy1
Definition usart.h:279
uint32_t is_busy
Definition usart.h:280
uint32_t value
Definition usart.h:283
uint32_t frame_err
Definition usart.h:268
uint32_t rx_timeouted
Definition usart.h:278
uint32_t rfne
Definition usart.h:272
uint32_t parity_err
Definition usart.h:267
vsf_usart_cmd_t
Predefined VSF USART command that can be reimplemented in specific hal drivers.
Definition vsf_template_usart.h:647