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

RP2040: have clock start high when SPI polarity high #7229

Merged
merged 1 commit into from
Nov 19, 2022

Conversation

dhalbert
Copy link
Collaborator

While testing for #6510, I found a different problem on RP2040. The hw peripheral does not start with SCK high when polarity set to high. This is discussed here:

raspberrypi/pico-sdk#868
https://forums.raspberrypi.com/viewtopic.php?t=336142

Add a workaround, which can be removed when pico-sdk is fixed (scheduled for 1.5.0).

Tested on a Feather RP2040 with a mode 3 sensor, ADXL343.

Copy link
Member

@jepler jepler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like the workaround that was detailed elsewhere. didn't test.

@dhalbert dhalbert merged commit 96fc85c into adafruit:main Nov 19, 2022
@dhalbert dhalbert deleted the rp2040-spi-mode-3 branch November 19, 2022 19:32
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.

None yet

2 participants