add simplified API to set UART threshold values for RX FIFO full and TX FIFO empty

This commit is contained in:
kewal shah
2019-11-18 19:06:40 +05:30
committed by bot
parent f7b51c164d
commit eec8212237
5 changed files with 102 additions and 6 deletions

View File

@@ -137,6 +137,18 @@ static inline void uart_ll_clr_intsts_mask(uart_dev_t *hw, uint32_t mask)
hw->int_clr.val = mask;
}
/**
* @brief Get status of enabled interrupt.
*
* @param hw Beginning address of the peripheral registers.
*
* @return interrupt enable value
*/
static inline uint32_t uart_ll_get_intr_ena_status(uart_dev_t *hw)
{
return hw->int_ena.val;
}
/**
* @brief Read the UART rxfifo.
*