/hal_espressif-3.5.0/examples/peripherals/twai/twai_network/twai_network_slave/main/ |
D | twai_network_example_slave_main.c | 89 xQueueReceive(rx_task_queue, &action, portMAX_DELAY); in twai_receive_task() 94 twai_receive(&rx_msg, portMAX_DELAY); in twai_receive_task() 104 twai_receive(&rx_msg, portMAX_DELAY); in twai_receive_task() 114 twai_receive(&rx_msg, portMAX_DELAY); in twai_receive_task() 132 xQueueReceive(tx_task_queue, &action, portMAX_DELAY); in twai_transmit_task() 136 twai_transmit(&ping_resp, portMAX_DELAY); in twai_transmit_task() 148 twai_transmit(&data_message, portMAX_DELAY); in twai_transmit_task() 157 twai_transmit(&stop_resp, portMAX_DELAY); in twai_transmit_task() 169 xSemaphoreTake(ctrl_task_sem, portMAX_DELAY); in twai_control_task() 179 xQueueSend(rx_task_queue, &rx_action, portMAX_DELAY); in twai_control_task() [all …]
|
/hal_espressif-3.5.0/examples/peripherals/twai/twai_network/twai_network_master/main/ |
D | twai_network_example_master_main.c | 88 xQueueReceive(rx_task_queue, &action, portMAX_DELAY); in twai_receive_task() 94 twai_receive(&rx_msg, portMAX_DELAY); in twai_receive_task() 106 twai_receive(&rx_msg, portMAX_DELAY); in twai_receive_task() 121 twai_receive(&rx_msg, portMAX_DELAY); in twai_receive_task() 138 xQueueReceive(tx_task_queue, &action, portMAX_DELAY); in twai_transmit_task() 144 twai_transmit(&ping_message, portMAX_DELAY); in twai_transmit_task() 149 twai_transmit(&start_message, portMAX_DELAY); in twai_transmit_task() 153 twai_transmit(&stop_message, portMAX_DELAY); in twai_transmit_task() 164 xSemaphoreTake(ctrl_task_sem, portMAX_DELAY); in twai_control_task() 175 xQueueSend(tx_task_queue, &tx_action, portMAX_DELAY); in twai_control_task() [all …]
|
/hal_espressif-3.5.0/components/esp_event/test/ |
D | test_event.c | 140 xSemaphoreTake(arg->mutex, portMAX_DELAY); in test_event_simple_handler() 177 xSemaphoreTake(arg->start, portMAX_DELAY); in test_event_post_task() 180 TEST_ESP_OK(esp_event_post_to(data->loop, data->base, data->id, NULL, 0, portMAX_DELAY)); in test_event_post_task() 194 xSemaphoreTake(arg->start, portMAX_DELAY); in test_event_simple_handler_registration_task() 221 … TEST_ESP_OK(esp_event_post_to(*loop, s_test_base1, TEST_EVENT_BASE1_EV2, NULL, 0, portMAX_DELAY)); in test_handler_post_w_task() 229 xSemaphoreTake((SemaphoreHandle_t) arg->mutex, portMAX_DELAY); in test_handler_post_w_task() 230 …ERR_TIMEOUT, esp_event_post_to(*loop, s_test_base1, TEST_EVENT_BASE1_EV2, NULL, 0, portMAX_DELAY)); in test_handler_post_w_task() 246 … TEST_ESP_OK(esp_event_post_to(*loop, s_test_base1, TEST_EVENT_BASE1_EV2, NULL, 0, portMAX_DELAY)); in test_handler_post_wo_task() 254 xSemaphoreTake((SemaphoreHandle_t) arg->mutex, portMAX_DELAY); in test_handler_post_wo_task() 255 … TEST_ESP_OK(esp_event_post_to(*loop, s_test_base1, TEST_EVENT_BASE1_EV2, NULL, 0, portMAX_DELAY)); in test_handler_post_wo_task() [all …]
|
/hal_espressif-3.5.0/examples/peripherals/twai/twai_self_test/main/ |
D | twai_self_test_example_main.c | 62 xSemaphoreTake(tx_sem, portMAX_DELAY); in twai_transmit_task() 66 ESP_ERROR_CHECK(twai_transmit(&tx_msg, portMAX_DELAY)); in twai_transmit_task() 78 xSemaphoreTake(rx_sem, portMAX_DELAY); in twai_receive_task() 81 ESP_ERROR_CHECK(twai_receive(&rx_message, portMAX_DELAY)); in twai_receive_task() 92 xSemaphoreTake(ctrl_sem, portMAX_DELAY); in twai_control_task() 101 xSemaphoreTake(ctrl_sem, portMAX_DELAY); //Wait for TX and RX tasks to finish iteration in twai_control_task() 130 xSemaphoreTake(done_sem, portMAX_DELAY); in app_main()
|
/hal_espressif-3.5.0/components/freertos/test/ |
D | test_freertos_task_notify.c | 48 xSemaphoreTake(trigger_send_semphr, portMAX_DELAY); in sender_task() 53 xSemaphoreTake(trigger_send_semphr, portMAX_DELAY); in sender_task() 58 xSemaphoreTake(trigger_send_semphr, portMAX_DELAY); in sender_task() 63 xSemaphoreTake(trigger_send_semphr, portMAX_DELAY); in sender_task() 76 xTaskNotifyWait(0, 0xFFFFFFFF, ¬ify_value, portMAX_DELAY); in receiver_task() 84 ulTaskNotifyTake(pdTRUE, portMAX_DELAY); in receiver_task() 89 xTaskNotifyWait(0, 0xFFFFFFFF, ¬ify_value, portMAX_DELAY); in receiver_task() 97 ulTaskNotifyTake(pdTRUE, portMAX_DELAY); in receiver_task()
|
D | test_queuesets.c | 35 …TEST_ASSERT_MESSAGE(xQueueSendToBack(handles[i], &item_num, portMAX_DELAY) == pdTRUE, "Failed to s… 42 QueueSetMemberHandle_t member = xQueueSelectFromSet(set_handle, portMAX_DELAY); 72 xSemaphoreTake(sync_sem, portMAX_DELAY); in send_task() 81 xQueueSendToBack(queue, &item, portMAX_DELAY); in send_task() 113 QueueSetMemberHandle_t member = xQueueSelectFromSet(queueset_handle, portMAX_DELAY); 129 xSemaphoreTake(sync_sem, portMAX_DELAY);
|
D | test_freertos_task_utilities.c | 61 TEST_ASSERT_EQUAL(pdFALSE, xQueueReceive(test_objs->queue, &data, portMAX_DELAY)); in test_task_abort_delay() 63 TEST_ASSERT_EQUAL(pdFALSE, xSemaphoreTake(test_objs->sem, portMAX_DELAY)); in test_task_abort_delay() 65 TEST_ASSERT_EQUAL(pdFALSE, xSemaphoreTake(test_objs->mux, portMAX_DELAY)); in test_task_abort_delay() 68 … xStreamBufferReceive(test_objs->stream_buffer, (void *)&RxData, STREAM_BUFFER_LEN, portMAX_DELAY); in test_task_abort_delay() 71 … EventBits_t uxBits = xEventGroupWaitBits(test_objs->evt_grp, 0xFF, pdTRUE, pdTRUE, portMAX_DELAY); in test_task_abort_delay()
|
D | test_freertos_eventgroups.c | 35 TEST_ASSERT( xEventGroupWaitBits(eg, BIT_CALL, true, false, portMAX_DELAY) ); in task_event_group_call_response() 92 xEventGroupSync(eg, BIT_RESPONSE(task_num), ALL_RESPONSE_BITS, portMAX_DELAY); in task_test_sync() 115 TEST_ASSERT( xEventGroupWaitBits(eg, BIT_DONE(c), false, false, portMAX_DELAY) ); 204 …TEST_ASSERT_EQUAL(BITS, xEventGroupWaitBits(eg, BITS, pdFALSE, pdTRUE, portMAX_DELAY)); //Let … 210 xSemaphoreTake(done_sem, portMAX_DELAY); //Wait for ISR to clear bits
|
D | test_freertos_debug_functions.c | 38 xSemaphoreTake(start_sem[core], portMAX_DELAY); //Wait for start vQueueAddToRegistry() in test_queue_registry_task() 46 xSemaphoreTake(start_sem[core], portMAX_DELAY); //Wait to start vQueueUnregisterQueue() in test_queue_registry_task() 70 xSemaphoreTake(done_sem, portMAX_DELAY); //Wait for tasks to complete vQueueAddToRegistry 83 … xSemaphoreTake(done_sem, portMAX_DELAY); //Wait for tasks to complete vQueueUnregisterQueue
|
/hal_espressif-3.5.0/components/driver/esp32/ |
D | touch_sensor.c | 107 xSemaphoreTake(rtc_touch_mux, portMAX_DELAY); in touch_pad_filter_cb() 119 xTimerReset(s_touch_pad_filter->timer, portMAX_DELAY); in touch_pad_filter_cb() 309 xSemaphoreTake(rtc_touch_mux, portMAX_DELAY); in touch_pad_deinit() 350 xSemaphoreTake(rtc_touch_mux, portMAX_DELAY); in touch_pad_read() 389 xSemaphoreTake(rtc_touch_mux, portMAX_DELAY); in touch_pad_set_filter_period() 391 … xTimerChangePeriod(s_touch_pad_filter->timer, new_period_ms / portTICK_PERIOD_MS, portMAX_DELAY); in touch_pad_set_filter_period() 408 xSemaphoreTake(rtc_touch_mux, portMAX_DELAY); in touch_pad_get_filter_period() 424 xSemaphoreTake(rtc_touch_mux, portMAX_DELAY); in touch_pad_filter_start() 455 xSemaphoreTake(rtc_touch_mux, portMAX_DELAY); in touch_pad_filter_stop() 457 xTimerStop(s_touch_pad_filter->timer, portMAX_DELAY); in touch_pad_filter_stop() [all …]
|
/hal_espressif-3.5.0/components/driver/test/ |
D | test_spi_slave_hd.c | 246 …t err = spi_slave_hd_queue_trans(TEST_SLAVE_HOST, SPI_SLAVE_CHAN_TX, &ctx->tx_data, portMAX_DELAY); in test_hd_start() 253 … err = spi_slave_hd_queue_trans(TEST_SLAVE_HOST, SPI_SLAVE_CHAN_RX, &ctx->rx_data, portMAX_DELAY); in test_hd_start() 280 …_t ret = spi_slave_hd_get_trans_res(TEST_SLAVE_HOST, SPI_SLAVE_CHAN_RX, &ret_trans, portMAX_DELAY); in test_wrdma() 291 …t err = spi_slave_hd_queue_trans(TEST_SLAVE_HOST, SPI_SLAVE_CHAN_RX, &ctx->rx_data, portMAX_DELAY); in test_wrdma() 310 …_t ret = spi_slave_hd_get_trans_res(TEST_SLAVE_HOST, SPI_SLAVE_CHAN_TX, &ret_trans, portMAX_DELAY); in test_rddma() 324 …t err = spi_slave_hd_queue_trans(TEST_SLAVE_HOST, SPI_SLAVE_CHAN_TX, &ctx->tx_data, portMAX_DELAY); in test_rddma() 381 wait_rdbuf_sig(context, portMAX_DELAY); in test_hd_loop() 396 wait_wrbuf_sig(context, portMAX_DELAY); in test_hd_loop() 399 wait_rdbuf_sig(context, portMAX_DELAY); in test_hd_loop() 417 wait_wrbuf_sig(context, portMAX_DELAY); in test_hd_loop() [all …]
|
D | test_spi_bus_lock.c | 63 TEST_ESP_OK(spi_device_acquire_bus( handle, portMAX_DELAY )); in spi_task1() 85 TEST_ESP_OK(spi_device_acquire_bus( handle, portMAX_DELAY )); in spi_task2() 93 TEST_ESP_OK(spi_device_queue_trans(handle, &t, portMAX_DELAY)); in spi_task2() 96 TEST_ESP_OK(spi_device_get_trans_result(handle, &ret_t, portMAX_DELAY)); in spi_task2() 124 TEST_ESP_OK(spi_device_acquire_bus( handle, portMAX_DELAY )); in spi_task3() 131 TEST_ESP_OK(spi_device_queue_trans(handle, &t, portMAX_DELAY)); in spi_task3() 134 TEST_ESP_OK(spi_device_get_trans_result(handle, &ret_t, portMAX_DELAY)); in spi_task3() 320 esp_err_t err = spi_device_acquire_bus(handle, portMAX_DELAY); in test_acquire()
|
D | test_spi_slave.c | 134 TEST_ESP_OK(spi_slave_queue_trans(TEST_SLAVE_HOST, &slave_t, portMAX_DELAY)); 146 TEST_ESP_OK(spi_slave_get_trans_result(TEST_SLAVE_HOST, &out, portMAX_DELAY)); 180 TEST_ESP_OK(spi_slave_queue_trans(TEST_SLAVE_HOST, &slave_t, portMAX_DELAY)); 192 TEST_ESP_OK(spi_slave_get_trans_result(TEST_SLAVE_HOST, &out, portMAX_DELAY)); 228 TEST_ESP_OK(spi_slave_queue_trans(TEST_SLAVE_HOST, &slave_t, portMAX_DELAY)); 240 TEST_ESP_OK(spi_slave_get_trans_result(TEST_SLAVE_HOST, &out, portMAX_DELAY)); 363 TEST_ESP_OK(spi_slave_transmit(TEST_SPI_HOST, &slave_t, portMAX_DELAY)); in unaligned_test_slave()
|
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ |
D | transaction.c | 28 xSemaphoreTakeRecursive(trans_mutex, portMAX_DELAY); in transaction_reset() 49 xSemaphoreTakeRecursive(trans_mutex, portMAX_DELAY); in transaction_set_events() 73 xSemaphoreTakeRecursive(trans_mutex, portMAX_DELAY); in transaction_test_events() 93 xSemaphoreTakeRecursive(trans_mutex, portMAX_DELAY); in transaction_clear_events() 112 xSemaphoreTakeRecursive(trans_mutex, portMAX_DELAY); in transaction_abort() 139 xSemaphoreTakeRecursive(trans_mutex, portMAX_DELAY); in transaction_init() 192 xSemaphoreTakeRecursive(trans_mutex, portMAX_DELAY); in transaction_run() 234 xSemaphoreTakeRecursive(trans_mutex, portMAX_DELAY); in transaction_get()
|
/hal_espressif-3.5.0/examples/protocols/websocket/main/ |
D | websocket_example.c | 79 xTimerReset(shutdown_signal_timer, portMAX_DELAY); in websocket_event_handler() 115 xTimerStart(shutdown_signal_timer, portMAX_DELAY); in websocket_app_start() 122 esp_websocket_client_send_text(client, data, len, portMAX_DELAY); in websocket_app_start() 127 xSemaphoreTake(shutdown_sema, portMAX_DELAY); in websocket_app_start() 128 esp_websocket_client_close(client, portMAX_DELAY); in websocket_app_start()
|
/hal_espressif-3.5.0/components/cxx/ |
D | cxx_guards.cpp | 83 result = xSemaphoreTake(s_static_init_wait_sem, portMAX_DELAY); in wait_for_guard_obj() 89 result = xSemaphoreTake(s_static_init_mutex, portMAX_DELAY); in wait_for_guard_obj() 134 auto result = xSemaphoreTake(s_static_init_mutex, portMAX_DELAY); in __cxa_guard_acquire() 175 auto result = xSemaphoreTake(s_static_init_mutex, portMAX_DELAY); in __cxa_guard_release() 197 auto result = xSemaphoreTake(s_static_init_mutex, portMAX_DELAY); in __cxa_guard_abort()
|
/hal_espressif-3.5.0/examples/peripherals/spi_slave_hd/append_mode/slave/main/ |
D | app_main.c | 145 …CHECK(spi_slave_hd_append_trans(HOST_ID, SPI_SLAVE_CHAN_TX, &trans_to_send->trans, portMAX_DELAY)); in sendTask() 158 …OR_CHECK(spi_slave_hd_get_append_trans_res(HOST_ID, SPI_SLAVE_CHAN_TX, &ret_trans, portMAX_DELAY)); in sendTask() 165 …CHECK(spi_slave_hd_append_trans(HOST_ID, SPI_SLAVE_CHAN_TX, &trans_to_send->trans, portMAX_DELAY)); in sendTask() 210 …HECK(spi_slave_hd_append_trans(HOST_ID, SPI_SLAVE_CHAN_RX, &trans_for_recv->trans, portMAX_DELAY)); in recvTask() 222 spi_slave_hd_get_append_trans_res(HOST_ID, SPI_SLAVE_CHAN_RX, &ret_trans, portMAX_DELAY); in recvTask() 230 …HECK(spi_slave_hd_append_trans(HOST_ID, SPI_SLAVE_CHAN_RX, &trans_for_recv->trans, portMAX_DELAY)); in recvTask()
|
/hal_espressif-3.5.0/examples/peripherals/twai/twai_alert_and_recovery/main/ |
D | twai_alert_and_recovery_example_main.c | 67 xSemaphoreTake(tx_task_sem, portMAX_DELAY); in tx_task() 86 xSemaphoreTake(ctrl_task_sem, portMAX_DELAY); in ctrl_task() 103 twai_read_alerts(&alerts, portMAX_DELAY); in ctrl_task() 146 xSemaphoreTake(ctrl_task_sem, portMAX_DELAY); //Wait for completion in app_main()
|
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/common_components/button/ |
D | button.c | 30 #define STOP_TIMER(tmr) xTimerStop(tmr, portMAX_DELAY) 31 #define DELETE_TIMER(tmr) xTimerDelete(tmr, portMAX_DELAY); 116 …gePeriod(btn->press_serial_cb.tmr, btn->serial_thres_sec*1000 / portTICK_PERIOD_MS, portMAX_DELAY); in button_tap_psh_cb() 117 xTimerReset(btn->press_serial_cb.tmr, portMAX_DELAY); in button_tap_psh_cb() 132 xTimerReset(btn->tap_rls_cb.tmr, portMAX_DELAY); in button_tap_psh_cb() 186 xTimerChangePeriod(btn->press_serial_cb.tmr, btn->press_serial_cb.interval, portMAX_DELAY); in button_press_serial_cb() 187 xTimerReset(btn->press_serial_cb.tmr, portMAX_DELAY); in button_press_serial_cb() 375 …gePeriod(btn->press_serial_cb.tmr, btn->serial_thres_sec*1000 / portTICK_PERIOD_MS, portMAX_DELAY); in iot_button_set_serial_cb() 390 xTimerChangePeriod(btn->tap_psh_cb.tmr, btn->tap_psh_cb.interval, portMAX_DELAY); in iot_button_set_evt_cb() 398 xTimerChangePeriod(btn->tap_rls_cb.tmr, btn->tap_psh_cb.interval, portMAX_DELAY); in iot_button_set_evt_cb()
|
/hal_espressif-3.5.0/examples/bluetooth/bluedroid/coex/a2dp_gatts_coex/main/ |
D | bt_app_core.c | 82 if (pdTRUE == xQueueReceive(s_bt_app_task_queue, &msg, (portTickType)portMAX_DELAY)) { in bt_app_task_handler() 126 … data = (uint8_t *)xRingbufferReceive(s_ringbuf_i2s, &item_size, (portTickType)portMAX_DELAY); in bt_i2s_task_handler() 128 i2s_write(0, data, item_size, &bytes_written, portMAX_DELAY); in bt_i2s_task_handler() 160 … BaseType_t done = xRingbufferSend(s_ringbuf_i2s, (void *)data, size, (portTickType)portMAX_DELAY); in write_ringbuf()
|
/hal_espressif-3.5.0/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main/ |
D | bt_app_core.c | 74 if (pdTRUE == xQueueReceive(s_bt_app_task_queue, &msg, (portTickType)portMAX_DELAY)) { in bt_app_task_handler() 101 … data = (uint8_t *)xRingbufferReceive(s_ringbuf_i2s, &item_size, (portTickType)portMAX_DELAY); in bt_i2s_task_handler() 103 i2s_write(0, data, item_size, &bytes_written, portMAX_DELAY); in bt_i2s_task_handler() 180 … BaseType_t done = xRingbufferSend(s_ringbuf_i2s, (void *)data, size, (portTickType)portMAX_DELAY); in write_ringbuf()
|
/hal_espressif-3.5.0/components/esp_ipc/src/ |
D | esp_ipc.c | 54 if (xSemaphoreTake(s_ipc_sem[cpuid], portMAX_DELAY) != pdTRUE) { in ipc_task() 134 xSemaphoreTake(s_ipc_mutex[cpu_id], portMAX_DELAY); in esp_ipc_call_and_wait() 137 xSemaphoreTake(s_ipc_mutex[0], portMAX_DELAY); in esp_ipc_call_and_wait() 144 xSemaphoreTake(s_ipc_ack[cpu_id], portMAX_DELAY); in esp_ipc_call_and_wait()
|
/hal_espressif-3.5.0/components/pthread/ |
D | pthread.c | 183 xTaskNotifyWait(0, 0, NULL, portMAX_DELAY); in pthread_task_func() 298 if (xSemaphoreTake(s_threads_mux, portMAX_DELAY) != pdTRUE) { in pthread_create() 324 if (xSemaphoreTake(s_threads_mux, portMAX_DELAY) != pdTRUE) { in pthread_join() 359 xTaskNotifyWait(0, 0, NULL, portMAX_DELAY); in pthread_join() 360 if (xSemaphoreTake(s_threads_mux, portMAX_DELAY) != pdTRUE) { in pthread_join() 383 if (xSemaphoreTake(s_threads_mux, portMAX_DELAY) != pdTRUE) { in pthread_detach() 415 if (xSemaphoreTake(s_threads_mux, portMAX_DELAY) != pdTRUE) { in pthread_exit() 472 if (xSemaphoreTake(s_threads_mux, portMAX_DELAY) != pdTRUE) { in pthread_self() 650 return pthread_mutex_lock_internal((esp_pthread_mutex_t *)*mutex, portMAX_DELAY); in pthread_mutex_lock()
|
/hal_espressif-3.5.0/components/touch_element/ |
D | touch_button.c | 60 xSemaphoreTake(s_te_btn_obj->mutex, portMAX_DELAY); in touch_button_install() 85 xSemaphoreTake(s_te_btn_obj->mutex, portMAX_DELAY); in touch_button_uninstall() 165 xSemaphoreTake(s_te_btn_obj->mutex, portMAX_DELAY); in touch_button_set_dispatch_method() 185 xSemaphoreTake(s_te_btn_obj->mutex, portMAX_DELAY); in touch_button_subscribe_event() 199 xSemaphoreTake(s_te_btn_obj->mutex, portMAX_DELAY); in touch_button_set_callback() 213 xSemaphoreTake(s_te_btn_obj->mutex, portMAX_DELAY); in touch_button_set_longpress() 281 xSemaphoreTake(s_te_btn_obj->mutex, portMAX_DELAY); in button_object_add_instance() 293 xSemaphoreTake(s_te_btn_obj->mutex, portMAX_DELAY); in button_object_remove_instance()
|
/hal_espressif-3.5.0/examples/system/esp_event/default_event_loop/main/ |
D | main.c | 54 ESP_ERROR_CHECK(esp_event_post(TIMER_EVENTS, TIMER_EVENT_EXPIRY, NULL, 0, portMAX_DELAY)); in timer_callback() 86 ESP_ERROR_CHECK(esp_event_post(TIMER_EVENTS, TIMER_EVENT_STOPPED, NULL, 0, portMAX_DELAY)); in timer_expiry_handler() 128 …K(esp_event_post(TASK_EVENTS, TASK_ITERATION_EVENT, &iteration, sizeof(iteration), portMAX_DELAY)); in task_event_source() 192 ESP_ERROR_CHECK(esp_event_post(TIMER_EVENTS, TIMER_EVENT_STARTED, NULL, 0, portMAX_DELAY)); in app_main()
|