Skip to content

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

Merged
merged 25 commits into from
Nov 12, 2019
Merged

Remove hal dependencies from the crate #16

merged 25 commits into from
Nov 12, 2019

Conversation

Disasm
Copy link
Member

@Disasm Disasm commented Nov 11, 2019

This way stm32-usbd does not rely on stm32*-hal dependencies, instead hals use this driver for the corresponding peripherals.

See also: #14

@Disasm Disasm requested a review from mvirkkunen November 11, 2019 15:28
@Disasm
Copy link
Member Author

Disasm commented Nov 11, 2019

This PR is tested on F042, L432, F303, F103.

@therealprof
Copy link
Member

Sounds fantastic!

examples/hal.rs Outdated
Comment on lines 44 to 49
pub type UsbBusType = UsbBus<Peripheral>;


fn main() -> ! {
loop {}
}
Copy link
Member

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. 😅

Copy link
Member Author

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.

Copy link
Member

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. 😀

Copy link
Contributor

@TeXitoi TeXitoi left a comment

Choose a reason for hiding this comment

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

Great!

Copy link
Contributor

@mvirkkunen mvirkkunen left a 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!

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.

4 participants