[fix] fix uart fifo_level and interrupt mask error
This commit is contained in:
parent
e1920665b2
commit
0fcc8ac246
@ -89,7 +89,7 @@
|
||||
#define UART_UARTIFLS_TXIFLSEL_POS (0U)
|
||||
#define UART_UARTIFLS_TXIFLSEL_MASK (0x7 << UART_UARTIFLS_TXIFLSEL_POS)
|
||||
#define UART_UARTIFLS_RXIFLSEL_POS (3U)
|
||||
#define UART_UARTIFLS_RXIFLSEL_MASK (0x7 << UART_UARTIFLS_TXIFLSEL_POS)
|
||||
#define UART_UARTIFLS_RXIFLSEL_MASK (0x7 << UART_UARTIFLS_RXIFLSEL_POS)
|
||||
|
||||
/* UART_UARTIMSC_OFFSET @0x038 */
|
||||
#define UART_UARTIMSC_RIMIM (1 << 0U)
|
||||
|
||||
@ -77,8 +77,8 @@ void uart_write_block(uint8_t uart_id, uint8_t *data, uint32_t length);
|
||||
uint32_t uart_int_get_raw_status(uint8_t uart_id);
|
||||
uint32_t uart_int_get_status(uint8_t uart_id);
|
||||
void uart_int_clear(uint8_t uart_id, uint32_t int_type);
|
||||
void uart_int_mask(uint8_t uart_id, uint32_t int_type);
|
||||
void uart_int_unmask(uint8_t uart_id, uint32_t int_type);
|
||||
void uart_int_enable(uint8_t uart_id, uint32_t int_type);
|
||||
void uart_int_disable(uint8_t uart_id, uint32_t int_type);
|
||||
uint32_t uart_int_get_mask_status(uint8_t uart_id);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@ -160,7 +160,7 @@ void uart_int_clear(uint8_t uart_id, uint32_t int_type)
|
||||
putreg32(val, addr);
|
||||
}
|
||||
|
||||
void uart_int_mask(uint8_t uart_id, uint32_t int_type)
|
||||
void uart_int_enable(uint8_t uart_id, uint32_t int_type)
|
||||
{
|
||||
uint32_t addr, val;
|
||||
|
||||
@ -170,7 +170,7 @@ void uart_int_mask(uint8_t uart_id, uint32_t int_type)
|
||||
putreg32(val, addr);
|
||||
}
|
||||
|
||||
void uart_int_unmask(uint8_t uart_id, uint32_t int_type)
|
||||
void uart_int_disable(uint8_t uart_id, uint32_t int_type)
|
||||
{
|
||||
uint32_t addr, val;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user