File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
- #if defined(__arm__) && __has_include("mbed.h")
3
+ #if defined(__arm__) && __has_include("mbed.h")
4
4
#include " AudioTimer/AudioTimerDef.h"
5
5
#include " mbed.h"
6
6
7
7
namespace audio_tools {
8
8
9
9
class TimerAlarmRepeatingMBED ;
10
10
TimerAlarmRepeatingMBED *timerAlarmRepeating = nullptr ;
11
- typedef void (* repeating_timer_callback_t )(void * obj);
11
+ // typedef void (* repeating_timer_callback_t )(void* obj);
12
12
13
13
/* *
14
14
* @brief Repeating Timer functions for repeated execution: Plaease use the typedef TimerAlarmRepeating
@@ -20,7 +20,7 @@ typedef void (* repeating_timer_callback_t )(void* obj);
20
20
class TimerAlarmRepeatingMBED : public TimerAlarmRepeatingDef {
21
21
public:
22
22
23
- TimerAlarmRepeatingMBED ( ){
23
+ TimerAlarmRepeatingRP2040 (TimerFunction function=DirectTimerCallback, int id= 0 ){
24
24
timerAlarmRepeating = this ;
25
25
}
26
26
Original file line number Diff line number Diff line change @@ -142,8 +142,8 @@ namespace audio_tools {
142
142
};
143
143
144
144
#ifdef USE_SDFAT
145
- #ifdef ARDUINO_ARCH_RP2040
146
- // RP2040 is using the library with a sdfat namespace
145
+ #if defined( ARDUINO_ARCH_RP2040) && !defined(PICO)
146
+ // only RP2040 from Earle Phil Hower is using the library with a sdfat namespace
147
147
typedef sdfat::SdSpiConfig SdSpiConfig;
148
148
typedef sdfat::FsFile AudioFile;
149
149
typedef sdfat::SdFs AudioFs;
You can’t perform that action at this time.
0 commit comments