FreeCalypso > hg > freecalypso-sw
diff target-utils/c139explore/main.c @ 993:d92e4aadeeb3
target-utils/c139explore: a cleaner way of setting the fixed UART base address
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Wed, 30 Dec 2015 22:12:35 +0000 |
parents | eb27543ce18e |
children |
line wrap: on
line diff
--- a/target-utils/c139explore/main.c Wed Dec 30 21:28:41 2015 +0000 +++ b/target-utils/c139explore/main.c Wed Dec 30 22:12:35 2015 +0000 @@ -1,13 +1,9 @@ #include "types.h" -#include "ns16550.h" - -struct ns16550_regs *uart_base; main() { /* delay kludge workaround for defect in fc-compalram */ osmo_delay_ms(30); - uart_base = (struct ns16550_regs *) 0xFFFF5800; printf("C139 hardware exploration utility running\n"); /* GPIO init */ *(volatile u16 *)0xfffe4802 = 0x0002;