Jiang Jiang Jian 7d0f1536e4 Merge branch 'bugfix/fix_adc_init_code_setting_for_esp32s2' into 'master' il y a 5 ans
..
adc_hal.h baa7898e35 driver(adc/dac): fix adc dac driver for esp32s2 il y a 5 ans
adc_types.h 406b8f423d driver(adc): add adc initial code before app_main for esp32s2. il y a 5 ans
brownout_hal.h caef7ad9f2 esp32, esp32s2beta: move brownout.c to esp_common il y a 6 ans
can_hal.h a049e02d96 can: Refactor CAN to use HAL and LowLevel layers il y a 6 ans
can_types.h a049e02d96 can: Refactor CAN to use HAL and LowLevel layers il y a 6 ans
cpu_hal.h 8b6c0947c7 soc: add hal api to set exception vector table base address il y a 6 ans
cpu_types.h c9a51bfbb2 soc: create abstraction for cpu related operations il y a 6 ans
dac_hal.h 03ac1aaafd dac: refactor driver add hal il y a 6 ans
dac_types.h baa7898e35 driver(adc/dac): fix adc dac driver for esp32s2 il y a 5 ans
esp_flash_err.h 612db28b6f Fix error code collision and CI check il y a 6 ans
gpio_hal.h af4c455417 bugfix(gpio):fix esp32 s2 rtc io issue il y a 6 ans
gpio_types.h e30cd361a8 global: rename esp32s2beta to esp32s2 il y a 6 ans
hal_defs.h 538540ce21 mcpwm: add HAL layer support il y a 6 ans
i2c_hal.h aac935ec81 bugfix(i2c): fix I2C driver breaking change issue. il y a 6 ans
i2c_types.h 11fac8637a docs: Resolve doxygen & Sphinx warnings il y a 6 ans
i2s_hal.h b3ae9fa978 bugfix(i2s): Updated ESP32-S2 ADC DAC support il y a 6 ans
i2s_types.h b3ae9fa978 bugfix(i2s): Updated ESP32-S2 ADC DAC support il y a 6 ans
ledc_hal.h 857dec108d feat(ledc): refactor ledc driver il y a 6 ans
ledc_types.h c7738f24fc Merge branch 'bugfix/ledc_driver_enums' into 'master' il y a 6 ans
mcpwm_hal.h 538540ce21 mcpwm: add HAL layer support il y a 6 ans
mcpwm_types.h 538540ce21 mcpwm: add HAL layer support il y a 6 ans
mpu_hal.h d46989efa3 soc: remove param checking in cpu related abstractions il y a 6 ans
mpu_types.h c9a51bfbb2 soc: create abstraction for cpu related operations il y a 6 ans
pcnt_hal.h b1a72866ca refactor(pcnt): add hal pcnt driver il y a 6 ans
pcnt_types.h 4d5c950770 bugfix(pcnt): fix driver ut pcnt il y a 6 ans
readme.md 33db6d608e spi_slave: add HAL support il y a 6 ans
rmt_hal.h 8fd8695ea1 rmt: add HAL layer il y a 6 ans
rmt_types.h 4fc16e2374 rmt: prefix caps name with SOC_ il y a 5 ans
rtc_io_hal.h 0c2bf7c8bc rtcio: add hal for driver il y a 6 ans
rtc_io_types.h 0c2bf7c8bc rtcio: add hal for driver il y a 6 ans
sdio_slave_hal.h 0ec08ca21b sdio_slave: support HAL layer il y a 6 ans
sdio_slave_ll.h 0ec08ca21b sdio_slave: support HAL layer il y a 6 ans
sdio_slave_types.h 0ec08ca21b sdio_slave: support HAL layer il y a 6 ans
sigmadelta_hal.h e62b831867 refactor(sigmadelta): add hal sigmadelta driver il y a 6 ans
sigmadelta_types.h e62b831867 refactor(sigmadelta): add hal sigmadelta driver il y a 6 ans
soc_hal.h d46989efa3 soc: remove param checking in cpu related abstractions il y a 6 ans
spi_flash_hal.h e6ad330018 ble_mesh_wifi_coexist example: Disable Wi-Fi RX IRAM optimisation il y a 6 ans
spi_flash_types.h 1f2e2fe8af soc: separate abstraction, description and implementation il y a 6 ans
spi_hal.h 5c9dc44c49 spi: multichip support il y a 6 ans
spi_slave_hal.h 5c9dc44c49 spi: multichip support il y a 6 ans
spi_types.h 49a48644e4 spi: allow using esp_flash and spi_master driver on the same bus il y a 5 ans
systimer_hal.h 2d1885b906 systimer: add HAL layer il y a 5 ans
systimer_types.h 2d1885b906 systimer: add HAL layer il y a 5 ans
timer_hal.h bcfe684951 bugfix(timer): add a macro to control making the XTAL related functions il y a 6 ans
timer_types.h 91841a53ff WDT: Add LL and HAL for watchdog timers il y a 5 ans
touch_sensor_hal.h 340563f479 Driver(touch): fix touch sensor driver for esp32s2. il y a 5 ans
touch_sensor_types.h baa7898e35 driver(adc/dac): fix adc dac driver for esp32s2 il y a 5 ans
uart_hal.h 3abdd2207d freemodbus: fix long buffer failure il y a 5 ans
uart_types.h c07e4c775d driver(uart): fix uart_set_line_inverse breaking change issue il y a 6 ans
usb_hal.h 4e8b4b9e49 soc: add USB peripheral register definitions, hal level, reg map, etc il y a 6 ans
wdt_hal.h 91841a53ff WDT: Add LL and HAL for watchdog timers il y a 5 ans
wdt_types.h 91841a53ff WDT: Add LL and HAL for watchdog timers il y a 5 ans

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.