diff options
author | Christian Cunningham <cc@localhost> | 2022-02-20 23:49:03 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-02-20 23:49:03 -0700 |
commit | 6c7bdd85bbe8d2b791e0fe52f93f5e75e8beea2d (patch) | |
tree | c58ef1f55e58f3104412c94cec8e44ae05e70abc /src/drivers | |
parent | b608783a17bbc4529e35c846fabad94cea60a014 (diff) |
SD Stuff coming soon
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/uart.c | 6 |
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 |