Skip to content

pico_cyw43_driver: move platform-independent spi code to a separate file - #3329

Open
r-c-n wants to merge 1 commit into
raspberrypi:developfrom
r-c-n:cyw43-driver-spi-common-refactor
Open

r-c-n wants to merge 1 commit into
raspberrypi:developfrom
r-c-n:cyw43-driver-spi-common-refactor

Conversation

@r-c-n

@r-c-n r-c-n commented Dec 3, 2026

Copy link
Copy Markdown

Keep the platform-specific pico-sdk PIO-SPI code in cyw43_bus_pio_spi.c and move the platform-independent helpers to a separate file so that they can be reused from other codebases.

This makes it possible to have a cyw43 driver in Zephyr re-using this code while keeping a different license.

@peterharperuk peterharperuk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some minor comment - I can suggest fixes if you want.

For future me - this so these BSD licensed functions can be reused in Zephyr - so they don't need to be copied into an Apache licensed source file.

Keep the platform-specific pico-sdk PIO-SPI code in cyw43_bus_pio_spi.c
and move the platform-independent helpers to a separate file so that
they can be reused from other codebases.
@r-c-n
r-c-n force-pushed the cyw43-driver-spi-common-refactor branch from 9d986ea to 35ac599 Compare December 3, 2026 13:33
@r-c-n
r-c-n requested a review from peterharperuk December 4, 2026 10:14
@peterharperuk peterharperuk self-assigned this Dec 4, 2026
@peterharperuk peterharperuk added this to the 2.3.2 milestone Dec 4, 2026
@peterharperuk

Copy link
Copy Markdown
Contributor

@kilograham Is it ok if I merge this? It just moves some common source to a separate file so it can be reused in Zephyr

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