Skip to content
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

Re-export all peripherals to the module #275

Open
Sh3Rm4n opened this issue Aug 12, 2021 · 0 comments
Open

Re-export all peripherals to the module #275

Sh3Rm4n opened this issue Aug 12, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Sh3Rm4n
Copy link
Member

Sh3Rm4n commented Aug 12, 2021

So that this is not needed:

use stm32f3xx_hal as hal;

use hal::spi:Spi;
use hal::pac::SPI1; // <-- this seems un-intuitve for first time users

This is better I think:

use hal::spi::{Spi, SPI1};

or

use hal::spi::{Spi, periph::SPI1};
@Sh3Rm4n Sh3Rm4n added enhancement New feature or request good first issue Good for newcomers labels Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant