-
Notifications
You must be signed in to change notification settings - Fork 928
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
RP time driver alternatively using mtimer, timer0, timer1, or aot #3873
base: main
Are you sure you want to change the base?
Changes from all commits
539188a
147205b
7e90697
368e5b6
caa3650
e2830bb
04bbffa
2de35bd
7d359df
3d80742
e6e8df3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,11 @@ features = ["defmt", "unstable-pac", "time-driver", "rp2040"] | |
default = [ "rt" ] | ||
## Enable the rt feature of [`rp-pac`](https://docs.rs/rp-pac). This brings in the [`cortex-m-rt`](https://docs.rs/cortex-m-rt) crate, which adds startup code and minimal runtime initialization. | ||
rt = [ "rp-pac/rt" ] | ||
## these settimngs are currently necessary to allow the pipeline build. They should be removed ghere when the features will be (somehow) selectable in the "embassy-executor" or the "embassy-time" section | ||
time-driver-timer1 = [] | ||
time-driver-aot = [] | ||
time-driver-mtime = [] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Cargo features would make more sense if we did the following changes
To make examples compile you'll have to edit their Cargo.toml. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK. As I am not at all experienced in doing cargo instructions, I think it would be good if you could do the decisions and the (suggestions for) implementation. My idea was as such:
Can such be implemented ? I suggest the RISK V system timer as a default, as
BTW: the tick generator is set up for driving |
||
|
||
|
||
## Enable [defmt support](https://docs.rs/defmt) and enables `defmt` debug-log messages and formatting in embassy drivers. | ||
defmt = ["dep:defmt", "embassy-usb-driver/defmt", "embassy-hal-internal/defmt"] | ||
|
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.
Could you add documentation for the features? Use
##
just like the existing comments.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 did the modification in the toml file not as a suggestion but just to allow the pipeline to do the build.
Supposedly, in the end these features should not be allowed in the project, but in the
embassy-time
dependency section. But I have no idea how this should be done.