[rtems commit] libchip/serial: Fix integer types
Sebastian Huber
sebh at rtems.org
Tue Aug 22 14:52:02 UTC 2017
Module: rtems
Branch: master
Commit: 5e1a831e2bdd8b295d37e9728f555147635765b9
Changeset: http://git.rtems.org/rtems/commit/?id=5e1a831e2bdd8b295d37e9728f555147635765b9
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Aug 22 11:37:41 2017 +0200
libchip/serial: Fix integer types
Update #3082.
---
c/src/libchip/serial/ns16550-context.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/c/src/libchip/serial/ns16550-context.c b/c/src/libchip/serial/ns16550-context.c
index 4f0328d..8901590 100644
--- a/c/src/libchip/serial/ns16550-context.c
+++ b/c/src/libchip/serial/ns16550-context.c
@@ -188,7 +188,7 @@ static size_t ns16550_write_to_fifo(
size_t len
)
{
- uint32_t port = ctx->port;
+ uintptr_t port = ctx->port;
ns16550_set_reg set = ctx->set_reg;
size_t out = len > SP_FIFO_SIZE ? SP_FIFO_SIZE : len;
size_t i;
@@ -207,7 +207,7 @@ static void ns16550_isr(void *arg)
{
rtems_termios_tty *tty = arg;
ns16550_context *ctx = rtems_termios_get_device_context(tty);
- uint32_t port = ctx->port;
+ uintptr_t port = ctx->port;
ns16550_get_reg get = ctx->get_reg;
int i = 0;
char buf [SP_FIFO_SIZE];
@@ -277,7 +277,7 @@ static void ns16550_isr_task(void *arg)
static int ns16550_read_task(rtems_termios_device_context *base)
{
ns16550_context *ctx = (ns16550_context *) base;
- uint32_t port = ctx->port;
+ uintptr_t port = ctx->port;
ns16550_get_reg get = ctx->get_reg;
char buf[SP_FIFO_SIZE];
int i;
More information about the vc
mailing list