[rtems commit] leon, apbuart: added register defines: FIFO, delay int

Daniel Hellstrom danielh at rtems.org
Tue May 2 10:38:43 UTC 2017


Module:    rtems
Branch:    master
Commit:    7cb932504750b7a2c88812139812e43e94a77d6b
Changeset: http://git.rtems.org/rtems/commit/?id=7cb932504750b7a2c88812139812e43e94a77d6b

Author:    Martin Aberg <maberg at gaisler.com>
Date:      Mon Mar  6 11:14:23 2017 +0100

leon, apbuart: added register defines: FIFO, delay int

The FIFOs available capability bit is available in the UART Control Register:
FIFOs available (FA) - Set to 1 when receiver and transmitter FIFOs are
available. When 0, only holding register is available.

Delay interrupt can delay a receive character interrupt to better handle RX bursts.

---

 c/src/lib/libbsp/sparc/shared/include/apbuart.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/c/src/lib/libbsp/sparc/shared/include/apbuart.h b/c/src/lib/libbsp/sparc/shared/include/apbuart.h
index 2f34a11..326e769 100644
--- a/c/src/lib/libbsp/sparc/shared/include/apbuart.h
+++ b/c/src/lib/libbsp/sparc/shared/include/apbuart.h
@@ -63,6 +63,9 @@ typedef struct {
 #define APBUART_CTRL_EC 0x100
 #define APBUART_CTRL_TF 0x200
 #define APBUART_CTRL_RF 0x400
+#define APBUART_CTRL_BI 0x1000
+#define APBUART_CTRL_DI 0x2000
+#define APBUART_CTRL_FA 0x80000000
 
 #define APBUART_STATUS_DR 0x1
 #define APBUART_STATUS_TS 0x2



More information about the vc mailing list