coreinfo: changes to get the USB keyboard working
A call to usb_initialize() was needed. Also needed to set several curses flags. One to prevent keystrokes echoing to the display, and one to allow extended keystrokes (like the KEY_F(n)) to be seen when calling getch(); Change-Id: I495b42055a54603e4efb92b2845051434d88432d Signed-off-by: Dave Frodin <dave.frodin@se-eng.com> Reviewed-on: http://review.coreboot.org/1983 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marcj303@gmail.com>
This commit is contained in:
parent
e899e518d8
commit
15a2c8f827
|
@ -271,6 +271,10 @@ int main(void)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
|
#if defined(CONFIG_USB)
|
||||||
|
usb_initialize();
|
||||||
|
#endif
|
||||||
|
|
||||||
initscr();
|
initscr();
|
||||||
|
|
||||||
start_color();
|
start_color();
|
||||||
|
@ -292,6 +296,9 @@ int main(void)
|
||||||
categories[i].modules[j]->init();
|
categories[i].modules[j]->init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
noecho(); /* don't let curses echo keyboard chars */
|
||||||
|
keypad(stdscr, TRUE); /* allow KEY_F(n) keys to be seen */
|
||||||
|
|
||||||
loop();
|
loop();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue