From 055993c7fe9fc848a91f42dfb0cd39028d654754 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sat, 26 Jun 2021 20:59:48 +0200 Subject: [PATCH] add board sizes and names in extra_flags (#209) * add -DESP8266_1M * add -DESP8266_2M * Update esp8266_4M2M.json * add -DESP8266_4M * Update esp8266_2M1M.json * Update esp8266_2M256.json * Update esp8266_4M2M.json * Update esp8266_4M3M.json * Update esp32_4M.json * Update esp32_8M.json * Update esp32_16M.json * Update esp8266_2M256.json --- boards/esp32_16M.json | 2 +- boards/esp32_4M.json | 2 +- boards/esp32_8M.json | 2 +- boards/esp8266_1M.json | 2 +- boards/esp8266_2M1M.json | 2 +- boards/esp8266_2M256.json | 2 +- boards/esp8266_4M2M.json | 2 +- boards/esp8266_4M3M.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/boards/esp32_16M.json b/boards/esp32_16M.json index 24eb490a7..f94e36493 100644 --- a/boards/esp32_16M.json +++ b/boards/esp32_16M.json @@ -4,7 +4,7 @@ "ldscript": "esp32_out.ld" }, "core": "esp32", - "extra_flags": "-DARDUINO_ESP32_DEV", + "extra_flags": "-DARDUINO_ESP32_DEV -DESP32_16M", "f_cpu": "80000000L", "f_flash": "40000000L", "flash_mode": "dio", diff --git a/boards/esp32_4M.json b/boards/esp32_4M.json index 53afbd219..c55367e2e 100644 --- a/boards/esp32_4M.json +++ b/boards/esp32_4M.json @@ -4,7 +4,7 @@ "ldscript": "esp32_out.ld" }, "core": "esp32", - "extra_flags": "-DARDUINO_ESP32_DEV", + "extra_flags": "-DARDUINO_ESP32_DEV -DESP32_4M", "f_cpu": "80000000L", "f_flash": "40000000L", "flash_mode": "dio", diff --git a/boards/esp32_8M.json b/boards/esp32_8M.json index b390ebdf5..d52b2c48f 100644 --- a/boards/esp32_8M.json +++ b/boards/esp32_8M.json @@ -4,7 +4,7 @@ "ldscript": "esp32_out.ld" }, "core": "esp32", - "extra_flags": "-DARDUINO_ESP32_DEV", + "extra_flags": "-DARDUINO_ESP32_DEV -DESP32_8M", "f_cpu": "80000000L", "f_flash": "40000000L", "flash_mode": "dio", diff --git a/boards/esp8266_1M.json b/boards/esp8266_1M.json index 6c2287c6a..bc5b1f49b 100644 --- a/boards/esp8266_1M.json +++ b/boards/esp8266_1M.json @@ -4,7 +4,7 @@ "ldscript": "eagle.flash.1m.ld" }, "core": "esp8266", - "extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP01", + "extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP01 -DESP8266_1M", "f_cpu": "80000000L", "f_flash": "40000000L", "flash_mode": "dout", diff --git a/boards/esp8266_2M1M.json b/boards/esp8266_2M1M.json index e659a3f90..e3a675373 100644 --- a/boards/esp8266_2M1M.json +++ b/boards/esp8266_2M1M.json @@ -4,7 +4,7 @@ "ldscript": "eagle.flash.2m1m.ld" }, "core": "esp8266", - "extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP01", + "extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP01 -DESP8266_2M -DESP8266_2M1M", "f_cpu": "80000000L", "f_flash": "40000000L", "flash_mode": "dout", diff --git a/boards/esp8266_2M256.json b/boards/esp8266_2M256.json index 24a3ced47..734f62537 100644 --- a/boards/esp8266_2M256.json +++ b/boards/esp8266_2M256.json @@ -4,7 +4,7 @@ "ldscript": "eagle.flash.2m256.ld" }, "core": "esp8266", - "extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP01", + "extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP01 -DESP8266_2M -DESP8266_2M256", "f_cpu": "80000000L", "f_flash": "40000000L", "flash_mode": "dout", diff --git a/boards/esp8266_4M2M.json b/boards/esp8266_4M2M.json index 616384b40..873c84f24 100644 --- a/boards/esp8266_4M2M.json +++ b/boards/esp8266_4M2M.json @@ -4,7 +4,7 @@ "ldscript": "eagle.flash.4m2m.ld" }, "core": "esp8266", - "extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP01", + "extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP01 -DESP8266_4M -DESP8266_4M2M", "f_cpu": "80000000L", "f_flash": "40000000L", "flash_mode": "dout", diff --git a/boards/esp8266_4M3M.json b/boards/esp8266_4M3M.json index efca2d7e2..c845d6e96 100644 --- a/boards/esp8266_4M3M.json +++ b/boards/esp8266_4M3M.json @@ -4,7 +4,7 @@ "ldscript": "eagle.flash.4m3m.ld" }, "core": "esp8266", - "extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP01", + "extra_flags": "-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP01 -DESP8266_4M -DESP8266_4M3M", "f_cpu": "80000000L", "f_flash": "40000000L", "flash_mode": "dout",