mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/gpio_config_pullup' into 'master'
Fix pullups is not configured by gpio_config https://github.com/espressif/esp-idf/issues/110 https://github.com/espressif/esp-idf/pull/111 See merge request !226
This commit is contained in:
commit
720a6c1e54
@ -321,9 +321,9 @@ esp_err_t gpio_config(gpio_config_t *pGPIOConfig)
|
||||
}
|
||||
if(pGPIOConfig->pull_up_en) {
|
||||
pu_en = 1;
|
||||
REG_SET_BIT(gpio_pu_pd_desc[io_num].reg, gpio_pu_pd_desc[io_num].pd);
|
||||
REG_SET_BIT(gpio_pu_pd_desc[io_num].reg, gpio_pu_pd_desc[io_num].pu);
|
||||
} else {
|
||||
REG_CLR_BIT(gpio_pu_pd_desc[io_num].reg, gpio_pu_pd_desc[io_num].pd);
|
||||
REG_CLR_BIT(gpio_pu_pd_desc[io_num].reg, gpio_pu_pd_desc[io_num].pu);
|
||||
}
|
||||
if(pGPIOConfig->pull_down_en) {
|
||||
pd_en = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user