Files
esp-idf/components/hal/include/hal
Alexey Lapshin 4df3ff619e feat(esp_system): implement hw stack guard for riscv chips
- add hardware stack guard based on assist-debug module
- enable hardware stack guard by default
- disable hardware stack guard for freertos ci.release test
- refactor rtos_int_enter/rtos_int_exit to change SP register inside them
- fix panic_reason.h header for RISC-V
- update docs to include information about the new feature
2023-07-01 16:27:40 +00:00
..
2020-12-10 09:04:47 +00:00
2023-01-10 10:37:30 +08:00
2022-10-25 17:14:59 +08:00
2021-09-02 11:59:24 +05:30
2023-04-07 14:55:21 +05:30
2022-11-23 15:31:33 +08:00
2021-11-08 16:14:51 +08:00
2023-03-01 00:43:14 +00:00
2022-11-07 14:12:53 +08:00
2022-08-17 06:33:06 +00:00
2021-01-07 10:13:17 +08:00
2023-03-01 00:43:14 +00:00
2022-05-07 10:34:50 +00:00
2023-03-02 15:06:05 +08:00
2023-01-18 02:34:46 +00:00
2022-07-20 14:59:50 +08:00
2022-07-20 14:59:50 +08:00
2022-09-13 10:50:58 +08:00
2022-11-04 17:40:29 +08:00
2021-08-24 23:28:00 +08:00
2023-01-19 12:58:26 +08:00

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.