summaryrefslogtreecommitdiff
path: root/hw/bsp/board_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/bsp/board_api.h')
-rw-r--r--hw/bsp/board_api.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/bsp/board_api.h b/hw/bsp/board_api.h
index 9cdbbf0d3..328fe9363 100644
--- a/hw/bsp/board_api.h
+++ b/hw/bsp/board_api.h
@@ -41,7 +41,7 @@ extern "C" {
#if CFG_TUSB_OS == OPT_OS_ZEPHYR
#include <zephyr/kernel.h>
#elif CFG_TUSB_OS == OPT_OS_FREERTOS
- #if TUSB_MCU_VENDOR_ESPRESSIF
+ #ifdef ESP_PLATFORM
// ESP-IDF need "freertos/" prefix in include path.
// CFG_TUSB_OS_INC_PATH should be defined accordingly.
#include "freertos/FreeRTOS.h"
@@ -195,6 +195,7 @@ static inline void board_delay(uint32_t ms) {
// stdio getchar() is blocking, this is non-blocking version
int board_getchar(void);
+void board_putchar(int c);
#ifdef __cplusplus
}