Files
esp-idf/components/soc/include/hal
Michael (XIAO Xufeng) f3705832fd Merge branch 'bugfix/add_adc-dma_for_esp32' into 'master'
driver(adc): add adc-dma code for esp32

Closes IDF-1407

See merge request espressif/esp-idf!9139

(cherry picked from commit 7876d7f5a6)

bd92e951 driver(adc): add adc-dma code for esp32
2020-08-31 16:29:51 +08:00
..
2019-11-25 00:36:30 +08:00
2019-11-21 16:25:22 +08:00
2019-11-25 00:36:30 +08:00
2019-11-25 00:36:30 +08:00
2019-11-18 14:35:46 +08:00
2020-02-26 16:52:53 +08:00
2019-05-20 07:34:34 +00:00
2020-03-25 17:14:00 +08:00
2019-11-21 10:40:49 +08:00
2019-11-21 10:40:49 +08:00
2019-12-13 18:33:15 +08:00
2019-12-13 18:33:15 +08:00
2019-06-22 19:08:47 +08:00
2019-06-22 19:08:47 +08:00
2020-04-01 16:51:43 +08:00
2020-04-01 16:51:43 +08:00
2020-07-30 22:09:39 +08:00
2020-07-30 22:09:39 +08:00
2020-03-30 22:05:48 +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.