In development. It changes without notice.
Topic
Platform Abstraction
The facades over ESP-IDF and FreeRTOS that the firmware calls.
Modules call these and not ESP-IDF or FreeRTOS, so a new version of either, or another chip, changes one place. Two libraries are used directly where they are a module's subject: NimBLE in the Bluetooth stack (BLE Stack Integration), and PSA crypto and mbedTLS where a secret is handled. A test on a computer links the same facades, built for it.
| Facade | Over |
|---|---|
| Logging | The log |
| RTOS Facade | Tasks, queues, semaphores, the watchdog |
| Storage | LittleFS, NVS, the SD card's file system, the writer of updates, the security fuses |
| Monotonic Clock & Deadlines | The time since boot, and deadlines |
| Random Numbers | The hardware random generator |
| Wi-Fi & HTTP Server | Wi-Fi as access point and station, the HTTP server, network time |
| GPIO & Buses | GPIO, I2C, SPI, UART, PWM, I2S, ADC, temperature |
| Power, Sleep & System Control | Deep and light sleep, the CPU clock, the slow clock, the crash record |
| Serial Transport | The serial line of a debug build |
| Platform Memory & Errors | Large memory blocks, failed allocations, names of errors |
| Main Loop & Hooks | The main loop, and calls upward |
It is below every module but three that hold no device code: Utilities, JSON Reader, Writer and Binder and the pure rule of Update Policy.
- See also
- Utilities, Build Configuration
Topics | |
| RTOS Facade | |
| Tasks and the core each runs on, queues, semaphores, critical sections, delays and the task watchdog. | |
| Storage | |
| LittleFS, NVS, the SD card's file system, the writer of updates, and what the security fuses say. | |
| Wi-Fi & HTTP Server | |
| Wi-Fi as an access point and as a station, the HTTP server, the time from the network, and addresses. | |
| GPIO & Buses | |
| GPIO, I2C, SPI, UART, PWM, I2S and ADC, the USB pads, the die's temperature, and the lock of the crypto hardware. | |
| Power, Sleep & System Control | |
| Deep and light sleep and what ends them, the CPU clock, the slow clock that counts through a sleep, and the record of a crash. | |
| Monotonic Clock & Deadlines | |
| The time since boot, and deadlines that stay right when it wraps. | |
| Random Numbers | |
| Random bytes from the chip's hardware generator. | |
| Logging | |
| The log: one macro for each level, dropped when it is compiled below the level of the build. | |
| Serial Transport | |
| The serial line of a debug build, over a UART or the chip's USB. | |
| Platform Memory & Errors | |
| Large blocks of memory, the record of an allocation that failed, names of errors, and where the compiler places a function or a variable. | |
| Main Loop & Hooks | |
| The task that runs the firmware, and the hooks through which code calls a module above it without knowing it. | |