Fix uart fifo overflow bug

This commit is contained in:
kooho
2018-01-03 17:18:32 +08:00
parent 2ddee72996
commit 492db0591d
3 changed files with 32 additions and 13 deletions

View File

@@ -332,8 +332,14 @@ typedef volatile struct {
} mem_tx_status;
union {
struct {
uint32_t status:24;
uint32_t reserved24: 8;
uint32_t status: 24;
uint32_t reserved24: 8;
};
struct {
uint32_t reserved0: 2;
uint32_t rd_addr: 11; /*This register stores the rx mem read address.*/
uint32_t wr_addr: 11; /*This register stores the rx mem write address.*/
uint32_t reserved: 8;
};
uint32_t val;
} mem_rx_status;