Skip to content

Commit f6252ba

Browse files
committed
RP2040 support for psram
1 parent f4ed4f1 commit f6252ba

File tree

1 file changed

+2
-2
lines changed
  • src/AudioTools/CoreAudio/AudioBasic/Collections

1 file changed

+2
-2
lines changed

src/AudioTools/CoreAudio/AudioBasic/Collections/Allocator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class AllocatorExt : public Allocator {
9292
void* do_allocate(size_t size) {
9393
void* result = nullptr;
9494
if (size == 0) size = 1;
95-
#if defined(ESP32) && defined(ARDUINO)
95+
#if (defined(RP2040) || defined(ESP32)) && defined(ARDUINO)
9696
result = ps_malloc(size);
9797
#endif
9898
if (result == nullptr) result = malloc(size);
@@ -106,7 +106,7 @@ class AllocatorExt : public Allocator {
106106
}
107107
};
108108

109-
#if defined(ESP32) && defined(ARDUINO)
109+
#if (defined(RP2040) || defined(ESP32)) && defined(ARDUINO)
110110

111111
/**
112112
* @brief Memory allocateator which uses ps_malloc to allocate the memory in

0 commit comments

Comments
 (0)