add uart core reset in uart_module_enable()

This commit is contained in:
Chen Yi Qun
2021-07-15 17:08:42 +08:00
parent 2b986fbd49
commit 6317f5b481
6 changed files with 27 additions and 22 deletions
+10
View File
@@ -124,6 +124,16 @@ typedef struct {
*/
#define uart_hal_is_tx_idle(hal) uart_ll_is_tx_idle((hal)->dev)
/**
* @brief Configure the UART core reset
*
* @param hal Context of the HAL layer
* @param Set true to enable the core reset, otherwise set it false
*
* @return None
*/
#define uart_hal_set_reset_core(hal, core_rst_en) uart_ll_set_reset_core((hal)->dev, core_rst_en)
/**
* @brief Read data from the UART rxfifo
*