global: make periph enable/disable APIs private

peripheral enable/disable usually should be managed by driver itself,
so make it as espressif private APIs, not recommended for user to use it
in application code.
However, if user want to re-write the driver or ports to other platform,
this is still possible by including the header in this way:
"esp_private/peripheral_ctrl.h"
This commit is contained in:
morris
2021-10-25 17:13:46 +08:00
parent 7bc3506350
commit 16677b0d3c
85 changed files with 252 additions and 375 deletions

View File

@@ -29,7 +29,7 @@
#include "esp_err.h"
#include "esp_log.h"
#include "esp_pm.h"
#include "driver/periph_ctrl.h"
#include "esp_private/periph_ctrl.h"
#include "soc/rtc.h"
#include "soc/soc_memory_layout.h"
#include "soc/dport_reg.h"