mciantyre / teensy4-rs

Rust support for the Teensy 4
Apache License 2.0
271 stars 31 forks source link

Add BSP Support for FlexCAN(1/2) #162

Open sigil-03 opened 4 weeks ago

sigil-03 commented 4 weeks ago

This PR adds BSP support for the FlexCAN1 and FlexCAN2 interfaces added in this PR for imxrt-hal: #171

FlexCAN1 interface has been tested in HW using a Teensy4.1.

More than happy to take any code comments / improvement suggestions!

Acknowledgements: The vast majority of this work is from @dstric-aqueduct - who wrote the initial FlexCAN peripheral code in https://github.com/imxrt-rs/imxrt-hal/pull/122.

@SebKuzminsky rebased @dstric-aqueduct's work onto imxrt-hal 0.5 which gave me a great starting point to work from.