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:
parent
138cbb83d6
commit
fc9669bcfd
@ -381,6 +381,24 @@ void uart_poweron(uart_t uart);
|
|||||||
*/
|
*/
|
||||||
void uart_poweroff(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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -587,6 +587,11 @@ config HAS_PERIPH_UART_MODECFG
|
|||||||
help
|
help
|
||||||
Indicates that the UART peripheral allows mode configuration.
|
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
|
config HAS_PERIPH_UART_NONBLOCKING
|
||||||
bool
|
bool
|
||||||
help
|
help
|
||||||
|
Loading…
Reference in New Issue
Block a user