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

..--

esp32/03-Aug-2024-17,2398,405

esp32c2/03-Aug-2024-11,1105,638

esp32c3/03-Aug-2024-15,5357,775

esp32c6/03-Aug-2024-21,83711,371

esp32h2/03-Aug-2024-20,35510,360

esp32s2/03-Aug-2024-18,8889,359

esp32s3/03-Aug-2024-22,69411,481

include/hal/03-Aug-2024-13,7745,415

platform_port/include/hal/03-Aug-2024-263134

test/03-Aug-2024-5936

test_apps/ecc/03-Aug-2024-763553

.build-test-rules.ymlD03-Aug-2024343 107

CMakeLists.txtD03-Aug-20246.3 KiB251199

KconfigD03-Aug-20244.1 KiB10793

README.mdD03-Aug-20242 KiB1911

adc_hal.cD03-Aug-202413.9 KiB364277

adc_hal_common.cD03-Aug-20246.5 KiB213167

adc_oneshot_hal.cD03-Aug-20245.8 KiB184133

aes_hal.cD03-Aug-20243 KiB13580

apm_hal.cD03-Aug-20242.2 KiB8160

brownout_hal.cD03-Aug-2024725 2212

cache_hal.cD03-Aug-20244.7 KiB169128

ds_hal.cD03-Aug-20241.5 KiB6439

ecc_hal.cD03-Aug-20244.8 KiB180141

ecdsa_hal.cD03-Aug-20242.8 KiB10572

efuse_hal.cD03-Aug-20241.3 KiB6044

emac_hal.cD03-Aug-202430.5 KiB734494

etm_hal.cD03-Aug-2024331 2011

gdma_hal.cD03-Aug-2024278 146

gpio_hal.cD03-Aug-20241.3 KiB4533

hmac_hal.cD03-Aug-20241.5 KiB7657

i2c_hal.cD03-Aug-20242.8 KiB8966

i2c_hal_iram.cD03-Aug-20241.8 KiB4731

i2s_hal.cD03-Aug-202416 KiB354285

lcd_hal.cD03-Aug-20241.9 KiB7045

ledc_hal.cD03-Aug-20242.5 KiB7343

ledc_hal_iram.cD03-Aug-20242.9 KiB8460

linker.lfD03-Aug-20242.2 KiB5756

lp_timer_hal.cD03-Aug-20241.4 KiB5035

mcpwm_hal.cD03-Aug-20242.1 KiB5743

mmu_hal.cD03-Aug-20244.8 KiB158133

mpu_hal.cD03-Aug-20241.5 KiB5838

parlio_hal.cD03-Aug-2024354 2011

pcnt_hal.cD03-Aug-2024348 176

rmt_hal.cD03-Aug-20242 KiB5040

rtc_io_hal.cD03-Aug-20242.7 KiB9076

sdio_slave_hal.cD03-Aug-202424.8 KiB723538

sdkconfig.renameD03-Aug-2024206 53

sdm_hal.cD03-Aug-2024333 177

sha_hal.cD03-Aug-20243.9 KiB161108

spi_flash_encrypt_hal_iram.cD03-Aug-20241.8 KiB6037

spi_flash_hal.cD03-Aug-20245.3 KiB153110

spi_flash_hal_common.incD03-Aug-20247 KiB196173

spi_flash_hal_gpspi.cD03-Aug-20241.5 KiB4420

spi_flash_hal_iram.cD03-Aug-20246.2 KiB196157

spi_hal.cD03-Aug-20246.5 KiB163115

spi_hal_iram.cD03-Aug-20247 KiB206144

spi_slave_hal.cD03-Aug-20242.3 KiB5541

spi_slave_hal_iram.cD03-Aug-20244.3 KiB12090

spi_slave_hd_hal.cD03-Aug-202415.2 KiB399323

systimer_hal.cD03-Aug-20247.3 KiB211160

timer_hal.cD03-Aug-20241.3 KiB4127

timer_hal_iram.cD03-Aug-20241.4 KiB3114

touch_sensor_hal.cD03-Aug-20241.7 KiB5331

twai_hal.cD03-Aug-20244.6 KiB11476

twai_hal_iram.cD03-Aug-20249.1 KiB197152

uart_hal.cD03-Aug-20245.1 KiB183141

uart_hal_iram.cD03-Aug-20241.5 KiB5029

usb_dwc_hal.cD03-Aug-202419.1 KiB416260

usb_hal.cD03-Aug-2024829 2710

usb_phy_hal.cD03-Aug-20241.9 KiB6443

wdt_hal_iram.cD03-Aug-20246.5 KiB203160

xt_wdt_hal.cD03-Aug-20242.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.