mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-14 13:21:13 +00:00
fix build iar with lpc43
This commit is contained in:
parent
088180e3d8
commit
f2f005cbdf
@ -160,7 +160,9 @@ static void process_kbd_report(hid_keyboard_report_t const *report)
|
||||
putchar(ch);
|
||||
if ( ch == '\r' ) putchar('\n'); // added new line for enter key
|
||||
|
||||
#ifndef __ICCARM__ // TODO IAR doesn't support stream control ?
|
||||
fflush(stdout); // flush right away, else nanolib will wait for newline
|
||||
#endif
|
||||
}
|
||||
}
|
||||
// TODO example skips key released
|
||||
|
@ -66,7 +66,10 @@ bool msc_app_init(void)
|
||||
for(size_t i=0; i<CFG_TUH_DEVICE_MAX; i++) _disk_busy[i] = false;
|
||||
|
||||
// disable stdout buffered for echoing typing command
|
||||
#ifndef __ICCARM__ // TODO IAR doesn't support stream control ?
|
||||
setbuf(stdout, NULL);
|
||||
#endif
|
||||
|
||||
cli_init();
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user