Espruino/targets/esp32/docs/TasksInterruptsEtc.md
Juergen Marsch f420e6c8f8 Partition to 0x8000, allow non tested RTOS functions
According to ESP-IDF, file partitions_single_app should start from
0x8000 instead of 0x4000.
Some Rtos-Functions (taskhandling for example)are not fully tested, and
force a reset when called. This behaviour can be switched off.
2016-11-29 11:37:34 +01:00

712 B

Internals

RTOS and the SDK for ESP32 bring up some new screws and bolts. In this document, we will list at least some of them.

##Tasks## Rtos supports a simple form of tasks. These tasks get a priority on start and some other information.

Task Stack Priority
espruinoTask 10000 5

##Interrupt Level## Each realtime OS uses interrupts, and so does RTOS. There are some predefined or reserved for future use. For more info see esp-idf/components/esp32/include/soc/soc.h line 259ff.. In this list we have all interrupts handled for Espruino

Intr num level descripton
18 1 GPIO interrupt used for setWatch
17 1 Uart0 (console)