This commit makes changes to cpu_ll.h, cpu_hal.h, and interrupt_controller_hal.h: - Moved to esp_hw_support in order to be deprecated in the future - HAL/LL API now route their calls to esp_cpu.h functions instead Also updated soc_hal.h as follows: - Removed __SOC_HAL_..._OTHER_CORES() macros as they dependend on cpu_hal.h - Made soc_hal.h and soc_ll.h interfaces always inline, and removed soc_hal.c. This commit also updates the XCHAL_ERRATUM_572 workaround by - Removing it's HAL function and invoking the workaround it directly the bootloader - Added missing workaround for the ESP32-S3
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.