|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
Single source of truth for plugin-accessible GPIO pins. More...
#include <cstddef>#include <cstdint>Go to the source code of this file.
Namespaces | |
| namespace | cdc |
| namespace | cdc::plugin_manager |
| namespace | cdc::plugin_manager::gpio_policy |
Functions | |
| bool | cdc::plugin_manager::gpio_policy::isBlocked (uint8_t pin) |
| bool | cdc::plugin_manager::gpio_policy::isAllowed (uint8_t pin) |
Variables | |
| constexpr uint8_t | cdc::plugin_manager::gpio_policy::BLOCKED [] |
| constexpr uint8_t | cdc::plugin_manager::gpio_policy::ALLOWED [] |
| constexpr size_t | cdc::plugin_manager::gpio_policy::BLOCKED_COUNT = sizeof(BLOCKED) / sizeof(BLOCKED[0]) |
| constexpr size_t | cdc::plugin_manager::gpio_policy::ALLOWED_COUNT = sizeof(ALLOWED) / sizeof(ALLOWED[0]) |
Single source of truth for plugin-accessible GPIO pins.
Shared by CapabilityChecker (manifest validation) and GpioSerialCommands (raw user shell). Both must use the same allow/block lists so the device cannot be poked into an unsafe pin via either route.
Mirrors hw_config.h - update both files together when board wiring changes.
Definition in file PluginGpioPolicy.h.