summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhong Pham <phamp@ddc-web.com>2017-05-07 14:13:24 -0700
committerJoel Sherrill <joel@rtems.org>2017-05-13 22:50:39 -0500
commitf219adc3f8d38a13a14c6f9900177204f7bb05b3 (patch)
tree7d749c4e82d3c52ec2d159f9ed61493b46313f7c
parentsptests/spprivenv01: Use default task mode (diff)
downloadrtems-f219adc3f8d38a13a14c6f9900177204f7bb05b3.tar.bz2
missing a couple register names + a #ifndef_ASM__ around serial.h inclusion
Closes #3016.
-rwxr-xr-x[-rw-r--r--]c/src/libchip/serial/ns16550_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/c/src/libchip/serial/ns16550_p.h b/c/src/libchip/serial/ns16550_p.h
index 0fe817ad6b..e3d0eba557 100644..100755
--- a/c/src/libchip/serial/ns16550_p.h
+++ b/c/src/libchip/serial/ns16550_p.h
@@ -28,7 +28,9 @@
#ifndef _NS16550_P_H_
#define _NS16550_P_H_
+#ifndef ASM
#include <libchip/serial.h>
+#endif
#ifdef __cplusplus
extern "C" {
@@ -43,7 +45,9 @@ extern "C" {
#define NS16550_RECEIVE_BUFFER 0
#define NS16550_TRANSMIT_BUFFER 0
+#define NS16550_DIVISOR_LATCH_L 0
#define NS16550_INTERRUPT_ENABLE 1
+#define NS16550_DIVISOR_LATCH_M 1
#define NS16550_INTERRUPT_ID 2
#define NS16550_FIFO_CONTROL 2
#define NS16550_LINE_CONTROL 3