rPi console: Implement console_wait_for_key

This commit is contained in:
Alexander von Gluck IV
2012-05-24 08:53:32 -05:00
parent 037f252fd0
commit 93d5b79f06
2 changed files with 5 additions and 5 deletions
@@ -209,12 +209,9 @@ console_hide_cursor(void)
int
console_wait_for_key(void)
{
#warning IMPLEMENT console_wait_for_key
#if 0
union key key;
key.ax = serial_getc(true);
return key.code.ascii;
#endif
return 0;
}
@@ -15,10 +15,13 @@ extern "C" {
extern void serial_init(void);
extern void serial_cleanup(void);
extern void serial_puts(const char *string, size_t size);
extern void serial_disable(void);
extern void serial_enable(void);
extern void serial_puts(const char *string, size_t size);
extern int serial_getc(bool wait);
#ifdef __cplusplus
}
#endif