Skip to content
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

serial: introduce CONFIG_UART_USE_RUNTIME_CONFIGURE #35697

Merged

Conversation

dcpleung
Copy link
Member

This kconfig option enables runtime configuration of UART
controllers. This allows application to call uart_configure()
to configure the UART controllers and calling uart_config_get()
to retrieve configuration. If this is disabled, UART controllers
rely on UART driver's initialization function to properly
configure the controller. The main use of this option is mainly
code size reduction.

Fixes #16231

Signed-off-by: Daniel Leung daniel.leung@intel.com

This kconfig option enables runtime configuration of UART
controllers. This allows application to call uart_configure()
to configure the UART controllers and calling uart_config_get()
to retrieve configuration. If this is disabled, UART controllers
rely on UART driver's initialization function to properly
configure the controller. The main use of this option is mainly
code size reduction.

Fixes zephyrproject-rtos#16231

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this .
Saves ~ 450 bytes of flash per uart instance

@zephyrbot zephyrbot added platform: ESP32 Espressif ESP32 area: UART Universal Asynchronous Receiver-Transmitter platform: nRF Nordic nRFx labels May 28, 2021
@zephyrbot zephyrbot requested review from ioannisg and sylvioalves and removed request for a user May 28, 2021 10:47
@erwango erwango added this to the v2.7.0 milestone Jun 7, 2021
@carlescufi carlescufi merged commit 4e1692f into zephyrproject-rtos:main Jun 7, 2021
@dcpleung dcpleung deleted the uart_runtime_configure branch June 7, 2021 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: UART Universal Asynchronous Receiver-Transmitter platform: ESP32 Espressif ESP32 platform: nRF Nordic nRFx platform: NXP NXP platform: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CONFIG_UART_DYNAMIC_SETTINGS option