From 6eaea114d09fcf8401d60647722ebaefeb511985 Mon Sep 17 00:00:00 2001 From: Charles Lohr Date: Thu, 18 Aug 2016 22:09:01 -0400 Subject: [PATCH] Get the embedded8266 port working with esp82xx! --- embedded8266/esp82xx | 2 +- embedded8266/user.cfg | 4 ++++ embeddedcommon/DFT32.h | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/embedded8266/esp82xx b/embedded8266/esp82xx index 6dbcc51..37dbc4c 160000 --- a/embedded8266/esp82xx +++ b/embedded8266/esp82xx @@ -1 +1 @@ -Subproject commit 6dbcc51d030d05360696925a8cb1963ca3f6747e +Subproject commit 37dbc4c68f0520bb3900cf76be5fcbca8d95dce3 diff --git a/embedded8266/user.cfg b/embedded8266/user.cfg index 090cc06..630cbcf 100644 --- a/embedded8266/user.cfg +++ b/embedded8266/user.cfg @@ -13,6 +13,10 @@ PAGE_OFFSET = 65536 # 1048576 SDK_DEFAULT = $(HOME)/esp8266/esp-open-sdk ESP_GCC_VERS = 4.8.5 +#Tricky: Espressif started eating up a ton of IRAM in their newer SDKs, so ColorChord must use an older SDK. +SDK = $(HOME)/esp8266/esp_iot_sdk_v1.5.2 +FWBURNFLAGS = -b 1000000 + OPTS += -DICACHE_FLASH #OPTS += -DVERIFY_FLASH_WRITE #OPTS += -DDEBUG diff --git a/embeddedcommon/DFT32.h b/embeddedcommon/DFT32.h index bbbc046..ee5b6cd 100644 --- a/embeddedcommon/DFT32.h +++ b/embeddedcommon/DFT32.h @@ -4,7 +4,12 @@ #define _DFT32_H #include + +#ifdef ICACHE_FLASH +#include //If on ESP8266 +#else #include +#endif //A 32-bit version of the DFT used for ColorChord. //This header makes it convenient to use for an embedded system.