FreeCalypso > hg > freecalypso-tools
comparison target-utils/libcommon/uartsel.c @ 35:2942c5ef76ed
target-utils/libcommon/uartsel.c: nitpick about const
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 25 Oct 2016 22:45:03 +0000 |
parents | e7502631a0f9 |
children |
comparison
equal
deleted
inserted
replaced
34:5ae8f6e55371 | 35:2942c5ef76ed |
---|---|
15 static struct boot_rom_vars *rom_vars; | 15 static struct boot_rom_vars *rom_vars; |
16 static char *uart_name; | 16 static char *uart_name; |
17 | 17 |
18 uart_select_init() | 18 uart_select_init() |
19 { | 19 { |
20 rom_version = *(u16 *)0x1FFE; | 20 rom_version = *(const u16 *)0x1FFE; |
21 | 21 |
22 switch (rom_version) { | 22 switch (rom_version) { |
23 case 0x0200: | 23 case 0x0200: |
24 rom_vars = (struct boot_rom_vars *) 0x800504; | 24 rom_vars = (struct boot_rom_vars *) 0x800504; |
25 break; | 25 break; |