1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/periph/uart: add periph_uart_tx_ondemand feature

This commit is contained in:
Benjamin Valentin 2023-11-23 13:32:18 +01:00
parent 138cbb83d6
commit fc9669bcfd
2 changed files with 23 additions and 0 deletions

View File

@ -381,6 +381,24 @@ void uart_poweron(uart_t uart);
*/
void uart_poweroff(uart_t uart);
/**
* @brief Enable the TX line one the given UART
*
* @note requires the `periph_uart_tx_ondemand` feature
*
* @param[in] uart the UART device start TX on
*/
void uart_enable_tx(uart_t uart);
/**
* @brief Disable the TX line one the given UART
*
* @note requires the `periph_uart_tx_ondemand` feature
*
* @param[in] uart the UART device to stop TX on
*/
void uart_disable_tx(uart_t uart);
#ifdef __cplusplus
}
#endif

View File

@ -587,6 +587,11 @@ config HAS_PERIPH_UART_MODECFG
help
Indicates that the UART peripheral allows mode configuration.
config HAS_PERIPH_UART_TX_ONDEMAND
bool
help
Indicates that the UART peripheral can enable the TX line on demmand.
config HAS_PERIPH_UART_NONBLOCKING
bool
help