-
-
Notifications
You must be signed in to change notification settings - Fork 770
Add SPI to RP2040 #2678
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
Add SPI to RP2040 #2678
Conversation
Co-authored-by: Iulia Luta <[email protected]>
spi0: spi::Spi::new_spi0(), | ||
sysinfo: sysinfo::SysInfo::new(), | ||
} | ||
} | ||
|
||
pub fn set_clocks(&'a self) { | ||
self.spi0.set_clocks(&self.clocks); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be easier to just pass clocks
in as an argument to spi::new()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so, it is a circular dependency, as peripherals has the clock field. I can try though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that won't work. I used a setup_circular_dependencies()
method to address that issue for some other chips, which at least made it only require a single call in the case where there were several circular dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed your code 😃
bors r+ |
2680: Add Pico Explorer Base development board r=phil-levis a=alexandruradovici ### Pull Request Overview This pull request adds the Pico Explorer Base, a test board around the Raspberry Pi Pico. The Raspberry Pi Pico is not an actual development board, but rather a PCB around the RP2040. Except one single LED, it has no other sensors, buttons or display. The Pico Explorer Base is built around the Pico and provides: - 4 buttons - 240x240 LCD - breadboard ### Testing Strategy This pull request was tested using a Pico Explorer Base. ### TODO or Help Wanted This pull request requires - [x] #2678 - [x] #2679. ### Documentation Updated - [x] Updated the relevant files in `/docs`, or no updates are required. ### Formatting - [x] Ran `make prepush`. Co-authored-by: Alexandru Radovici <[email protected]>
Pull Request Overview
This pull request adds SPI to the RP2040.
Testing Strategy
This pull request was tested using a Raspberry Pi Pico.
TODO or Help Wanted
N/A
Documentation Updated
/docs
, or no updates are required.Formatting
make prepush
.