Kevin (Lao Kaiyao) a9faafee3c Merge branch 'feature/touch_sensor_driver_support_for_esp32s3' into 'master' před 4 roky
..
adc_hal.h c45c6f52f1 adc: support adc efuse-based calibration on esp32s3 před 4 roky
adc_types.h 27d9657b6c driver/adc: support adc single sample on s3 před 4 roky
aes_hal.h 51169b0e0c AES/SHA: use GDMA driver instead of LL před 5 roky
aes_types.h 457ce080ae AES: refactor and add HAL layer před 5 roky
brownout_hal.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h před 5 roky
cpu_hal.h 355dd10257 light sleep: dfs support for esp32c3 před 5 roky
cpu_types.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) před 5 roky
dac_hal.h 9afdf54748 hal: added HAL_ASSERT před 4 roky
dac_types.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) před 5 roky
dma_types.h 3176ba11d8 gdma: update DMA soc data for esp32-s3 před 4 roky
ds_hal.h f80d6f8c21 Digital Signature support for S3 před 4 roky
emac_hal.h fe354f1c50 hal/emac_hal: refactord emac_hal před 4 roky
esp_flash_err.h 5425ef4ee4 hal: extract hal component from soc component před 5 roky
eth_types.h a6db3a5e77 esp_eth: Change clock mode setting před 4 roky
gdma_hal.h e6d23a35ec gdma: dynamic alloc DMA channels před 5 roky
gpio_hal.h cd79f3907d gpio: Disable USB JTAG when setting pins 18 and 19 as GPIOs on ESP32C3 před 4 roky
gpio_types.h 205cd469e9 esp32h2: update driver/hal/soc components to support esp32h2 před 4 roky
i2c_hal.h 2575c0d49f i2c: fix I2C slave clock source selection před 4 roky
i2c_types.h 82e4a2431a i2c: removed unsupported features on different targets před 4 roky
i2s_hal.h 7264c0e59a i2s_rec_example: add support for esp32s3 před 4 roky
i2s_types.h c5afd7ce34 i2s: fix write failure on ESP32 in 32bit slave mode před 4 roky
interrupt_controller_hal.h b23c9142d5 [hal]: cleaned up interrupt mask functions před 4 roky
interrupt_controller_types.h 5d316ac142 interrupt: added INTC FLEXIBLE capabillity to esp32c3 CPU caps před 5 roky
lcd_hal.h e09e39c94f lcd: unify callback prototype před 4 roky
lcd_types.h e09e39c94f lcd: unify callback prototype před 4 roky
ledc_hal.h b2f390df01 hal: update link to HAL readme.md před 5 roky
ledc_types.h 48c848a895 driver/ledc: support invert channel output před 4 roky
mcpwm_hal.h d4fe219c49 mcpwm: refactor driver před 4 roky
mcpwm_types.h 88c87bfe56 mcpwm: update hal and soc naming před 4 roky
memprot_types.h 58aed7df98 ESP32S2: No assert()/abort() in Memprot API, use esp_err_t instead před 4 roky
mpu_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) před 5 roky
mpu_types.h 58c3f6a421 hal: explicitly include soc_caps.h před 5 roky
pcnt_hal.h 56760c9669 pcnt: refactor hal driver před 4 roky
pcnt_types.h 56760c9669 pcnt: refactor hal driver před 4 roky
readme.md 5425ef4ee4 hal: extract hal component from soc component před 5 roky
rmt_hal.h 7b37158ede rmt: distinguish group and channel in HAL layer před 5 roky
rmt_types.h 8e483e34a8 rmt: restructure rmt_signal_conn_t před 4 roky
rtc_hal.h ccf1a9a1fc light sleep: add i/d-cache tagmem retention support for esp32s3 před 4 roky
rtc_io_hal.h 205cd469e9 esp32h2: update driver/hal/soc components to support esp32h2 před 4 roky
rtc_io_types.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) před 5 roky
sdio_slave_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) před 5 roky
sdio_slave_ll.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) před 5 roky
sdio_slave_types.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) před 5 roky
sha_hal.h 51169b0e0c AES/SHA: use GDMA driver instead of LL před 5 roky
sha_types.h 702e41e1c8 esp32s2: move crypto related functions před 4 roky
sigmadelta_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) před 5 roky
sigmadelta_types.h 17808b3ff8 sigma_delta: add periph signal list and support esp32-s3 před 5 roky
soc_hal.h ff2d9fd96c [freertos] Silence sign-conversion warning před 5 roky
spi_flash_encrypt_hal.h 0d81edb174 spi_flash: refactoring flash encryption into new api před 4 roky
spi_flash_hal.h 6c0aebe279 esp_flash: add opi flash support in esp_flash chip driver, for MXIC před 4 roky
spi_flash_types.h 6c0aebe279 esp_flash: add opi flash support in esp_flash chip driver, for MXIC před 4 roky
spi_hal.h 8143832041 spi_master:support octal mode for esp32s2 and esp32s3 před 4 roky
spi_slave_hal.h 9b9ea71ff9 spi: remove HSPI macro on esp32c3 and esp32s3 před 4 roky
spi_slave_hd_hal.h 346dea206e spi_slv_hd: add hal_trans_finish comments for clarifying risk před 5 roky
spi_types.h 71d475149d lcd: update doc unit test and example to support 8-line spi před 4 roky
systimer_hal.h ec898b771e systimer: strip hal driver před 4 roky
systimer_types.h 7c1e1c9e2d systimer: update soc data před 4 roky
timer_hal.h c5d0d89508 driver: fix timer driver initialization sequence to not trigger interrupt immediately před 4 roky
timer_types.h e4c8ec6174 timergroup: move interrupt index into peripheral description file před 5 roky
touch_sensor_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) před 5 roky
touch_sensor_types.h f4705f8eb4 touch sensor: update copyright notice před 4 roky
twai_hal.h 2f58060921 TWAI: FIFO overrun handling and errata workarounds před 4 roky
twai_types.h d604bf05af TWAI: Fix incorrect configuration initializers for low speed bit rates před 4 roky
uart_hal.h 6317f5b481 add uart core reset in uart_module_enable() před 4 roky
uart_types.h fb8b905539 uart: add uart support on esp32s3 před 5 roky
uhci_types.h c053ef0541 examples: added support of ESP32-S3 chip in controller_hci_uart example před 4 roky
usb_hal.h 5425ef4ee4 hal: extract hal component from soc component před 5 roky
usb_phy_hal.h 1fcd639224 usb: Add usb_phy driver to support operations on USB PHY před 4 roky
usb_phy_types.h 1fcd639224 usb: Add usb_phy driver to support operations on USB PHY před 4 roky
usb_types_private.h accbaee57c Add USB Host Library před 4 roky
usbh_hal.h accbaee57c Add USB Host Library před 4 roky
usbh_ll.h 46020fe13a usb/hal/soc: initial copy of usbh support from esp32s2 před 4 roky
wdt_hal.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h před 5 roky
wdt_types.h 5425ef4ee4 hal: extract hal component from soc component před 5 roky
xt_wdt_hal.h 4869b3cd4a WDT: Add support for XTAL32K Watchdog timer před 4 roky

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.