Skip to content

Commit 4dd4a35

Browse files
committed
Compile errors: div platforms
1 parent 8ce105d commit 4dd4a35

File tree

7 files changed

+26
-13
lines changed

7 files changed

+26
-13
lines changed

examples/build-arch-log.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
esp32:esp32:esp32 ./examples-stream/streams-generator-serial -> rc=0
22
esp32:esp32:esp32c3 ./examples-stream/streams-generator-serial -> rc=0
3-
esp32:esp32:esp32s3 ./examples-stream/streams-generator-serial -> rc=0
4-
esp32:esp32:esp32s2 ./examples-stream/streams-generator-serial -> rc=0
3+
esp32:esp32:esp32c5 ./examples-stream/streams-generator-serial -> rc=0
54
esp32:esp32:esp32c6 ./examples-stream/streams-generator-serial -> rc=0
5+
esp32:esp32:esp32s2 ./examples-stream/streams-generator-serial -> rc=0
6+
esp32:esp32:esp32s3 ./examples-stream/streams-generator-serial -> rc=0
67
esp32:esp32:esp32h2 ./examples-stream/streams-generator-serial -> rc=0
8+
esp32:esp32:esp32p4 ./examples-stream/streams-generator-serial -> rc=0
79
esp8266:esp8266:generic ./examples-stream/streams-generator-serial -> rc=0
810
rp2040:rp2040:generic ./examples-stream/streams-generator-serial -> rc=0
911
arduino:avr:nano ./examples-stream/streams-generator-serial -> rc=0

examples/build-arch.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ function compile_example {
2020
rm build-arch-log.txt
2121
compile_example "esp32:esp32:esp32"
2222
compile_example "esp32:esp32:esp32c3"
23-
compile_example "esp32:esp32:esp32s3"
24-
compile_example "esp32:esp32:esp32s2"
23+
compile_example "esp32:esp32:esp32c5"
2524
compile_example "esp32:esp32:esp32c6"
25+
compile_example "esp32:esp32:esp32s2"
26+
compile_example "esp32:esp32:esp32s3"
2627
compile_example "esp32:esp32:esp32h2"
28+
compile_example "esp32:esp32:esp32p4"
2729
compile_example "esp8266:esp8266:generic"
2830
compile_example "rp2040:rp2040:generic"
2931
compile_example "arduino:avr:nano"

src/AudioTools/AudioCodecs/StreamingDecoder.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ namespace audio_tools {
2828
*/
2929
class StreamingDecoder : public AudioInfoSource, public AudioInfoSupport {
3030
public:
31+
32+
virtual ~StreamingDecoder() = default;
33+
3134
/**
3235
* @brief Starts the processing
3336
*

src/AudioTools/PlatformConfig/avr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#pragme once
1+
#pragma once
22

33
#define USE_SD_NO_NS
44
#define USE_PWM

src/AudioTools/PlatformConfig/rp2040mbed.h

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
#pragma once
22

3-
// install https://github.com/pschatzmann/rp2040-i2s
43
#define RP2040_MBED
5-
#define USE_I2S 1
4+
5+
// install https://github.com/pschatzmann/rp2040-i2s and set USE_I2S to 1
6+
#ifndef USE_I2S
7+
# define USE_I2S 0
8+
#endif
9+
610
#define USE_PWM
711
#define USE_ANALOG_ARDUINO
812
#define USE_TYPETRAITS
@@ -23,9 +27,11 @@
2327
// fix missing __sync_synchronize symbol
2428
#define FIX_SYNC_SYNCHRONIZE
2529
#define IRAM_ATTR
30+
2631
#ifndef ANALOG_BUFFER_SIZE
27-
#define ANALOG_BUFFER_SIZE 1024
32+
# define ANALOG_BUFFER_SIZE 1024
2833
#endif
2934

3035
#ifndef ANALOG_BUFFERS
31-
#define ANALOG_BUFFERS 50
36+
# define ANALOG_BUFFERS 50
37+
#endif

src/AudioToolsConfig.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@
187187
# include "AudioTools/PlatformConfig/esp8266.h"
188188
#endif
189189

190-
//------ NANO33BLE ----------
191-
#if (defined(ARDUINO_SEEED_XIAO_NRF52840_SENSE) || defined(ARDUINO_ARDUINO_NANO33BLE) || defined(ARDUINO_ARCH_MBED_NANO)) && !defined(ARDUINO_ARCH_ZEPHYR)
192-
# include "AudioTools/PlatformConfig/nano33ble.h"
190+
//------ nRF52840: e.g. NANO33BLE ----------
191+
#if (defined(ARDUINO_SEEED_XIAO_NRF52840_SENSE) || defined(ARDUINO_ARDUINO_NANO33BLE) ) && !defined(ARDUINO_ARCH_ZEPHYR)
192+
# include "AudioTools/PlatformConfig/nrf52840.h"
193193
#endif
194194

195195
//----- RP2040 MBED -----------
@@ -199,7 +199,7 @@
199199
#endif
200200

201201
//----- RP2040 -----------
202-
#if defined(ARDUINO_ARCH_RP2040)
202+
#if defined(ARDUINO_ARCH_RP2040) && !defined(ARDUINO_ARCH_MBED)
203203
# include "AudioTools/PlatformConfig/rp2040hower.h"
204204
#endif
205205

0 commit comments

Comments
 (0)