stm32-rs / bxcan

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

Add configuration function to enable or disable automatic retransmit #42

Closed samcrow closed 3 years ago

samcrow commented 3 years ago

In some cases, we don't want the CAN peripheral to repeatedly try to transmit again each frame that cannot be transmitted. With this pull request, I am proposing a small change that adds a function to CanConfig to enable or disable automatic retransmission using the NART bit.

jonas-schievink commented 3 years ago

Thanks, this looks good! Can you extend the docs to mention that automatic retransmit is enabled by default?

samcrow commented 3 years ago

I added a note to the set_automatic_retransmit documentation. is that good?

jonas-schievink commented 3 years ago

Yup, thanks!

bors r+

bors[bot] commented 3 years ago

Build succeeded: