mirror of
https://github.com/apache/nuttx.git
synced 2025-12-11 12:57:57 +08:00
The Kconfig configuration was offering alternate routing options for USART peripherals but there was no code which would act on those settings. This patch fixes it. Additionally, since the code is being worked on, this patch also renames USART-related configuration options from AVR_HAS_ to AVR_HAVE_ . This is based on GitHub and mailing list discussion where it was pointed out that other architectures use "HAVE". Patch was tested by choosing few combinations of the configuration and verifying which registers are being set in disassembly. Base configuration was also tested by an application that uses two ports. Signed-off-by: Kerogit <kr.git@kerogit.eu>