Skip to content

Commit

Permalink
proper setup of pull up/down for ulp
Browse files Browse the repository at this point in the history
  • Loading branch information
ftylitak committed Feb 29, 2024
1 parent 33b18e0 commit 4d65ff3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ports/esp32/esp32_ulp.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ STATIC mp_obj_t esp32_ulp_init_gpio(mp_obj_t self_in, mp_obj_t gpio_num_in)

rtc_gpio_init(gpio_num);
rtc_gpio_set_direction(gpio_num, RTC_GPIO_MODE_INPUT_ONLY);
rtc_gpio_pulldown_en(gpio_num);

// no pull up/down is needed if shield is present with clear signal
rtc_gpio_pulldown_dis(gpio_num);
rtc_gpio_pullup_dis(gpio_num);
rtc_gpio_hold_en(gpio_num);

Expand Down

0 comments on commit 4d65ff3

Please sign in to comment.