-
Notifications
You must be signed in to change notification settings - Fork 27
Remove hal dependencies from the crate #16
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
Conversation
This PR is tested on F042, L432, F303, F103. |
Sounds fantastic! |
examples/hal.rs
Outdated
pub type UsbBusType = UsbBus<Peripheral>; | ||
|
||
|
||
fn main() -> ! { | ||
loop {} | ||
} |
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.
Uhm, it would be great if the example actually showed how to do some USB interaction instead of just initialising something. 😅
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.
This is a "library" example. I'm going to add actual USB examples to the corresponding hal libraries.
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.
Cool, disregard this comment then. 😀
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.
Great!
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.
LGTM as long as you can get the HAL maintainers on board with adding this!
This way
stm32-usbd
does not rely onstm32*-hal
dependencies, instead hals use this driver for the corresponding peripherals.See also: #14