• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

esp32/18-Mar-2025-17,4398,525

esp32c2/18-Mar-2025-11,2545,703

esp32c3/18-Mar-2025-15,8067,915

esp32c6/18-Mar-2025-22,00711,487

esp32h2/18-Mar-2025-21,02910,796

esp32s2/18-Mar-2025-19,1299,475

esp32s3/18-Mar-2025-24,14212,185

include/hal/18-Mar-2025-14,5005,771

platform_port/include/hal/18-Mar-2025-255126

.build-test-rules.ymlD18-Mar-2025343 107

CMakeLists.txtD18-Mar-20256.6 KiB259205

KconfigD18-Mar-20254.5 KiB116101

README.mdD18-Mar-20252 KiB1911

adc_hal.cD18-Mar-202513.9 KiB368280

adc_hal_common.cD18-Mar-20256.5 KiB211165

adc_oneshot_hal.cD18-Mar-20256.8 KiB197140

aes_hal.cD18-Mar-20253 KiB13580

apm_hal.cD18-Mar-20252.2 KiB8160

brownout_hal.cD18-Mar-2025756 2313

cache_hal.cD18-Mar-20256.2 KiB234184

cam_hal.cD18-Mar-20252.7 KiB12157

ds_hal.cD18-Mar-20251.5 KiB6439

ecc_hal.cD18-Mar-20254.8 KiB180141

ecdsa_hal.cD18-Mar-20254.5 KiB153106

efuse_hal.cD18-Mar-20251.3 KiB6044

emac_hal.cD18-Mar-202530.5 KiB734494

etm_hal.cD18-Mar-2025331 2011

gdma_hal.cD18-Mar-2025278 146

gpio_hal.cD18-Mar-20251.3 KiB4533

hmac_hal.cD18-Mar-20251.5 KiB7657

i2c_hal.cD18-Mar-20252.8 KiB8966

i2c_hal_iram.cD18-Mar-20251.8 KiB4731

i2s_hal.cD18-Mar-202516.1 KiB354285

lcd_hal.cD18-Mar-20251.9 KiB7045

ledc_hal.cD18-Mar-20252.5 KiB7343

ledc_hal_iram.cD18-Mar-20252.9 KiB8460

linker.lfD18-Mar-20251.2 KiB3938

lp_timer_hal.cD18-Mar-20251.4 KiB5035

mcpwm_hal.cD18-Mar-20252.1 KiB5743

mmu_hal.cD18-Mar-20254.8 KiB158133

mpu_hal.cD18-Mar-20251.5 KiB5838

parlio_hal.cD18-Mar-2025374 2112

pcnt_hal.cD18-Mar-2025348 176

rmt_hal.cD18-Mar-20252 KiB5040

rtc_io_hal.cD18-Mar-20252.8 KiB9278

sdio_slave_hal.cD18-Mar-202524.8 KiB723538

sdkconfig.renameD18-Mar-2025206 53

sdm_hal.cD18-Mar-2025333 177

sha_hal.cD18-Mar-20253.9 KiB161108

spi_flash_encrypt_hal_iram.cD18-Mar-20251.8 KiB6037

spi_flash_hal.cD18-Mar-20255.3 KiB153110

spi_flash_hal_common.incD18-Mar-20257 KiB196173

spi_flash_hal_gpspi.cD18-Mar-20251.5 KiB4420

spi_flash_hal_iram.cD18-Mar-20256.2 KiB196157

spi_hal.cD18-Mar-20256.7 KiB170121

spi_hal_iram.cD18-Mar-20257.1 KiB207145

spi_slave_hal.cD18-Mar-20252.4 KiB5743

spi_slave_hal_iram.cD18-Mar-20254.3 KiB12090

spi_slave_hd_hal.cD18-Mar-202515.3 KiB401325

systimer_hal.cD18-Mar-20257.3 KiB211160

timer_hal.cD18-Mar-20252.5 KiB6339

touch_sensor_hal.cD18-Mar-20251.7 KiB5331

twai_hal.cD18-Mar-20254.6 KiB11476

twai_hal_iram.cD18-Mar-20259.1 KiB197152

uart_hal.cD18-Mar-20255.1 KiB183141

uart_hal_iram.cD18-Mar-20251.5 KiB5029

usb_dwc_hal.cD18-Mar-202524.6 KiB521327

usb_serial_jtag_hal.cD18-Mar-2025770 2920

usb_wrap_hal.cD18-Mar-2025741 3021

wdt_hal_iram.cD18-Mar-20256.5 KiB203160

xt_wdt_hal.cD18-Mar-20252.3 KiB7942

README.md

1## `hal`
2
3The `hal` component provides hardware abstraction and implementation for targets supported by ESP-IDF.
4
5#### `include/hal`
6
7`/include/hal` contains header files which provides a hardware-agnostic interface to the SoC. The interface consists of function declarations and abstracted types that other, higher level components can make use of in order to have code portable to all targets ESP-IDF supports.
8
9It contains an abstraction layer for ineracting with/driving the hardware found in the SoC such as the peripherals and 'core' hardware such as the CPU, MPU, caches, etc. It contains for the abstracted types.
10The abstraction design is actually two levels -- often somtimes `xxx_hal.h` includes a lower-level header from a `xxx_ll.h`,  which resides in the implementation. More on this abstraction design in the [`hal/include/hal`'s Readme](include/hal/readme.md)
11
12#### `target/include`
13
14Provides the implementation of the hardware-agnostic interface in the abstraction. Target-specific subdirectories exist for wildly different implementations among targets; while code that are common/very similar might be placed in the top-level of `/<target>/include`, using some amount of conditional preprocessors. It is up to the developers' discretion on which strategy to use. Code usually reside in source files with same names to header files whose interfaces they implement, ex. `xxx_hal.c` for `xxx_hal.h`.
15
16As mentioned previously, the lower-level abstraction header `xxx_ll.h` resides in this directory, since they contain hardware-specific details.
17However, what these can do is provide some abstraction among implementations, so that more code can be moved to the common, non-target-specific subdirectories.
18
19This can also contain target-specific extensions to the HAL headers. These target-specific HAL headers have the same name and include the abstraction layer HAL header via `include_next`. These extensions might add more function declarations or override some things using macro magic.