Visible to Intel only — GUID: prc1655798247579
Ixiasoft
Visible to Intel only — GUID: prc1655798247579
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.
All other sections in this chapter apply to integrating drivers in the HAL API and creating drivers with a peripheral-specific API.