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

[SPI] Add CPOL (clock polarity) configuration option #185

Merged
merged 15 commits into from
Oct 18, 2021
Merged

Conversation

stnolting
Copy link
Owner

@stnolting stnolting commented Oct 17, 2021

This PR adds a new flag to the SPI module's control register to configure the clock polarity. Together with the clock phase configuration bit, the SPI module now supports all SPI clock modes (0,1,2,3).

This PR is also a makeover of the SPI's VHDL source code (clean-up and logic optimization).

✔️ The changes made by this PR are fully backwards-compatible (except for the provided C-language neorv32_spi_setup function prototype, which now requires an additional argument).

@stnolting stnolting added the enhancement New feature or request label Oct 17, 2021
@stnolting stnolting self-assigned this Oct 17, 2021
@stnolting stnolting added HW hardware-related SW software-related labels Oct 17, 2021
@stnolting stnolting marked this pull request as ready for review October 17, 2021 08:46
@stnolting stnolting merged commit 217244f into master Oct 18, 2021
@stnolting stnolting deleted the add_spi_cpol branch October 18, 2021 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request HW hardware-related SW software-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant