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

This commit is contained in:
Song Ruo Jing
2026-03-02 15:03:30 +08:00
parent 25a17ddda0
commit acb49e9520
35 changed files with 272 additions and 172 deletions
@@ -25,7 +25,9 @@
#include "hal/misc.h"
#include "hal/assert.h"
#define RTCIO_LL_PIN_FUNC 1
#define RTCIO_LL_PIN_FUNC 1
#define RTCIO_LL_GPIO_NUM_OFFSET 0 // rtcio 0-6 correspond to gpio 0-6
#ifdef __cplusplus
extern "C" {
@@ -24,7 +24,9 @@
#include "hal/misc.h"
#include "hal/assert.h"
#define RTCIO_LL_PIN_FUNC 0
#define RTCIO_LL_PIN_FUNC 0
#define RTCIO_LL_GPIO_NUM_OFFSET 0 // rtcio 0-7 correspond to gpio 0-7
#ifdef __cplusplus
extern "C" {
@@ -25,7 +25,9 @@
#include "hal/misc.h"
#include "hal/assert.h"
#define RTCIO_LL_PIN_FUNC 1
#define RTCIO_LL_PIN_FUNC 1
#define RTCIO_LL_GPIO_NUM_OFFSET 0 // rtcio 0-6 correspond to gpio 0-6
#ifdef __cplusplus
extern "C" {
@@ -25,7 +25,9 @@
#include "hal/misc.h"
#include "hal/assert.h"
#define RTCIO_LL_PIN_FUNC 1
#define RTCIO_LL_PIN_FUNC 1
#define RTCIO_LL_GPIO_NUM_OFFSET 0 // rtcio 0-5 correspond to gpio 0-5
#ifdef __cplusplus
extern "C" {
@@ -25,7 +25,9 @@
#include "hal/assert.h"
#include "hal/config.h"
#define RTCIO_LL_PIN_FUNC 1 // LP_GPIO function
#define RTCIO_LL_PIN_FUNC 1 // LP_GPIO function
#define RTCIO_LL_GPIO_NUM_OFFSET 0 // rtcio 0-15 correspond to gpio 0-15
#ifdef __cplusplus
extern "C" {
@@ -22,7 +22,9 @@
#include "soc/rtc_cntl_reg.h"
#include "soc/sens_struct.h"
#define RTCIO_LL_PIN_FUNC 0
#define RTCIO_LL_PIN_FUNC 0
#define RTCIO_LL_GPIO_NUM_OFFSET 0 // rtcio 0-21 correspond to gpio 0-21
#ifdef __cplusplus
extern "C" {
@@ -26,7 +26,9 @@
#include "soc/sens_struct.h"
#include "soc/rtc_cntl_reg.h"
#define RTCIO_LL_PIN_FUNC 0
#define RTCIO_LL_PIN_FUNC 0
#define RTCIO_LL_GPIO_NUM_OFFSET 0 // rtcio 0-21 correspond to gpio 0-21
#ifdef __cplusplus
extern "C" {
@@ -24,7 +24,9 @@
#include "hal/misc.h"
#include "hal/assert.h"
#define RTCIO_LL_PIN_FUNC 1
#define RTCIO_LL_PIN_FUNC 1
#define RTCIO_LL_GPIO_NUM_OFFSET 0 // rtcio 0-7 correspond to gpio 0-7
#ifdef __cplusplus
extern "C" {