Skip to content

Commit 5608b37

Browse files
committed
IDF Build Errors
1 parent 6fa41d7 commit 5608b37

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if (DEFINED ESP_PLATFORM)
66
idf_component_register(
77
# SRC_DIRS src
88
INCLUDE_DIRS src
9-
REQUIRES bt esp_common freertos hal log nvs_flash driver
9+
REQUIRES bt esp_common freertos hal log nvs_flash driver esp_adc
1010
)
1111

1212
target_compile_options(${COMPONENT_LIB} INTERFACE -DESP32_CMAKE=1 -Wno-error -Wno-format -fpermissive)

component.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#
2+
# "main" pseudo-component makefile.
3+
#
4+
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)

src/AudioConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ typedef WiFiClient WiFiClientSecure;
4646
// E.g when using the Espressif IDF. Use cmake for the necesseary defines
4747
#elif defined(ESP32_CMAKE)
4848
# define ESP32
49-
# include "AudioTools/AudioRuntime.h"
49+
# include "AudioTools/CoreAudio/AudioRuntime.h"
5050
# include "AudioTools/AudioLibs/Desktop/NoArduino.h"
5151
#else
5252
# include "AudioTools/AudioLibs/Desktop/NoArduino.h"

src/AudioTools/AudioLibs/Desktop/NoArduino.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,12 @@ inline long map(long x, long in_min, long in_max, long out_min, long out_max) {
203203
#if defined(ESP32)
204204
#include "driver/gpio.h"
205205
/// e.g. for AudioActions
206-
int digitalRead(int pin) {
206+
static int digitalRead(int pin) {
207207
printf("digitalRead:%d\n", pin);
208208
return gpio_get_level((gpio_num_t)pin);
209209
}
210210

211-
void pinMode(int pin, int mode) {
211+
static void pinMode(int pin, int mode) {
212212
gpio_num_t gpio_pin=(gpio_num_t)pin;
213213
printf("pinMode(%d,%d)\n", pin, mode);
214214

0 commit comments

Comments
 (0)