Configuration Reference
Normative
The configuration items a conformant Port driver MUST support (CHI-PORT-MUST-13). The configuration toolchain, data structure, and file schema are implementation-defined; vendor extensions are allowed. For a worked example see Configuration. The model follows the common configuration structure in the General part.
General
Property |
Type |
Description |
|---|---|---|
|
bool |
If true, development error checking and reporting is enabled (see Errors). |
Configuration set, ports, and pins
Property |
Type |
Description |
|---|---|---|
|
str |
Name of the configuration set; must be a valid C identifier. |
|
List[Port] |
Per-port configurations. Size ≥ 1; maximum is implementation-defined. |
Property |
Type |
Description |
|---|---|---|
|
int |
Physical port id. Range |
|
str or null |
Optional alias; generates |
|
List[Pin] |
Per-pin configurations for this port. Size ≥ 1; maximum implementation-defined. |
A port may carry additional hardware-dependent, implementation-defined properties.
Property |
Type |
Description |
|---|---|---|
|
int |
Physical pin id within the port. Range |
|
str or null |
Optional alias; generates |
|
impl-defined |
Pin function mode (e.g. GPIO, PWM, analog, bus alternate function). The available set is hardware-dependent; the tool should offer only the modes the pin supports. |
|
PinValue |
Initial output value: |
|
Direction |
|
|
EventHandlingMode |
|
Note
mode and direction are applied by Port_Init and are fixed at runtime; only edge
detection is settable afterwards (Port_SetEdgeDetection).