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

drivers: spi_bitbang: Add support for SPI_TRANSFER_LSB flag #77858

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

morsisko
Copy link
Contributor

@morsisko morsisko commented Sep 1, 2024

The SPI bitbang driver now supports LSB-first transfers. Additionally, when SPI_LINES_OCTAL flag is set, the driver will yield an error.

Transfer without SPI_TRANSFER_LSB:
obraz

Transfer with SPI_TRANSFER_LSB (the result of this pull request):
obraz

@zephyrbot zephyrbot added the area: SPI SPI bus label Sep 1, 2024
@morsisko morsisko force-pushed the spibb_lsb branch 3 times, most recently from 68d6bd2 to 254a63b Compare September 1, 2024 22:51
Add support for sending and receiving the least significant bit first
for the spi_bitbang driver. This driver can now be used with
SPI_TRANFER_LSB flag.

Signed-off-by: Michal Morsisko <[email protected]>
Prevent the driver from perfroming transfer when SPI_LINES_OCTAL flag
is specified, as this driver supports only SPI_LINES_DUAL for now.

Signed-off-by: Michal Morsisko <[email protected]>
Copy link

github-actions bot commented Nov 2, 2024

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Nov 2, 2024
@morsisko
Copy link
Contributor Author

morsisko commented Nov 2, 2024

up (comment to remove the stale label)

@github-actions github-actions bot removed the Stale label Nov 3, 2024
@kartben
Copy link
Collaborator

kartben commented Nov 25, 2024

@teburd could you give this one a look? Thanks

@kartben kartben merged commit c4923b6 into zephyrproject-rtos:main Dec 16, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: SPI SPI bus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants