Home
last modified time | relevance | path

Searched refs:baudrate (Results 1 – 25 of 92) sorted by relevance

1234

/device/soc/goodix/gr551x/adapter/hals/iot_hardware/wifiiot_lite/
Dhal_iot_i2c.c108 unsigned int IoTI2cInit(unsigned int id, unsigned int baudrate) in IoTI2cInit() argument
119 if (baudrate == I2C_BAUDRATE_100K) { in IoTI2cInit()
121 } else if (baudrate == I2C_BAUDRATE_400K) { in IoTI2cInit()
123 } else if (baudrate == I2C_BAUDRATE_1000K) { in IoTI2cInit()
125 } else if (baudrate == I2C_BAUDRATE_2000K) { in IoTI2cInit()
163 unsigned int IoTI2cSetBaudrate(unsigned int id, unsigned int baudrate) in IoTI2cSetBaudrate() argument
173 if (baudrate == I2C_BAUDRATE_100K) { in IoTI2cSetBaudrate()
175 } else if (baudrate == I2C_BAUDRATE_400K) { in IoTI2cSetBaudrate()
177 } else if (baudrate == I2C_BAUDRATE_1000K) { in IoTI2cSetBaudrate()
179 } else if (baudrate == I2C_BAUDRATE_2000K) { in IoTI2cSetBaudrate()
/device/soc/hpmicro/sdk/hpm_sdk/drivers/src/
Dhpm_uart_drv.c25 config->baudrate = 115200; in uart_default_config()
38 static bool uart_calculate_baudrate(uint32_t freq, uint32_t baudrate, uint16_t *div_out, uint8_t *o… in uart_calculate_baudrate() argument
42 if ((div_out == NULL) || (!freq) || (!baudrate) in uart_calculate_baudrate()
43 || (baudrate < HPM_UART_MINIMUM_BAUDRATE) in uart_calculate_baudrate()
44 || (freq / HPM_UART_BAUDRATE_DIV_MIN < baudrate * HPM_UART_OSC_MIN) in uart_calculate_baudrate()
45 || (freq / HPM_UART_BAUDRATE_DIV_MAX > (baudrate * HPM_UART_OSC_MAX))) { in uart_calculate_baudrate()
49 tmp = (float) freq / baudrate; in uart_calculate_baudrate()
96 if (!uart_calculate_baudrate(config->src_freq_in_hz, config->baudrate, &div, &osc)) { in uart_init()
164 hpm_stat_t uart_set_baudrate(UART_Type *ptr, uint32_t baudrate, uint32_t src_clock_hz) in uart_set_baudrate() argument
172 if (!uart_calculate_baudrate(src_clock_hz, baudrate, &div, &osc)) { in uart_set_baudrate()
Dhpm_can_drv.c169 … can_calculate_bit_timing(uint32_t src_clk_freq, can_bit_timing_option_t option, uint32_t baudrate, in can_calculate_bit_timing() argument
175 if ((option > can_bit_timing_canfd_data) || (baudrate == 0U) || in can_calculate_bit_timing()
176 (src_clk_freq / baudrate < MIN_TQ_MUL_PRESCALE) || (timing_param == NULL)) { in can_calculate_bit_timing()
185 if (src_clk_freq / baudrate < tbl->tq_min) { in can_calculate_bit_timing()
189 uint32_t num_tq_mul_prescaler = src_clk_freq / baudrate; in can_calculate_bit_timing()
244 uint32_t src_clk_freq, uint32_t baudrate, in can_set_bit_timing() argument
255 …status = can_calculate_bit_timing(src_clk_freq, option, baudrate, samplepoint_min, samplepoint_max… in can_set_bit_timing()
602 config->baudrate = 1000000UL; /* 1Mbit/s */ in can_get_default_config()
649 src_clk_freq, config->baudrate, in can_init()
657 src_clk_freq, config->baudrate, in can_init()
/device/qemu/arm_mps2_an386/liteos_m/board/driver/
Darm_uart_drv.c65 dev->data->baudrate = dev->cfg->default_baudrate; in arm_uart_init()
79 uint32_t baudrate) in arm_uart_set_baudrate() argument
85 if(baudrate == 0) { in arm_uart_set_baudrate()
94 bauddiv = (dev->data->system_clk / baudrate); in arm_uart_set_baudrate()
95 dev->data->baudrate = baudrate; in arm_uart_set_baudrate()
109 return dev->data->baudrate; in arm_uart_get_baudrate()
130 p_uart->bauddiv = (dev->data->system_clk / dev->data->baudrate); in arm_uart_set_clock()
/device/qemu/arm_mps3_an547/liteos_m/board/driver/
Darm_uart_drv.c65 dev->data->baudrate = dev->cfg->default_baudrate; in arm_uart_init()
79 uint32_t baudrate) in arm_uart_set_baudrate() argument
85 if(baudrate == 0) { in arm_uart_set_baudrate()
94 bauddiv = (dev->data->system_clk / baudrate); in arm_uart_set_baudrate()
95 dev->data->baudrate = baudrate; in arm_uart_set_baudrate()
109 return dev->data->baudrate; in arm_uart_get_baudrate()
130 p_uart->bauddiv = (dev->data->system_clk / dev->data->baudrate); in arm_uart_set_clock()
/device/soc/hisilicon/hi3861v100/hi3861_adapter/hals/iot_hardware/wifiiot_lite/
Dhal_iot_i2c.c42 unsigned int IoTI2cInit(unsigned int id, unsigned int baudrate) in IoTI2cInit() argument
44 return hi_i2c_init((hi_i2c_idx)id, baudrate); in IoTI2cInit()
52 unsigned int IoTI2cSetBaudrate(unsigned int id, unsigned int baudrate) in IoTI2cSetBaudrate() argument
54 return hi_i2c_set_baudrate((hi_i2c_idx)id, baudrate); in IoTI2cSetBaudrate()
/device/soc/rockchip/rk2206/adapter/hals/iot_hardware/wifiiot_lite/
Dhal_iot_i2c.c51 unsigned int IoTI2cInit(unsigned int id, unsigned int baudrate) in IoTI2cInit() argument
59 return LzI2cInit(TEST_ID, baudrate); in IoTI2cInit()
67 unsigned int IoTI2cSetBaudrate(unsigned int id, unsigned int baudrate) in IoTI2cSetBaudrate() argument
69 return LzI2cSetFreq(TEST_ID, baudrate); in IoTI2cSetBaudrate()
/device/soc/asrmicro/asr582x/liteos_m/sdk/adapter/hals/iot_hardware/wifiiot_lite/
Dhal_iot_i2c.c43 unsigned int IoTI2cInit(unsigned int id, unsigned int baudrate) in IoTI2cInit() argument
65 unsigned int IoTI2cSetBaudrate(unsigned int id, unsigned int baudrate) in IoTI2cSetBaudrate() argument
71 if (baudrate >= 1700000) { in IoTI2cSetBaudrate()
73 } else if (baudrate <= 100000) { in IoTI2cSetBaudrate()
/device/soc/hisilicon/hi3516dv300/sdk_liteos/hdf_config/uart/
Duart_config.hcs6 baudrate = 115200;
20 baudrate = 9600;
35 baudrate = 9600;
/device/soc/beken/bk7235/hals/iot_hardware/wifiiot_lite/
Dhal_iot_i2c.c23 unsigned int baudrate; member
55 unsigned int IoTI2cInit(unsigned int id, unsigned int baudrate) in IoTI2cInit() argument
65 unsigned int IoTI2cSetBaudrate(unsigned int id, unsigned int baudrate) in IoTI2cSetBaudrate() argument
/device/board/bearpi/bearpi_hm_nano/app/B5_basic_i2c_nfc/
DREADME.md9 unsigned int IoTI2cInit(unsigned int id, unsigned int baudrate);
21 | baudrate |I2C频率。|
25 unsigned int IoTI2cSetBaudrate(unsigned int id, unsigned int baudrate);
36 | baudrate |I2C频率。|
96 //baudrate: 400kbps
/device/soc/telink/b91/hcs/uart/
Duart_config.hcs7 baudrate = 115200;
45 baudrate = 921600;
57 baudrate = 921600;
/device/soc/goodix/gr551x/hcs/uart/
Duart_config.hcs6 baudrate = 115200;
27 baudrate = 115200;
47 baudrate = 115200;
/device/soc/rockchip/common/vendor/drivers/rockchip/
Drk_fiq_debugger.c59 int baudrate; member
110 switch (t->baudrate) { in debug_port_init()
700 unsigned int baudrate) in fiq_debugger_bind_sip_smc() argument
725 sip_fiq_debugger_set_print_port(phy_base, baudrate); in fiq_debugger_bind_sip_smc()
740 unsigned int baudrate) in rk_serial_debug_init() argument
762 t->baudrate = baudrate; in rk_serial_debug_init()
791 ret = fiq_debugger_bind_sip_smc(t, phy_base, serial_hwirq, signal_irq, baudrate); in rk_serial_debug_init()
916 unsigned int baudrate = 0, irq_mode = 0; in rk_fiqdbg_probe() local
951 if (of_property_read_u32(np, "rockchip,baudrate", &baudrate)) { in rk_fiqdbg_probe()
952 baudrate = -1; in rk_fiqdbg_probe()
[all …]
/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/
Drk_fiq_debugger.c59 int baudrate; member
110 switch (t->baudrate) { in debug_port_init()
726 unsigned int baudrate) in fiq_debugger_bind_sip_smc() argument
752 sip_fiq_debugger_set_print_port(phy_base, baudrate); in fiq_debugger_bind_sip_smc()
768 int wakeup_irq, unsigned int baudrate) in rk_serial_debug_init() argument
790 t->baudrate = baudrate; in rk_serial_debug_init()
821 signal_irq, baudrate); in rk_serial_debug_init()
939 unsigned int baudrate = 0, irq_mode = 0; in rk_fiqdbg_probe() local
970 if (of_property_read_u32(np, "rockchip,baudrate", &baudrate)) in rk_fiqdbg_probe()
971 baudrate = -1; in rk_fiqdbg_probe()
[all …]
/device/board/isoftstone/yangfan/kernel/src/driv/soc/
Drk_fiq_debugger.c59 int baudrate; member
110 switch (t->baudrate) { in debug_port_init()
726 unsigned int baudrate) in fiq_debugger_bind_sip_smc() argument
752 sip_fiq_debugger_set_print_port(phy_base, baudrate); in fiq_debugger_bind_sip_smc()
768 int wakeup_irq, unsigned int baudrate) in rk_serial_debug_init() argument
790 t->baudrate = baudrate; in rk_serial_debug_init()
821 signal_irq, baudrate); in rk_serial_debug_init()
939 unsigned int baudrate = 0, irq_mode = 0; in rk_fiqdbg_probe() local
970 if (of_property_read_u32(np, "rockchip,baudrate", &baudrate)) in rk_fiqdbg_probe()
971 baudrate = -1; in rk_fiqdbg_probe()
[all …]
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/drivers/i2c/
Di2c.c32 hi_u32 baudrate; member
69 if (!g_i2c_ctrl[id].baudrate) { in i2c_reset()
70 hi_i2c_init(id, g_i2c_ctrl[id].baudrate); in i2c_reset()
772 hi_u32 hi_i2c_init(hi_i2c_idx id, hi_u32 baudrate) in hi_i2c_init() argument
776 if (baudrate == 0 || id > HI_I2C_IDX_1 || id < HI_I2C_IDX_0) { in hi_i2c_init()
791 g_i2c_ctrl[id].baudrate = baudrate; in hi_i2c_init()
793 i2c_cfg_clk(id, baudrate); in hi_i2c_init()
834 hi_u32 hi_i2c_set_baudrate(hi_i2c_idx id, hi_u32 baudrate) in hi_i2c_set_baudrate() argument
837 if (id > HI_I2C_IDX_1 || id < HI_I2C_IDX_0 || baudrate == 0) { in hi_i2c_set_baudrate()
847 g_i2c_ctrl[id].baudrate = baudrate; in hi_i2c_set_baudrate()
[all …]
/device/soc/hisilicon/hi3518ev300/hdf_config/uart/
Duart_config.hcs6 baudrate = 115200;
20 baudrate = 9600;
/device/board/beken/bk7235x/hdf/src/
Dbk_uart_driver.c23 uint32_t baudrate; member
70 if (dri->GetUint32(resourceNode, "baudrate", &resource->baudrate, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
86 …resource->idx, resource->base, resource->irqNum, resource->baudrate, resource->uartClk, resource->… in GetUartDeviceResource()
/device/board/openvalley/niobeu4/liteos_m/hals/iot_hardware/wifiiot_lite/
Dhal_iot_i2c.c184 unsigned int IoTI2cInit(unsigned int id, unsigned int baudrate) in IoTI2cInit() argument
196 if (baudrate == 0) { in IoTI2cInit()
200 i2c_data->i2c_conf.master.clk_speed = baudrate; in IoTI2cInit()
229 unsigned int IoTI2cSetBaudrate(unsigned int id, unsigned int baudrate) in IoTI2cSetBaudrate() argument
/device/board/openvalley/niobeu4/liteos_m/hdf_drivers/uart/
Duart_esp32u4.c61 … uart_config->baudrate = HCS_PROP(node, baudrate); \
71 … HDF_LOGE("baudrate = %d", uart_config->baudrate); \
130 int baudrate; member
275 uartConfig.baud_rate = uart_config->baudrate; in UartHostDevInit()
374 uart_config->baudrate = baudRate; in UartHostDevSetBaud()
389 *baudRate = uart_config->baudrate; in UartHostDevGetBaud()
/device/soc/winnermicro/wm800/board/platform/drivers/uart/
Dwm_uart.c136 int tls_uart_check_baudrate(u32 baudrate) in tls_uart_check_baudrate() argument
141 if (baudrate == baud_rates[i]) in tls_uart_check_baudrate()
151 return port->opts.baudrate; in tls_uart_get_baud_rate()
156 static int tls_uart_set_baud_rate_inside(struct tls_uart_port *port, u32 baudrate) in tls_uart_set_baud_rate_inside() argument
163 index = tls_uart_check_baudrate(baudrate); in tls_uart_set_baud_rate_inside()
169 value = (apbclk / (16 * baudrate) - 1) | in tls_uart_set_baud_rate_inside()
170 (((apbclk % (baudrate * 16)) * 16 / (baudrate * 16)) << 16); in tls_uart_set_baud_rate_inside()
173 port->opts.baudrate = baudrate; in tls_uart_set_baud_rate_inside()
302 tls_uart_set_baud_rate_inside(port, opts->baudrate); in tls_uart_config()
800 opt.baudrate = UART_BAUDRATE_B115200; in tls_uart_port_init()
[all …]
/device/board/beken/bk7235x/hcs/
Ddev_config.hcs22 baudrate = 115200;
31 baudrate = 115200;
/device/board/hihope/shields/neptune100/
Dneptune100.hcs34 baudrate = 115200;
42 baudrate = 115200;
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/
Dhi_i2c.h94 hi_u32 hi_i2c_set_baudrate(hi_i2c_idx id, hi_u32 baudrate);
184 hi_u32 hi_i2c_init(hi_i2c_idx id, hi_u32 baudrate);

1234