This merges the existing GENERIC, GENERIC_1M, and GENERIC_512k boards into variants of the new ESP8266_GENERIC board (renamed from GENERIC so as not to clash with other ports). Also moves the generation of the "OTA" variant (previously generated by autobuild/build-esp8266-latest.sh) into the variant. Following the convention established for the WEACTSTUDIO rp2 board, the names of the variants are FLASH_1M and FLASH_512K (but rename the .ld files to use MiB and kiB). Updates autobuild to build esp8266 firmware the same way as other ports. This requires renaming the output from firmware-combined.bin to just firmware.bin. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
53 lines
1.6 KiB
C
53 lines
1.6 KiB
C
#if defined(MICROPY_ESP8266_2M)
|
|
|
|
#define MICROPY_HW_BOARD_NAME "ESP module"
|
|
#define MICROPY_HW_MCU_NAME "ESP8266"
|
|
|
|
#define MICROPY_PERSISTENT_CODE_LOAD (1)
|
|
#define MICROPY_EMIT_XTENSA (1)
|
|
#define MICROPY_EMIT_INLINE_XTENSA (1)
|
|
|
|
#define MICROPY_DEBUG_PRINTERS (1)
|
|
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_NORMAL)
|
|
|
|
#define MICROPY_READER_VFS (MICROPY_VFS)
|
|
#define MICROPY_VFS (1)
|
|
|
|
#define MICROPY_PY_CRYPTOLIB (1)
|
|
|
|
#elif defined(MICROPY_ESP8266_1M)
|
|
|
|
#define MICROPY_HW_BOARD_NAME "ESP module (1M)"
|
|
#define MICROPY_HW_MCU_NAME "ESP8266"
|
|
|
|
#define MICROPY_PERSISTENT_CODE_LOAD (1)
|
|
#define MICROPY_EMIT_XTENSA (1)
|
|
#define MICROPY_EMIT_INLINE_XTENSA (1)
|
|
|
|
#define MICROPY_DEBUG_PRINTERS (1)
|
|
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_NORMAL)
|
|
|
|
#define MICROPY_READER_VFS (MICROPY_VFS)
|
|
#define MICROPY_VFS (1)
|
|
|
|
|
|
#define MICROPY_PY_CRYPTOLIB (1)
|
|
|
|
#elif defined(MICROPY_ESP8266_512K)
|
|
|
|
#define MICROPY_HW_BOARD_NAME "ESP module (512K)"
|
|
#define MICROPY_HW_MCU_NAME "ESP8266"
|
|
|
|
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
|
|
|
|
#define MICROPY_PY_FSTRINGS (0)
|
|
#define MICROPY_PY_BUILTINS_SLICE_ATTRS (0)
|
|
#define MICROPY_PY_ALL_SPECIAL_METHODS (0)
|
|
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (0)
|
|
#define MICROPY_PY_SYS_STDIO_BUFFER (0)
|
|
#define MICROPY_PY_ASYNCIO (0)
|
|
#define MICROPY_PY_RE_SUB (0)
|
|
#define MICROPY_PY_FRAMEBUF (0)
|
|
|
|
#endif
|