-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UART pins validation and dynamic alternative function recognition #3536
Comments
well, maybe not even lookup but at least compilation options same as TS_PRIMARY_UART is hard-coded at the moment and exposed to build scripts |
I think you meant to link this forum thread: https://rusefi.com/forum/viewtopic.php?f=13&t=2206 |
the problem is that |
the part of where I gave up is
|
PD5/6 are in fact USART2, which has no conflict with other hw on this board |
IMO the solution is that we should simply not allow users to pick serial pins - just enable the labeled serial pins on our boards, and be done. |
the dream is total flexibility right? we only need one hard-coded channel to make sure we can communicate with FW |
Is it? Why do we need flexibility here? We know where the pins are at manufacture time, just like how we hard code the knock config, etc. |
"full flexibility" for serial ports just seems like unnecessary complexity to me. |
At the moment EFI_CONSOLE_AF and TS_SERIAL_AF are hard-coded
This magic '7' does not work for all pins for instance see https://www.rusefi.com/forum/viewtopic.php?f=19&t=2208 drama
We need runtime dictionary lookup of AF based on pin.
Another point: at the moment we do not validate is specified pins are correct. Auto-detect of alternative function would probably have effect of allowing validation to happen.
The text was updated successfully, but these errors were encountered: