mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-23 17:24:44 +00:00
refactor(uart)!: deprcated esp_rom_uart.h
This commit is contained in:
@@ -437,7 +437,7 @@ FORCE_INLINE_ATTR void uart_ll_get_sclk(uart_dev_t *hw, soc_module_clk_t *source
|
||||
*
|
||||
* @return True if baud-rate set successfully; False if baud-rate requested cannot be achieved
|
||||
*/
|
||||
FORCE_INLINE_ATTR bool uart_ll_set_baudrate(uart_dev_t *hw, uint32_t baud, uint32_t sclk_freq)
|
||||
FORCE_INLINE_ATTR bool _uart_ll_set_baudrate(uart_dev_t *hw, uint32_t baud, uint32_t sclk_freq)
|
||||
{
|
||||
if ((hw) == &LP_UART) {
|
||||
abort(); // need to call lp_uart_ll_set_baudrate()
|
||||
@@ -464,6 +464,8 @@ FORCE_INLINE_ATTR bool uart_ll_set_baudrate(uart_dev_t *hw, uint32_t baud, uint3
|
||||
return true;
|
||||
}
|
||||
|
||||
#define uart_ll_set_baudrate(...) _uart_ll_set_baudrate(__VA_ARGS__)
|
||||
|
||||
/**
|
||||
* @brief Get the current baud-rate.
|
||||
*
|
||||
|
Reference in New Issue
Block a user