swimtracker-firmware/firmware/lib/basic/AllocAbstraction.h

13 lines
211 B
C
Raw Permalink Normal View History

2023-08-28 15:06:29 +02:00
#pragma once
#ifdef PLATFORM_NATIVE
#include <stdlib.h>
static constexpr uint32_t MALLOC_CAP_SPIRAM = -1;
inline void *heap_caps_malloc(size_t size, uint32_t /*caps*/) {
return std::malloc(size);
}
#endif