aboutsummaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/uart.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/uart.c b/src/drivers/uart.c
index d6bb92b..becda2d 100644
--- a/src/drivers/uart.c
+++ b/src/drivers/uart.c
@@ -20,11 +20,11 @@ void uart_init(void)
// Disable UART0
store32(0x0, UART0_CR);
// Setup GPIO on pin 14 and 15
- store32(0x0, GPPUD);
+ store32(0x0, (unsigned long)GPPUD);
delay(150);
- store32((1 << 14) | (1 << 15), GPPUDCLK0);
+ store32((1 << 14) | (1 << 15), (unsigned long)GPPUDCLK0);
delay(150);
- store32(0x0, GPPUDCLK0);
+ store32(0x0, (unsigned long)GPPUDCLK0);
// Clear pending interrupts
store32(0x7FF, UART0_ICR);
// Set to 3Mhz