Renz Bagaporo 0aa9ee5b24 esp32s3: delete duplicate esp32s3 5 лет назад
..
adc_hal.h 5425ef4ee4 hal: extract hal component from soc component 5 лет назад
adc_types.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
brownout_hal.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
cpu_hal.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
cpu_types.h 5425ef4ee4 hal: extract hal component from soc component 5 лет назад
dac_hal.h b2f390df01 hal: update link to HAL readme.md 5 лет назад
dac_types.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
dma_types.h a3cc43485f async memcpy: support async memcopy on esp32s2/s3 5 лет назад
esp_flash_err.h 5425ef4ee4 hal: extract hal component from soc component 5 лет назад
gdma_hal.h a3cc43485f async memcpy: support async memcopy on esp32s2/s3 5 лет назад
gpio_hal.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
gpio_types.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
hal_defs.h 5425ef4ee4 hal: extract hal component from soc component 5 лет назад
i2c_hal.h b2f390df01 hal: update link to HAL readme.md 5 лет назад
i2c_types.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
i2s_hal.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
i2s_types.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
interrupt_controller_hal.h 2e826b7a8f intr_alloc: split interrupt allocator into common-code and platform-code 5 лет назад
interrupt_controller_types.h 2e826b7a8f intr_alloc: split interrupt allocator into common-code and platform-code 5 лет назад
ledc_hal.h b2f390df01 hal: update link to HAL readme.md 5 лет назад
ledc_types.h 1966f00f0b soc: updates caps usage 5 лет назад
mcpwm_hal.h b2f390df01 hal: update link to HAL readme.md 5 лет назад
mcpwm_types.h 5425ef4ee4 hal: extract hal component from soc component 5 лет назад
mpu_hal.h 5425ef4ee4 hal: extract hal component from soc component 5 лет назад
mpu_types.h 5425ef4ee4 hal: extract hal component from soc component 5 лет назад
pcnt_hal.h 153e819e8a pcnt: add rotary encoder example 5 лет назад
pcnt_types.h 5425ef4ee4 hal: extract hal component from soc component 5 лет назад
readme.md 5425ef4ee4 hal: extract hal component from soc component 5 лет назад
rmt_hal.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
rmt_types.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
rtc_hal.h 2bcf99527c soc: move out rtc_hal to hal component 5 лет назад
rtc_io_hal.h 0aa9ee5b24 esp32s3: delete duplicate esp32s3 5 лет назад
rtc_io_types.h 5425ef4ee4 hal: extract hal component from soc component 5 лет назад
sdio_slave_hal.h b2f390df01 hal: update link to HAL readme.md 5 лет назад
sdio_slave_ll.h b2f390df01 hal: update link to HAL readme.md 5 лет назад
sdio_slave_types.h 5425ef4ee4 hal: extract hal component from soc component 5 лет назад
sha_types.h 949fb8e63a SHA: add HAL layer and refactor driver 5 лет назад
sigmadelta_hal.h b2f390df01 hal: update link to HAL readme.md 5 лет назад
sigmadelta_types.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
soc_hal.h 5425ef4ee4 hal: extract hal component from soc component 5 лет назад
spi_flash_hal.h b2f390df01 hal: update link to HAL readme.md 5 лет назад
spi_flash_types.h 5425ef4ee4 hal: extract hal component from soc component 5 лет назад
spi_hal.h 1966f00f0b soc: updates caps usage 5 лет назад
spi_slave_hal.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
spi_slave_hd_hal.h 1e1beb69aa spi: fix build fail issue when target is esp32s3 5 лет назад
spi_types.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
systimer_hal.h 5425ef4ee4 hal: extract hal component from soc component 5 лет назад
systimer_types.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
timer_hal.h 1966f00f0b soc: updates caps usage 5 лет назад
timer_types.h 1966f00f0b soc: updates caps usage 5 лет назад
touch_sensor_hal.h b2f390df01 hal: update link to HAL readme.md 5 лет назад
touch_sensor_types.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
twai_hal.h b2f390df01 hal: update link to HAL readme.md 5 лет назад
twai_types.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
uart_hal.h b2f390df01 hal: update link to HAL readme.md 5 лет назад
uart_types.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
usb_hal.h 5425ef4ee4 hal: extract hal component from soc component 5 лет назад
wdt_hal.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 лет назад
wdt_types.h 5425ef4ee4 hal: extract hal component from soc component 5 лет назад

readme.md

HAL Layer Readme

The HAL layer is designed to be used by the drivers. We don't guarantee the stability and back-compatibility among versions. The HAL layer may update very frequently with the driver. Please don't use them in the applications or treat them as stable APIs.

The HAL layer consists of two layers: HAL (upper) and Lowlevel(bottom). The HAL layer defines the steps and data required by the peripheral. The lowlevel is a translation layer converting general conceptions to register configurations.

Lowlevel

This layer should be all static inline. The first argument of LL functions is usually a pointer to the beginning address of the peripheral register. Each chip should have its own LL layer. The functions in this layer should be atomic and independent from each other so that the upper layer can change/perform one of the options/operation without touching the others.

HAL

This layer should depend on the operating system as little as possible. It's a wrapping of LL functions, so that the upper layer can combine basic steps into different working ways (polling, non-polling, interrupt, etc.). Without using queues/locks/delay/loop/etc., this layer can be easily port to other os or simulation systems.

To get better performance and better porting ability, contexts are used to hold sustainable data and pass the parameters.

To develop your own driver, it is suggested to copy the HAL layer to your own code and keep them until manual update.