diff options
| author | Ha Thach <[email protected]> | 2023-08-14 22:28:53 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-14 22:28:53 +0700 |
| commit | d713571cd44f05d2fc72efc09c670787b74106e0 (patch) | |
| tree | e54fb9fdfd1a5f2d6bab6345865168bb0d82fbf2 /examples/host | |
| parent | ba40d667e1476ee4ff988c425cf0cf1b17aed17d (diff) | |
| parent | f2f005cbdf33dd0e10617535bcf7c0b24d6762b0 (diff) | |
Merge pull request #2217 from hathach/add-lpc43s67
Add lpc43s67
Diffstat (limited to 'examples/host')
| -rw-r--r-- | examples/host/cdc_msc_hid/src/hid_app.c | 2 | ||||
| -rw-r--r-- | examples/host/msc_file_explorer/CMakeLists.txt | 12 | ||||
| -rw-r--r-- | examples/host/msc_file_explorer/src/msc_app.c | 3 |
3 files changed, 12 insertions, 5 deletions
diff --git a/examples/host/cdc_msc_hid/src/hid_app.c b/examples/host/cdc_msc_hid/src/hid_app.c index 7727ee62c..f0d42a08f 100644 --- a/examples/host/cdc_msc_hid/src/hid_app.c +++ b/examples/host/cdc_msc_hid/src/hid_app.c @@ -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 diff --git a/examples/host/msc_file_explorer/CMakeLists.txt b/examples/host/msc_file_explorer/CMakeLists.txt index a35a7f0fb..1868b632e 100644 --- a/examples/host/msc_file_explorer/CMakeLists.txt +++ b/examples/host/msc_file_explorer/CMakeLists.txt @@ -22,11 +22,13 @@ target_sources(${PROJECT} PUBLIC ) # Suppress warnings on fatfs -set_source_files_properties( - ${TOP}/lib/fatfs/source/ff.c - PROPERTIES - COMPILE_FLAGS "-Wno-conversion -Wno-cast-qual" -) +if (CMAKE_C_COMPILER_ID STREQUAL "GNU") + set_source_files_properties( + ${TOP}/lib/fatfs/source/ff.c + PROPERTIES + COMPILE_FLAGS "-Wno-conversion -Wno-cast-qual" + ) +endif () # Example include target_include_directories(${PROJECT} PUBLIC diff --git a/examples/host/msc_file_explorer/src/msc_app.c b/examples/host/msc_file_explorer/src/msc_app.c index 323dfb9e7..ecea614a2 100644 --- a/examples/host/msc_file_explorer/src/msc_app.c +++ b/examples/host/msc_file_explorer/src/msc_app.c @@ -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; |
