Home
last modified time | relevance | path

Searched refs:baud_rate (Results 1 – 25 of 62) sorted by relevance

123

/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/soc/common/hal/
Di2c_hal.c29 bk_err_t i2c_hal_set_baud_rate(i2c_hal_t *hal, uint32_t baud_rate) in i2c_hal_set_baud_rate() argument
31 uint32_t freq_div = I2C_CLK_DIVID(baud_rate); in i2c_hal_set_baud_rate()
38 uint32_t baud_rate = cfg->baud_rate; in i2c_hal_configure() local
39 if (!baud_rate) { in i2c_hal_configure()
40 baud_rate = I2C_DEFAULT_BAUD_RATE; in i2c_hal_configure()
42 uint32_t freq_div = I2C_CLK_DIVID(baud_rate); in i2c_hal_configure()
Dspi_hal.c87 spi_hal_set_baud_rate(hal, config->baud_rate); in spi_hal_configure()
126 bk_err_t spi_hal_set_baud_rate(spi_hal_t *hal, uint32_t baud_rate) in spi_hal_set_baud_rate() argument
129 uint32_t spi_clk = baud_rate; in spi_hal_set_baud_rate()
132 if (baud_rate > CONFIG_SPI_MAX_BAUD_RATE) { in spi_hal_set_baud_rate()
133 …HAL_LOGW("baud_rate(%d) not support, spi support max baud_rate:%d\r\n", baud_rate, CONFIG_SPI_MAX_… in spi_hal_set_baud_rate()
137 if (binary_search(s_spi_clk_list, ARRAY_SIZE(s_spi_clk_list), baud_rate) >= 0) { in spi_hal_set_baud_rate()
Duart_hal.c41 uart_hal_set_baud_rate(hal, id, config->src_clk, config->baud_rate); in uart_hal_init_uart()
84 bk_err_t uart_hal_set_baud_rate(uart_hal_t *hal, uart_id_t id, uint32_t sclk, uint32_t baud_rate) in uart_hal_set_baud_rate() argument
88 clk_div = UART_CLOCK_FREQ_120M / baud_rate - 1; in uart_hal_set_baud_rate()
90 clk_div = UART_CLOCK / baud_rate - 1; in uart_hal_set_baud_rate()
/device/soc/esp/esp32/components/esp_rom/patches/
Desp_rom_uart.c44 …M_ATTR void esp_rom_uart_set_clock_baudrate(uint8_t uart_no, uint32_t clock_hz, uint32_t baud_rate) in esp_rom_uart_set_clock_baudrate() argument
47 uart_div_modify(uart_no, (clock_hz << 4) / baud_rate); in esp_rom_uart_set_clock_baudrate()
/device/soc/esp/esp32/components/hal/
Duart_hal.c28 void uart_hal_set_baudrate(uart_hal_context_t *hal, uint32_t baud_rate) in uart_hal_set_baudrate() argument
30 uart_ll_set_baudrate(hal->dev, baud_rate); in uart_hal_set_baudrate()
33 void uart_hal_get_baudrate(uart_hal_context_t *hal, uint32_t *baud_rate) in uart_hal_get_baudrate() argument
35 *baud_rate = uart_ll_get_baudrate(hal->dev); in uart_hal_get_baudrate()
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/components/bk_cli/
Dcli_uart.c69 config.baud_rate = os_strtoul(argv[3], NULL, 10); in cli_uart_cmd()
160 uint32_t baud_rate = os_strtoul(argv[3], NULL, 10); in cli_uart_config_cmd() local
161 BK_LOG_ON_ERR(bk_uart_set_baud_rate(uart_id, baud_rate)); in cli_uart_config_cmd()
162 CLI_LOGI("uart(%d) config baud_rate:%d\n", uart_id, baud_rate); in cli_uart_config_cmd()
323 config.baud_rate = UART_BAUD_RATE; in cli_uart_test_cmd()
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/libraries/hal_flash/
Dhal_flash.c69 const uint32_t baud_rate[6] = {XQSPI_BAUD_RATE_64M, XQSPI_BAUD_RATE_48M, XQSPI_BAUD_RATE_16M, variable
88 g_xqspi_handle.init.baud_rate = baud_rate[clk_type]; in hal_flash_init()
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/drivers/inc/
Dgr55xx_ll_uart.h77 …uint32_t baud_rate; /**< This field defines expected Usart communication baud rate. member
249 .baud_rate = 9600U, \
339 …NLINE void ll_uart_set_baud_rate(uart_regs_t *UARTx, uint32_t peripheral_clock, uint32_t baud_rate) in ll_uart_set_baud_rate() argument
341 register uint32_t uartdiv = LL_UART_DIV(peripheral_clock, baud_rate); in ll_uart_set_baud_rate()
347 WRITE_REG(UARTx->DLF, LL_UART_DLF(peripheral_clock, baud_rate)); in ll_uart_set_baud_rate()
Dgr55xx_ll_spi.h107 … uint32_t baud_rate; /**< Specifies the BaudRate prescaler value which will be used to member
194 …uint32_t baud_rate; /**< Specifies the BaudRate prescaler value which will be used… member
522 .baud_rate = SystemCoreClock / 2000000, \
548 .baud_rate = SystemCoreClock / 1000000, \
1351 __STATIC_INLINE void ll_spi_set_baud_rate_prescaler(ssi_regs_t *SPIx, uint32_t baud_rate) in ll_spi_set_baud_rate_prescaler() argument
1353 WRITE_REG(SPIx->BAUD, baud_rate); in ll_spi_set_baud_rate_prescaler()
Dgr55xx_hal_uart.h118 uint32_t baud_rate; /**< This member configures the UART communication baud rate. */ member
441 .baud_rate = 9600, \
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/driver/uart/
Duart_driver.c91 #define UART_RETURN_ON_BAUD_RATE_NOT_SUPPORT(baud_rate) do {\ argument
92 if ((baud_rate) < CONFIG_UART_MIN_BAUD_RATE ||\
93 (baud_rate) > CONFIG_UART_MAX_BAUD_RATE) {\
94 UART_LOGE("UART baud rate(%d) not support\r\n", (baud_rate));\
549 UART_RETURN_ON_BAUD_RATE_NOT_SUPPORT(config->baud_rate); in bk_uart_init()
580 bk_err_t bk_uart_set_baud_rate(uart_id_t id, uint32_t baud_rate) in bk_uart_set_baud_rate() argument
584 UART_RETURN_ON_BAUD_RATE_NOT_SUPPORT(baud_rate); in bk_uart_set_baud_rate()
586 uart_hal_set_baud_rate(&s_uart[id].hal, id, uart_clk, baud_rate); in bk_uart_set_baud_rate()
/device/soc/asrmicro/asr582x/liteos_m/sdk/startup/
Dboard.c127 uart_0.config.baud_rate = UART_BAUDRATE_115200; in board_uart_init()
142 uart_config_struct.config.baud_rate = UART_BAUDRATE_115200; in board_uart_init()
/device/soc/esp/esp32/components/hal/include/hal/
Duart_hal.h217 void uart_hal_set_baudrate(uart_hal_context_t *hal, uint32_t baud_rate);
422 void uart_hal_get_baudrate(uart_hal_context_t *hal, uint32_t *baud_rate);
Duart_types.h140 int baud_rate; /*!< UART baud rate*/ member
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/include/driver/hal/
Dhal_i2c_types.h59 uint32_t baud_rate; /**< i2c clock rate */ member
Dhal_uart_types.h101 uint32_t baud_rate; /**< UART baud rate */ member
Dhal_spi_types.h110 uint32_t baud_rate; /**< SPI transmit and receive SCK clock */ member
/device/soc/esp/esp32/components/esp_rom/include/
Desp_rom_uart.h45 void esp_rom_uart_set_clock_baudrate(uint8_t uart_no, uint32_t clock_hz, uint32_t baud_rate);
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/drivers/uart/
Dhi_uart.c66 uart_attr->baud_rate = attr->baud_rate; in init_uart_param()
97 attr->baud_rate = udd->attr.baud_rate; in get_uart_param()
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/components/bk_system/
Dprintf_base.c50 .baud_rate = UART_BAUD_RATE, in bk_printf_init()
/device/soc/hisilicon/hi3861v100/sdk_liteos/app/demo/src/
Dapp_demo_uart.c54 .baud_rate = 115200, /* baud_rate: 115200 */ in uart_demo()
/device/soc/asrmicro/asr582x/liteos_m/sdk/hal/inc/
Duart.h79 uint32_t baud_rate; member
/device/soc/hisilicon/hi3861v100/hi3861_adapter/hals/iot_hardware/wifiiot_lite/
Dhal_iot_uart.c29 attr.baud_rate = param->baudRate; in IoTUartInit()
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/include/driver/
Di2c.h210 bk_err_t bk_i2c_set_baud_rate(i2c_id_t id, uint32_t baud_rate);
Dspi.h133 bk_err_t bk_spi_set_baud_rate(spi_id_t id, uint32_t baud_rate);

123