[rtems commit] missing a couple register names + a #ifndef_ASM__ around serial.h inclusion
Joel Sherrill
joel at rtems.org
Sun May 14 03:50:48 UTC 2017
Module: rtems
Branch: master
Commit: f219adc3f8d38a13a14c6f9900177204f7bb05b3
Changeset: http://git.rtems.org/rtems/commit/?id=f219adc3f8d38a13a14c6f9900177204f7bb05b3
Author: Phong Pham <phamp at ddc-web.com>
Date: Sun May 7 14:13:24 2017 -0700
missing a couple register names + a #ifndef_ASM__ around serial.h inclusion
Closes #3016.
---
c/src/libchip/serial/ns16550_p.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/c/src/libchip/serial/ns16550_p.h b/c/src/libchip/serial/ns16550_p.h
old mode 100644
new mode 100755
index 0fe817a..e3d0eba
--- 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
More information about the vc
mailing list