Cao Sen Miao 0d81edb174 spi_flash: refactoring flash encryption into new api 5 yıl önce
..
adc_hal.h cc6bfcd9ac adc: apply adc power API to adc driver 4 yıl önce
adc_types.h 00a3f48bd8 adc: refactor adc single read api on esp32c3 4 yıl önce
aes_hal.h 51169b0e0c AES/SHA: use GDMA driver instead of LL 5 yıl önce
aes_types.h 457ce080ae AES: refactor and add HAL layer 5 yıl önce
brownout_hal.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 yıl önce
cpu_hal.h 355dd10257 light sleep: dfs support for esp32c3 5 yıl önce
cpu_types.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) 5 yıl önce
dac_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) 5 yıl önce
dac_types.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) 5 yıl önce
dma_types.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) 5 yıl önce
ds_hal.h 7eb9ecb4f6 esp_ds: move timeout mechanism to driver layer 4 yıl önce
esp_flash_err.h 5425ef4ee4 hal: extract hal component from soc component 5 yıl önce
gdma_hal.h e6d23a35ec gdma: dynamic alloc DMA channels 5 yıl önce
gpio_hal.h cd79f3907d gpio: Disable USB JTAG when setting pins 18 and 19 as GPIOs on ESP32C3 4 yıl önce
gpio_types.h 727481d71c gpio: enable GPIO19 on ESP32C3 boards 5 yıl önce
hal_defs.h 5425ef4ee4 hal: extract hal component from soc component 5 yıl önce
i2c_hal.h 753a929525 global: fix sign-compare warnings 5 yıl önce
i2c_types.h 82e4a2431a i2c: removed unsupported features on different targets 4 yıl önce
i2s_hal.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 yıl önce
i2s_types.h 67941fc495 i2s: removed unsupported features on different targets 4 yıl önce
interrupt_controller_hal.h b23c9142d5 [hal]: cleaned up interrupt mask functions 4 yıl önce
interrupt_controller_types.h 5d316ac142 interrupt: added INTC FLEXIBLE capabillity to esp32c3 CPU caps 5 yıl önce
lcd_hal.h d0be56b8fe lcd: add LL driver for esp32-s3 5 yıl önce
ledc_hal.h b2f390df01 hal: update link to HAL readme.md 5 yıl önce
ledc_types.h 7c08be5771 hal: Add initial ESP32-C3 support 5 yıl önce
mcpwm_hal.h f5ca47c0fc mcpwm: rename macros related to soc capbility 5 yıl önce
mcpwm_types.h 5425ef4ee4 hal: extract hal component from soc component 5 yıl önce
mpu_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) 5 yıl önce
mpu_types.h 58c3f6a421 hal: explicitly include soc_caps.h 5 yıl önce
pcnt_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) 5 yıl önce
pcnt_types.h 58c3f6a421 hal: explicitly include soc_caps.h 5 yıl önce
readme.md 5425ef4ee4 hal: extract hal component from soc component 5 yıl önce
rmt_hal.h 7b37158ede rmt: distinguish group and channel in HAL layer 5 yıl önce
rmt_types.h 7b37158ede rmt: distinguish group and channel in HAL layer 5 yıl önce
rtc_hal.h a8343bc470 esp_system: support gpio wakeup from deep sleep on esp32c3 5 yıl önce
rtc_io_hal.h a8343bc470 esp_system: support gpio wakeup from deep sleep on esp32c3 5 yıl önce
rtc_io_types.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) 5 yıl önce
sdio_slave_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) 5 yıl önce
sdio_slave_ll.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) 5 yıl önce
sdio_slave_types.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) 5 yıl önce
sha_hal.h 51169b0e0c AES/SHA: use GDMA driver instead of LL 5 yıl önce
sha_types.h 7c08be5771 hal: Add initial ESP32-C3 support 5 yıl önce
sigmadelta_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) 5 yıl önce
sigmadelta_types.h 17808b3ff8 sigma_delta: add periph signal list and support esp32-s3 5 yıl önce
soc_hal.h ff2d9fd96c [freertos] Silence sign-conversion warning 5 yıl önce
spi_flash_encrypt_hal.h 0d81edb174 spi_flash: refactoring flash encryption into new api 4 yıl önce
spi_flash_hal.h f3e79ca166 spi_flash(c3): add boya chip support for suspend feature 5 yıl önce
spi_flash_types.h 0d81edb174 spi_flash: refactoring flash encryption into new api 4 yıl önce
spi_hal.h 9b9ea71ff9 spi: remove HSPI macro on esp32c3 and esp32s3 4 yıl önce
spi_slave_hal.h 9b9ea71ff9 spi: remove HSPI macro on esp32c3 and esp32s3 4 yıl önce
spi_slave_hd_hal.h 346dea206e spi_slv_hd: add hal_trans_finish comments for clarifying risk 5 yıl önce
spi_types.h 85e29dace7 spi_slave_hd: add callback after data is loaded to the DMA for segment mode 4 yıl önce
systimer_hal.h ec898b771e systimer: strip hal driver 4 yıl önce
systimer_types.h 7c1e1c9e2d systimer: update soc data 4 yıl önce
timer_hal.h 1966f00f0b soc: updates caps usage 5 yıl önce
timer_types.h e4c8ec6174 timergroup: move interrupt index into peripheral description file 5 yıl önce
touch_sensor_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) 5 yıl önce
touch_sensor_types.h 7c08be5771 hal: Add initial ESP32-C3 support 5 yıl önce
twai_hal.h 2f58060921 TWAI: FIFO overrun handling and errata workarounds 4 yıl önce
twai_types.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 yıl önce
uart_hal.h 05a4a8d864 uart: seperate sclk and baudrate setting 5 yıl önce
uart_types.h fb8b905539 uart: add uart support on esp32s3 5 yıl önce
usb_hal.h 5425ef4ee4 hal: extract hal component from soc component 5 yıl önce
wdt_hal.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h 5 yıl önce
wdt_types.h 5425ef4ee4 hal: extract hal component from soc component 5 yıl önce

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.