Architecture
Architecture
One source tree builds the Kleidos firmware for nine boards across two chip families. What makes that possible is not cleverness; it is a shape that is checked on every commit: twenty-six modules in one order, each of which may use the modules below it and nothing above, and the check fails when that stops being true.
Like the security page, this one describes a repository you cannot open yet. The check runs on every commit; letting you run it yourself is a step on the roadmap.
Updated
The order nothing may climb
The firmware is twenty-six modules in one order, each above the modules it uses. A module includes its own headers and those of the modules below it; an include pointing upward fails the check, in the commit hook and again in continuous integration.
The five main parts
-
Assembly and control
four modules · The files that name every part of one board and drive it. They sit at the top because they reach down to everything; nothing reaches them.
-
Screens and surfaces
four modules · Everything a person looks at or types into, on the device or in a browser.
-
Device services
four modules · What the device does once it is open: type, connect, erase, measure itself.
-
Data and secrets
six modules · What the device holds and what locks it. Below every screen and every radio: the vault does not depend on the parts that draw it or send it.
-
Hardware and foundation
eight modules · The chips, and the single door to the chip's own services. Nine different boards meet the rest of the firmware here.
| includes → | Board Configurations | QA Host Firmware | Entry Point & State Dispatch | Serial Debug Console | Application States | Wi-Fi Admin Panel | User Interface | Settings Model | Change of Owner & Resets | Network Services | BLE HID Keyboard | Diagnostics | Vault Storage | Security | Brand Lookup & Logo Atlas | One-Time Codes | Internationalization | Cryptography | Hardware Abstraction Layer | Device Drivers | Clock & Time Zone | Platform Abstraction | Update Policy | Build Configuration | JSON Reader, Writer and Binder | Utilities |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Boards Board Configurations | Board Configurations itself | includes Diagnostics, one line | includes Hardware Abstraction Layer, 49 lines | includes Device Drivers, 2 lines | includes Platform Abstraction, 24 lines | includes Build Configuration, 15 lines | ||||||||||||||||||||
| QA host QA Host Firmware | QA Host Firmware itself | includes Platform Abstraction, 17 lines | includes Utilities, 2 lines | |||||||||||||||||||||||
| Entry point Entry Point & State Dispatch | Entry Point & State Dispatch itself | includes Serial Debug Console, 4 lines | includes Application States, 22 lines | includes Wi-Fi Admin Panel, 2 lines | includes User Interface, 12 lines | includes Change of Owner & Resets, one line | includes Network Services, one line | includes BLE HID Keyboard, 3 lines | includes Diagnostics, 7 lines | includes Vault Storage, 4 lines | includes Security, one line | includes One-Time Codes, one line | includes Internationalization, 2 lines | includes Cryptography, one line | includes Hardware Abstraction Layer, 20 lines | includes Clock & Time Zone, 2 lines | includes Platform Abstraction, 23 lines | includes Update Policy, one line | includes Build Configuration, 4 lines | includes Utilities, 2 lines | ||||||
| Debug console Serial Debug Console | Serial Debug Console itself | includes Application States, 50 lines | includes Wi-Fi Admin Panel, 11 lines | includes User Interface, 18 lines | includes Settings Model, one line | includes Change of Owner & Resets, 4 lines | includes Network Services, 3 lines | includes BLE HID Keyboard, 12 lines | includes Diagnostics, 9 lines | includes Vault Storage, 30 lines | includes Security, 3 lines | includes One-Time Codes, 10 lines | includes Internationalization, 2 lines | includes Cryptography, 19 lines | includes Hardware Abstraction Layer, 59 lines | includes Device Drivers, 17 lines | includes Clock & Time Zone, 10 lines | includes Platform Abstraction, 173 lines | includes Build Configuration, 26 lines | includes Utilities, 43 lines | ||||||
| States Application States | Application States itself | includes Wi-Fi Admin Panel, 9 lines | includes User Interface, 709 lines | includes Settings Model, 12 lines | includes Change of Owner & Resets, 5 lines | includes Network Services, 13 lines | includes BLE HID Keyboard, 26 lines | includes Diagnostics, 3 lines | includes Vault Storage, 58 lines | includes Security, 30 lines | includes One-Time Codes, 51 lines | includes Internationalization, 70 lines | includes Cryptography, 16 lines | includes Hardware Abstraction Layer, 176 lines | includes Device Drivers, 2 lines | includes Clock & Time Zone, 22 lines | includes Platform Abstraction, 143 lines | includes Build Configuration, 92 lines | includes Utilities, 52 lines | |||||||
| Admin panel Wi-Fi Admin Panel | Wi-Fi Admin Panel itself | includes Settings Model, 6 lines | includes Change of Owner & Resets, 3 lines | includes Network Services, 3 lines | includes BLE HID Keyboard, 11 lines | includes Diagnostics, 2 lines | includes Vault Storage, 71 lines | includes Security, 23 lines | includes One-Time Codes, 13 lines | includes Internationalization, one line | includes Cryptography, 23 lines | includes Hardware Abstraction Layer, 9 lines | includes Device Drivers, 4 lines | includes Clock & Time Zone, 12 lines | includes Platform Abstraction, 93 lines | includes Build Configuration, 11 lines | includes JSON Reader, Writer and Binder, 42 lines | includes Utilities, 50 lines | ||||||||
| UI User Interface | User Interface itself | includes Settings Model, 3 lines | includes BLE HID Keyboard, 2 lines | includes Vault Storage, 2 lines | includes Security, 9 lines | includes Brand Lookup & Logo Atlas, 3 lines | includes One-Time Codes, one line | includes Internationalization, 24 lines | includes Cryptography, 3 lines | includes Hardware Abstraction Layer, 107 lines | includes Clock & Time Zone, 8 lines | includes Platform Abstraction, 52 lines | includes Build Configuration, 22 lines | includes Utilities, 21 lines | ||||||||||||
| Settings model Settings Model | Settings Model itself | includes Internationalization, 2 lines | includes Build Configuration, one line | |||||||||||||||||||||||
| Wipe Change of Owner & Resets | Change of Owner & Resets itself | includes Network Services, 2 lines | includes BLE HID Keyboard, one line | includes Vault Storage, 8 lines | includes Security, 4 lines | includes Platform Abstraction, 7 lines | ||||||||||||||||||||
| Network Network Services | Network Services itself | includes BLE HID Keyboard, one line | includes Vault Storage, 2 lines | includes Security, one line | includes Cryptography, one line | includes Clock & Time Zone, 4 lines | includes Platform Abstraction, 11 lines | includes Utilities, 2 lines | ||||||||||||||||||
| BLE HID BLE HID Keyboard | BLE HID Keyboard itself | includes Clock & Time Zone, 2 lines | includes Platform Abstraction, 35 lines | includes Utilities, 7 lines | ||||||||||||||||||||||
| Diagnostics Diagnostics | Diagnostics itself | includes Hardware Abstraction Layer, one line | includes Device Drivers, one line | includes Clock & Time Zone, 2 lines | includes Platform Abstraction, 21 lines | includes Utilities, 3 lines | ||||||||||||||||||||
| Vault Vault Storage | Vault Storage itself | includes Security, 6 lines | includes Brand Lookup & Logo Atlas, 2 lines | includes One-Time Codes, 8 lines | includes Cryptography, 33 lines | includes Hardware Abstraction Layer, 3 lines | includes Clock & Time Zone, one line | includes Platform Abstraction, 102 lines | includes Build Configuration, 17 lines | includes Utilities, 34 lines | ||||||||||||||||
| Security Security | Security itself | includes Cryptography, 2 lines | includes Clock & Time Zone, 2 lines | includes Platform Abstraction, 5 lines | includes Build Configuration, one line | |||||||||||||||||||||
| Brands Brand Lookup & Logo Atlas | Brand Lookup & Logo Atlas itself | includes Build Configuration, 2 lines | includes Utilities, one line | |||||||||||||||||||||||
| 2FA codes One-Time Codes | One-Time Codes itself | includes Clock & Time Zone, 4 lines | includes Platform Abstraction, 6 lines | includes Build Configuration, one line | includes Utilities, 2 lines | |||||||||||||||||||||
| Languages Internationalization | Internationalization itself | includes Platform Abstraction, one line | ||||||||||||||||||||||||
| Crypto Cryptography | Cryptography itself | includes Platform Abstraction, 26 lines | includes Utilities, 2 lines | |||||||||||||||||||||||
| HAL Hardware Abstraction Layer | Hardware Abstraction Layer itself | includes Device Drivers, 70 lines | includes Clock & Time Zone, 8 lines | includes Platform Abstraction, 125 lines | includes Build Configuration, 49 lines | includes Utilities, 11 lines | ||||||||||||||||||||
| Drivers Device Drivers | Device Drivers itself | includes Clock & Time Zone, 4 lines | includes Platform Abstraction, 64 lines | includes Build Configuration, 14 lines | includes Utilities, 2 lines | |||||||||||||||||||||
| Clock Clock & Time Zone | Clock & Time Zone itself | includes Platform Abstraction, 7 lines | includes Build Configuration, one line | includes Utilities, one line | ||||||||||||||||||||||
| Platform Platform Abstraction | Platform Abstraction itself | includes Update Policy, one line | includes Build Configuration, one line | includes Utilities, 10 lines | ||||||||||||||||||||||
| Updates Update Policy | Update Policy itself | |||||||||||||||||||||||||
| Build config Build Configuration | Build Configuration itself | |||||||||||||||||||||||||
| JSON JSON Reader, Writer and Binder | JSON Reader, Writer and Binder itself | |||||||||||||||||||||||||
| Utilities Utilities | Utilities itself |
The remedy for an upward include is never an exception. It is to move the header down, or to invert the call through an interface the lower module declares, which is how the admin panel reaches the running application without knowing anything of it but that interface. There is a mechanism for pinning an exception between modules, one include at a time. It is empty, and the point of it is that it is empty: no two modules in the firmware depend on each other.
Includes are spelled from the root of the source tree, so a relative path that climbs out of its own directory fails the same check. Inside a module the check goes further: its components keep an order of their own, and a cycle between headers is refused. The explorer in the next section is drawn from the same include lines the check enforces; the site keeps a copy of them, and the day that copy last changed is this page's date.
Who uses what, one module at a time
Pick a module and its panel shows, above it, the modules that use it and, below it, the ones it uses, each with its number of include lines. A module's components, the groups of its reference, are one tap further in.
Find a component by feature
PIN entry
- States
PinStateHandlerthe PIN screen - Unlock entry
PinEntryUIthe dial that picks each digit - Crypto
VaultCryptothe key derived from the PIN - Security
BruteForceGuardthe lockout after wrong PINs
Typing a password
- States
BleStateHandlerthe sending screen - BLE facade
BleHidManagerthe Bluetooth keyboard - HID profiles
HidTypertext turned into keystrokes
Encrypted backup
- Backup
SdVaultthe backup on the SD card - Crypto
ExportEnvelopeWriterseals the backup under its passphrase - Admin panel
AdminPortalthe same backup, in the browser
The Wi-Fi admin panel
- States
AdminStateHandleradmin mode on the device - Admin panel
AdminPortalthe panel itself - Wi-Fi & HTTP
AccessPointSessionthe device's own access point
2FA codes
- Home
TotpScreenControllerthe codes screen - 2FA codes
TotpGeneratorthe code itself (RFC 6238) - Repositories
TotpRepositorythe stored secret
Firmware update
- Admin panel
AdminPortalthe upload, in the browser - Storage
AppUpdateSessionwrites the new firmware into the other slot - Updates its names are functions keeps it or goes back to the previous one, at boot
All 26 modules
- Assembly and control
- Screens and surfaces
- Device services
- Data and secrets
- Hardware and foundation
Board Configurations
To use is to include: a number counts the include lines between the two.
Used by 0
No module above it uses it.
Board Configurations
One source for each board, which creates its parts and registers the record of them.
Its components
More about Board Configurations
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- every build
- Tested on a computer
- no
- Reached through
-
PowerManagerCardputerAdv,PowerManagerCoreInk,PowerManagerTDeck,PanelSeed,SeedSpec
QA Host Firmware
To use is to include: a number counts the include lines between the two.
Used by 0
No module above it uses it.
QA Host Firmware
The firmware of a test host: a board that plays the computer, over Bluetooth or on the admin panel's Wi-Fi.
More about QA Host Firmware
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- not every build: the device's application leaves it out
- Tested on a computer
- no
Uses 2 QA Host Firmware uses these
Entry Point & State Dispatch
To use is to include: a number counts the include lines between the two.
Used by 0
No module above it uses it.
Entry Point & State Dispatch
The start of the firmware: the boot, in order, and the loop that runs the active state.
More about Entry Point & State Dispatch
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- every build
- Tested on a computer
- no
Uses 19 Entry Point & State Dispatch uses these
- Debug console : Serial Debug Console, 4 include lines
- States : Application States, 22 include lines
- Admin panel : Wi-Fi Admin Panel, 2 include lines
- UI : User Interface, 12 include lines
- Wipe : Change of Owner & Resets, 1 include line
- Network : Network Services, 1 include line
- BLE HID : BLE HID Keyboard, 3 include lines
- Diagnostics : Diagnostics, 7 include lines
- Vault : Vault Storage, 4 include lines
- Security : Security, 1 include line
- 2FA codes : One-Time Codes, 1 include line
- Languages : Internationalization, 2 include lines
- Crypto : Cryptography, 1 include line
- HAL : Hardware Abstraction Layer, 20 include lines
- Clock : Clock & Time Zone, 2 include lines
- Platform : Platform Abstraction, 23 include lines
- Updates : Update Policy, 1 include line
- Build config : Build Configuration, 4 include lines
- Utilities : Utilities, 2 include lines
Serial Debug Console
To use is to include: a number counts the include lines between the two.
Used by 1 these use Serial Debug Console
Serial Debug Console
The serial console of a debug build, which drives a board from a cable. No other image holds it.
More about Serial Debug Console
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- not every build: the device's application leaves it out
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
SerialDebugButtonEvent,Args,BusCounts,BusWindow,CredFieldParse,DebugToken
Uses 19 Serial Debug Console uses these
- States : Application States, 50 include lines
- Admin panel : Wi-Fi Admin Panel, 11 include lines
- UI : User Interface, 18 include lines
- Settings model : Settings Model, 1 include line
- Wipe : Change of Owner & Resets, 4 include lines
- Network : Network Services, 3 include lines
- BLE HID : BLE HID Keyboard, 12 include lines
- Diagnostics : Diagnostics, 9 include lines
- Vault : Vault Storage, 30 include lines
- Security : Security, 3 include lines
- 2FA codes : One-Time Codes, 10 include lines
- Languages : Internationalization, 2 include lines
- Crypto : Cryptography, 19 include lines
- HAL : Hardware Abstraction Layer, 59 include lines
- Drivers : Device Drivers, 17 include lines
- Clock : Clock & Time Zone, 10 include lines
- Platform : Platform Abstraction, 173 include lines
- Build config : Build Configuration, 26 include lines
- Utilities : Utilities, 43 include lines
Application States
To use is to include: a number counts the include lines between the two.
Used by 2 these use Application States
Application States
The states of the application, what moves it from one to the next, and the handler that runs each.
Its components
More about Application States
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
AppContext,HoldGauge,AppStateHandler,IdleTimers,VaultTabStrip,ActionList
Uses 18 Application States uses these
- Admin panel : Wi-Fi Admin Panel, 9 include lines
- UI : User Interface, 709 include lines
- Settings model : Settings Model, 12 include lines
- Wipe : Change of Owner & Resets, 5 include lines
- Network : Network Services, 13 include lines
- BLE HID : BLE HID Keyboard, 26 include lines
- Diagnostics : Diagnostics, 3 include lines
- Vault : Vault Storage, 58 include lines
- Security : Security, 30 include lines
- 2FA codes : One-Time Codes, 51 include lines
- Languages : Internationalization, 70 include lines
- Crypto : Cryptography, 16 include lines
- HAL : Hardware Abstraction Layer, 176 include lines
- Drivers : Device Drivers, 2 include lines
- Clock : Clock & Time Zone, 22 include lines
- Platform : Platform Abstraction, 143 include lines
- Build config : Build Configuration, 92 include lines
- Utilities : Utilities, 52 include lines
Wi-Fi Admin Panel
To use is to include: a number counts the include lines between the two.
Used by 3 these use Wi-Fi Admin Panel
Wi-Fi Admin Panel
The web pages the board serves to one browser over its own Wi-Fi: to edit the vault, back it up, change settings and install an update.
Its components
More about Wi-Fi Admin Panel
- Runs on
-
httpd(core 0) ,kleidos-dns(core 0) - Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
AdminPortal,CustomBody,HistoryBody,ImportBody,ImportItemBody,ImportPass
Uses 17 Wi-Fi Admin Panel uses these
- Settings model : Settings Model, 6 include lines
- Wipe : Change of Owner & Resets, 3 include lines
- Network : Network Services, 3 include lines
- BLE HID : BLE HID Keyboard, 11 include lines
- Diagnostics : Diagnostics, 2 include lines
- Vault : Vault Storage, 71 include lines
- Security : Security, 23 include lines
- 2FA codes : One-Time Codes, 13 include lines
- Languages : Internationalization, 1 include line
- Crypto : Cryptography, 23 include lines
- HAL : Hardware Abstraction Layer, 9 include lines
- Drivers : Device Drivers, 4 include lines
- Clock : Clock & Time Zone, 12 include lines
- Platform : Platform Abstraction, 93 include lines
- Build config : Build Configuration, 11 include lines
- JSON : JSON Reader, Writer and Binder, 42 include lines
- Utilities : Utilities, 50 include lines
User Interface
To use is to include: a number counts the include lines between the two.
Used by 3 these use User Interface
User Interface
Everything the screen shows: drawing, components, the unlock entry (PIN or passphrase), popups and notices, brand logos and the on-screen keyboard.
Its components
- Login detail
- Unlock entry
- Notices
- Popups
- Settings view
- Widgets
- Components
- Logos
- Gestures
- Canvas
- Theme & layout
More about User Interface
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
LayoutContext,Rect,SafeInsets,RasterCanvas,Canvas,ActionBarProps
Uses 13 User Interface uses these
- Settings model : Settings Model, 3 include lines
- BLE HID : BLE HID Keyboard, 2 include lines
- Vault : Vault Storage, 2 include lines
- Security : Security, 9 include lines
- Brands : Brand Lookup & Logo Atlas, 3 include lines
- 2FA codes : One-Time Codes, 1 include line
- Languages : Internationalization, 24 include lines
- Crypto : Cryptography, 3 include lines
- HAL : Hardware Abstraction Layer, 107 include lines
- Clock : Clock & Time Zone, 8 include lines
- Platform : Platform Abstraction, 52 include lines
- Build config : Build Configuration, 22 include lines
- Utilities : Utilities, 21 include lines
Settings Model
To use is to include: a number counts the include lines between the two.
Used by 4 these use Settings Model
Settings Model
The options a device has, once for every surface that shows them: their groups, their values and the words for each.
More about Settings Model
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
DependencyReader,LabelTiers,SettingsCapabilities,SettingsGroupEntry,SettingsOption,ValueBacking
Uses 2 Settings Model uses these
Change of Owner & Resets
To use is to include: a number counts the include lines between the two.
Used by 4 these use Change of Owner & Resets
Change of Owner & Resets
What a factory reset, a vault wipe and a settings reset erase, one sequence for every way of asking for each.
More about Change of Owner & Resets
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
VaultOnlyResult,PrefKey,ChangeOfOwnerErased,ChangeOfOwnerSteps,FactoryResetFinishSteps,OwnerLinksErased
Network Services
To use is to include: a number counts the include lines between the two.
Used by 5 these use Network Services
Network Services
The time from the network, the Wi-Fi session that fetches it, the admin panel's network name, and the request for the admin panel after a restart.
More about Network Services
- Runs on
-
ntpsync(core 0) - Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
Status,JoinAttempt,JoinScanHit,WifiStaSessionGuard
Uses 7 Network Services uses these
BLE HID Keyboard
To use is to include: a number counts the include lines between the two.
Used by 7 these use BLE HID Keyboard
- Entry point : Entry Point & State Dispatch, 3 include lines
- Debug console : Serial Debug Console, 12 include lines
- States : Application States, 26 include lines
- Admin panel : Wi-Fi Admin Panel, 11 include lines
- UI : User Interface, 2 include lines
- Wipe : Change of Owner & Resets, 1 include line
- Network : Network Services, 1 include line
BLE HID Keyboard
The board as a Bluetooth keyboard: advertising, pairing, the bonded hosts, and typing.
Its components
More about BLE HID Keyboard
- Runs on
-
ble_stack(core 0) ,name_store(core 0) - Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
BondInfo,Facade,LinkInfo,PeerInfo,LayoutEntry,NimBleHostAdapter
Uses 3 BLE HID Keyboard uses these
Diagnostics
To use is to include: a number counts the include lines between the two.
Used by 5 these use Diagnostics
Diagnostics
What a board reports of itself: the log's queue, memory and tasks, the time spent drawing, and an estimate of what it draws.
More about Diagnostics
- Runs on
-
telem(core 0) - Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
BudgetLine,IntervalFigures,Snapshot,StateFigure,StateRoles,Config
Vault Storage
To use is to include: a number counts the include lines between the two.
Used by 7 these use Vault Storage
- Entry point : Entry Point & State Dispatch, 4 include lines
- Debug console : Serial Debug Console, 30 include lines
- States : Application States, 58 include lines
- Admin panel : Wi-Fi Admin Panel, 71 include lines
- UI : User Interface, 2 include lines
- Wipe : Change of Owner & Resets, 8 include lines
- Network : Network Services, 2 include lines
Vault Storage
The encrypted vault: how logins, one-time-code secrets and saved networks are stored, listed, changed, backed up and re-keyed.
Its components
More about Vault Storage
- Runs on
-
kleidos-vault(core 0) - Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
VaultIndexBatch,VaultStore,Credential,CredentialDetail,CredentialEntry,CredentialExtras
Uses 9 Vault Storage uses these
- Security : Security, 6 include lines
- Brands : Brand Lookup & Logo Atlas, 2 include lines
- 2FA codes : One-Time Codes, 8 include lines
- Crypto : Cryptography, 33 include lines
- HAL : Hardware Abstraction Layer, 3 include lines
- Clock : Clock & Time Zone, 1 include line
- Platform : Platform Abstraction, 102 include lines
- Build config : Build Configuration, 17 include lines
- Utilities : Utilities, 34 include lines
Security
To use is to include: a number counts the include lines between the two.
Used by 8 these use Security
- Entry point : Entry Point & State Dispatch, 1 include line
- Debug console : Serial Debug Console, 3 include lines
- States : Application States, 30 include lines
- Admin panel : Wi-Fi Admin Panel, 23 include lines
- UI : User Interface, 9 include lines
- Wipe : Change of Owner & Resets, 4 include lines
- Network : Network Services, 1 include line
- Vault : Vault Storage, 6 include lines
Security
The lockout after wrong secrets, which lasts through a sleep or a cut in power, the log of security events, and the rule for a new secret.
More about Security
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
PinRange,AuditEntry,AuditLog,BruteForceGuard
Brand Lookup & Logo Atlas
To use is to include: a number counts the include lines between the two.
Used by 2 these use Brand Lookup & Logo Atlas
Brand Lookup & Logo Atlas
From the address or the name in a login to the service's logo.
More about Brand Lookup & Logo Atlas
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
BrandEntry
Uses 2 Brand Lookup & Logo Atlas uses these
One-Time Codes
To use is to include: a number counts the include lines between the two.
Used by 6 these use One-Time Codes
One-Time Codes
Time-based one-time codes (RFC 6238): making one from the secret in the vault, and the gate that refuses when the clock cannot be trusted.
More about One-Time Codes
- Runs on
-
kleidos-totp(core 0) - Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
CodeSeed,Verdict,TotpGenerator,Request,CodeClock
Internationalization
To use is to include: a number counts the include lines between the two.
Used by 6 these use Internationalization
Internationalization
The interface's text by name, in English, Spanish, French, German and Italian.
More about Internationalization
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
Uses 1 Internationalization uses these
Cryptography
To use is to include: a number counts the include lines between the two.
Used by 8 these use Cryptography
- Entry point : Entry Point & State Dispatch, 1 include line
- Debug console : Serial Debug Console, 19 include lines
- States : Application States, 16 include lines
- Admin panel : Wi-Fi Admin Panel, 23 include lines
- UI : User Interface, 3 include lines
- Network : Network Services, 1 include line
- Vault : Vault Storage, 33 include lines
- Security : Security, 2 include lines
Cryptography
From a PIN or passphrase to the keys that seal the vault, the secret bound to the chip, the seal of a backup and the password generator.
More about Cryptography
- Runs on
-
admincrypto(core 0) - Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
AesCbcDecryptStream,AesCbcEncryptStream,HmacSha256Stream,VaultAesContext,VaultCrypto,ByteSpan
Uses 2 Cryptography uses these
Hardware Abstraction Layer
To use is to include: a number counts the include lines between the two.
Used by 8 these use Hardware Abstraction Layer
- Boards : Board Configurations, 49 include lines
- Entry point : Entry Point & State Dispatch, 20 include lines
- Debug console : Serial Debug Console, 59 include lines
- States : Application States, 176 include lines
- Admin panel : Wi-Fi Admin Panel, 9 include lines
- UI : User Interface, 107 include lines
- Diagnostics : Diagnostics, 1 include line
- Vault : Vault Storage, 3 include lines
Hardware Abstraction Layer
What the application calls instead of a chip: display, input, power and battery, motion, sound, SD card, clock and GPS.
Its components
- Bring-up
- RTC back end
- Battery & sleep
- Input
- Display
- Board description
- Sound
- Shake to lock
- SD card
- GPS time
More about Hardware Abstraction Layer
- Runs on
-
kleidos-sd-settle(core 0) ,speaker(core 0) - Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
PanelIdentity,PanelMemoryCell,PanelMemoryInfo,ShadowFramebufferInfo,SpiBusStatus,TextBox
Device Drivers
To use is to include: a number counts the include lines between the two.
Used by 6 these use Device Drivers
Device Drivers
One driver for each chip: panels, power chips, motion sensors, clock, touch, keyboards, trackball, audio and GPS.
Its components
- Audio
- Panels
- GPS receivers
- Motion sensors
- Keyboards
- Power chips
- RTC driver
- Touch
- Chip registers
- I2C bus
- Trackball
More about Device Drivers
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
ChipRegmap,EnumEntry,RegDesc,RegField,I2cDevice,Pins
Clock & Time Zone
To use is to include: a number counts the include lines between the two.
Used by 13 these use Clock & Time Zone
- Entry point : Entry Point & State Dispatch, 2 include lines
- Debug console : Serial Debug Console, 10 include lines
- States : Application States, 22 include lines
- Admin panel : Wi-Fi Admin Panel, 12 include lines
- UI : User Interface, 8 include lines
- Network : Network Services, 4 include lines
- BLE HID : BLE HID Keyboard, 2 include lines
- Diagnostics : Diagnostics, 2 include lines
- Vault : Vault Storage, 1 include line
- Security : Security, 2 include lines
- 2FA codes : One-Time Codes, 4 include lines
- HAL : Hardware Abstraction Layer, 8 include lines
- Drivers : Device Drivers, 4 include lines
Clock & Time Zone
The wall clock and how far it is trusted, what set it last, and the time zones with their daylight-saving rules.
More about Clock & Time Zone
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
RtcAlarm,RtcDate,RtcTime,DstRule,LocalDateTime,TimeZone
Uses 3 Clock & Time Zone uses these
Platform Abstraction
To use is to include: a number counts the include lines between the two.
Used by 19 these use Platform Abstraction
- Boards : Board Configurations, 24 include lines
- QA host : QA Host Firmware, 17 include lines
- Entry point : Entry Point & State Dispatch, 23 include lines
- Debug console : Serial Debug Console, 173 include lines
- States : Application States, 143 include lines
- Admin panel : Wi-Fi Admin Panel, 93 include lines
- UI : User Interface, 52 include lines
- Wipe : Change of Owner & Resets, 7 include lines
- Network : Network Services, 11 include lines
- BLE HID : BLE HID Keyboard, 35 include lines
- Diagnostics : Diagnostics, 21 include lines
- Vault : Vault Storage, 102 include lines
- Security : Security, 5 include lines
- 2FA codes : One-Time Codes, 6 include lines
- Languages : Internationalization, 1 include line
- Crypto : Cryptography, 26 include lines
- HAL : Hardware Abstraction Layer, 125 include lines
- Drivers : Device Drivers, 64 include lines
- Clock : Clock & Time Zone, 7 include lines
Platform Abstraction
The facades over ESP-IDF and FreeRTOS that the firmware calls.
Its components
- Main loop
- Wi-Fi & HTTP
- Sleep & clocks
- Storage
- Serial
- GPIO & buses
- RTOS
- Memory & errors
- Monotonic clock
- Random
- Log
More about Platform Abstraction
- Runs on
-
loopTask(core 1) - Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
SilenceGuard,Deadline,Config,NvsStats,NvsStore,ScopedTimeout
Uses 3 Platform Abstraction uses these
Update Policy
To use is to include: a number counts the include lines between the two.
Used by 2 these use Update Policy
Update Policy
What a boot decides after an update: to keep the new firmware, to refuse it, or to say that the board went back to the previous one.
More about Update Policy
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
Uses 0
It includes no other module.
Build Configuration
To use is to include: a number counts the include lines between the two.
Used by 15 these use Build Configuration
- Boards : Board Configurations, 15 include lines
- Entry point : Entry Point & State Dispatch, 4 include lines
- Debug console : Serial Debug Console, 26 include lines
- States : Application States, 92 include lines
- Admin panel : Wi-Fi Admin Panel, 11 include lines
- UI : User Interface, 22 include lines
- Settings model : Settings Model, 1 include line
- Vault : Vault Storage, 17 include lines
- Security : Security, 1 include line
- Brands : Brand Lookup & Logo Atlas, 2 include lines
- 2FA codes : One-Time Codes, 1 include line
- HAL : Hardware Abstraction Layer, 49 include lines
- Drivers : Device Drivers, 14 include lines
- Clock : Clock & Time Zone, 1 include line
- Platform : Platform Abstraction, 1 include line
Build Configuration
What the board being built has, as constants.
More about Build Configuration
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- every build
- Tested on a computer
- no
Uses 0
It includes no other module.
JSON Reader, Writer and Binder
To use is to include: a number counts the include lines between the two.
Used by 1 these use JSON Reader, Writer and Binder
JSON Reader, Writer and Binder
JSON read in pieces, written to a sink and bound to a record by a table, with no allocation.
More about JSON Reader, Writer and Binder
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
Writer,Binder,BindResult,BindStream,Bound,Entry
Uses 0
It includes no other module.
Utilities
To use is to include: a number counts the include lines between the two.
Used by 17 these use Utilities
- QA host : QA Host Firmware, 2 include lines
- Entry point : Entry Point & State Dispatch, 2 include lines
- Debug console : Serial Debug Console, 43 include lines
- States : Application States, 52 include lines
- Admin panel : Wi-Fi Admin Panel, 50 include lines
- UI : User Interface, 21 include lines
- Network : Network Services, 2 include lines
- BLE HID : BLE HID Keyboard, 7 include lines
- Diagnostics : Diagnostics, 3 include lines
- Vault : Vault Storage, 34 include lines
- Brands : Brand Lookup & Logo Atlas, 1 include line
- 2FA codes : One-Time Codes, 2 include lines
- Crypto : Cryptography, 2 include lines
- HAL : Hardware Abstraction Layer, 11 include lines
- Drivers : Device Drivers, 2 include lines
- Clock : Clock & Time Zone, 1 include line
- Platform : Platform Abstraction, 10 include lines
Utilities
Text, lists and queues that never use the heap, a checksum, and a wipe the compiler cannot drop.
Its components
More about Utilities
- Runs on
- No task of its own: its code runs on the tasks that call it.
- Built into
- every build
- Tested on a computer
- yes: it has unit tests that run on a computer
- Reached through
-
InplaceString,InplaceVector,InplaceFunction< R(Args...), Capacity >,InplaceQueue
Uses 0
It includes no other module.
Board Configurations
Used by 0
No other component uses it.
Board Configurations
One source for each board, which creates its parts and registers the record of them.
Its types
-
PanelSeed0 files outside include it -
SeedSpec0 files outside include it
Uses 7
- Boards: Board support 3
- Diagnostics: Diagnostics 1
- HAL: Battery & sleep 6, Input 16, Board description 9, Sound 9
and 1 in the foundation
Board-Specific Support
Board-Specific Support
The power managers that only one board uses: the CoreInk's, the LILYGO T-Deck's and the M5Cardputer ADV's.
Its types
-
PowerManagerCardputerAdvone file outside includes it -
PowerManagerCoreInkone file outside includes it -
PowerManagerTDeckone file outside includes it
Uses 10
- HAL: Battery & sleep 6, Display 3
- Drivers: Audio 2
and 7 in the foundation
- Platform: Wi-Fi & HTTP 3, Sleep & clocks 3, Storage 3, GPIO & buses 9, Monotonic clock 3, Log 3
- Build config: Build config 5
Application States
Used by 2
Application States
The states of the application, what moves it from one to the next, and the handler that runs each.
Its types
-
BleStateHandler3 files outside include it -
HomeStateHandler3 files outside include it -
AdminStateHandler2 files outside include it -
HwTestStateHandler2 files outside include it -
PinStateHandler2 files outside include it -
ComponentGalleryStateHandlerone file outside includes it
Uses 40
- States: Home 8, First setup 1, Settings 5, State context 12, Screen parts 7, State rules 12
- Admin panel: Admin panel 6
- UI: Login detail 1, Unlock entry 6, Notices 2, Popups 3, Components 36, Logos 2, Gestures 2, Canvas 7, Theme & layout 22
- Wipe: Wipe 1
- Network: Network 5
- BLE HID: BLE facade 4
- Vault: Vault 4, Keys 1
- Security: Security 4
- 2FA codes: 2FA codes 5
- Languages: Languages 6
- Crypto: Crypto 1
- HAL: Bring-up 1, Input 7, Display 7, Board description 4, Shake to lock 1
- Clock: Clock 2
and 9 in the foundation
- Platform: Sleep & clocks 9, Storage 5, RTOS 1, Monotonic clock 5, Log 6
- Build config: Build config 9
- Utilities: Containers 4, Safe strings 5, Utilities 1
Home Screen
Used by 2
Home Screen
What the home screen shows and does besides settings: the lists, a record's detail, the one-time codes, the choice of a host, the SD card's flows and the edits.
Its types
-
KeyboardVaultView2 files outside include it -
WideVaultView2 files outside include it -
CredDetailControllerone file outside includes it -
CredRowCacheone file outside includes it -
HostSelectControllerone file outside includes it -
NarrowVaultViewone file outside includes it
Uses 40
- States: Settings 11, State context 23, Screen parts 29, State rules 12
- UI: Login detail 33, Unlock entry 3, Popups 22, Settings view 6, Widgets 4, Components 111, Gestures 14, Canvas 16, Theme & layout 71
- Settings model: Settings model 4
- BLE HID: BLE facade 4, BLE types 2
- Vault: Backup 7, Vault 18, Records 3
- Security: Security 3
- 2FA codes: 2FA codes 39
- Languages: Languages 19
- Crypto: Crypto 7
- HAL: Bring-up 2, Input 19, Display 17, Board description 11, SD card 4, GPS time 2
and 11 in the foundation
- Platform: Main loop 1, Sleep & clocks 3, Storage 4, RTOS 6, Memory & errors 3, Monotonic clock 13, Log 10
- Build config: Build config 38
- Utilities: Containers 13, Safe strings 9, Utilities 3
First-Time Setup
Used by 3
First-Time Setup
The first use of a board: its keys, the language, a rehearsal of each control, the unlock secret, and the pairing of a first computer.
Its types
-
OnboardingStateHandler4 files outside include it -
KeyboardOnboardingStateHandlerone file outside includes it -
EpaperControlLayout0 files outside include it -
EpaperControlRow0 files outside include it -
EpaperLocator0 files outside include it -
OnboardingLogic0 files outside include it
Uses 28
- States: Settings 3, State context 8, Screen parts 12, State rules 3
- UI: Unlock entry 1, Notices 1, Popups 2, Components 38, Logos 1, Gestures 6, Canvas 8, Theme & layout 34
- Wipe: Wipe 2
- BLE HID: BLE facade 2
- Vault: Vault 2
- Security: Security 7
- 2FA codes: 2FA codes 1
- Languages: Languages 11
- Crypto: Crypto 3
- HAL: Input 4, Display 7, Board description 2
and 6 in the foundation
Settings Screen & Service
Used by 5
- States: States 5, Home 11, First setup 3
- Entry point: Entry point 2
- Debug console: Debug console 6
Settings Screen & Service
The settings screen, its overlays and wizards, and the service that reads and applies an option.
Its types
-
SetClockBuildDate3 files outside include it -
SetClockController3 files outside include it -
PortalAppHost2 files outside include it -
RowContent2 files outside include it -
GpsSyncControllerone file outside includes it -
SettingsControllerone file outside includes it
Uses 40
- States: State context 43, Screen parts 30, State rules 7
- Admin panel: Admin panel 1
- UI: Unlock entry 7, Popups 16, Settings view 2, Components 87, Gestures 26, Canvas 16, Theme & layout 57
- Settings model: Settings model 8
- Wipe: Wipe 2
- Network: Network 7
- BLE HID: BLE facade 7, BLE types 1
- Vault: Vault 7, Repositories 2, Keys 5
- Security: Security 10
- 2FA codes: 2FA codes 4
- Languages: Languages 24
- Crypto: Crypto 3
- HAL: Bring-up 1, Input 20, Display 20, Board description 18, GPS time 3
- Clock: Clock 16
and 11 in the foundation
- Platform: Main loop 3, Wi-Fi & HTTP 1, Sleep & clocks 3, Storage 4, RTOS 3, Monotonic clock 12, Random 1, Log 12
- Build config: Build config 30
- Utilities: Containers 6, Safe strings 6
State Context & Shared Flows
Used by 6
- States: States 12, Home 23, First setup 8, Settings 43
- Entry point: Entry point 4
- Debug console: Debug console 29
State Context & Shared Flows
What every state handler shares: the context and its sleep path, the handler's interface, and the flows that several states run.
Its types
-
AppContext67 files outside include it -
AppStateHandler11 files outside include it -
DebugDummyHost4 files outside include it -
PairHostPage2 files outside include it
Uses 41
- States: Screen parts 7, State rules 9
- Admin panel: Display stream 1, Admin panel 1
- UI: Unlock entry 4, Popups 3, Components 9, Gestures 2, Canvas 2, Theme & layout 5
- Network: Network 1
- BLE HID: BLE facade 4, Bonds 1
- Diagnostics: Diagnostics 3
- Vault: Vault 3, Repositories 3, Records 2
- Security: Security 5
- 2FA codes: 2FA codes 2
- Languages: Languages 4
- Crypto: Crypto 2
- HAL: Battery & sleep 1, Input 9, Display 1, Board description 3, Sound 1, Shake to lock 2, SD card 1, GPS time 1
- Drivers: Keyboards 1
- Clock: Clock 1
and 10 in the foundation
- Platform: Main loop 1, Sleep & clocks 3, Storage 1, Serial 1, RTOS 2, Memory & errors 1, Monotonic clock 3, Log 3
- Build config: Build config 7
- Utilities: Containers 1
Shared Screen Parts
Used by 7
- States: States 7, Home 29, First setup 12, Settings 30, State context 7
- Entry point: Entry point 3
- Debug console: Debug console 2
Shared Screen Parts
The pieces several screens draw or steer by: the header, the lock screen's clock, the Bluetooth chip, the list's motion, and the navigation with two buttons or a dial.
Its types
-
HoldGauge36 files outside include it -
VaultTabStrip8 files outside include it -
DrawnBand5 files outside include it -
Frame5 files outside include it -
Regions5 files outside include it -
HeaderShown4 files outside include it
Uses 21
- States: State rules 1
- UI: Unlock entry 1, Popups 1, Components 7, Canvas 1, Theme & layout 8
- BLE HID: BLE types 1
- Languages: Languages 3
- HAL: Battery & sleep 2, Input 2, Display 2, Board description 1
- Drivers: I2C bus 1
- Clock: Clock 3
and 7 in the foundation
- Platform: Sleep & clocks 2, Storage 1, GPIO & buses 1, Memory & errors 1, Monotonic clock 2, Log 1
- Build config: Build config 1
State Rules
Used by 8
- States: States 12, Home 12, First setup 3, Settings 7, State context 9, Screen parts 1
- Entry point: Entry point 4
- Debug console: Debug console 2
State Rules
The decisions the handlers take, with no screen, no context and no device behind them, and the list of states itself.
Its types
-
IdleTimers8 files outside include it -
ActionList5 files outside include it -
IdleClock4 files outside include it -
PairTick3 files outside include it -
Inputsone file outside includes it -
KeptReadone file outside includes it
Uses 9
- UI: Unlock entry 2, Theme & layout 1
- Vault: Repositories 1
- Security: Security 1
- Languages: Languages 3
and 4 in the foundation
Display Stream
Used by 2
Display Stream
The video of the display that a debug build sends to the tests.
Its types
-
BandLedgerone file outside includes it -
BandRectone file outside includes it -
QueuedSliceone file outside includes it -
SlicePayloadone file outside includes it -
SliceWalkone file outside includes it -
SnapshotQueueone file outside includes it
Uses 12
and 10 in the foundation
- Platform: Wi-Fi & HTTP 2, Sleep & clocks 1, RTOS 1, Memory & errors 1, Monotonic clock 1, Random 1, Log 1
- Build config: Build config 2
- Utilities: Containers 1, Safe strings 1
Wi-Fi Admin Panel
Used by 6
Wi-Fi Admin Panel
The web pages the board serves to one browser over its own Wi-Fi: to edit the vault, back it up, change settings and install an update.
Its types
-
AdminPortal9 files outside include it -
AdminAppHostone file outside includes it -
AdminHttpClientone file outside includes it -
AdminHttpHeaderone file outside includes it -
AdminHttpRequestone file outside includes it -
AdminHttpResponseone file outside includes it
Uses 39
- Admin panel: Panel rules 49
- Settings model: Settings model 6
- Wipe: Wipe 3
- Network: Network 3
- BLE HID: BLE facade 9, BLE types 2
- Diagnostics: Diagnostics 1
- Vault: Backup 17, Vault 16, Repositories 8, Keys 12, Records 6
- Security: Security 22
- 2FA codes: 2FA codes 9
- Languages: Languages 1
- Crypto: Crypto 21
- HAL: Battery & sleep 1, Input 1, Board description 2, Shake to lock 1, SD card 1, GPS time 1
- Drivers: GPS receivers 1, Keyboards 1, Chip registers 1
- Clock: Clock 12
- JSON: JSON 35
and 12 in the foundation
- Platform: Wi-Fi & HTTP 12, Sleep & clocks 17, Storage 9, GPIO & buses 1, RTOS 2, Memory & errors 7, Monotonic clock 11, Random 1, Log 24
- Build config: Build config 8
- Utilities: Containers 24, Safe strings 19
Admin Panel Rules
Used by 3
Admin Panel Rules
The decisions the admin panel's routes take, with no server behind them.
Its types
-
CustomBody6 files outside include it -
HistoryBody6 files outside include it -
ImportBody6 files outside include it -
ImportItemBody6 files outside include it -
ImportPass6 files outside include it -
IntegerField6 files outside include it
Uses 15
- Admin panel: Admin panel 2
- Diagnostics: Diagnostics 1
- Vault: Backup 2, Vault 6, Repositories 3, Keys 1
- Security: Security 1
- 2FA codes: 2FA codes 4
- Crypto: Crypto 2
- Drivers: Chip registers 1
- JSON: JSON 7
and 4 in the foundation
Login Detail View Model
Login Detail View Model
What the detail of a login shows and where each key leads, the sentences about a record, and what a refused one-time code offers.
Its types
-
FixCopy14 files outside include it -
GateCopy14 files outside include it -
CredCardActions3 files outside include it -
CredDetailLogic3 files outside include it -
CredStopList3 files outside include it -
EpaperCardCursor3 files outside include it
Uses 10
- UI: Popups 1, Components 3, Theme & layout 6
- Vault: Vault 1, Records 1
- 2FA codes: 2FA codes 1
- Languages: Languages 5
- Clock: Clock 3
and 2 in the foundation
Unlock Entry
Used by 8
- Entry point: Entry point 3
- States: States 6, Home 3, First setup 1, Settings 7, State context 4, Screen parts 1, State rules 2
Unlock Entry
How the owner enters the secret, by board: a dialed PIN, a touch keypad or a keyboard.
Its types
-
AuthEntryUI10 files outside include it -
Countdown3 files outside include it -
LockStatus3 files outside include it -
PinEntryRenderProps2 files outside include it -
PinEntryRenderer2 files outside include it -
PinEntryUI2 files outside include it
Uses 19
- UI: Popups 3, Components 41, Logos 1, Gestures 5, Canvas 10, Theme & layout 45
- Security: Security 7
- Languages: Languages 9
- HAL: Battery & sleep 2, Input 8, Display 10, Board description 2, Shake to lock 2
- Clock: Clock 3
and 5 in the foundation
Notifications
Used by 4
Notifications
Notices about the battery, the link, the admin panel, the lock and an update, shown once and not again until the state really changes.
Its types
-
AdminClientState7 files outside include it -
AdminIdleState7 files outside include it -
AutoLockState7 files outside include it -
BatteryState7 files outside include it -
HostState7 files outside include it -
OtaAppliedState7 files outside include it
Popups & Modals
Used by 11
- UI: Login detail 1, Unlock entry 3, Notices 1
- Entry point: Entry point 4
- Debug console: Debug console 5
- States: States 3, Home 22, First setup 2, Settings 16, State context 3, Screen parts 1
Popups & Modals
Toasts, spinners, confirmations and alerts, drawn over any screen.
Its types
-
ChoiceListOptions50 files outside include it -
ConfirmOptions50 files outside include it -
DialInputs50 files outside include it -
ListNavEdges50 files outside include it -
ModalHints50 files outside include it -
ProgressOptions50 files outside include it
Uses 15
- UI: Components 27, Canvas 8, Theme & layout 18
- Languages: Languages 6
- HAL: Bring-up 3, Input 11, Display 9, Board description 5
and 7 in the foundation
- Platform: Main loop 4, RTOS 6, Monotonic clock 8, Log 1
- Build config: Build config 7
- Utilities: Containers 2, Safe strings 2
Settings View Model
Settings View Model
How a setting reads on the screen: its value in words, what handles it on a keyboard panel, and the tables of device information.
Its types
-
InfoPage3 files outside include it -
InfoRow3 files outside include it -
InfoRows3 files outside include it -
SettingsPresenter3 files outside include it
Uses 14
- UI: Components 3, Theme & layout 4
- Settings model: Settings model 3
- BLE HID: BLE facade 1
- Security: Security 2
- Languages: Languages 1
- Crypto: Crypto 2
- HAL: Battery & sleep 1, Display 1, Board description 1
and 4 in the foundation
Reusable Widgets
Reusable Widgets
A scrolling menu that every board drives with its own inputs, and the header's chip that says the clock is not set.
Its types
-
MenuItemone file outside includes it -
OnDeviceMenuone file outside includes it
Uses 11
- UI: Components 6, Gestures 4, Canvas 1, Theme & layout 5
- Languages: Languages 2
- HAL: Input 4, Display 1, Board description 3
- Clock: Clock 1
and 2 in the foundation
Interface Components
Used by 12
- UI: Login detail 3, Unlock entry 41, Popups 27, Settings view 3, Widgets 6
- Debug console: Debug console 1
- States: States 36, Home 111, First setup 38, Settings 87, State context 9, Screen parts 7
Interface Components
Buttons, lists, dialogs, steppers, keyboards and the rest, each drawn from the values it is given.
Its types
-
ActionBarProps59 files outside include it -
ActionSlot59 files outside include it -
DrawnActionBar59 files outside include it -
HeaderProps54 files outside include it -
HeaderStatus54 files outside include it -
KleidosMarkPixels54 files outside include it
Brand Logos
Used by 4
- UI: Unlock entry 1, Components 2
- States: States 2, First setup 1
Brand Logos
The drawing of a service's logo, at the size a screen has for it.
Its types
-
DrawOptions6 files outside include it -
AtlasSource0 files outside include it -
CoverageOutput0 files outside include it -
DecodeResult0 files outside include it -
PixelOutput0 files outside include it -
ScratchBuffer0 files outside include it
Buttons & Gestures
Used by 8
- UI: Unlock entry 5, Widgets 4, Components 3
- States: States 2, Home 14, First setup 6, Settings 26, State context 2
Buttons & Gestures
The gestures every screen and both dial styles rely on, over the input sources.
Its types
-
TouchGestureConfig22 files outside include it -
TouchGestureEvent22 files outside include it -
TouchGestureRecognizer22 files outside include it -
TouchSample22 files outside include it -
TouchListGeom17 files outside include it -
TouchListHit17 files outside include it
Uses 5
and 1 in the foundation
Render Canvas
Used by 13
- UI: Unlock entry 10, Popups 8, Widgets 1, Components 2, Gestures 1
- Entry point: Entry point 1
- Debug console: Debug console 2
- States: States 7, Home 16, First setup 8, Settings 16, State context 2, Screen parts 1
Render Canvas
The canvas over the display, the smooth shapes it draws, and the choice of how an e-paper panel refreshes.
Its types
-
RasterCanvas68 files outside include it -
EpaperFrameDecision4 files outside include it -
EpaperSettleController4 files outside include it -
Annulus3 files outside include it -
PixelRun3 files outside include it
Canvas, Theme & Layout
Used by 17
- UI: Login detail 6, Unlock entry 45, Popups 18, Settings view 4, Widgets 5, Components 103, Gestures 3, Canvas 5
- Entry point: Entry point 2
- Debug console: Debug console 8
- States: States 22, Home 71, First setup 34, Settings 57, State context 5, Screen parts 8, State rules 1
Canvas, Theme & Layout
What every screen draws with: the canvas, the design tokens, the theme, the roles of text and the rules of layout.
Its types
-
LayoutContext119 files outside include it -
Rect119 files outside include it -
SafeInsets119 files outside include it -
Canvas67 files outside include it -
Bands34 files outside include it -
BudgetCap34 files outside include it
Uses 4
and 3 in the foundation
BLE Facade & HID Manager
Used by 14
- BLE HID: Bonds 1, BLE stack 2
- Entry point: Entry point 2
- Debug console: Debug console 7
- States: States 4, Home 4, First setup 2, Settings 7, State context 4
- Admin panel: Admin panel 9
- UI: Settings view 1, Components 1
- Wipe: Wipe 1
- Network: Network 1
BLE Facade & HID Manager
The one entry point to Bluetooth for the screens and the admin panel, and the manager that runs the keyboard service behind it.
Its types
-
BondInfo44 files outside include it -
Facade44 files outside include it -
LinkInfo44 files outside include it -
PeerInfo44 files outside include it -
BleHidManager2 files outside include it -
IBleStack0 files outside include it
Uses 13
- BLE HID: Bonds 4, BLE stack 10, Connection 3, Pairing 3, HID profiles 6, BLE types 8
- Clock: Clock 2
and 6 in the foundation
- Platform: Storage 1, RTOS 2, Monotonic clock 3, Random 1, Log 2
- Utilities: Safe strings 1
Bond Storage
Used by 5
Bond Storage
The bonded hosts: their identity, the name the owner gave each, their order, and the removal of one.
Its types
-
NameStore4 files outside include it -
BondStore3 files outside include it -
NameStoreTask0 files outside include it
Uses 11
- BLE HID: BLE facade 1, BLE stack 3, Pairing 1, BLE types 2
and 7 in the foundation
- Platform: Sleep & clocks 1, Storage 2, RTOS 2, Memory & errors 1, Log 2
- Utilities: Safe strings 2, Utilities 1
BLE Stack Integration
Used by 4
- BLE HID: BLE facade 10, Bonds 3, Pairing 1
- Debug console: Debug console 3
BLE Stack Integration
The owner of NimBLE on core 0: the stack's task, the queue of commands to it and the bus of events from it.
Its types
-
NimBleHostAdapter6 files outside include it -
BleStackTask4 files outside include it -
BleCommandQueue3 files outside include it -
BleEventBus2 files outside include it -
HostLinkInfoone file outside includes it -
HostTaskStackone file outside includes it
Uses 13
- BLE HID: BLE facade 2, Bonds 1, Connection 1, Pairing 4, HID profiles 3, BLE types 4
and 7 in the foundation
- Platform: Sleep & clocks 1, Storage 1, RTOS 5, Memory & errors 1, Monotonic clock 1, Log 2
- Utilities: Safe strings 2
BLE Connection Management
Used by 2
- BLE HID: BLE facade 3, BLE stack 1
BLE Connection Management
The state of the link as one coherent snapshot, and the parameters of a connection and of advertising.
Its types
-
ConnParamSet2 files outside include it -
ConnectionManager2 files outside include it -
Snapshot2 files outside include it
Pairing & Numeric Comparison
Used by 4
- BLE HID: BLE facade 3, Bonds 1, BLE stack 4, HID profiles 1
Pairing & Numeric Comparison
Who may pair, connect and receive keystrokes, and the prompt that compares six digits on both screens.
Its types
-
Snapshot2 files outside include it -
ConnectKeystoreViewone file outside includes it
HID Profiles & Keyboard Tables
Used by 2
- BLE HID: BLE facade 6, BLE stack 3
HID Profiles & Keyboard Tables
From text to key presses: the typer, the codes of the keys, and the accented letters each keyboard layout can type.
Its types
-
HidProfile4 files outside include it -
BatteryNotifyLatch2 files outside include it -
HidTyperone file outside includes it -
IHidSinkone file outside includes it -
TypingResultone file outside includes it -
Latin1Entry0 files outside include it
BLE Types
Used by 10
- BLE HID: BLE facade 8, Bonds 2, BLE stack 4, Connection 1, HID profiles 3
- Debug console: Debug console 1
- States: Home 2, Settings 1, Screen parts 1
- Admin panel: Admin panel 2
BLE Types
The values every part of Bluetooth speaks: the keyboard layouts, the commands and events, the state of a session and of the stack, and the record of a host.
Its types
-
LayoutEntry9 files outside include it -
NameRecord5 files outside include it -
BleCommand3 files outside include it -
BleEvent3 files outside include it -
WaitBudget3 files outside include it
Backup, Import & Export
Used by 7
- Vault: Vault 1, Keys 1
- Entry point: Entry point 1
- Debug console: Debug console 5
- States: Home 7
- Admin panel: Admin panel 17, Panel rules 2
Backup, Import & Export
The sealed backup the admin panel and the SD card share, the import of other managers' CSV files, and the SD card's flows.
Its types
-
CsvImportResult11 files outside include it -
SdEnvelopeOpen11 files outside include it -
SdVault11 files outside include it -
BackupStats7 files outside include it -
CoalescingSink7 files outside include it -
RestoreContext7 files outside include it
Uses 19
- Vault: Vault 14, Repositories 8, Keys 5, Records 6
- Security: Security 4
- 2FA codes: 2FA codes 4
- Crypto: Crypto 13
- HAL: SD card 2
and 11 in the foundation
- Platform: Main loop 1, Sleep & clocks 3, Storage 15, RTOS 1, Memory & errors 3, Monotonic clock 4, Random 1, Log 9
- Build config: Build config 8
- Utilities: Containers 4, Safe strings 7
Vault Storage
Used by 16
- Vault: Backup 14, Repositories 6, Keys 1, Records 3
- Entry point: Entry point 3
- Debug console: Debug console 20
- States: States 4, Home 18, First setup 2, Settings 7, State context 3
- Admin panel: Admin panel 16, Panel rules 6
- UI: Login detail 1
- Wipe: Wipe 6
- Network: Network 1
Vault Storage
The encrypted vault: how logins, one-time-code secrets and saved networks are stored, listed, changed, backed up and re-keyed.
Its types
-
VaultIndexBatch58 files outside include it -
VaultStore58 files outside include it -
Credential29 files outside include it -
CredentialDetail29 files outside include it -
CredentialEntry29 files outside include it -
CredentialExtras29 files outside include it
Uses 22
- Vault: Backup 1, Repositories 19, Keys 24, Records 27
- Security: Security 2
- Brands: Brands 1
- 2FA codes: 2FA codes 2
- Crypto: Crypto 3
- Clock: Clock 1
and 13 in the foundation
- Platform: Main loop 2, Wi-Fi & HTTP 1, Sleep & clocks 1, Storage 12, RTOS 4, Memory & errors 1, Monotonic clock 2, Random 1, Log 14
- Build config: Build config 2
- Utilities: Containers 7, Safe strings 1, Utilities 1
Record Repositories
Used by 11
- Vault: Backup 8, Vault 19, Keys 2, Records 10
- Debug console: Debug console 3
- States: Settings 2, State context 3, State rules 1
- Admin panel: Admin panel 8, Panel rules 3
- Network: Network 1
Record Repositories
The store of each kind of record: logins, one-time-code secrets and saved networks, with the names of the groups and the order of the lists.
Its types
-
CredentialRecord20 files outside include it -
CredentialRepository20 files outside include it -
CredentialSlotPresence20 files outside include it -
TotpData20 files outside include it -
TotpRecord12 files outside include it -
TotpRepository12 files outside include it
Uses 10
and 5 in the foundation
Keys, Metadata & Rotation
Used by 10
- Vault: Backup 5, Vault 24, Repositories 5, Records 2
- Debug console: Debug console 1
- States: States 1, Settings 5
- Admin panel: Admin panel 12, Panel rules 1
- Wipe: Wipe 2
Keys, Metadata & Rotation
The vault's keys, the authenticated metadata that holds them wrapped, what a typed secret becomes before it is derived, and the key rotation.
Its types
-
DerivedKeys22 files outside include it -
VaultKeys22 files outside include it -
WrapKeys22 files outside include it -
MetaKekHalf18 files outside include it -
MetaRotState18 files outside include it -
MetaSecretKindSource18 files outside include it
Uses 9
and 3 in the foundation
Record Log & Envelopes
Used by 9
- Vault: Backup 6, Vault 27, Repositories 18, Keys 2
- Debug console: Debug console 1
- States: Home 3, State context 2
- Admin panel: Admin panel 6
- UI: Login detail 1
Record Log & Envelopes
The log the records are appended to, the binary form of a record, and the sealed envelope around it.
Its types
-
IndexEntry21 files outside include it -
RotationKeys21 files outside include it -
VaultIndex21 files outside include it -
EnvelopeContext13 files outside include it -
RecordStore9 files outside include it -
ByteScratch8 files outside include it
Uses 15
and 10 in the foundation
- Platform: Main loop 1, Sleep & clocks 1, Storage 3, RTOS 1, Memory & errors 2, Monotonic clock 1, Log 4
- Build config: Build config 1
- Utilities: Containers 5, Safe strings 1
Board Bring-up
Used by 6
- Entry point: Entry point 2
- Debug console: Debug console 4
- States: States 1, Home 2, Settings 1
- UI: Popups 3
Board Bring-up
The start of a board's hardware and its update on each tick.
Its names are functions and constants.
Uses 17
- HAL: Battery & sleep 3, Input 8, Display 2, Board description 3, Shake to lock 1, SD card 2
- Drivers: Audio 2, Motion sensors 2, Keyboards 2, RTC driver 2, I2C bus 2, Trackball 2
and 5 in the foundation
- Platform: Serial 3, GPIO & buses 5, RTOS 2, Log 2
- Build config: Build config 5
Clock Chip Back End
Used by 0
No other component uses it.
Clock Chip Back End
The wall clock kept by a BM8563 chip, on the boards that have one.
Its names are functions and constants.
Power, Battery & Parking
Used by 12
Power, Battery & Parking
How each board sleeps, why it woke, what its battery says, and how hardware that nothing is using is switched off.
Its types
-
PowerManager19 files outside include it -
Outcome5 files outside include it -
Reading5 files outside include it -
PowerManagerAXP21014 files outside include it -
PowerManagerAdcBatteryone file outside includes it -
PowerManagerM5PM1one file outside includes it
Uses 24
- HAL: Input 3, Display 4, Board description 4, Sound 2, Shake to lock 2, SD card 1, GPS time 1
- Drivers: Audio 1, Keyboards 1, Power chips 5, Chip registers 3, I2C bus 4, Trackball 1
- Clock: Clock 2
and 10 in the foundation
- Platform: Main loop 1, Wi-Fi & HTTP 3, Sleep & clocks 4, Storage 3, GPIO & buses 8, RTOS 6, Monotonic clock 6, Log 6
- Build config: Build config 11
- Utilities: Safe strings 1
Input Sources & the Wake Rule
Used by 16
- HAL: Bring-up 8, Battery & sleep 3
- Boards: Boards 16
- Entry point: Entry point 8
- Debug console: Debug console 17
- States: States 7, Home 19, First setup 4, Settings 20, State context 9, Screen parts 2
- Admin panel: Admin panel 1
- UI: Unlock entry 8, Popups 11, Widgets 4, Gestures 2
Input Sources & the Wake Rule
Buttons, keyboards, trackball and touch behind four interfaces, and the rule that the first input on a dark panel only wakes it.
Its types
-
TouchInput43 files outside include it -
TouchPoint43 files outside include it -
KeyboardInput34 files outside include it -
Plan34 files outside include it -
Slot34 files outside include it -
State34 files outside include it
Uses 10
and 5 in the foundation
- Platform: GPIO & buses 1, Monotonic clock 15, Log 3
- Build config: Build config 13
- Utilities: Containers 1
Display
Used by 22
- HAL: Bring-up 2, Battery & sleep 4, Input 1
- Boards: Board support 3
- Entry point: Entry point 2
- Debug console: Debug console 11
- States: States 7, Home 17, First setup 7, Settings 20, State context 1, Screen parts 2
- Admin panel: Display stream 2
- UI: Unlock entry 10, Popups 9, Settings view 1, Widgets 1, Components 29, Logos 3, Gestures 1, Canvas 2, Theme & layout 5
Display
The panel: its surface, its text, its frames and its light.
Its types
-
PanelIdentity89 files outside include it -
PanelMemoryCell89 files outside include it -
PanelMemoryInfo89 files outside include it -
ShadowFramebufferInfo89 files outside include it -
SpiBusStatus89 files outside include it -
TextBox89 files outside include it
Uses 13
- Drivers: Panels 16, Power chips 3, Chip registers 3
and 10 in the foundation
- Platform: Sleep & clocks 3, GPIO & buses 7, RTOS 5, Memory & errors 4, Monotonic clock 4, Log 5
- Build config: Build config 9
- Utilities: Containers 4, Safe strings 2, Utilities 3
Board Description
Used by 17
- HAL: Bring-up 3, Battery & sleep 4, Input 5
- Boards: Boards 9
- Entry point: Entry point 2
- Debug console: Debug console 10
- States: States 4, Home 11, First setup 2, Settings 18, State context 3, Screen parts 1
- Admin panel: Admin panel 2
- UI: Unlock entry 2, Popups 5, Settings view 1, Widgets 3
Board Description
The record of a board's hardware, where it is registered, and how often a chip that has to be polled is read.
Its types
-
TouchReading45 files outside include it -
BoardDef5 files outside include it -
PollPeriod5 files outside include it
Sound: Catalog, Renderers & Speaker
Used by 4
Sound: Catalog, Renderers & Speaker
The sounds as data, the two renderers that turn one into what a board plays, and the task that plays it.
Its types
-
AudioFeedback11 files outside include it -
StreamStats4 files outside include it -
Digest0 files outside include it -
Entry0 files outside include it -
Note0 files outside include it -
PwmSequencer0 files outside include it
Uses 9
- Drivers: Audio 2, Power chips 1, I2C bus 1
and 6 in the foundation
- Platform: Storage 1, GPIO & buses 3, RTOS 1, Monotonic clock 1, Log 3
- Build config: Build config 4
Motion & Shake-to-Lock
Used by 8
Motion & Shake-to-Lock
The shake that locks the device, and the motion sensor behind it.
Its types
-
ShakeSamples3 files outside include it -
ShakeDetector2 files outside include it -
MotionLineone file outside includes it
Uses 4
and 3 in the foundation
- Platform: Storage 1, Monotonic clock 2, Log 1
SD Card
Used by 9
- HAL: Bring-up 2, Battery & sleep 1
- Entry point: Entry point 2
- Debug console: Debug console 6
- States: Home 4, State context 1
- Admin panel: Admin panel 1
- Vault: Backup 2, Keys 1
SD Card
The SD card: mounting it for as long as an action lasts, formatting it, and settling it at boot, on the boards that have a slot.
Its types
-
SdCard20 files outside include it -
MountScope0 files outside include it
Uses 5
and 5 in the foundation
- Platform: Storage 2, GPIO & buses 1, RTOS 2, Log 1
- Build config: Build config 2
GPS Time Sync
Used by 6
GPS Time Sync
The time from a GPS receiver: one sync when the owner asks for it, and the receiver at rest otherwise.
Its types
-
GpsDiag9 files outside include it -
ParkReport9 files outside include it -
Session9 files outside include it -
SyncLogic0 files outside include it
Uses 7
and 5 in the foundation
- Platform: GPIO & buses 2, RTOS 2, Monotonic clock 1, Log 1
- Build config: Build config 2
Audio Drivers
Used by 4
- Boards: Board support 2
- HAL: Bring-up 2, Battery & sleep 1, Sound 2
Audio Drivers
The ES8311 codec, the ES7210 microphone converter, the AW88298 amplifier, and amplifiers switched by a power chip or a pin.
Its types
-
Es83112 files outside include it -
CodecFormatone file outside includes it -
IAudioAmpone file outside includes it -
IAudioCodecone file outside includes it -
Aw882980 files outside include it -
Axp192Amp0 files outside include it
Display Panel Drivers
Used by 2
Display Panel Drivers
The controllers of the panels: ST7789 and ILI9342 for color, SSD1681 and JD79653A for e-paper.
Its types
-
EpaperCommand3 files outside include it -
FlatToneFrame3 files outside include it -
GrayPassPlan3 files outside include it -
IEpaperController3 files outside include it -
LogicalPixel3 files outside include it -
MemoryAddress3 files outside include it
Uses 1
GPS Receiver Drivers
Used by 3
GPS Receiver Drivers
The GPS receivers the LILYGO T-Deck can carry, the probe that finds which one is fitted, and the park that keeps it asleep.
Its types
-
IGps2 files outside include it -
TimeParser2 files outside include it -
UtcFix2 files outside include it -
GpsCfgValueone file outside includes it -
GpsSatInfoone file outside includes it -
GpsStatusone file outside includes it
Uses 8
and 6 in the foundation
- Platform: Storage 1, GPIO & buses 7, RTOS 4, Monotonic clock 2, Log 3
- Build config: Build config 6
Motion Sensor Drivers
Used by 2
- HAL: Bring-up 2, Shake to lock 1
Motion Sensor Drivers
The BMI270 and MPU6886 motion sensors, and a stand-in for the boards with none.
Its types
-
IImuone file outside includes it -
AnyMotionConfig0 files outside include it -
Bmi2700 files outside include it -
ConfigImage0 files outside include it -
ConfigurationEvidence0 files outside include it -
InitAddr0 files outside include it
Uses 8
and 6 in the foundation
- Platform: Sleep & clocks 1, RTOS 2, Memory & errors 1, Monotonic clock 2, Log 3
- Build config: Build config 2
Keyboard Drivers
Used by 6
Keyboard Drivers
The M5Cardputer ADV's key-matrix controller and the LILYGO T-Deck's keyboard.
Its types
-
IKeyboardController7 files outside include it -
LilygoKeyboard0 files outside include it -
NullKeyboardController0 files outside include it -
Tca84180 files outside include it
Uses 5
and 3 in the foundation
Power Chip Drivers
Used by 5
- Drivers: Audio 1
- Diagnostics: Diagnostics 1
- HAL: Battery & sleep 5, Display 3, Sound 1
Power Chip Drivers
The power chips: battery, power key, the supply of the parts, and switching the board off.
Its types
-
CoulombRaw2 files outside include it -
IPmic2 files outside include it -
Py32Pmic2 files outside include it -
Aw9523one file outside includes it -
Axp192one file outside includes it -
Axp2101one file outside includes it
Clock Chip Driver
Used by 2
- HAL: Bring-up 2, RTC back end 1
Clock Chip Driver
The BM8563 clock chip.
Its types
-
IRtcone file outside includes it -
Bm85630 files outside include it
Touch Controller Drivers
Touch Controller Drivers
The FT6x36 and GT911 touch controllers.
Its types
-
Gt911one file outside includes it -
ITouchone file outside includes it -
TouchContactone file outside includes it -
Ft6x360 files outside include it
Uses 7
and 5 in the foundation
- Platform: GPIO & buses 2, RTOS 1, Memory & errors 1, Monotonic clock 1, Log 1
Register Introspection
Used by 13
- Drivers: Audio 4, Panels 5, GPS receivers 1, Motion sensors 4, Keyboards 2, Power chips 10, RTC driver 6, Touch 2
- Debug console: Debug console 8
- Admin panel: Admin panel 1, Panel rules 1
- HAL: Battery & sleep 3, Display 3
Register Introspection
The tables of a chip's registers that the serial console prints.
Its types
-
ChipRegmap24 files outside include it -
EnumEntry24 files outside include it -
RegDesc24 files outside include it -
RegField24 files outside include it -
RegIo3 files outside include it -
I2cRegIo2 files outside include it
Uses 4
and 3 in the foundation
I2C Bus
Used by 13
- Drivers: Audio 4, Motion sensors 4, Keyboards 2, Power chips 8, RTC driver 1, Touch 1, Chip registers 1
- Debug console: Debug console 3
- States: Screen parts 1
- HAL: Bring-up 2, RTC back end 2, Battery & sleep 4, Sound 1
I2C Bus
The board's internal I2C bus, and reading and writing the registers of a chip on it.
Its types
-
I2cDevice21 files outside include it -
Pins11 files outside include it -
BusGatedProbe2 files outside include it
Trackball Driver
Used by 4
- Debug console: Debug console 1
- HAL: Bring-up 2, Battery & sleep 1, Input 2
Trackball Driver
The trackball: four direction lines and a click.
Its types
-
ITrackball4 files outside include it -
QuadratureSteps4 files outside include it -
NullTrackball0 files outside include it -
QuadratureTrackball0 files outside include it -
QuadratureTrackballPins0 files outside include it
Uses 6
and 6 in the foundation
- Platform: GPIO & buses 1, RTOS 1, Memory & errors 1, Monotonic clock 1, Log 2
- Build config: Build config 1
Main Loop & Hooks
Used by 14
- QA host: QA host 3
- Entry point: Entry point 1
- Debug console: Debug console 5
- States: Home 1, Settings 3, State context 1, State rules 1
- UI: Unlock entry 6, Popups 4
- Vault: Backup 1, Vault 2, Records 1
- Crypto: Crypto 1
- HAL: Battery & sleep 1
Main Loop & Hooks
The task that runs the firmware, and the hooks through which code calls a module above it without knowing it.
Its types
-
DebugSleepKnobs10 files outside include it -
WaitPumpScope10 files outside include it -
WaitPumpStep10 files outside include it -
WaitPumpTally10 files outside include it
Wi-Fi & HTTP Server
Used by 8
Wi-Fi & HTTP Server
Wi-Fi as an access point and as a station, the HTTP server, the time from the network, and addresses.
Its types
-
Server11 files outside include it -
ServerConfig11 files outside include it -
TestBackend11 files outside include it -
PhyCalibration10 files outside include it -
PhySettings10 files outside include it -
Protocols10 files outside include it
Uses 7
and 7 in the foundation
- Platform: Sleep & clocks 2, Storage 1, RTOS 6, Monotonic clock 1, Log 4
- Utilities: Containers 1, Safe strings 3
Power, Sleep & System Control
Used by 28
- Platform: Wi-Fi & HTTP 2
- Boards: Board support 3
- QA host: QA host 3
- Entry point: Entry point 7
- Debug console: Debug console 23
- States: States 9, Home 3, First setup 3, Settings 3, State context 3, Screen parts 2, State rules 1
- Admin panel: Display stream 1, Admin panel 17
- UI: Settings view 1
- Wipe: Wipe 1
- BLE HID: Bonds 1, BLE stack 1
- Diagnostics: Diagnostics 4
- Vault: Backup 3, Vault 1, Records 1
- Crypto: Crypto 1
- HAL: RTC back end 1, Battery & sleep 4, Display 3
- Drivers: Motion sensors 1
- Clock: Clock 3
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.
Its types
-
ChipInfo40 files outside include it -
ClockInfo40 files outside include it -
FirmwareInfo40 files outside include it -
HeapBlock40 files outside include it -
HeapRegion40 files outside include it -
HeapStats40 files outside include it
Uses 9
and 9 in the foundation
- Platform: Storage 1, Serial 1, GPIO & buses 3, RTOS 5, Memory & errors 3, Monotonic clock 4, Log 3
- Build config: Build config 1
- Utilities: Safe strings 1
Storage
Used by 35
- Platform: Wi-Fi & HTTP 1, Sleep & clocks 1
- Boards: Board support 3
- Entry point: Entry point 5
- Debug console: Debug console 22
- States: States 5, Home 4, First setup 1, Settings 4, State context 1, Screen parts 1
- Admin panel: Admin panel 9, Panel rules 1
- UI: Settings view 2, Theme & layout 1
- Wipe: Wipe 3
- Network: Network 1
- BLE HID: BLE facade 1, Bonds 2, BLE stack 1, HID profiles 1
- Vault: Backup 15, Vault 12, Repositories 6, Records 3
- Security: Security 2
- 2FA codes: 2FA codes 1
- Languages: Languages 1
- Crypto: Crypto 2
- HAL: Battery & sleep 3, Sound 1, Shake to lock 1, SD card 2
- Drivers: GPS receivers 1
- Clock: Clock 3
Storage
LittleFS, NVS, the SD card's file system, the writer of updates, and what the security fuses say.
Its types
-
NvsStats43 files outside include it -
NvsStore43 files outside include it -
BlankWalkRecord32 files outside include it -
LittleFsGuard32 files outside include it -
MapWindow32 files outside include it -
MappedVaultCheck32 files outside include it
Uses 8
and 7 in the foundation
- Platform: Serial 1, GPIO & buses 4, RTOS 7, Memory & errors 2, Monotonic clock 2, Log 4
- Utilities: Safe strings 3
Serial Transport
Used by 8
Serial Transport
The serial line of a debug build, over a UART or the chip's USB.
Its types
-
DropStats40 files outside include it -
LineGuard40 files outside include it -
LineWaitone file outside includes it
GPIO & Buses
Used by 23
- Platform: Sleep & clocks 3, Storage 4
- Boards: Board support 9
- Entry point: Entry point 1
- Debug console: Debug console 12
- States: Screen parts 1
- Admin panel: Admin panel 1
- Vault: Keys 1
- 2FA codes: 2FA codes 1
- Crypto: Crypto 5
- HAL: Bring-up 5, Battery & sleep 8, Input 1, Display 7, Sound 3, SD card 1, GPS time 2
- Drivers: Audio 1, GPS receivers 7, Keyboards 4, Touch 2, I2C bus 1, Trackball 1
GPIO & Buses
GPIO, I2C, SPI, UART, PWM, I2S and ADC, the USB pads, the die's temperature, and the lock of the crypto hardware.
Its types
-
Config31 files outside include it -
PadState31 files outside include it -
Counters14 files outside include it -
AudioHold10 files outside include it -
ScopedLock10 files outside include it -
BusConfig5 files outside include it
RTOS Facade
Used by 38
- Platform: Main loop 2, Wi-Fi & HTTP 6, Sleep & clocks 5, Storage 7, Serial 1, GPIO & buses 2
- QA host: QA host 3
- Entry point: Entry point 4
- Debug console: Debug console 29
- States: States 1, Home 6, Settings 3, State context 2
- Admin panel: Display stream 1, Admin panel 2
- UI: Popups 6
- Network: Network 1
- BLE HID: BLE facade 2, Bonds 2, BLE stack 5, Connection 1
- Diagnostics: Diagnostics 7
- Vault: Backup 1, Vault 4, Records 1
- 2FA codes: 2FA codes 2
- Crypto: Crypto 5
- HAL: Bring-up 2, Battery & sleep 6, Display 5, Sound 1, SD card 2, GPS time 2
- Drivers: GPS receivers 4, Motion sensors 2, Power chips 3, Touch 1, Trackball 1
RTOS Facade
Tasks and the core each runs on, queues, semaphores, critical sections, delays and the task watchdog.
Its types
-
Config43 files outside include it -
ScopedTimeout43 files outside include it -
BinarySemaphore8 files outside include it -
CriticalIsrLock8 files outside include it -
CriticalLock8 files outside include it -
CriticalMux8 files outside include it
Platform Memory & Errors
Used by 24
- Platform: Sleep & clocks 3, Storage 2
- Entry point: Entry point 1
- Debug console: Debug console 10
- States: Home 3, State context 1, Screen parts 1
- Admin panel: Display stream 1, Admin panel 7
- UI: Components 2, Logos 1
- Network: Network 1
- BLE HID: Bonds 1, BLE stack 1
- Diagnostics: Diagnostics 1
- Vault: Backup 3, Vault 1, Repositories 2, Records 2
- Crypto: Crypto 2
- HAL: Display 4
- Drivers: Motion sensors 1, Touch 1, Trackball 1
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.
Its types
-
InternalArrayDeleter25 files outside include it -
InternalDeleter25 files outside include it -
LargeArrayDeleter25 files outside include it -
LargeDeleter25 files outside include it -
FallbackAttempt3 files outside include it -
Record3 files outside include it
Uses 0
It includes no other component.
Monotonic Clock & Deadlines
Used by 50
- Platform: Main loop 1, Wi-Fi & HTTP 1, Sleep & clocks 4, Storage 2, Serial 2, GPIO & buses 1
- Boards: Board support 3
- QA host: QA host 3
- Entry point: Entry point 2
- Debug console: Debug console 18
- States: States 5, Home 13, First setup 5, Settings 12, State context 3, Screen parts 2, State rules 2
- Admin panel: Display stream 1, Admin panel 11
- UI: Unlock entry 10, Notices 1, Popups 8, Widgets 1, Gestures 4, Theme & layout 1
- Network: Network 1
- BLE HID: BLE facade 3, BLE stack 1, Pairing 3
- Diagnostics: Diagnostics 4
- Vault: Backup 4, Vault 2, Records 1
- Security: Security 1
- 2FA codes: 2FA codes 1
- Crypto: Crypto 1
- HAL: RTC back end 1, Battery & sleep 6, Input 15, Display 4, Board description 1, Sound 1, Shake to lock 2, GPS time 1
- Drivers: GPS receivers 2, Motion sensors 2, Touch 1, Chip registers 1, Trackball 1
- Clock: Clock 1
Monotonic Clock & Deadlines
The time since boot, and deadlines that stay right when it wraps.
Its types
-
Deadline177 files outside include it
Uses 0
It includes no other component.
Random Numbers
Used by 9
Random Numbers
Random bytes from the chip's hardware generator.
Its names are functions and constants.
Uses 0
It includes no other component.
Logging
Used by 54
- Platform: Main loop 2, Wi-Fi & HTTP 4, Sleep & clocks 3, Storage 4, GPIO & buses 9, RTOS 1
- Boards: Board support 3
- QA host: QA host 1
- Entry point: Entry point 2
- Debug console: Debug console 12
- States: States 6, Home 10, First setup 2, Settings 12, State context 3, Screen parts 1
- Admin panel: Display stream 1, Admin panel 24
- UI: Unlock entry 3, Popups 1
- Wipe: Wipe 3
- Network: Network 3
- BLE HID: BLE facade 2, Bonds 2, BLE stack 2, Pairing 1, HID profiles 1
- Diagnostics: Diagnostics 3
- Vault: Backup 9, Vault 14, Repositories 4, Keys 1, Records 4
- Security: Security 2
- 2FA codes: 2FA codes 1
- Crypto: Crypto 6
- HAL: Bring-up 2, Battery & sleep 6, Input 3, Display 5, Board description 1, Sound 3, Shake to lock 1, SD card 1, GPS time 1
- Drivers: Audio 4, GPS receivers 3, Motion sensors 3, Keyboards 3, Power chips 6, RTC driver 2, Touch 1, I2C bus 1, Trackball 2
Logging
The log: one macro for each level, dropped when it is compiled below the level of the build.
Its types
-
SilenceGuard209 files outside include it
Uses 0
It includes no other component.
in Utilities
Fixed-Capacity Containers
Used by 26
- Entry point: Entry point 1
- Debug console: Debug console 12
- States: States 4, Home 13, First setup 4, Settings 6, State context 1
- Admin panel: Display stream 1, Admin panel 24, Panel rules 1
- UI: Login detail 2, Unlock entry 8, Popups 2, Settings view 2, Components 2
- BLE HID: BLE types 1
- Vault: Backup 4, Vault 7, Repositories 8, Records 5
- 2FA codes: 2FA codes 1
- HAL: Input 1, Display 4
- Drivers: Chip registers 1
- Platform: Main loop 1, Wi-Fi & HTTP 1
Fixed-Capacity Containers
Text, lists, queues and functions that keep what they hold inside themselves and never allocate.
Its types
-
InplaceString101 files outside include it -
InplaceVector11 files outside include it -
InplaceFunction< R(Args...), Capacity >4 files outside include it -
InplaceQueueone file outside includes it
in Utilities
Safe Strings
Used by 31
- Utilities: Containers 1
- QA host: QA host 2
- Entry point: Entry point 1
- Debug console: Debug console 29
- States: States 5, Home 9, Settings 6
- Admin panel: Display stream 1, Admin panel 19, Panel rules 4
- UI: Popups 2, Components 1
- Network: Network 2
- BLE HID: BLE facade 1, Bonds 2, BLE stack 2
- Diagnostics: Diagnostics 2
- Vault: Backup 7, Vault 1, Records 1
- Brands: Brands 1
- 2FA codes: 2FA codes 1
- Crypto: Crypto 1
- HAL: Battery & sleep 1, Display 2
- Drivers: Chip registers 1
- Clock: Clock 1
- Platform: Wi-Fi & HTTP 3, Sleep & clocks 1, Storage 3, Serial 1
Safe Strings
Copies, comparisons and searches of C text that stay inside the space they are given.
Its names are functions and constants.
Uses 0
It includes no other component.
in Utilities
Utilities
Used by 10
- Utilities: Containers 1
- Debug console: Debug console 2
- States: States 1, Home 3
- UI: Components 2
- BLE HID: Bonds 1
- Diagnostics: Diagnostics 1
- Vault: Vault 1
- Crypto: Crypto 1
- HAL: Display 3
Utilities
Text, lists and queues that never use the heap, a checksum, and a wipe the compiler cannot drop.
Its names are functions and constants.
Uses 0
It includes no other component.
Two cores, and what is not allowed on each
The chip has two cores, and the division between them is a rule rather than a tendency.
-
Core 1: what you look at
The main loop, the state machine, the screen and the buttons. It never sits frozen waiting on a radio or on storage: while core 0 works, it keeps drawing from inside the wait, because every millisecond it spends waiting is a millisecond the device feels slow in your hand.
-
Core 0: what you wait for
The Bluetooth host, Wi-Fi and the web server, the filesystem, and the cryptography. Deriving the key runs here, with a progress indicator drawn on the other core, and at 240 MHz, the fastest clock the chip has, while the screens run at 80 MHz most of the time.
The tasks Kleidos creates
Kleidos defines twelve tasks of its own, and each board builds eleven to twelve of them. Every value in a row is read from the code that creates the task.
| Task | Core | Priority | Stack | Lives | What it does |
|---|---|---|---|---|---|
loopTask Main loop | core 1 | 1 | 8,704 bytes | from boot to sleep | Brings the board up once, then runs the loop that drives the screens, the buttons and the application's states. |
httpd Admin panel | core 0 | 5 | 8,192 bytes | for one state, session or boot | Start the web server that answers the browser on the device's access point with the admin page and its API, if it is not running. |
ble_stack BLE stack | core 0 | 4 | 6,144 bytes | from first use to sleep | Owns the Bluetooth stack: runs the commands the screens queue, handles the stack's events and publishes the link's state for the screens to read. |
kleidos-totp 2FA codes | core 0 | 4 | 3,072 bytes | from boot to sleep | Computes the two-factor codes the screens show, so a code never waits behind an unlock. |
kleidos-vault Vault | core 0 | 3 | 10,752 to 16,492 bytes By board
| from boot to sleep | Runs every read and write of the encrypted vault and the unlock's key derivation, one request at a time, so the screens never touch the flash. |
kleidos-dns Admin panel | core 0 | 2 | 4,096 bytes | for one state, session or boot | Answers every name a phone or computer on the device's access point looks up with the device's own address, so its browser opens the admin page. |
kleidos-sd-settle SD card on Cardputer, Core2, CoreS3 SE, and T-Deck | core 0 | 2 | 6,144 bytes | for one state, session or boot | Wakes the memory card once at boot, at the board's own clock, records whether it answered and ends. Nothing is mounted. |
name_store Bonds | core 0 | 2 | 3,328 bytes | from first use to sleep | Reads and writes the names of the paired hosts in flash, one request at a time, so those writes never race the Bluetooth controller's own. |
ntpsync Network | core 0 | 2 | 8,192 bytes | for one state, session or boot | Joins a saved Wi-Fi network, asks the time servers for the time, sets the clock, leaves the network and ends. |
speaker Sound | core 0 | 2 | 3,072 bytes | from first use to sleep | Plays the queued sounds and tones one after another, so a screen never waits for a sound to end. |
admincrypto Crypto | core 0 | 1 | 3,072 bytes | for one state, session or boot | Runs the slow key derivation of an encrypted backup made or restored from a browser, one job at a time, below everything else on its core. |
telem Diagnostics | core 0 | 1 | 3,072 bytes | for one state, session or boot | Keeps the time of a telemetry run: posts a tick at each sampling period for the main loop to read the sensors on, until the run is stopped. |
- loopTask
- Core: core 1
- Priority: 1 of 6
- Stack: 8,704 bytes
- Lives: from boot to sleep
- What it does: Brings the board up once, then runs the loop that drives the screens, the buttons and the application's states.
- httpd
- Core: core 0
- Priority: 5 of 6
- Stack: 8,192 bytes
- Lives: for one state, session or boot
- What it does: Start the web server that answers the browser on the device's access point with the admin page and its API, if it is not running.
- ble_stack
- Core: core 0
- Priority: 4 of 6
- Stack: 6,144 bytes
- Lives: from first use to sleep
- What it does: Owns the Bluetooth stack: runs the commands the screens queue, handles the stack's events and publishes the link's state for the screens to read.
- kleidos-totp
- Core: core 0
- Priority: 4 of 6
- Stack: 3,072 bytes
- Lives: from boot to sleep
- What it does: Computes the two-factor codes the screens show, so a code never waits behind an unlock.
- kleidos-vault
- Core: core 0
- Priority: 3 of 6
- Stack: 10,752 to 16,492 bytes
- Lives: from boot to sleep
- What it does: Runs every read and write of the encrypted vault and the unlock's key derivation, one request at a time, so the screens never touch the flash.
- kleidos-dns
- Core: core 0
- Priority: 2 of 6
- Stack: 4,096 bytes
- Lives: for one state, session or boot
- What it does: Answers every name a phone or computer on the device's access point looks up with the device's own address, so its browser opens the admin page.
- kleidos-sd-settle
- on Cardputer, Core2, CoreS3 SE, and T-Deck
- Core: core 0
- Priority: 2 of 6
- Stack: 6,144 bytes
- Lives: for one state, session or boot
- What it does: Wakes the memory card once at boot, at the board's own clock, records whether it answered and ends. Nothing is mounted.
- name_store
- Core: core 0
- Priority: 2 of 6
- Stack: 3,328 bytes
- Lives: from first use to sleep
- What it does: Reads and writes the names of the paired hosts in flash, one request at a time, so those writes never race the Bluetooth controller's own.
- ntpsync
- Core: core 0
- Priority: 2 of 6
- Stack: 8,192 bytes
- Lives: for one state, session or boot
- What it does: Joins a saved Wi-Fi network, asks the time servers for the time, sets the clock, leaves the network and ends.
- speaker
- Core: core 0
- Priority: 2 of 6
- Stack: 3,072 bytes
- Lives: from first use to sleep
- What it does: Plays the queued sounds and tones one after another, so a screen never waits for a sound to end.
- admincrypto
- Core: core 0
- Priority: 1 of 6
- Stack: 3,072 bytes
- Lives: for one state, session or boot
- What it does: Runs the slow key derivation of an encrypted backup made or restored from a browser, one job at a time, below everything else on its core.
- telem
- Core: core 0
- Priority: 1 of 6
- Stack: 3,072 bytes
- Lives: for one state, session or boot
- What it does: Keeps the time of a telemetry run: posts a tick at each sampling period for the main loop to read the sensors on, until the run is stopped.
Debug builds only: 11 more
| Task | Core | Priority | Stack | Lives | What it does |
|---|---|---|---|---|---|
kleidos-burn1 Debug console | core 1 | 1 | 2,048 bytes | for one state, session or boot | One burner: busy arithmetic in slices until the run's end or a stop. |
kleidos-prun-heat1 Debug console | core 1 | 1 | 2,048 bytes | for one state, session or boot | One heat task: integer arithmetic until the stop, yielding to a ready task of its priority after every stretch and blocking 1 ms every kHeatSliceMs. At each block it also ends on its own once the heat has outlived its phase or gone unchecked (pthermal::kHeatGraceMs), so a loop held by a console handler never leaves the cores spinning. |
kleidos-stackprobe Debug console | core 1 | 1 | 3,072 bytes | for one state, session or boot | Entry point of the task that overflows its own stack. |
httpd Display stream | core 0 | 2 | 8,192 bytes | for one state, session or boot | Start the HTTP server and the GET /stream endpoint. |
kleidos-log Diagnostics | core 0 | 2 | 1,536 bytes | from boot to sleep | Writes the queued log lines to the serial port, so a log call never waits for the port. |
kleidos-prun-sd Debug console on Cardputer, Core2, CoreS3 SE, and T-Deck | core 0 | 2 | 6,144 bytes | for one state, session or boot | The card worker's task: its run, then the flag the runner reads, then its end. |
sharace_audio Debug console | core 0 | 2 | 2,048 bytes | for one state, session or boot | Audio task entry: play continuous 1 kHz tones until s_sharaceStop is set. |
kleidos-burn0 Debug console | core 0 | 1 | 2,048 bytes | for one state, session or boot | One burner: busy arithmetic in slices until the run's end or a stop. |
kleidos-prun-heat0 Debug console | core 0 | 1 | 2,048 bytes | for one state, session or boot | One heat task: integer arithmetic until the stop, yielding to a ready task of its priority after every stretch and blocking 1 ms every kHeatSliceMs. At each block it also ends on its own once the heat has outlived its phase or gone unchecked (pthermal::kHeatGraceMs), so a loop held by a console handler never leaves the cores spinning. |
kleidos-vidsd Debug console | either core | 1 | 4,096 bytes | for one state, session or boot | The take's task: take the buffers, run the take, give them back. |
kleidos-vidser Debug console | either core | 1 | 4,096 bytes | for one state, session or boot | The take's task: take the buffers, run the take, give them back. |
- kleidos-burn1
- Core: core 1
- Priority: 1 of 6
- Stack: 2,048 bytes
- Lives: for one state, session or boot
- What it does: One burner: busy arithmetic in slices until the run's end or a stop.
- kleidos-prun-heat1
- Core: core 1
- Priority: 1 of 6
- Stack: 2,048 bytes
- Lives: for one state, session or boot
- What it does: One heat task: integer arithmetic until the stop, yielding to a ready task of its priority after every stretch and blocking 1 ms every kHeatSliceMs. At each block it also ends on its own once the heat has outlived its phase or gone unchecked (pthermal::kHeatGraceMs), so a loop held by a console handler never leaves the cores spinning.
- kleidos-stackprobe
- Core: core 1
- Priority: 1 of 6
- Stack: 3,072 bytes
- Lives: for one state, session or boot
- What it does: Entry point of the task that overflows its own stack.
- httpd
- Core: core 0
- Priority: 2 of 6
- Stack: 8,192 bytes
- Lives: for one state, session or boot
- What it does: Start the HTTP server and the GET /stream endpoint.
- kleidos-log
- Core: core 0
- Priority: 2 of 6
- Stack: 1,536 bytes
- Lives: from boot to sleep
- What it does: Writes the queued log lines to the serial port, so a log call never waits for the port.
- kleidos-prun-sd
- on Cardputer, Core2, CoreS3 SE, and T-Deck
- Core: core 0
- Priority: 2 of 6
- Stack: 6,144 bytes
- Lives: for one state, session or boot
- What it does: The card worker's task: its run, then the flag the runner reads, then its end.
- sharace_audio
- Core: core 0
- Priority: 2 of 6
- Stack: 2,048 bytes
- Lives: for one state, session or boot
- What it does: Audio task entry: play continuous 1 kHz tones until s_sharaceStop is set.
- kleidos-burn0
- Core: core 0
- Priority: 1 of 6
- Stack: 2,048 bytes
- Lives: for one state, session or boot
- What it does: One burner: busy arithmetic in slices until the run's end or a stop.
- kleidos-prun-heat0
- Core: core 0
- Priority: 1 of 6
- Stack: 2,048 bytes
- Lives: for one state, session or boot
- What it does: One heat task: integer arithmetic until the stop, yielding to a ready task of its priority after every stretch and blocking 1 ms every kHeatSliceMs. At each block it also ends on its own once the heat has outlived its phase or gone unchecked (pthermal::kHeatGraceMs), so a loop held by a console handler never leaves the cores spinning.
- kleidos-vidsd
- Core: either core
- Priority: 1 of 6
- Stack: 4,096 bytes
- Lives: for one state, session or boot
- What it does: The take's task: take the buffers, run the take, give them back.
- kleidos-vidser
- Core: either core
- Priority: 1 of 6
- Stack: 4,096 bytes
- Lives: for one state, session or boot
- What it does: The take's task: take the buffers, run the take, give them back.
ESP-IDF's own tasks (the Wi-Fi driver, the TCP/IP stack, the Bluetooth controller and host, the timers) are not in the table; the web server is, because Kleidos starts it and chooses its core.
A queue or a lock that either of two tasks could reach first is built before the task that consumes it exists, or inside a call that happens once. Checking whether it is null and creating it if so is the bug that looks correct: both cores pass that check, each builds its own, and nobody ever waits on one of the two.
A drawing of one unlock to scale, core by core, waits until every board's unlock has been measured: I will not draw a time I have not read on all of them.
One tree, nine boards
A board is a configuration, not a copy of the firmware.
Each board is a handful of files: its pin map and parts list, its build settings, the partition layout it picks from a shared set, and its own numbers, among them the current it draws asleep, which the measurements page prints and which is declared only once the measurement system has read it. The firmware builds on ESP-IDF 6.0.3 with no Arduino core in it, as C++26, with every compiler warning treated as an error. A guard reads all nine boards and fails on an inconsistency between them: thirty-odd invariants, including that every build carries exactly one key-derivation work factor, and that the serial console cannot be compiled into a production image.
Every board has up to five builds: an open development one, two that never ship (a debug one, and a stress one that runs the debug build at the real key-derivation cost to time it), an open production one, and a hardened one that irreversibly burns one-time fuses on its first boot. Three boards have no hardened build, because 4 MB of flash does not hold two update slots and a signed bootloader.