Skip to content

Commit 122d122

Browse files
committed
refactor(gpio): reuse gpio_int_type_t in the rtc io driver
1 parent bf28df9 commit 122d122

File tree

9 files changed

+47
-110
lines changed

9 files changed

+47
-110
lines changed

components/hal/esp32/include/hal/rtc_io_ll.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#include <stdbool.h>
1616
#include <stdlib.h>
17+
#include "hal/gpio_types.h"
18+
#include "hal/assert.h"
1719
#include "soc/rtc_io_struct.h"
1820
#include "soc/rtc_io_reg.h"
1921
#include "soc/rtc_periph.h"
@@ -29,12 +31,6 @@ typedef enum {
2931
RTCIO_LL_FUNC_DIGITAL = 0x1, /*!< The pin controlled by DIGITAL module. */
3032
} rtcio_ll_func_t;
3133

32-
typedef enum {
33-
RTCIO_LL_WAKEUP_DISABLE = 0, /*!< Disable GPIO interrupt */
34-
RTCIO_LL_WAKEUP_LOW_LEVEL = 0x4, /*!< GPIO interrupt type : input low level trigger */
35-
RTCIO_LL_WAKEUP_HIGH_LEVEL = 0x5, /*!< GPIO interrupt type : input high level trigger */
36-
} rtcio_ll_wake_type_t;
37-
3834
typedef enum {
3935
RTCIO_LL_OUTPUT_NORMAL = 0, /*!< RTCIO output mode is normal. */
4036
RTCIO_LL_OUTPUT_OD = 0x1, /*!< RTCIO output mode is open-drain. */
@@ -309,8 +305,9 @@ static inline void rtcio_ll_force_unhold_all(void)
309305
* @param rtcio_num The index of rtcio. 0 ~ MAX(rtcio).
310306
* @param type Wakeup on high level or low level.
311307
*/
312-
static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t type)
308+
static inline void rtcio_ll_wakeup_enable(int rtcio_num, gpio_int_type_t type)
313309
{
310+
HAL_ASSERT(type == GPIO_INTR_LOW_LEVEL || type == GPIO_INTR_HIGH_LEVEL);
314311
RTCIO.pin[rtcio_num].wakeup_enable = 1;
315312
RTCIO.pin[rtcio_num].int_type = type;
316313
}
@@ -323,7 +320,7 @@ static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t ty
323320
static inline void rtcio_ll_wakeup_disable(int rtcio_num)
324321
{
325322
RTCIO.pin[rtcio_num].wakeup_enable = 0;
326-
RTCIO.pin[rtcio_num].int_type = RTCIO_LL_WAKEUP_DISABLE;
323+
RTCIO.pin[rtcio_num].int_type = 0;
327324
}
328325

329326
/**

components/hal/esp32c5/include/hal/rtc_io_ll.h

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -21,6 +21,7 @@
2121
#include "soc/lp_gpio_struct.h"
2222
#include "soc/lpperi_struct.h"
2323
#include "soc/pmu_struct.h"
24+
#include "hal/gpio_types.h"
2425
#include "hal/misc.h"
2526
#include "hal/assert.h"
2627

@@ -35,21 +36,6 @@ typedef enum {
3536
RTCIO_LL_FUNC_DIGITAL = 0x1, /*!< The pin controlled by DIGITAL module. */
3637
} rtcio_ll_func_t;
3738

38-
typedef enum {
39-
RTCIO_LL_WAKEUP_DISABLE = 0, /*!< Disable GPIO interrupt */
40-
RTCIO_LL_WAKEUP_LOW_LEVEL = 0x4, /*!< GPIO interrupt type : input low level trigger */
41-
RTCIO_LL_WAKEUP_HIGH_LEVEL = 0x5, /*!< GPIO interrupt type : input high level trigger */
42-
} rtcio_ll_wake_type_t;
43-
44-
typedef enum {
45-
RTCIO_INTR_DISABLE = 0, /*!< Disable GPIO interrupt */
46-
RTCIO_INTR_POSEDGE = 1, /*!< GPIO interrupt type : rising edge */
47-
RTCIO_INTR_NEGEDGE = 2, /*!< GPIO interrupt type : falling edge */
48-
RTCIO_INTR_ANYEDGE = 3, /*!< GPIO interrupt type : both rising and falling edge */
49-
RTCIO_INTR_LOW_LEVEL = 4, /*!< GPIO interrupt type : input low level trigger */
50-
RTCIO_INTR_HIGH_LEVEL = 5, /*!< GPIO interrupt type : input high level trigger */
51-
} rtcio_ll_intr_type_t;
52-
5339
typedef enum {
5440
RTCIO_LL_OUTPUT_NORMAL = 0, /*!< RTCIO output mode is normal. */
5541
RTCIO_LL_OUTPUT_OD = 0x1, /*!< RTCIO output mode is open-drain. */
@@ -328,7 +314,7 @@ static inline void rtcio_ll_force_unhold_all(void)
328314
* @param rtcio_num The index of rtcio. 0 ~ MAX(rtcio).
329315
* @param type Wakeup on high level or low level.
330316
*/
331-
static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t type)
317+
static inline void rtcio_ll_wakeup_enable(int rtcio_num, gpio_int_type_t type)
332318
{
333319
LP_GPIO.pinn[rtcio_num].pinn_wakeup_enable = 1;
334320
LP_GPIO.pinn[rtcio_num].pinn_int_type = type;
@@ -342,7 +328,7 @@ static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t ty
342328
static inline void rtcio_ll_wakeup_disable(int rtcio_num)
343329
{
344330
LP_GPIO.pinn[rtcio_num].pinn_wakeup_enable = 0;
345-
LP_GPIO.pinn[rtcio_num].pinn_int_type = RTCIO_LL_WAKEUP_DISABLE;
331+
LP_GPIO.pinn[rtcio_num].pinn_int_type = 0;
346332
}
347333

348334
/**
@@ -352,7 +338,7 @@ static inline void rtcio_ll_wakeup_disable(int rtcio_num)
352338
* @param type Interrupt type on high level or low level.
353339
*/
354340

355-
static inline void rtcio_ll_intr_enable(int rtcio_num, rtcio_ll_intr_type_t type)
341+
static inline void rtcio_ll_intr_enable(int rtcio_num, gpio_int_type_t type)
356342
{
357343
LP_GPIO.pinn[rtcio_num].pinn_int_type = type;
358344

components/hal/esp32c6/include/hal/rtc_io_ll.h

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -20,6 +20,7 @@
2020
#include "soc/lp_aon_struct.h"
2121
#include "soc/lpperi_struct.h"
2222
#include "soc/pmu_struct.h"
23+
#include "hal/gpio_types.h"
2324
#include "hal/misc.h"
2425
#include "hal/assert.h"
2526

@@ -34,21 +35,6 @@ typedef enum {
3435
RTCIO_LL_FUNC_DIGITAL = 0x1, /*!< The pin controlled by DIGITAL module. */
3536
} rtcio_ll_func_t;
3637

37-
typedef enum {
38-
RTCIO_LL_WAKEUP_DISABLE = 0, /*!< Disable GPIO interrupt */
39-
RTCIO_LL_WAKEUP_LOW_LEVEL = 0x4, /*!< GPIO interrupt type : input low level trigger */
40-
RTCIO_LL_WAKEUP_HIGH_LEVEL = 0x5, /*!< GPIO interrupt type : input high level trigger */
41-
} rtcio_ll_wake_type_t;
42-
43-
typedef enum {
44-
RTCIO_INTR_DISABLE = 0, /*!< Disable GPIO interrupt */
45-
RTCIO_INTR_POSEDGE = 1, /*!< GPIO interrupt type : rising edge */
46-
RTCIO_INTR_NEGEDGE = 2, /*!< GPIO interrupt type : falling edge */
47-
RTCIO_INTR_ANYEDGE = 3, /*!< GPIO interrupt type : both rising and falling edge */
48-
RTCIO_INTR_LOW_LEVEL = 4, /*!< GPIO interrupt type : input low level trigger */
49-
RTCIO_INTR_HIGH_LEVEL = 5, /*!< GPIO interrupt type : input high level trigger */
50-
} rtcio_ll_intr_type_t;
51-
5238
typedef enum {
5339
RTCIO_LL_OUTPUT_NORMAL = 0, /*!< RTCIO output mode is normal. */
5440
RTCIO_LL_OUTPUT_OD = 0x1, /*!< RTCIO output mode is open-drain. */
@@ -327,7 +313,7 @@ static inline void rtcio_ll_force_unhold_all(void)
327313
* @param rtcio_num The index of rtcio. 0 ~ MAX(rtcio).
328314
* @param type Wakeup on high level or low level.
329315
*/
330-
static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t type)
316+
static inline void rtcio_ll_wakeup_enable(int rtcio_num, gpio_int_type_t type)
331317
{
332318
LP_IO.pin[rtcio_num].wakeup_enable = 1;
333319
LP_IO.pin[rtcio_num].int_type = type;
@@ -349,7 +335,7 @@ static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t ty
349335
static inline void rtcio_ll_wakeup_disable(int rtcio_num)
350336
{
351337
LP_IO.pin[rtcio_num].wakeup_enable = 0;
352-
LP_IO.pin[rtcio_num].int_type = RTCIO_LL_WAKEUP_DISABLE;
338+
LP_IO.pin[rtcio_num].int_type = 0;
353339
}
354340

355341
/**
@@ -359,7 +345,7 @@ static inline void rtcio_ll_wakeup_disable(int rtcio_num)
359345
* @param type Interrupt type on high level or low level.
360346
*/
361347

362-
static inline void rtcio_ll_intr_enable(int rtcio_num, rtcio_ll_intr_type_t type)
348+
static inline void rtcio_ll_intr_enable(int rtcio_num, gpio_int_type_t type)
363349
{
364350
LP_IO.pin[rtcio_num].int_type = type;
365351

components/hal/esp32c61/include/hal/rtc_io_ll.h

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -21,6 +21,7 @@
2121
#include "soc/lp_gpio_struct.h"
2222
#include "soc/lpperi_struct.h"
2323
#include "soc/pmu_struct.h"
24+
#include "hal/gpio_types.h"
2425
#include "hal/misc.h"
2526
#include "hal/assert.h"
2627

@@ -35,21 +36,6 @@ typedef enum {
3536
RTCIO_LL_FUNC_DIGITAL = 0x1, /*!< The pin controlled by DIGITAL module. */
3637
} rtcio_ll_func_t;
3738

38-
typedef enum {
39-
RTCIO_LL_WAKEUP_DISABLE = 0, /*!< Disable GPIO interrupt */
40-
RTCIO_LL_WAKEUP_LOW_LEVEL = 0x4, /*!< GPIO interrupt type : input low level trigger */
41-
RTCIO_LL_WAKEUP_HIGH_LEVEL = 0x5, /*!< GPIO interrupt type : input high level trigger */
42-
} rtcio_ll_wake_type_t;
43-
44-
typedef enum {
45-
RTCIO_INTR_DISABLE = 0, /*!< Disable GPIO interrupt */
46-
RTCIO_INTR_POSEDGE = 1, /*!< GPIO interrupt type : rising edge */
47-
RTCIO_INTR_NEGEDGE = 2, /*!< GPIO interrupt type : falling edge */
48-
RTCIO_INTR_ANYEDGE = 3, /*!< GPIO interrupt type : both rising and falling edge */
49-
RTCIO_INTR_LOW_LEVEL = 4, /*!< GPIO interrupt type : input low level trigger */
50-
RTCIO_INTR_HIGH_LEVEL = 5, /*!< GPIO interrupt type : input high level trigger */
51-
} rtcio_ll_intr_type_t;
52-
5339
typedef enum {
5440
RTCIO_LL_OUTPUT_NORMAL = 0, /*!< RTCIO output mode is normal. */
5541
RTCIO_LL_OUTPUT_OD = 0x1, /*!< RTCIO output mode is open-drain. */
@@ -328,7 +314,7 @@ static inline void rtcio_ll_force_unhold_all(void)
328314
* @param rtcio_num The index of rtcio. 0 ~ MAX(rtcio).
329315
* @param type Wakeup on high level or low level.
330316
*/
331-
static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t type)
317+
static inline void rtcio_ll_wakeup_enable(int rtcio_num, gpio_int_type_t type)
332318
{
333319
LP_GPIO.pinn[rtcio_num].pinn_wakeup_enable = 1;
334320
LP_GPIO.pinn[rtcio_num].pinn_int_type = type;
@@ -342,7 +328,7 @@ static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t ty
342328
static inline void rtcio_ll_wakeup_disable(int rtcio_num)
343329
{
344330
LP_GPIO.pinn[rtcio_num].pinn_wakeup_enable = 0;
345-
LP_GPIO.pinn[rtcio_num].pinn_int_type = RTCIO_LL_WAKEUP_DISABLE;
331+
LP_GPIO.pinn[rtcio_num].pinn_int_type = 0;
346332
}
347333

348334
/**
@@ -352,7 +338,7 @@ static inline void rtcio_ll_wakeup_disable(int rtcio_num)
352338
* @param type Interrupt type on high level or low level.
353339
*/
354340

355-
static inline void rtcio_ll_intr_enable(int rtcio_num, rtcio_ll_intr_type_t type)
341+
static inline void rtcio_ll_intr_enable(int rtcio_num, gpio_int_type_t type)
356342
{
357343
LP_GPIO.pinn[rtcio_num].pinn_int_type = type;
358344

components/hal/esp32p4/include/hal/rtc_io_ll.h

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -19,6 +19,7 @@
1919
#include "soc/lp_iomux_struct.h"
2020
#include "soc/lp_gpio_sig_map.h"
2121
#include "soc/pmu_struct.h"
22+
#include "hal/gpio_types.h"
2223
#include "hal/misc.h"
2324
#include "hal/assert.h"
2425

@@ -33,21 +34,6 @@ typedef enum {
3334
RTCIO_LL_FUNC_DIGITAL = 0x1, /*!< The pin controlled by DIGITAL module. */
3435
} rtcio_ll_func_t;
3536

36-
typedef enum {
37-
RTCIO_LL_WAKEUP_DISABLE = 0, /*!< Disable GPIO interrupt */
38-
RTCIO_LL_WAKEUP_LOW_LEVEL = 0x4, /*!< GPIO interrupt type : input low level trigger */
39-
RTCIO_LL_WAKEUP_HIGH_LEVEL = 0x5, /*!< GPIO interrupt type : input high level trigger */
40-
} rtcio_ll_wake_type_t;
41-
42-
typedef enum {
43-
RTCIO_INTR_DISABLE = 0, /*!< Disable GPIO interrupt */
44-
RTCIO_INTR_POSEDGE = 1, /*!< GPIO interrupt type : rising edge */
45-
RTCIO_INTR_NEGEDGE = 2, /*!< GPIO interrupt type : falling edge */
46-
RTCIO_INTR_ANYEDGE = 3, /*!< GPIO interrupt type : both rising and falling edge */
47-
RTCIO_INTR_LOW_LEVEL = 4, /*!< GPIO interrupt type : input low level trigger */
48-
RTCIO_INTR_HIGH_LEVEL = 5, /*!< GPIO interrupt type : input high level trigger */
49-
} rtcio_ll_intr_type_t;
50-
5137
typedef enum {
5238
RTCIO_LL_OUTPUT_NORMAL = 0, /*!< RTCIO output mode is normal. */
5339
RTCIO_LL_OUTPUT_OD = 0x1, /*!< RTCIO output mode is open-drain. */
@@ -370,7 +356,7 @@ static inline void rtcio_ll_force_unhold_all(void)
370356
* @param rtcio_num The index of rtcio. 0 ~ MAX(rtcio).
371357
* @param type Wakeup on high level or low level.
372358
*/
373-
static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t type)
359+
static inline void rtcio_ll_wakeup_enable(int rtcio_num, gpio_int_type_t type)
374360
{
375361
LP_GPIO.pin[rtcio_num].wakeup_enable = 1;
376362
LP_GPIO.pin[rtcio_num].int_type = type;
@@ -384,7 +370,7 @@ static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t ty
384370
static inline void rtcio_ll_wakeup_disable(int rtcio_num)
385371
{
386372
LP_GPIO.pin[rtcio_num].wakeup_enable = 0;
387-
LP_GPIO.pin[rtcio_num].int_type = RTCIO_LL_WAKEUP_DISABLE;
373+
LP_GPIO.pin[rtcio_num].int_type = 0;
388374
}
389375

390376
/**
@@ -393,7 +379,7 @@ static inline void rtcio_ll_wakeup_disable(int rtcio_num)
393379
* @param rtcio_num The index of rtcio. 0 ~ MAX(rtcio).
394380
* @param type Interrupt type on high level or low level.
395381
*/
396-
static inline void rtcio_ll_intr_enable(int rtcio_num, rtcio_ll_intr_type_t type)
382+
static inline void rtcio_ll_intr_enable(int rtcio_num, gpio_int_type_t type)
397383
{
398384
LP_GPIO.pin[rtcio_num].int_type = type;
399385
}

components/hal/esp32s2/include/hal/rtc_io_ll.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#include <stdbool.h>
1616
#include <stdlib.h>
17+
#include "hal/assert.h"
18+
#include "hal/gpio_types.h"
1719
#include "soc/rtc_io_struct.h"
1820
#include "soc/rtc_io_reg.h"
1921
#include "soc/rtc_periph.h"
@@ -30,12 +32,6 @@ typedef enum {
3032
RTCIO_LL_FUNC_DIGITAL = 0x1, /*!< The pin controlled by DIGITAL module. */
3133
} rtcio_ll_func_t;
3234

33-
typedef enum {
34-
RTCIO_LL_WAKEUP_DISABLE = 0, /*!< Disable GPIO interrupt */
35-
RTCIO_LL_WAKEUP_LOW_LEVEL = 0x4, /*!< GPIO interrupt type : input low level trigger */
36-
RTCIO_LL_WAKEUP_HIGH_LEVEL = 0x5, /*!< GPIO interrupt type : input high level trigger */
37-
} rtcio_ll_wake_type_t;
38-
3935
typedef enum {
4036
RTCIO_LL_OUTPUT_NORMAL = 0, /*!< RTCIO output mode is normal. */
4137
RTCIO_LL_OUTPUT_OD = 0x1, /*!< RTCIO output mode is open-drain. */
@@ -318,8 +314,9 @@ static inline void rtcio_ll_force_unhold_all(void)
318314
* @param rtcio_num The index of rtcio. 0 ~ MAX(rtcio).
319315
* @param type Wakeup on high level or low level.
320316
*/
321-
static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t type)
317+
static inline void rtcio_ll_wakeup_enable(int rtcio_num, gpio_int_type_t type)
322318
{
319+
HAL_ASSERT(type == GPIO_INTR_LOW_LEVEL || type == GPIO_INTR_HIGH_LEVEL);
323320
RTCIO.pin[rtcio_num].wakeup_enable = 1;
324321
RTCIO.pin[rtcio_num].int_type = type;
325322
}
@@ -332,7 +329,7 @@ static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t ty
332329
static inline void rtcio_ll_wakeup_disable(int rtcio_num)
333330
{
334331
RTCIO.pin[rtcio_num].wakeup_enable = 0;
335-
RTCIO.pin[rtcio_num].int_type = RTCIO_LL_WAKEUP_DISABLE;
332+
RTCIO.pin[rtcio_num].int_type = 0;
336333
}
337334

338335
/**

components/hal/esp32s3/include/hal/rtc_io_ll.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#include <stdbool.h>
1616
#include <stdlib.h>
17+
#include "hal/gpio_types.h"
18+
#include "hal/assert.h"
1719
#include "soc/rtc_io_struct.h"
1820
#include "soc/rtc_io_reg.h"
1921
#include "soc/rtc_periph.h"
@@ -33,12 +35,6 @@ typedef enum {
3335
RTCIO_LL_FUNC_DIGITAL = 0x1, /*!< The pin controlled by DIGITAL module. */
3436
} rtcio_ll_func_t;
3537

36-
typedef enum {
37-
RTCIO_LL_WAKEUP_DISABLE = 0, /*!< Disable GPIO interrupt */
38-
RTCIO_LL_WAKEUP_LOW_LEVEL = 0x4, /*!< GPIO interrupt type : input low level trigger */
39-
RTCIO_LL_WAKEUP_HIGH_LEVEL = 0x5, /*!< GPIO interrupt type : input high level trigger */
40-
} rtcio_ll_wake_type_t;
41-
4238
typedef enum {
4339
RTCIO_LL_OUTPUT_NORMAL = 0, /*!< RTCIO output mode is normal. */
4440
RTCIO_LL_OUTPUT_OD = 0x1, /*!< RTCIO output mode is open-drain. */
@@ -345,8 +341,9 @@ static inline void rtcio_ll_force_unhold_all(void)
345341
* @param rtcio_num The index of rtcio. 0 ~ MAX(rtcio).
346342
* @param type Wakeup on high level or low level.
347343
*/
348-
static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t type)
344+
static inline void rtcio_ll_wakeup_enable(int rtcio_num, gpio_int_type_t type)
349345
{
346+
HAL_ASSERT(type == GPIO_INTR_LOW_LEVEL || type == GPIO_INTR_HIGH_LEVEL);
350347
RTCIO.pin[rtcio_num].wakeup_enable = 1;
351348
RTCIO.pin[rtcio_num].int_type = type;
352349
}
@@ -359,7 +356,7 @@ static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t ty
359356
static inline void rtcio_ll_wakeup_disable(int rtcio_num)
360357
{
361358
RTCIO.pin[rtcio_num].wakeup_enable = 0;
362-
RTCIO.pin[rtcio_num].int_type = RTCIO_LL_WAKEUP_DISABLE;
359+
RTCIO.pin[rtcio_num].int_type = 0;
363360
}
364361

365362
/**

0 commit comments

Comments
 (0)