fix(rtcio): RTC GPIO configuration should be written if LP IO clock exists

This commit is contained in:
Song Ruo Jing
2026-03-13 14:24:42 +08:00
parent 06b5b96b19
commit ae99294ea3
30 changed files with 221 additions and 124 deletions
@@ -23,6 +23,7 @@
#include "soc/usb_serial_jtag_reg.h"
#include "soc/usb_serial_jtag_struct.h"
#include "soc/sens_struct.h"
#include "soc/rtc_cntl_reg.h"
#ifdef __cplusplus
extern "C" {
@@ -30,6 +31,8 @@ extern "C" {
#define RTCIO_LL_PIN_FUNC 0
#define RTCIO_LL_GPIO_NUM_OFFSET 0 // rtcio 0-21 correspond to gpio 0-21
typedef enum {
RTCIO_LL_FUNC_RTC = 0x0, /*!< The pin controlled by RTC module. */
RTCIO_LL_FUNC_DIGITAL = 0x1, /*!< The pin controlled by DIGITAL module. */