HAL Interfaces

The HAL supports separate interfaces for many peripherals. A brief description of the interfaces are shown below.

Hal Name** Interface File ****Description **
bsphal_bsp.hAn hardware independent interface to identify and access underlying BSP.
flash api for apps to usehal_flash.hA blocking interface to access flash memory.
flash api for drivers to implementflash_map.hAn interface to query information about the flash map (regions and sectors)
gpiohal_gpio.hAn interface for manipulating General Purpose Inputs and Outputs.
i2chal_i2c.hAn interface for controlling Inter-Integrated-Circuit (i2c) devices.
OS tickhal_os_tick.hAn interface to set up interrupt timers or halt CPU in terms of OS ticks.
spihal_spi.hAn interface for controlling Serial Peripheral Interface (SPI) devices.
systemhal_system.hAn interface for starting and resetting the system.
timerhal_cputime.hAn interface for configuring and running HW timers
uarthal_uart.hAn interface for communicating via asynchronous serial interface.
watchdoghal_watchdog.hAn interface for enabling internal hardware watchdogs.