Armando (Dou Yiwen) 6ed3ffbbf1 Merge branch 'refactor/remove_redundant_rom_cache_dependency' into 'master' преди 4 години
..
adc_hal.h 116197040f i2s: update copyright преди 4 години
adc_types.h cf049e15ed esp8684: rename target to esp32c2 преди 4 години
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 647dea9395 soc: combine xxx_caps.h into one soc_caps.h преди 5 години
cache_hal.h c1cbd7bbf6 cache/mmu: implememnt cache and mmu hal APIs in bootloader преди 4 години
cache_types.h c1cbd7bbf6 cache/mmu: implememnt cache and mmu hal APIs in bootloader преди 4 години
cpu_hal.h 876f4d6a1c vfs: add support for semihosting on ESP32-C3 преди 4 години
cpu_types.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) преди 5 години
dac_hal.h 9afdf54748 hal: added HAL_ASSERT преди 4 години
dac_types.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) преди 5 години
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 преди 4 години
ecc_types.h bc1d35a14e esp32c2/hal: Added ECC HAL layer преди 4 години
efuse_hal.h 9605f3eb1a soc: Adds efuse hal преди 4 години
emac_hal.h 7512bdecfe Merge branch 'feature/emac_start_stop_test' into 'master' преди 4 години
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 c8c137f2b7 esp32h2: support GPIO peripheral, IO_MUX, GPIO matrix. преди 4 години
gpio_types.h c8c137f2b7 esp32h2: support GPIO peripheral, IO_MUX, GPIO matrix. преди 4 години
i2c_hal.h 7da023ceae i2c: support esp32c2 преди 4 години
i2c_types.h 7da023ceae i2c: support esp32c2 преди 4 години
i2s_hal.h 7264c0e59a i2s_rec_example: add support for esp32s3 преди 4 години
i2s_types.h b336a838b6 i2s: fix bug of switching mono/stereo mode by 'i2s_set_clk' on c3/s3 преди 4 години
interrupt_controller_hal.h b23c9142d5 [hal]: cleaned up interrupt mask functions преди 5 години
interrupt_controller_types.h 5d316ac142 interrupt: added INTC FLEXIBLE capabillity to esp32c3 CPU caps преди 5 години
lcd_hal.h e09e39c94f lcd: unify callback prototype преди 4 години
lcd_types.h 2ab7d92785 lcd: improve LL driver according to TRM преди 4 години
ledc_hal.h b2f390df01 hal: update link to HAL readme.md преди 5 години
ledc_types.h aa2ca7dd94 LEDC: improved support for ESP32-C3 and refactored divisor calculation преди 4 години
mcpwm_hal.h d4fe219c49 mcpwm: refactor driver преди 4 години
mcpwm_types.h 88c87bfe56 mcpwm: update hal and soc naming преди 4 години
memprot_types.h dd938eb952 System/Security: Memprot API unified (ESP32C3) преди 4 години
mmu_hal.h c1cbd7bbf6 cache/mmu: implememnt cache and mmu hal APIs in bootloader преди 4 години
mmu_types.h c1cbd7bbf6 cache/mmu: implememnt cache and mmu hal APIs in bootloader преди 4 години
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 преди 4 години
pcnt_types.h ec8defaa96 pulse_cnt: new driver for PCNT peripheral преди 4 години
readme.md 5425ef4ee4 hal: extract hal component from soc component преди 5 години
rmt_hal.h 9f55712c03 rmt: document and improve LL driver преди 4 години
rmt_types.h 9f55712c03 rmt: document and improve LL driver преди 4 години
rtc_hal.h cf049e15ed esp8684: rename target to esp32c2 преди 4 години
rtc_io_hal.h cf049e15ed esp8684: rename target to esp32c2 преди 4 години
rtc_io_types.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) преди 5 години
sdio_slave_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) преди 5 години
sdio_slave_ll.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) преди 5 години
sdio_slave_types.h 869bed1bb5 soc: don't expose unstable soc header files in public api преди 4 години
sha_hal.h 51169b0e0c AES/SHA: use GDMA driver instead of LL преди 5 години
sha_types.h cf049e15ed esp8684: rename target to esp32c2 преди 4 години
sigmadelta_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) преди 5 години
sigmadelta_types.h 869bed1bb5 soc: don't expose unstable soc header files in public api преди 4 години
soc_hal.h ff2d9fd96c [freertos] Silence sign-conversion warning преди 5 години
spi_flash_encrypt_hal.h 0d81edb174 spi_flash: refactoring flash encryption into new api преди 4 години
spi_flash_hal.h 6c0aebe279 esp_flash: add opi flash support in esp_flash chip driver, for MXIC преди 4 години
spi_flash_types.h 6c0aebe279 esp_flash: add opi flash support in esp_flash chip driver, for MXIC преди 4 години
spi_hal.h 6a74cb695d spi: support spi on 8684 преди 4 години
spi_slave_hal.h 9b9ea71ff9 spi: remove HSPI macro on esp32c3 and esp32s3 преди 5 години
spi_slave_hd_hal.h 346dea206e spi_slv_hd: add hal_trans_finish comments for clarifying risk преди 5 години
spi_types.h 6a74cb695d spi: support spi on 8684 преди 4 години
systimer_hal.h ec898b771e systimer: strip hal driver преди 4 години
systimer_types.h 7c1e1c9e2d systimer: update soc data преди 4 години
temperature_sensor_types.h b248046bcb Temperature_sensor: Create new temperature sensor API преди 4 години
timer_hal.h e2275b1f63 gptimer: clean up hal and ll for driver-ng преди 4 години
timer_types.h 2c810f8451 timer: save alarm value in driver layer преди 4 години
touch_sensor_hal.h 66fb5a29bb Whitespace: Automated whitespace fixes (large commit) преди 5 години
touch_sensor_types.h 869bed1bb5 soc: don't expose unstable soc header files in public api преди 4 години
twai_hal.h 2f58060921 TWAI: FIFO overrun handling and errata workarounds преди 5 години
twai_types.h d604bf05af TWAI: Fix incorrect configuration initializers for low speed bit rates преди 4 години
uart_hal.h 24a60c12c6 uart: Provide support for esp32c2 and esp32h2 преди 4 години
uart_types.h fb8b905539 uart: add uart support on esp32s3 преди 5 години
uhci_types.h c053ef0541 examples: added support of ESP32-S3 chip in controller_hci_uart example преди 4 години
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 години
usbh_hal.h 1aad12468a usb: Hub Driver Update and Refactor преди 4 години
usbh_ll.h 854127a57c usb: USB Host stack uses USB PHY driver преди 4 години
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 години
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.