Changeset 348 for trunk/softs/tsar_boot/src/boot_tty.c
- Timestamp:
- Apr 2, 2013, 2:23:02 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/src/boot_tty.c
r292 r348 2 2 #include <defs.h> 3 3 4 int boot_getc( int*c)4 int boot_getc(char *c) 5 5 { 6 7 8 6 unsigned int* tty_address = (unsigned int*) TTY_BASE; 7 if (ioread32(&tty_address[TTY_STATUS]) == 0) 8 return 0; 9 9 10 11 10 *c = ioread32(&tty_address[TTY_READ]); 11 return 1; 12 12 } 13 13 … … 25 25 { 26 26 if (buffer[n] == 0) break; 27 27 boot_putc(buffer[n]); 28 28 } 29 29 }
Note: See TracChangeset
for help on using the changeset viewer.