Skip to content

Commit ad043b6

Browse files
committed
USE_SDFAT for pico
1 parent ca443af commit ad043b6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/AudioTimer/AudioTimerMBED.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#pragma once
22

3-
#if defined(__arm__) && __has_include("mbed.h")
3+
#if defined(__arm__) && __has_include("mbed.h")
44
#include "AudioTimer/AudioTimerDef.h"
55
#include "mbed.h"
66

77
namespace audio_tools {
88

99
class TimerAlarmRepeatingMBED;
1010
TimerAlarmRepeatingMBED *timerAlarmRepeating = nullptr;
11-
typedef void (* repeating_timer_callback_t )(void* obj);
11+
//typedef void (* repeating_timer_callback_t )(void* obj);
1212

1313
/**
1414
* @brief Repeating Timer functions for repeated execution: Plaease use the typedef TimerAlarmRepeating
@@ -20,7 +20,7 @@ typedef void (* repeating_timer_callback_t )(void* obj);
2020
class TimerAlarmRepeatingMBED : public TimerAlarmRepeatingDef {
2121
public:
2222

23-
TimerAlarmRepeatingMBED(){
23+
TimerAlarmRepeatingRP2040(TimerFunction function=DirectTimerCallback, int id=0){
2424
timerAlarmRepeating = this;
2525
}
2626

src/AudioTools/AudioPlayer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ namespace audio_tools {
142142
};
143143

144144
#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
147147
typedef sdfat::SdSpiConfig SdSpiConfig;
148148
typedef sdfat::FsFile AudioFile;
149149
typedef sdfat::SdFs AudioFs;

0 commit comments

Comments
 (0)