aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/esp8266.json
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2020-11-08 21:59:47 +0100
committerRon Evans <[email protected]>2020-12-05 11:09:46 +0100
commit098f90036317ddd9f1df1ed8c49fde871dc51895 (patch)
tree71f464c0486103efc0b378fa53e35c914c9ccf6f /targets/esp8266.json
parentcaf35cfc41373d7fe583c71c28d6041a48f168f6 (diff)
downloadtinygo-098f90036317ddd9f1df1ed8c49fde871dc51895.tar.gz
tinygo-098f90036317ddd9f1df1ed8c49fde871dc51895.zip
esp8266: implement task based scheduler
I have chosed to call this implementation `esp8266` instead of `xtensa` as it has been written specifically for the ESP8266 and there are no other Xtensa chips with the CALL0 ABI (no windowing) that I know of. The only other related chip is the ESP32, which does implement register windowing and thus needs a very different implementation.
Diffstat (limited to 'targets/esp8266.json')
-rw-r--r--targets/esp8266.json5
1 files changed, 4 insertions, 1 deletions
diff --git a/targets/esp8266.json b/targets/esp8266.json
index 8e4c9aad7..c0c7ad3fc 100644
--- a/targets/esp8266.json
+++ b/targets/esp8266.json
@@ -2,13 +2,16 @@
"inherits": ["xtensa"],
"cpu": "esp8266",
"build-tags": ["esp8266", "esp"],
+ "scheduler": "tasks",
"linker": "xtensa-esp32-elf-ld",
+ "default-stack-size": 2048,
"cflags": [
"-mcpu=esp8266"
],
"linkerscript": "targets/esp8266.ld",
"extra-files": [
- "src/device/esp/esp8266.S"
+ "src/device/esp/esp8266.S",
+ "src/internal/task/task_stack_esp8266.S"
],
"binary-format": "esp8266",
"flash-command": "esptool.py --chip=esp8266 --port {port} write_flash 0x00000 {bin} -fm qio"