Michael (XIAO Xufeng) 507864c4f1 sdio_slave: allow disabling highspeed mode 3 жил өмнө
..
adc_hal.h 5b523a3313 esp_adc: new esp_adc component and adc drivers 3 жил өмнө
adc_hal_common.h 5b523a3313 esp_adc: new esp_adc component and adc drivers 3 жил өмнө
adc_oneshot_hal.h 5b523a3313 esp_adc: new esp_adc component and adc drivers 3 жил өмнө
adc_types.h 5e31d4bb2b esp_adc: add adc ulp mode disable enum 3 жил өмнө
adc_types_private.h 5b523a3313 esp_adc: new esp_adc component and adc drivers 3 жил өмнө
aes_hal.h 51169b0e0c AES/SHA: use GDMA driver instead of LL 5 жил өмнө
aes_types.h 457ce080ae AES: refactor and add HAL layer 5 жил өмнө
brownout_hal.h 6a2d3509dc spi_flash: Making XMC flash works more stable when brownout detected 3 жил өмнө
cache_hal.h c1cbd7bbf6 cache/mmu: implememnt cache and mmu hal APIs in bootloader 3 жил өмнө
cache_types.h c1cbd7bbf6 cache/mmu: implememnt cache and mmu hal APIs in bootloader 3 жил өмнө
can_types.h c4e84751a5 driver: fix public header exceptions for driver 3 жил өмнө
dac_hal.h 9afdf54748 hal: added HAL_ASSERT 4 жил өмнө
dac_types.h c4e84751a5 driver: fix public header exceptions for driver 3 жил өмнө
dma_types.h 83d16aa00c gdma: support IRAM interrupt 4 жил өмнө
ds_hal.h f80d6f8c21 Digital Signature support for S3 4 жил өмнө
ecc_hal.h bc1d35a14e esp32c2/hal: Added ECC HAL layer 3 жил өмнө
ecc_types.h bc1d35a14e esp32c2/hal: Added ECC HAL layer 3 жил өмнө
efuse_hal.h 0f8ff5aa15 efuse: Adds major and minor versions and others 3 жил өмнө
emac_hal.h 4051b80b4d esp_netif: remove dependency of L2 TAP Interface from netif_lwip 3 жил өмнө
esp_flash_err.h 5425ef4ee4 hal: extract hal component from soc component 5 жил өмнө
eth_types.h 8da2e4088c esp_eth: Update esp32's EMAC API to decouple driver and vendor config 4 жил өмнө
gdma_hal.h 83d16aa00c gdma: support IRAM interrupt 4 жил өмнө
gpio_hal.h 61282cc5dd gpio: Fix interrupt lost issue 3 жил өмнө
gpio_types.h 0637ea91a3 Merge branch 'bugfix/fix_gpio_intr_lost' into 'master' 3 жил өмнө
i2c_hal.h 31b88a4c88 I2C: Refactor i2c hal and ll 3 жил өмнө
i2c_types.h 31b88a4c88 I2C: Refactor i2c hal and ll 3 жил өмнө
i2s_hal.h edee3ee3cd i2s: add slot sequence table 3 жил өмнө
i2s_types.h edee3ee3cd i2s: add slot sequence table 3 жил өмнө
lcd_hal.h 454d658309 rgb_lcd: workaround pclk polarity bug by setting mo>=2 3 жил өмнө
lcd_types.h fc1aa2848b rgb_lcd: support yuv converter 3 жил өмнө
ledc_hal.h 534346f4bb ledc: Provide support for esp32c2 and esp32h2 3 жил өмнө
ledc_types.h 534346f4bb ledc: Provide support for esp32c2 and esp32h2 3 жил өмнө
mcpwm_hal.h f7ff7ac4d0 mcpwm: clean up hal driver and add doc 3 жил өмнө
mcpwm_types.h c4e84751a5 driver: fix public header exceptions for driver 3 жил өмнө
memprot_types.h 7cb9304b65 Clean IRAM and DRAM address space conversion macros 3 жил өмнө
mmu_hal.h 6589daabb9 MMU: Add configurable mmu page size support on ESP32C2 3 жил өмнө
mmu_types.h 1d299a8976 esp32c6: add hal support 3 жил өмнө
mpu_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) 5 жил өмнө
mpu_types.h 58c3f6a421 hal: explicitly include soc_caps.h 5 жил өмнө
pcnt_hal.h ec8defaa96 pulse_cnt: new driver for PCNT peripheral 3 жил өмнө
pcnt_types.h ec8defaa96 pulse_cnt: new driver for PCNT peripheral 3 жил өмнө
readme.md 5425ef4ee4 hal: extract hal component from soc component 5 жил өмнө
rmt_hal.h 2fb43820c2 driver_ng: implement new rmt driver 3 жил өмнө
rmt_types.h 4154eaec93 sdm: clean up soc/hal/ll code 3 жил өмнө
rtc_hal.h 1d299a8976 esp32c6: add hal support 3 жил өмнө
rtc_io_hal.h 1d299a8976 esp32c6: add hal support 3 жил өмнө
rtc_io_types.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) 5 жил өмнө
sdio_slave_hal.h 507864c4f1 sdio_slave: allow disabling highspeed mode 3 жил өмнө
sdio_slave_ll.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) 5 жил өмнө
sdio_slave_types.h 507864c4f1 sdio_slave: allow disabling highspeed mode 3 жил өмнө
sdm_hal.h 4154eaec93 sdm: clean up soc/hal/ll code 3 жил өмнө
sdm_types.h 4154eaec93 sdm: clean up soc/hal/ll code 3 жил өмнө
sha_hal.h 51169b0e0c AES/SHA: use GDMA driver instead of LL 5 жил өмнө
sha_types.h 1d299a8976 esp32c6: add hal support 3 жил өмнө
spi_flash_encrypt_hal.h 0d81edb174 spi_flash: refactoring flash encryption into new api 4 жил өмнө
spi_flash_hal.h 4418a855ba spi_flash: refactor the spi_flash clock configuration, and add support for esp32c2 3 жил өмнө
spi_flash_types.h 4418a855ba spi_flash: refactor the spi_flash clock configuration, and add support for esp32c2 3 жил өмнө
spi_hal.h 6a74cb695d spi: support spi on 8684 4 жил өмнө
spi_slave_hal.h 9b9ea71ff9 spi: remove HSPI macro on esp32c3 and esp32s3 4 жил өмнө
spi_slave_hd_hal.h 346dea206e spi_slv_hd: add hal_trans_finish comments for clarifying risk 5 жил өмнө
spi_types.h 3610b14aef SPI : fix wrong dummy cycle on quad mode and put get-command function in spi_ll.h 3 жил өмнө
systimer_hal.h d94432fea8 systimer: refactor hal to accomodate more xtal choices 3 жил өмнө
systimer_types.h c45784b8c4 hal: Fix systimer counter value bit field 3 жил өмнө
temperature_sensor_types.h 4154eaec93 sdm: clean up soc/hal/ll code 3 жил өмнө
timer_hal.h a1030307f1 gptimer: bringup driver on esp32c6 3 жил өмнө
timer_types.h f32a89826c clk_tree: added default clock source for peripheral 3 жил өмнө
touch_sensor_hal.h a5b09cf015 rtc_clk: Clean up some clock related enum and macro in soc/rtc.h, replace with new ones in 3 жил өмнө
touch_sensor_types.h 869bed1bb5 soc: don't expose unstable soc header files in public api 4 жил өмнө
twai_hal.h 09dc46552b twai: Fix twai_ll_parse_frame_buffer() typo 3 жил өмнө
twai_types.h d604bf05af TWAI: Fix incorrect configuration initializers for low speed bit rates 4 жил өмнө
uart_hal.h 746f4b814c uart: move frequency of clock sources out of HAL 3 жил өмнө
uart_types.h 8138f8bb02 driver: remove deprecated code 3 жил өмнө
uhci_types.h c053ef0541 examples: added support of ESP32-S3 chip in controller_hci_uart example 4 жил өмнө
usb_dwc_hal.h d333833f59 usb_host: Rename struct/ll/hal symbols to use "usb_dwc" prefix 3 жил өмнө
usb_dwc_ll.h d333833f59 usb_host: Rename struct/ll/hal symbols to use "usb_dwc" prefix 3 жил өмнө
usb_hal.h 5425ef4ee4 hal: extract hal component from soc component 5 жил өмнө
usb_phy_hal.h 1fcd639224 usb: Add usb_phy driver to support operations on USB PHY 4 жил өмнө
usb_phy_types.h 1fcd639224 usb: Add usb_phy driver to support operations on USB PHY 4 жил өмнө
usb_types_private.h accbaee57c Add USB Host Library 4 жил өмнө
wdt_hal.h 1d299a8976 esp32c6: add hal support 3 жил өмнө
wdt_types.h 5425ef4ee4 hal: extract hal component from soc component 5 жил өмнө
xt_wdt_hal.h 4869b3cd4a WDT: Add support for XTAL32K Watchdog timer 4 жил өмнө

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.