Reference
Normative
The shared type system, compiler abstraction, and services every Chiisai HAL driver builds on. A conformant driver MUST provide and use these definitions (see Requirements, CHI-GEN-MUST-09 and CHI-GEN-MUST-10). Keywords per Requirement Keywords.
Shared components at a glance
flowchart LR
subgraph types["Types"]
StdTypes["Std_Types.h"]
Plat["Platform_Types.h"]
Com["ComStack_Types.h"]
end
subgraph compiler["Compiler abstraction"]
CompH["Compiler.h"]
CompCfg["Compiler_Cfg.h"]
end
subgraph services["Services & utilities"]
Log["LogM.h"]
Sch["SchM_<Mip>.h"]
OsH["Os.h"]
StdLib["Std_Lib.h"]
end
subgraph memmap["Memory mapping"]
MemMap["<Mip>_MemMap.h"]
end
StdLib --> StdTypes
Log --> StdTypes
Sch --> StdTypes
StdTypes --> CompH
CompH --> CompCfg
StdTypes --> Plat
Shared foundation headers and how they include one another (arrows mean “includes / depends on”). ComStack_Types.h, Os.h, and the memory-mapping header are used directly by a driver.
The diagram at a glance — one line per header, in the same order as the groups above:
Group |
Header |
What it provides |
|---|---|---|
Types |
|
The standard API return type and constants: |
Types |
|
Fixed-width integer and float types plus the CPU architecture-description macros
( |
Types |
|
Communication-stack PDU types ( |
Compiler abstraction |
|
Portability basics and the declaration macros — |
Compiler abstraction |
|
The module-specific memory-class definitions ( |
Services & utilities |
|
Log Manager: the log levels ( |
Services & utilities |
|
Critical-section brackets |
Services & utilities |
|
The |
Services & utilities |
|
Shared buffer helpers |
Memory mapping |
|
The memory-mapping header; included once per section ( |
Types and constants at a glance
Group |
Header |
Contents |
|---|---|---|
|
|
|
|
integer / float types, |
|
|
|
|
— |
the 16-bit module ids used in error reporting |
Compiler abstraction at a glance
Group |
Header |
Contents |
|---|---|---|
|
|
|
|
|
|
|
|
Services and utilities at a glance
Group |
Header |
Contents |
|---|---|---|
|
|
|
|
|
|
|
the |
|
|
|