Files
esp-idf/components/hal/include/hal
bizhuangyang 78c67d2384 gpio:support gpio in/out/interrupt for esp32s3(728)
Add support of gpio for esp32s3(728). Adjust some pins and comments in test_gpio.c. Add support for gpio functions for gpio19 and gpio20. Update S3 programming guide Peripheral API: gpio and sigmadelta. Add unit test for input and output function of S3 USB pins(GPIO19 and GPIO20) and C3 USB pins(GPIO18 and GPIO19). Adjust input only test in test_spi_master.c.
2021-06-28 11:44:14 +08:00
..
2020-12-10 09:04:47 +00:00
2021-01-19 14:50:58 +08:00
2021-06-22 11:28:01 +08:00
2021-06-16 09:48:21 +08:00
2021-06-16 09:48:21 +08:00
2021-01-13 10:52:27 +08:00
2021-01-12 14:05:08 +08:00
2021-03-13 22:31:30 +08:00
2020-09-11 15:48:08 +08:00
2021-06-09 12:27:01 +08:00
2021-06-09 12:27:01 +08:00
2021-01-07 10:13:17 +08:00
2020-11-30 15:23:15 +11:00
2021-04-22 21:08:39 +08:00
2021-04-22 21:07:35 +08:00
2020-10-17 16:10:17 +08:00
2020-11-24 19:12:51 +08:00
2021-06-22 11:28:01 +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.