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

Added reset reason impl

Open diondokter opened this issue 1 year ago • 2 comments

diondokter avatar Aug 05 '22 12:08 diondokter

Oh, apparently #[rustfmt::skip] is not allowed anymore? Well, if rustfmt can do what it likes, the code gets really messy for that match. Any ideas?

diondokter avatar Aug 05 '22 13:08 diondokter

Seems that you can't put #[rustfmt::skip] on that match block because it's an expression (that evaluates a value). Feel free to put #[rustfmt::skip] on the whole function instead :)

richardeoin avatar Aug 05 '22 14:08 richardeoin

Thanks for the PR @diondokter ! I added support for RM0455 parts which have a slightly different table of reset sources, and tested in on a NUCLEO-H7A3ZI-Q board

richardeoin avatar Aug 28 '22 16:08 richardeoin

Oh hey, great! Yeah, I didn't have time to fix it for other chips, especially since I don't have access to an HUN right now.

Thanks for your time 😁

diondokter avatar Aug 28 '22 16:08 diondokter

No problem!

bors r+

richardeoin avatar Aug 28 '22 16:08 richardeoin

bors cancel

richardeoin avatar Aug 28 '22 16:08 richardeoin

Canceled.

bors[bot] avatar Aug 28 '22 16:08 bors[bot]

I just fixed some minor spelling items 😀

bors r+

richardeoin avatar Aug 28 '22 16:08 richardeoin