Closed brainstorm closed 4 years ago
I think it might be possible by creating a different Peripheral
struct for the PA9/PA10 pins that's available on certain devices, and having the enable
function remap them. Or alternatively have a special constructor for it.
Edit: ...to do the remapping without having to mess with the registers by hand, that is. It's probably not possible to detect which chips have which pins, because it's package dependent.
I don't see how. The chips are just bonded into different packages and are not self-aware of how they're bonded.
...to do the remapping without having to mess with the registers by hand, that is. It's probably not possible to detect which chips have which pins, because it's package dependent.
Yes, I meant this, sorry for the confusion @therealprof, I should have phrased that better :-S
@brainstorm Thanks for the clarification. Yes, that makes absolute sense.
Want to take a stab at it?
Sure, I have no idea on what I'm doing, but let's take it on PR #119 ;)
I was going a bit nuts because my board was not USB-enumerating (for a seemingly simple RTIC example) and it turned out to be that I didn't uncomment those:
Fortunately, @mvirkkunen and other very helpful folks at rust-embedded discord channel pointed that out...
Now, would it be at all possible to detect those different variants automatically, somehow?