[rtems commit] bsp/lpc32xx: Fix function prototype
Sebastian Huber
sebh at rtems.org
Tue Dec 18 10:18:04 UTC 2012
Module: rtems
Branch: master
Commit: d1cf32676d1a155b1c49e047db0d91013c2b8c8f
Changeset: http://git.rtems.org/rtems/commit/?id=d1cf32676d1a155b1c49e047db0d91013c2b8c8f
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Dec 18 10:44:48 2012 +0100
bsp/lpc32xx: Fix function prototype
---
.../libbsp/arm/lpc32xx/console/console-config.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/arm/lpc32xx/console/console-config.c b/c/src/lib/libbsp/arm/lpc32xx/console/console-config.c
index 2428697..812a2cc 100644
--- a/c/src/lib/libbsp/arm/lpc32xx/console/console-config.c
+++ b/c/src/lib/libbsp/arm/lpc32xx/console/console-config.c
@@ -28,14 +28,14 @@
extern console_fns lpc32xx_hsu_fns;
-static uint8_t lpc32xx_uart_get_register(uint32_t addr, uint8_t i)
+static uint8_t lpc32xx_uart_get_register(uintptr_t addr, uint8_t i)
{
volatile uint32_t *reg = (volatile uint32_t *) addr;
return (uint8_t) reg [i];
}
-static void lpc32xx_uart_set_register(uint32_t addr, uint8_t i, uint8_t val)
+static void lpc32xx_uart_set_register(uintptr_t addr, uint8_t i, uint8_t val)
{
volatile uint32_t *reg = (volatile uint32_t *) addr;
More information about the vc
mailing list