Porting for ESP-32 (#33)
* support ESP-32 * make compile with ESP-32/arduino platform * fixed: use libmad on ESP8266 as original
This commit is contained in:
1 parent
0c002cd014
commit
03aa2467f0
22 files changed
+199
-42
No files matched your search
@@ -231,6 +231,16 @@ bool AudioGeneratorMP3::begin(AudioFileSource *source, AudioOutput *output)
|
||||
|
||||
#undef stack
|
||||
extern "C" {
|
||||
#ifdef ESP32
|
||||
//TOTO - add ESP32 checks
|
||||
void stack(const char *s, const char *t, int i)
|
||||
{
|
||||
}
|
||||
int stackfree()
|
||||
{
|
||||
return 8192;
|
||||
}
|
||||
#else
|
||||
#include <cont.h>
|
||||
extern cont_t g_cont;
|
||||
|
||||
@@ -264,5 +274,6 @@ extern "C" {
|
||||
int freestack = 4 * (sp - g_cont.stack);
|
||||
return freestack;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user