From 683b1620b4d64a495cb2143156c443f92e416c96 Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Tue, 19 Jan 2021 22:56:38 -0500 Subject: [PATCH] move buffers to extmem --- globals.cpp | 5 ++++- globals.h | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/globals.cpp b/globals.cpp index 0627b98..a74211e 100644 --- a/globals.cpp +++ b/globals.cpp @@ -21,8 +21,11 @@ bool g_invertPaddleY = false; uint8_t g_luminanceCutoff = 122; // reasonable values are 127 and 128 for 32-bit (SDL); and 122/123 for 16-bit (teensy) depending on whether we're talking about white-on-black or black-on-white +#ifdef TEENSYDUINO +EXTMEM +#endif char debugBuf[255]; #ifdef TEENSYDUINO -char fsbuf[200]; +EXTMEM char fsbuf[200]; #endif diff --git a/globals.h b/globals.h index 6d7572d..3bd0d30 100644 --- a/globals.h +++ b/globals.h @@ -1,6 +1,10 @@ #ifndef __GLOBALS_H #define __GLOBALS_H +#ifdef TEENSYDUINO +#include +#endif + #include #include "filemanager.h"