diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2020-01-03 16:41:41 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2020-01-03 16:41:41 +0100 |
commit | 06991bb6572c1eb814ee35256b3c2bd06519acd2 (patch) | |
tree | 7d9d128a60d44ee5d0a3c74d84ac05132d326cea /uart.h | |
parent | ffb2c4adfb8e65e355b39abd39d994eebc649c98 (diff) | |
download | rpi-MMU-example-06991bb6572c1eb814ee35256b3c2bd06519acd2.tar.gz rpi-MMU-example-06991bb6572c1eb814ee35256b3c2bd06519acd2.zip |
fix interrupt enabling/disabling/polling and uart fifo setting to make the io work properly
Diffstat (limited to 'uart.h')
-rw-r--r-- | uart.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -61,7 +61,7 @@ static inline void uart_irq_enable(void) static inline _Bool uart_recv_irq_pending(void) { - return ((uint32_t) 1 << 4) & *(uint32_t volatile*) PL011_UART_RIS; + return ((uint32_t) 1 << 4) & *(uint32_t volatile*) PL011_UART_MIS; } static inline void uart_recv_irq_disable(void) @@ -81,7 +81,7 @@ static inline void uart_clear_recv_irq(void) static inline _Bool uart_send_irq_pending(void) { - return ((uint32_t) 1 << 5) & *(uint32_t volatile*) PL011_UART_RIS; + return ((uint32_t) 1 << 5) & *(uint32_t volatile*) PL011_UART_MIS; } static inline void uart_send_irq_disable(void) |