STM32F3: DISCO_F303VC - Add missing UART and ADC pin muxing options #3231
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
While developing for the STM32F3Discovery board, it was noticed that several valid pin muxing options were missing for both the UART and the ADC modules. These commits add in all possible UART and ADC pin muxing options as documented in the STM32F303xC datasheet.
Note that alternate mappings for the same pins are left commented out to allow a user to easily switch to use them if needed, as is the standard for this file. For example, PC_10 and PC_11 could be mapped to either USART3 or UART4, but UART4 was selected as the default option since these are the only two pins UART4 is available on, while USART3 can also be mapped to other pins.
Status
READY
Migrations
NO
Related PRs
None
Todos
None
Deploy notes
None
Steps to test or reproduce
Create a build for the target DISCO_F303VC that attempts to use any of the newly added ADC pins (e.g. any ADC input on port D or E), and/or attempts to use a UART on one of the previously missing pin mappings (e.g. USART1 on PC_4 and PC_5).