|
ChibiOS/RT
2.5.1 |
|
Hardware Abstraction Layer.
Under ChibiOS/RT the set of the various device driver interfaces is called the HAL subsystem: Hardware Abstraction Layer. The HAL is the abstract interface between ChibiOS/RT application and hardware.
A device driver is usually split in two layers:
<driver>.c, the HLD implementation file. This file must be included in the Makefile in order to use the driver.<driver>.h, the HLD header file. This file is implicitly included by the HAL header file hal.h.<driver>_lld.c, the LLD implementation file. This file must be included in the Makefile in order to use the driver.<driver>_lld.h, the LLD header file. This file is implicitly included by the HLD header file.
Modules | |
| Configuration | |
HAL Driver Configuration. | |
| Abstract I/O Channels | |
| Abstract I/O Block Device | |
| MMC/SD Block Devices common ancestor | |
| HAL Driver | |
Hardware Abstraction Layer. | |
| PAL Driver | |
I/O Ports Abstraction Layer. | |
| SPI Driver | |
Generic SPI Driver. | |
| Serial Driver | |
Generic Serial Driver. | |