diff options
| author | greedyhao <[email protected]> | 2020-12-10 15:28:27 +0800 |
|---|---|---|
| committer | greedyhao <[email protected]> | 2020-12-10 15:28:27 +0800 |
| commit | c5a672d1b11b753ddad4e07dee4bf942fb4edd20 (patch) | |
| tree | c8bf0408464a519934080ee668bf1b2ef86c9555 /bsp | |
| parent | f91374c09a73c7fbc445d1801881266ec297f3a8 (diff) | |
Update ab32vg1_hal_uart.c
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/source/ab32vg1_hal_uart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/source/ab32vg1_hal_uart.c b/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/source/ab32vg1_hal_uart.c index ceece42aef..bef740f89f 100644 --- a/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/source/ab32vg1_hal_uart.c +++ b/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/source/ab32vg1_hal_uart.c @@ -112,7 +112,7 @@ void hal_uart_write(hal_sfr_t uartx, uint8_t data) */ uint8_t hal_uart_read(hal_sfr_t uartx) { - return (uartx[UARTxCON] & 0xff); + return (uartx[UARTxDATA] & 0xff); } /** @@ -140,7 +140,7 @@ uint32_t hal_uart_getflag(hal_sfr_t uartx, uint32_t flag) */ void hal_uart_clrflag(hal_sfr_t uartx, uint32_t flag) { - uartx[UARTxCON] |= flag; + uartx[UARTxCPND] |= flag; } /** |
