stm32f3xx-hal icon indicating copy to clipboard operation
stm32f3xx-hal copied to clipboard

Re-export all peripherals to the module

Open Sh3Rm4n opened this issue 4 years ago • 0 comments

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 avatar Aug 12 '21 05:08 Sh3Rm4n