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

xtensa/esp32: Refactor register access functions on SPI driver #3270

Merged

Conversation

gustavonihei
Copy link
Contributor

@gustavonihei gustavonihei commented Apr 1, 2021

Summary

This MR intends to refactor the way that registers are accessed in the ESP32 SPI driver.

The motivation for this refactor are:

  • Remove esp32_spi_get_reg and esp32_spi_set_reg wrapper functions in favor of a direct call to getreg32 and putreg32, respectively.
  • Reuse the SPI_<REG_NAME>_REG(i) definitions which already resolve the final register address for a given SPI peripheral ID i.

Impact

No functional changes to the ESP32 SPI driver.

Testing

esp32-wrover-kit with a yet to be upstreamed SPI LCD driver.

@saramonteiro
Copy link
Contributor

LGTM

@acassis acassis merged commit 2d0e690 into apache:master Apr 1, 2021
@btashton btashton added this to To-Add in Release Notes - 10.1.0 Apr 12, 2021
@jerpelea jerpelea moved this from To-Add to boards in Release Notes - 10.1.0 Apr 13, 2021
@jerpelea jerpelea moved this from boards to Added in Release Notes - 10.1.0 Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants