Change API for getch to make it the caller's responsibility to poll for

input, allowing it to do other stuff if it wants to.
This commit is contained in:
2011-06-04 19:28:59 +00:00
parent 9f79b3d82e
commit fa84a1b8bb
3 changed files with 10 additions and 12 deletions

4
uart.h
View File

@@ -1,11 +1,13 @@
#ifndef __UART_H
#define __UART_H
#include "types.h"
void init_uart(void);
void putch(char c);
void putstr(char *s);
void putint(unsigned int n);
void puthex(unsigned int n);
char getch(void);
bool getch(char *c);
#endif /* __UART_H */