Visible to Intel only — GUID: mwh1416946813823
Ixiasoft
Visible to Intel only — GUID: mwh1416946813823
Ixiasoft
8.2. The HAL Peripheral-Specific API
If the peripheral does not belong to one of the HAL generic device model classes, you need to provide a device driver with an interface that is specific to the hardware implementation. In this case, the API to the device is separate from the HAL API. Programs access the hardware by calling the functions you provide, not the HAL API.
The up-front effort to implement integration in the HAL API is higher, but you gain the benefit of the HAL and C standard library API to manipulate devices.
For details about integration in the HAL API, refer to the “Integrating a Device Driver in the HAL” chapter.
All the other sections in this chapter apply to integrating drivers in the HAL API and creating drivers with a peripheral-specific API.