mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
2a6c6c18f7
esp_clk used to be protected using _lock_t (i.e., a FreeRTOS Mutex). However, esp_clk API is current called from from critical sections, thus mutex should not be used (as they can be blocking). This commit updates esp_clk to use spinlocks for critical sections instead.
esp_hw_support
This component contains hardware-related operations for supporting the system. These operations
are one level above that of hal
in that these(1) use system services such as memory allocation, logging, scheduling
or (2) may be multi-step operations involving/affecting multiple parts of the SoC.
Implementations that don't fit other components cleanly, but are not worth creating a new component for (yet) may also be placed here as long as they don't pull dependencies other than the core system components.