[riot-notifications] [RIOT-OS/RIOT] cpu/stm32_common: enable UART pin inversion (#10937)

Mohamed notifications at github.com
Tue Feb 5 01:21:04 CET 2019

@yegorich Thanks for quick turnaround on this! There is however a problem with this approach. Even though I do initialize UART only once at the beginning, I still have the option to choose which UART device to use for SBUS. This choice will enable the scenario where a specific UART pin is used for something else (say telemetry) and another device have a free pin. By making the setting part of this structure, Its not going to be easy/possible to reconfigure the firmware to use different device (especially if this configuration is read from a file/flash rather than hardcoded)

Also another commonly used scenario is to remap the same device to different pin using alternate functions (in case the default pin is not available on the board...etc)

So I think this structure is perfect for hiding bus and rcc details as these don't change but shouldn't be used for other configuration - but I agree for simple static case it will be ok to use.

Do you have a hint/workaround on how to use this approach and also be able to change device/pin if needed?

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190205/6fee3ae7/attachment.html>

More information about the notifications mailing list