WIP - build some code on the PC to run valgrind/etc.

This commit is contained in:
Earle F. Philhower, III committed 2018-01-19 19:39:19 -08:00
1 parent e5d23a4692
commit cffb424c2c
10 files changed
+452 -8

No files matched your search

+11 -3
View File
@@ -232,7 +232,7 @@ bool AudioGeneratorMP3::begin(AudioFileSource *source, AudioOutput *output)
#undef stack
extern "C" {
#ifdef ESP32
//TOTO - add ESP32 checks
//TODO - add ESP32 checks
void stack(const char *s, const char *t, int i)
{
}
@@ -240,7 +240,7 @@ extern "C" {
{
return 8192;
}
#else
#elif defined(ESP8266)
#include <cont.h>
extern cont_t g_cont;
@@ -274,6 +274,14 @@ extern "C" {
int freestack = 4 * (sp - g_cont.stack);
return freestack;
}
#endif
#else
void stack(const char *s, const char *t, int i)
{
}
int stackfree()
{
return 8192;
}
#endif
}