Rev 1708 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1708 | Rev 1780 | ||
---|---|---|---|
Line 74... | Line 74... | ||
74 | * |
74 | * |
75 | * @param chardev Character device. |
75 | * @param chardev Character device. |
76 | * |
76 | * |
77 | * @return Character read. |
77 | * @return Character read. |
78 | */ |
78 | */ |
79 | __u8 _getc(chardev_t *chardev) |
79 | uint8_t _getc(chardev_t *chardev) |
80 | { |
80 | { |
81 | __u8 ch; |
81 | uint8_t ch; |
82 | ipl_t ipl; |
82 | ipl_t ipl; |
83 | 83 | ||
84 | if (atomic_get(&haltstate)) { |
84 | if (atomic_get(&haltstate)) { |
85 | /* If we are here, we are hopefully on the processor, that |
85 | /* If we are here, we are hopefully on the processor, that |
86 | * issued the 'halt' command, so proceed to read the character |
86 | * issued the 'halt' command, so proceed to read the character |
Line 148... | Line 148... | ||
148 | } |
148 | } |
149 | return (count_t) index; |
149 | return (count_t) index; |
150 | } |
150 | } |
151 | 151 | ||
152 | /** Get character from device & echo it to screen */ |
152 | /** Get character from device & echo it to screen */ |
153 | __u8 getc(chardev_t *chardev) |
153 | uint8_t getc(chardev_t *chardev) |
154 | { |
154 | { |
155 | __u8 ch; |
155 | uint8_t ch; |
156 | 156 | ||
157 | ch = _getc(chardev); |
157 | ch = _getc(chardev); |
158 | putchar(ch); |
158 | putchar(ch); |
159 | return ch; |
159 | return ch; |
160 | } |
160 | } |