stm32-rs / bxcan

bxCAN peripheral driver for STM32 chips
Apache License 2.0
31 stars 22 forks source link

Move `Can::enable` into `CanConfig` #32

Closed jonas-schievink closed 3 years ago

jonas-schievink commented 3 years ago

It's easy to forget to call it, so making it consume the CanConfig and marking that with #[must_use] makes that harder. This is a breaking change.