morris d94432fea8 systimer: refactor hal to accomodate more xtal choices há 3 anos atrás
..
adc_hal.h 5b523a3313 esp_adc: new esp_adc component and adc drivers há 3 anos atrás
adc_hal_common.h 5b523a3313 esp_adc: new esp_adc component and adc drivers há 3 anos atrás
adc_oneshot_hal.h 5b523a3313 esp_adc: new esp_adc component and adc drivers há 3 anos atrás
adc_types.h 5b523a3313 esp_adc: new esp_adc component and adc drivers há 3 anos atrás
adc_types_private.h 5b523a3313 esp_adc: new esp_adc component and adc drivers há 3 anos atrás
aes_hal.h 51169b0e0c AES/SHA: use GDMA driver instead of LL há 5 anos atrás
aes_types.h 457ce080ae AES: refactor and add HAL layer há 5 anos atrás
brownout_hal.h 6a2d3509dc spi_flash: Making XMC flash works more stable when brownout detected há 3 anos atrás
cache_hal.h c1cbd7bbf6 cache/mmu: implememnt cache and mmu hal APIs in bootloader há 4 anos atrás
cache_types.h c1cbd7bbf6 cache/mmu: implememnt cache and mmu hal APIs in bootloader há 4 anos atrás
can_types.h c4e84751a5 driver: fix public header exceptions for driver há 3 anos atrás
dac_hal.h 9afdf54748 hal: added HAL_ASSERT há 4 anos atrás
dac_types.h c4e84751a5 driver: fix public header exceptions for driver há 3 anos atrás
dma_types.h 83d16aa00c gdma: support IRAM interrupt há 4 anos atrás
ds_hal.h f80d6f8c21 Digital Signature support for S3 há 4 anos atrás
ecc_hal.h bc1d35a14e esp32c2/hal: Added ECC HAL layer há 4 anos atrás
ecc_types.h bc1d35a14e esp32c2/hal: Added ECC HAL layer há 4 anos atrás
efuse_hal.h 0f8ff5aa15 efuse: Adds major and minor versions and others há 3 anos atrás
emac_hal.h 4051b80b4d esp_netif: remove dependency of L2 TAP Interface from netif_lwip há 3 anos atrás
esp_flash_err.h 5425ef4ee4 hal: extract hal component from soc component há 5 anos atrás
eth_types.h 8da2e4088c esp_eth: Update esp32's EMAC API to decouple driver and vendor config há 4 anos atrás
gdma_hal.h 83d16aa00c gdma: support IRAM interrupt há 4 anos atrás
gpio_hal.h 0c4b9a0101 gpio: Fix HAL bad bit shift operation on gpio_num_t reported from coverity há 3 anos atrás
gpio_types.h c8c137f2b7 esp32h2: support GPIO peripheral, IO_MUX, GPIO matrix. há 4 anos atrás
i2c_hal.h 53580a62b5 I2C: Fullfill the I2C clock tree, and support 26M XTAL on ESP32-C2 há 3 anos atrás
i2c_types.h 53580a62b5 I2C: Fullfill the I2C clock tree, and support 26M XTAL on ESP32-C2 há 3 anos atrás
i2s_hal.h edee3ee3cd i2s: add slot sequence table há 3 anos atrás
i2s_types.h edee3ee3cd i2s: add slot sequence table há 3 anos atrás
lcd_hal.h 454d658309 rgb_lcd: workaround pclk polarity bug by setting mo>=2 há 3 anos atrás
lcd_types.h 60bb5c913d clk_tree: prework of introducing clk subsystem control há 3 anos atrás
ledc_hal.h 534346f4bb ledc: Provide support for esp32c2 and esp32h2 há 3 anos atrás
ledc_types.h 534346f4bb ledc: Provide support for esp32c2 and esp32h2 há 3 anos atrás
mcpwm_hal.h f7ff7ac4d0 mcpwm: clean up hal driver and add doc há 3 anos atrás
mcpwm_types.h c4e84751a5 driver: fix public header exceptions for driver há 3 anos atrás
memprot_types.h 0c87ae2a91 System/Security: Memprot API unified (ESP32S3) há 3 anos atrás
mmu_hal.h 6589daabb9 MMU: Add configurable mmu page size support on ESP32C2 há 3 anos atrás
mmu_types.h 6589daabb9 MMU: Add configurable mmu page size support on ESP32C2 há 3 anos atrás
mpu_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) há 5 anos atrás
mpu_types.h 58c3f6a421 hal: explicitly include soc_caps.h há 5 anos atrás
pcnt_hal.h ec8defaa96 pulse_cnt: new driver for PCNT peripheral há 4 anos atrás
pcnt_types.h ec8defaa96 pulse_cnt: new driver for PCNT peripheral há 4 anos atrás
readme.md 5425ef4ee4 hal: extract hal component from soc component há 5 anos atrás
rmt_hal.h 2fb43820c2 driver_ng: implement new rmt driver há 3 anos atrás
rmt_types.h 4154eaec93 sdm: clean up soc/hal/ll code há 3 anos atrás
rtc_hal.h dd414b9305 esp_hw_‎support/sleep: ‎fix cannot lightsleep again after a wakeup from ULP há 3 anos atrás
rtc_io_hal.h 5bcd9b2db8 G0: RISC-V targets have now an independent G0 layer há 3 anos atrás
rtc_io_types.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) há 5 anos atrás
sdio_slave_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) há 5 anos atrás
sdio_slave_ll.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) há 5 anos atrás
sdio_slave_types.h 869bed1bb5 soc: don't expose unstable soc header files in public api há 4 anos atrás
sdm_hal.h 4154eaec93 sdm: clean up soc/hal/ll code há 3 anos atrás
sdm_types.h 4154eaec93 sdm: clean up soc/hal/ll code há 3 anos atrás
sha_hal.h 51169b0e0c AES/SHA: use GDMA driver instead of LL há 5 anos atrás
sha_types.h cf049e15ed esp8684: rename target to esp32c2 há 4 anos atrás
spi_flash_encrypt_hal.h 0d81edb174 spi_flash: refactoring flash encryption into new api há 4 anos atrás
spi_flash_hal.h 4418a855ba spi_flash: refactor the spi_flash clock configuration, and add support for esp32c2 há 3 anos atrás
spi_flash_types.h 4418a855ba spi_flash: refactor the spi_flash clock configuration, and add support for esp32c2 há 3 anos atrás
spi_hal.h 6a74cb695d spi: support spi on 8684 há 4 anos atrás
spi_slave_hal.h 9b9ea71ff9 spi: remove HSPI macro on esp32c3 and esp32s3 há 4 anos atrás
spi_slave_hd_hal.h 346dea206e spi_slv_hd: add hal_trans_finish comments for clarifying risk há 5 anos atrás
spi_types.h 6a74cb695d spi: support spi on 8684 há 4 anos atrás
systimer_hal.h d94432fea8 systimer: refactor hal to accomodate more xtal choices há 3 anos atrás
systimer_types.h c45784b8c4 hal: Fix systimer counter value bit field há 3 anos atrás
temperature_sensor_types.h 4154eaec93 sdm: clean up soc/hal/ll code há 3 anos atrás
timer_hal.h e2275b1f63 gptimer: clean up hal and ll for driver-ng há 4 anos atrás
timer_types.h f32a89826c clk_tree: added default clock source for peripheral há 3 anos atrás
touch_sensor_hal.h a5b09cf015 rtc_clk: Clean up some clock related enum and macro in soc/rtc.h, replace with new ones in há 3 anos atrás
touch_sensor_types.h 869bed1bb5 soc: don't expose unstable soc header files in public api há 4 anos atrás
twai_hal.h 09dc46552b twai: Fix twai_ll_parse_frame_buffer() typo há 3 anos atrás
twai_types.h d604bf05af TWAI: Fix incorrect configuration initializers for low speed bit rates há 4 anos atrás
uart_hal.h 24a60c12c6 uart: Provide support for esp32c2 and esp32h2 há 4 anos atrás
uart_types.h 8138f8bb02 driver: remove deprecated code há 3 anos atrás
uhci_types.h c053ef0541 examples: added support of ESP32-S3 chip in controller_hci_uart example há 4 anos atrás
usb_hal.h 5425ef4ee4 hal: extract hal component from soc component há 5 anos atrás
usb_phy_hal.h 1fcd639224 usb: Add usb_phy driver to support operations on USB PHY há 4 anos atrás
usb_phy_types.h 1fcd639224 usb: Add usb_phy driver to support operations on USB PHY há 4 anos atrás
usb_types_private.h accbaee57c Add USB Host Library há 4 anos atrás
usbh_hal.h 1aad12468a usb: Hub Driver Update and Refactor há 4 anos atrás
usbh_ll.h 854127a57c usb: USB Host stack uses USB PHY driver há 4 anos atrás
wdt_hal.h 647dea9395 soc: combine xxx_caps.h into one soc_caps.h há 5 anos atrás
wdt_types.h 5425ef4ee4 hal: extract hal component from soc component há 5 anos atrás
xt_wdt_hal.h 4869b3cd4a WDT: Add support for XTAL32K Watchdog timer há 4 anos atrás

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.