From 47ebd8ddc2a208188c51e978f0ed915116113399 Mon Sep 17 00:00:00 2001 From: Phil Schatzmann Date: Sat, 20 May 2023 02:05:14 +0200 Subject: [PATCH] cmake compile errors --- src/audio_hal/audio_gpio.c | 1 + src/audio_hal/audio_gpio.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/audio_hal/audio_gpio.c b/src/audio_hal/audio_gpio.c index 3d688d8..14719ab 100644 --- a/src/audio_hal/audio_gpio.c +++ b/src/audio_hal/audio_gpio.c @@ -40,4 +40,5 @@ void pinMode(int gpio, int mode){ } + #endif \ No newline at end of file diff --git a/src/audio_hal/audio_gpio.h b/src/audio_hal/audio_gpio.h index 34d4f05..a283697 100644 --- a/src/audio_hal/audio_gpio.h +++ b/src/audio_hal/audio_gpio.h @@ -48,6 +48,8 @@ void pinMode(int, int); #else // no ESP32 #include +#include +#include #define I2S_NUM_0 0 #define I2S_NUM_1 1 @@ -158,5 +160,8 @@ typedef struct { int spics_io_num; ///< CS GPIO pin for this device, or -1 if not used } spi_device_interface_config_t; +#ifndef ARDUINO +void delay(uint64_t t); +#endif #endif // ESP32 \ No newline at end of file