Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp32: gpio_make_output needs to select mux configuration #4

Open
jonhnet opened this issue Jan 1, 2024 · 0 comments
Open

esp32: gpio_make_output needs to select mux configuration #4

jonhnet opened this issue Jan 1, 2024 · 0 comments

Comments

@jonhnet
Copy link
Collaborator

jonhnet commented Jan 1, 2024

Out of the box, I can't use rulos' gpio_make_output to get output out of pins 12, 13, 14 on esp32. That's evidently because they're configured to be attached to the JTAG unit at boot:

https://www.esp32.com/viewtopic.php?t=2687

This extra call solved the problem for me:

  PIN_FUNC_SELECT(GPIO_PIN_MUX_REG[13], PIN_FUNC_GPIO);
  gpio_make_output(14);

Should we do this for every call to gpio_make_output? Should we use that macro layer, or dig in a layer? The current code in esp32/core/hardware.h doesn't use similar-looking macros to configure the output enable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant