In development. It changes without notice.
Topic
Board Configurations
One source for each board, which creates its parts and registers the record of them.
A build compiles one of them, the one its board's number names. It:
- creates the power manager, the sound, the buttons and the board's other inputs, and describes its power for the meter in Diagnostics;
- fills a BoardDef with pointers to them;
- registers it, so that the rest of the firmware reaches it.
The motion sensor, the keyboard's chip and the trackball's driver are not among them: the bring-up (Board Bring-up) probes for them and writes them into the record.
A board with two buttons and no more:
Before its source, a board needs its declaration of what it has (Build Configuration): the chip, the panel, the inputs, the sound, the clock, how it sleeps and what ends that sleep. The table of what each board has is The boards.
Topics | |
| Board-Specific Support | |
| The power managers that only one board uses: the CoreInk's, the LILYGO T-Deck's and the M5Cardputer ADV's. | |
Files | |
| file | src/ |
| Board registration for the M5Stack Cardputer ADV (DEVICE_ID 6). | |
| file | src/ |
| Board registration for the M5Stack Core2 v1.3. | |
| file | src/ |
| Board registration for the M5Stack CoreS3 SE. | |
| file | src/ |
| Board registration for the M5Stack CoreInk. | |
| file | src/ |
| Board registration for the M5StickC Plus 1.1. | |
| file | src/ |
| Board registration for the M5StickC Plus2 (DEVICE_ID 1). | |
| file | src/ |
| Board registration for the M5StickC Plus SE. | |
| file | src/ |
| Shared pieces of the per-board power profiles (board TUs only). | |
| file | src/ |
| Board registration for the M5StickS3. | |
| file | src/ |
| Board registration for the LilyGo T-Deck. | |
Classes | |
| struct | kleidos:: |
| Panel model seeds, not measurements: on at 0 % backlight, and at 100 % (µA). More about kleidos:: | |
| struct | kleidos:: |
| The board-specific part of a seed model. More about kleidos:: | |
Functions | |
| constexpr pm:: | kleidos:: |
| Seed model coefficients for a board. | |
| constexpr pm:: | kleidos:: |
| Seed (uncalibrated) profile for the active variant. | |
Variables | |
|
constexpr pm:: | kleidos:: |
Expected values of the active variant, from its variant.h. | |
| constexpr uint16_t | kleidos:: |
Rated capacity of the active variant's cell (BATTERY_). | |
|
constexpr pm:: | kleidos:: |
| The generic LiPo rest-voltage table every seed profile uses. | |
| constexpr std::array< uint32_t, pm:: | kleidos:: |
| constexpr std::array< uint32_t, pm:: | kleidos:: |
| constexpr PanelSeed | kleidos:: |
| 1.14" 135×240 ST7789. | |
| constexpr PanelSeed | kleidos:: |
| 1.14" 240×135 ST7789V2. | |
| constexpr PanelSeed | kleidos:: |
| 2.0" 320×240 ILI9342C. | |
| constexpr PanelSeed | kleidos:: |
| 2.8" 320×240 ST7789. | |
| constexpr PanelSeed | kleidos:: |
| E-paper: no standing draw. | |
Peripheral model seeds, not measurements (µA) | |
| constexpr uint32_t | kleidos:: |
| Piezo buzzer tone. | |
| constexpr uint32_t | kleidos:: |
| I2S amplifier + speaker tone. | |
| constexpr uint32_t | kleidos:: |
| Mounted SD card at idle. | |
| constexpr uint32_t | kleidos:: |
| constexpr uint32_t | kleidos:: |
| constexpr uint32_t | kleidos:: |
| T-Deck keyboard controller (an ESP32-C3 on the peripheral rail). | |
Function Documentation
seedModel() #
Seed model coefficients for a board.
- Parameters
-
Name Direction Meaning spec in Board-specific seed figures.
- Returns
- Coefficients; the sleep floor is the variant's reference figure.
seedProfile() #
Seed (uncalibrated) profile for the active variant.
- Parameters
-
Name Direction Meaning spec in Board-specific seed figures. mvResolution in Rest-voltage resolution of the battery front end, mV. sleepKind in What deep sleep does on the board.
- Returns
- Profile with the generic OCV table and the variant's expected values.
Variable Documentation
kSeedBleUa #
BLE model seeds by mode, not measurements: off, advertising, connected, typing (µA).
kSeedCoreRailsUa #
Always-on PMIC rails, touch controller and peripheral 3V3 of the Core2 v1.3 and CoreS3 SE.
kSeedGpsUa #
GNSS receiver tracking.
kSeedWifiUa #
Wi-Fi model seeds by mode, not measurements: off, AP, AP with a client, station (µA).