stm32: Add support for USART6 on STM32F401 #6830
Open
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.
STM32F401 has USART6 on PA12/PA11 and PC7/PC6 with alternate function mapping AF08. This can be used, for example, to connect to the Elegoo Neptune 3 without soldering to the main board or even opening the case, where PA12/PA11 are wired to a convenient RJ10 plug going to the stock screen.
See the datasheet (Page 45, Table 9. Alternate function mapping):
https://www.st.com/resource/en/datasheet/stm32f401re.pdf
See the Neptune 3's schematic:
https://github.com/TheFeralEngineer/Elegoo-Neptune-board-schematics/blob/main/ZNP%20Robin%20Nano_DW%20V21_001%20SCH_加水印pdf%20·%20version%201_230115_223844.pdf
I only tested this on my Neptune 3. It might work for other STM32s that have USART6, if there are any others, but I only added a Kconfig entry for STM32F401, since that's what I have access to for testing.