Changeset 516ff92 in mainline for kernel/arch/mips32/src/drivers/msim.c
- Timestamp:
- 2009-01-31T21:27:18Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4863e50b
- Parents:
- 96a2e45
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/drivers/msim.c
r96a2e45 r516ff92 27 27 */ 28 28 29 /** @addtogroup mips32 29 /** @addtogroup mips32 30 30 * @{ 31 31 */ … … 59 59 60 60 /** Putchar that works with MSIM & gxemul */ 61 void msim_write(chardev_t *dev, const char ch )61 void msim_write(chardev_t *dev, const char ch, bool silent) 62 62 { 63 *((char *) MSIM_VIDEORAM) = ch; 63 if (!silent) 64 *((char *) MSIM_VIDEORAM) = ch; 64 65 } 65 66 … … 81 82 { 82 83 char ch; 83 84 84 85 while (1) { 85 86 ch = *((volatile char *) MSIM_KBD_ADDRESS); … … 102 103 char ch = 0; 103 104 104 105 106 107 108 109 105 ch = *((char *) MSIM_KBD_ADDRESS); 106 if (ch =='\r') 107 ch = '\n'; 108 if (ch == 0x7f) 109 ch = '\b'; 110 chardev_push_character(&console, ch); 110 111 } 111 112 }
Note:
See TracChangeset
for help on using the changeset viewer.