Lines Matching refs:uart_num

144 static void uart_word_len_set_get_test(int uart_num)  in uart_word_len_set_get_test()  argument
151 TEST_ESP_OK(uart_set_word_length(uart_num, word_length_set)); in uart_word_len_set_get_test()
152 TEST_ESP_OK(uart_get_word_length(uart_num, &word_length_get)); in uart_word_len_set_get_test()
157 static void uart_stop_bit_set_get_test(int uart_num) in uart_stop_bit_set_get_test() argument
164 TEST_ESP_OK(uart_set_stop_bits(uart_num, stop_bit_set)); in uart_stop_bit_set_get_test()
165 TEST_ESP_OK(uart_get_stop_bits(uart_num, &stop_bit_get)); in uart_stop_bit_set_get_test()
170 static void uart_parity_set_get_test(int uart_num) in uart_parity_set_get_test() argument
180 TEST_ESP_OK(uart_set_parity(uart_num, parity_set[i])); in uart_parity_set_get_test()
181 TEST_ESP_OK(uart_get_parity(uart_num, &parity_get)); in uart_parity_set_get_test()
186 static void uart_hw_flow_set_get_test(int uart_num) in uart_hw_flow_set_get_test() argument
192 TEST_ESP_OK(uart_set_hw_flow_ctrl(uart_num, flowcontrol_set, 20)); in uart_hw_flow_set_get_test()
193 TEST_ESP_OK(uart_get_hw_flow_ctrl(uart_num, &flowcontrol_get)); in uart_hw_flow_set_get_test()
198 static void uart_wakeup_set_get_test(int uart_num) in uart_wakeup_set_get_test() argument
205 TEST_ESP_OK(uart_set_wakeup_threshold(uart_num, wake_up_set)); in uart_wakeup_set_get_test()
206 TEST_ESP_OK(uart_get_wakeup_threshold(uart_num, &wake_up_get)); in uart_wakeup_set_get_test()
213 const int uart_num = UART_NUM1; variable
222 uart_param_config(uart_num, &uart_config);
223 uart_word_len_set_get_test(uart_num);
224 uart_stop_bit_set_get_test(uart_num);
225 uart_parity_set_get_test(uart_num);
226 uart_hw_flow_set_get_test(uart_num);
227 uart_wakeup_set_get_test(uart_num);
232 int uart_num = (int)param; in uart_write_task() local
244 uart_write_bytes(uart_num, (const char*)tx_buf, 1024); in uart_write_task()
245 uart_wait_tx_done(uart_num, (TickType_t)portMAX_DELAY); in uart_write_task()
262 const int uart_num = UART_NUM1; variable
276 TEST_ESP_OK(uart_driver_install(uart_num, BUF_SIZE * 2, 0, 20, NULL, 0));
277 TEST_ESP_OK(uart_param_config(uart_num, &uart_config));
278 TEST_ESP_OK(uart_set_loop_back(uart_num, true));
279 …TEST_ESP_OK(uart_set_pin(uart_num, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE, UAR…
281 …esp_rom_gpio_connect_out_signal(UART1_CTS_PIN, UART_PERIPH_SIGNAL(uart_num, SOC_UART_RTS_PIN_IDX),…
283 TEST_ESP_OK(uart_wait_tx_done(uart_num, portMAX_DELAY));
285 TEST_ESP_OK(uart_flush_input(uart_num));
287 …xTaskCreate(uart_write_task, "uart_write_task", 2048 * 4, (void *)uart_num, UNITY_FREERTOS_PRIORIT…
292 …int bytes_received = uart_read_bytes(uart_num, rd_data + 1024 - bytes_remaining, bytes_remaining, …
322 uart_wait_tx_done(uart_num, (TickType_t)portMAX_DELAY);
323 uart_driver_delete(uart_num);
329 const int uart_num = UART_NUM1; variable
344 uart_wait_tx_idle_polling(uart_num);
345 TEST_ESP_OK(uart_param_config(uart_num, &uart_config));
346 TEST_ESP_OK(uart_driver_install(uart_num, 1024 * 2, 1024 *2, 20, NULL, 0));
347 TEST_ESP_OK(uart_set_loop_back(uart_num, true));
348 …TEST_ESP_OK(uart_set_pin(uart_num, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE, UAR…
350 …esp_rom_gpio_connect_out_signal(UART1_CTS_PIN, UART_PERIPH_SIGNAL(uart_num, SOC_UART_RTS_PIN_IDX),…
356 uart_write_bytes(uart_num, (const char*)wr_data, 1024);
357 uart_wait_tx_done(uart_num, (TickType_t)portMAX_DELAY);
358 uart_read_bytes(uart_num, rd_data, 1024, (TickType_t)1000);
360 TEST_ESP_OK(uart_driver_delete(uart_num));