[rtems commit] bsp/erc32: Fix warnings
Sebastian Huber
sebh at rtems.org
Mon Feb 11 13:40:31 UTC 2013
Module: rtems
Branch: master
Commit: 5de9e8dd364b9f9c25ab12818dff7efd7a012125
Changeset: http://git.rtems.org/rtems/commit/?id=5de9e8dd364b9f9c25ab12818dff7efd7a012125
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Feb 8 11:58:20 2013 +0100
bsp/erc32: Fix warnings
---
.../lib/libbsp/sparc/erc32/console/erc32_console.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/sparc/erc32/console/erc32_console.c b/c/src/lib/libbsp/sparc/erc32/console/erc32_console.c
index b21f662..7f54e80 100644
--- a/c/src/lib/libbsp/sparc/erc32/console/erc32_console.c
+++ b/c/src/lib/libbsp/sparc/erc32/console/erc32_console.c
@@ -32,13 +32,13 @@
#define CONSOLE_UART_A_TRAP ERC32_TRAP_TYPE(ERC32_INTERRUPT_UART_A_RX_TX)
#define CONSOLE_UART_B_TRAP ERC32_TRAP_TYPE(ERC32_INTERRUPT_UART_B_RX_TX)
-static uint8_t erc32_console_get_register(uint32_t addr, uint8_t i)
+static uint8_t erc32_console_get_register(uintptr_t addr, uint8_t i)
{
volatile uint32_t *reg = (volatile uint32_t *)addr;
return (uint8_t) reg [i];
}
-static void erc32_console_set_register(uint32_t addr, uint8_t i, uint8_t val)
+static void erc32_console_set_register(uintptr_t addr, uint8_t i, uint8_t val)
{
volatile uint32_t *reg = (volatile uint32_t *)addr;
reg [i] = val;
More information about the vc
mailing list