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

Fixes SPI access for ESP32C6 #51

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

outlandnish
Copy link

Updates the pre-processor check to also support the SPI peripheral on the ESP32C6

@rabadalCactus
Copy link

rabadalCactus commented Jan 28, 2025

I understand that maybe you want to do this in another PR, but this is not enough to adapt the library for esp32c6.
You need to adapt the clock source for the RMT too
RmtDriver5.cpp line 125

        .clk_src = RMT_CLK_SRC_APB,

I suggest using default, which is APB for both S3 and C3. Default on C6 is SOC_MOD_CLK_PLL_F80M.

        .clk_src = RMT_CLK_SRC_DEFAULT,

I validated this with the sample code on the ESP32-c6DevKitC-1

@outlandnish
Copy link
Author

Ah yeah, good call!

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.

2 participants