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-S2: Improvements to the GPIO driver #6540

Merged
merged 2 commits into from
Jun 29, 2022

Conversation

gustavonihei
Copy link
Contributor

@gustavonihei gustavonihei commented Jun 28, 2022

Summary

This PR intends to fix the number of GPIO IRQs on the ESP32-S2.
Also, it brings an improvement to the documentation of the GPIO driver interface and to the overall code quality of the driver implementation.

Impact

gpio_intrtype_t type has been changed from uint8_t to enum gpio_intrtype_e, with new identifiers for each enum item.
This might affect users with custom boards based on ESP32-S2 chips.

Testing

Validated with esp32s2-saola-1 during development of the I2C driver on #6539

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
Sync driver interfaces, also fixes the handling of special pin value for
esp32s2_gpio_matrix_in and esp32s2_gpio_matrix_out functions

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
@xiaoxiang781216 xiaoxiang781216 merged commit 31cddc9 into apache:master Jun 29, 2022
@gustavonihei gustavonihei deleted the bugfix/esp32s2_gpio branch June 29, 2022 17:04
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

Successfully merging this pull request may close these issues.

3 participants