mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 09:09:10 -04:00
Merge branch 'bugfix/bugfix/gpio_cant_hold_v4.3' into 'release/v4.3'
gpio: fix issue that gpio cannot hold during deep-sleep on c3 (backport v4.3) See merge request espressif/esp-idf!15358
This commit is contained in:
commit
a05d4e9e86
@ -334,6 +334,7 @@ static inline void gpio_ll_get_drive_capability(gpio_dev_t *hw, gpio_num_t gpio_
|
|||||||
*/
|
*/
|
||||||
static inline void gpio_ll_deep_sleep_hold_en(gpio_dev_t *hw)
|
static inline void gpio_ll_deep_sleep_hold_en(gpio_dev_t *hw)
|
||||||
{
|
{
|
||||||
|
CLEAR_PERI_REG_MASK(RTC_CNTL_DIG_ISO_REG, RTC_CNTL_DG_PAD_FORCE_UNHOLD);
|
||||||
SET_PERI_REG_MASK(RTC_CNTL_DIG_ISO_REG, RTC_CNTL_DG_PAD_AUTOHOLD_EN_M);
|
SET_PERI_REG_MASK(RTC_CNTL_DIG_ISO_REG, RTC_CNTL_DG_PAD_AUTOHOLD_EN_M);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,26 +40,26 @@ const uint32_t GPIO_PIN_MUX_REG[SOC_GPIO_PIN_COUNT] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const uint32_t GPIO_HOLD_MASK[SOC_GPIO_PIN_COUNT] = {
|
const uint32_t GPIO_HOLD_MASK[SOC_GPIO_PIN_COUNT] = {
|
||||||
BIT(0), //GPIO0
|
BIT(0), //GPIO0
|
||||||
BIT(1), //GPIO1
|
BIT(1), //GPIO1
|
||||||
BIT(2), //GPIO2
|
BIT(2), //GPIO2
|
||||||
BIT(3), //GPIO3
|
BIT(3), //GPIO3
|
||||||
BIT(4), //GPIO4
|
BIT(4), //GPIO4
|
||||||
BIT(5), //GPIO5
|
BIT(5), //GPIO5
|
||||||
BIT(5), //GPIO6
|
BIT(6), //GPIO6
|
||||||
BIT(6), //GPIO7
|
BIT(7), //GPIO7
|
||||||
BIT(3), //GPIO8
|
BIT(8), //GPIO8
|
||||||
BIT(4), //GPIO9
|
BIT(9), //GPIO9
|
||||||
BIT(0), //GPIO10
|
BIT(10), //GPIO10
|
||||||
BIT(15), //GPIO11
|
BIT(11), //GPIO11
|
||||||
BIT(10), //GPIO12
|
BIT(12), //GPIO12
|
||||||
BIT(12), //GPIO13
|
BIT(13), //GPIO13
|
||||||
BIT(8), //GPIO14
|
BIT(14), //GPIO14
|
||||||
BIT(7), //GPIO15
|
BIT(15), //GPIO15
|
||||||
BIT(9), //GPIO16
|
BIT(16), //GPIO16
|
||||||
BIT(11), //GPIO17
|
BIT(17), //GPIO17
|
||||||
BIT(1), //GPIO18
|
BIT(18), //GPIO18
|
||||||
BIT(2), //GPIO19
|
BIT(19), //GPIO19
|
||||||
BIT(13), //GPIO20
|
BIT(20), //GPIO20
|
||||||
BIT(14), //GPIO21
|
BIT(21), //GPIO21
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user