/hal_espressif-3.4.0/components/esp_event/test/ |
D | test_event.c | 57 esp_event_loop_handle_t loop; member 64 esp_event_loop_handle_t loop; member 180 TEST_ESP_OK(esp_event_post_to(data->loop, data->base, data->id, NULL, 0, portMAX_DELAY)); in test_event_post_task() 198 …TEST_ESP_OK(esp_event_handler_register_with(data->loop, data->base, data->id, data->handles[i], NU… in test_event_simple_handler_registration_task() 200 …TEST_ESP_OK(esp_event_handler_unregister_with(data->loop, data->base, data->id, data->handles[i])); in test_event_simple_handler_registration_task() 214 esp_event_loop_handle_t* loop = (esp_event_loop_handle_t*) event_data; in test_handler_post_w_task() local 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() 230 …TEST_ASSERT_EQUAL(ESP_ERR_TIMEOUT, esp_event_post_to(*loop, s_test_base1, TEST_EVENT_BASE1_EV2, NU… in test_handler_post_w_task() 239 esp_event_loop_handle_t* loop = (esp_event_loop_handle_t*) event_data; in test_handler_post_wo_task() local 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() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ |
D | ble_mesh_console_lib.c | 69 uint8_t loop = 0; in get_value_string() local 73 for (loop = 0; loop < 17 ; loop++) { in get_value_string() 74 if (loop % 3 == 2) { in get_value_string() 75 if (value_in[loop] == ':') { in get_value_string() 99 uint8_t loop = 0; in str_2_mac() local 107 for (loop = 0; loop < 17 ; loop++) { in str_2_mac() 108 if (loop % 3 == 2) { in str_2_mac() 109 if (src_p[loop] != ':') { in str_2_mac() 115 if ((src_p[loop] >= '0') && (src_p[loop] <= '9')) { in str_2_mac() 116 tmp = tmp * 16 + src_p[loop] - '0'; in str_2_mac() [all …]
|
/hal_espressif-3.4.0/components/esp_event/ |
D | esp_event.c | 125 static void handler_execute(esp_event_loop_instance_t* loop, esp_event_handler_node_t *handler, esp… in handler_execute() argument 127 …xt %p on loop %p", post.base, post.id, handler->handler_ctx->handler, &handler->handler_ctx, loop); in handler_execute() 153 xSemaphoreTake(loop->profiling_mutex, portMAX_DELAY); in handler_execute() 158 xSemaphoreGive(loop->profiling_mutex); in handler_execute() 460 esp_event_loop_instance_t* loop; in esp_event_loop_create() local 463 loop = calloc(1, sizeof(*loop)); in esp_event_loop_create() 464 if (loop == NULL) { in esp_event_loop_create() 469 loop->queue = xQueueCreate(event_loop_args->queue_size , sizeof(esp_event_post_instance_t)); in esp_event_loop_create() 470 if (loop->queue == NULL) { in esp_event_loop_create() 475 loop->mutex = xSemaphoreCreateRecursiveMutex(); in esp_event_loop_create() [all …]
|
D | Kconfig | 4 bool "Enable event loop profiling" 7 … Enables collections of statistics in the event loop library such as the number of events posted 8 …to/recieved by an event loop, number of callbacks involved, number of events dropped to to a full … 9 … loop queue, run time of event handlers, and number of times/run time of each event handler.
|
D | esp_event_private.c | 22 esp_event_loop_instance_t* loop = (esp_event_loop_instance_t*) event_loop; in esp_event_is_handler_registered() local 31 SLIST_FOREACH(loop_node, &(loop->loop_nodes), next) { in esp_event_is_handler_registered() 66 xSemaphoreGive(loop->mutex); in esp_event_is_handler_registered()
|
/hal_espressif-3.4.0/components/esp_event/host_test/esp_event_unit_test/main/ |
D | esp_event_test.cpp | 58 esp_event_loop_handle_t loop; // with dedicated task variable 60 CHECK(ESP_ERR_INVALID_ARG == esp_event_loop_create(NULL, &loop)); 69 esp_event_loop_handle_t loop; variable 73 CHECK(ESP_ERR_NO_MEM == esp_event_loop_create(&loop_args, &loop)); 81 esp_event_loop_handle_t loop; variable 85 CHECK(ESP_ERR_NO_MEM == esp_event_loop_create(&loop_args, &loop)); 93 esp_event_loop_handle_t loop; variable 97 CHECK(ESP_FAIL == esp_event_loop_create(&loop_args, &loop)); 107 esp_event_loop_handle_t loop = nullptr; variable 112 CHECK(ESP_OK == esp_event_loop_create(&loop_args, &loop)); [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/components/case/ |
D | test_env.c | 90 uint8_t loop = 0; in coex_env_str_to_mac() local 99 for (loop = 0; loop < 17 ; loop++) { in coex_env_str_to_mac() 100 if (loop % 3 == 2) { in coex_env_str_to_mac() 101 if (src_p[loop] != ':') { in coex_env_str_to_mac() 109 if ((src_p[loop] >= '0') && (src_p[loop] <= '9')) { in coex_env_str_to_mac() 110 tmp = tmp * 16 + src_p[loop] - '0'; in coex_env_str_to_mac() 111 } else if ((src_p[loop] >= 'A') && (src_p[loop] <= 'F')) { in coex_env_str_to_mac() 112 tmp = tmp * 16 + src_p[loop] - 'A' + 10; in coex_env_str_to_mac() 113 } else if ((src_p[loop] >= 'a') && (src_p[loop] <= 'f')) { in coex_env_str_to_mac() 114 tmp = tmp * 16 + src_p[loop] - 'a' + 10; in coex_env_str_to_mac() [all …]
|
/hal_espressif-3.4.0/examples/cxx/experimental/esp_event_async_cxx/main/ |
D | esp_event_async_cxx_example.cpp | 45 ESPEventLoop loop; in app_main() local 49 unique_ptr<ESPEventReg> reg_1 = loop.register_event(TEMPLATE_EVENT_0, in app_main() 64 loop.post_event_data(TEMPLATE_EVENT_0, data); in app_main() 68 loop.post_event_data(TEMPLATE_EVENT_1); in app_main() 72 reg_2 = loop.register_event(TEMPLATE_EVENT_1, callback); in app_main() 74 loop.post_event_data(TEMPLATE_EVENT_1); in app_main() 80 loop.post_event_data(TEMPLATE_EVENT_1); in app_main() 90 ESPEventLoop loop; in app_main() local 93 unique_ptr<ESPEventRegTimed> timed_reg = loop.register_event_timed(TEMPLATE_EVENT_0, in app_main() 97 loop.post_event_data(TEMPLATE_EVENT_0); in app_main() [all …]
|
/hal_espressif-3.4.0/examples/system/esp_event/default_event_loop/ |
D | README.md | 7 …loop**](https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/system/esp_event.html#… 15 This example illustrates the creation of the default event loop using the API function `esp_event_l… 19 Simply put, posting an event to a loop is the act of queueing its handlers for execution. For the d… 23 This example demonstrates handler registration to the default event loop using `esp_event_handler_r… 25 … it no longer executes even when the event it was previously registered to gets posted to the loop. 60 I (338) default_event_loop: TIMER_EVENTS:TIMER_EVENT_STARTED: posting to default loop 61 I (338) default_event_loop: TASK_EVENTS:TASK_ITERATION_EVENT: posting to default loop, 1 out of 5 69 I (858) default_event_loop: TASK_EVENTS:TASK_ITERATION_EVENT: posting to default loop, 2 out of 5 72 I (1338) default_event_loop: TIMER_EVENTS:TIMER_EVENT_EXPIRY: posting to default loop 76 I (1358) default_event_loop: TASK_EVENTS:TASK_ITERATION_EVENT: posting to default loop, 3 out of 5 [all …]
|
/hal_espressif-3.4.0/examples/system/esp_event/user_event_loops/ |
D | example_test.py | 23 loop = None 26 loop = 'loop_with_task' 28 loop = 'loop_without_task' 30 dut.expect(TASK_ITERATION_POSTING.format(loop, iteration)) 31 print('Posted iteration {} to {}'.format(iteration, loop)) 32 dut.expect(TASK_ITERATION_HANDLING.format(loop, iteration)) 33 print('Handled iteration {} from {}'.format(iteration, loop))
|
D | README.md | 5 …t event loop** example](https://github.com/espressif/esp-idf/tree/master/examples/system/esp_event… 11 …loop entails populating the structure `esp_event_loop_args_t` with the desired parameters and call… 15 … can create either a loop with a dedicated task or one without. The purpose of the dedicated task … 19 Handler registration and unregistration works the same way as the default event loop, just with a d… 26 Posting events also works the same way as the default event loop, except with a different API, `esp… 99 …has a single event source: a task with a loop inside. Events are raised for the task event source … 101 …loop with a dedicated task, event handlers are automatically executed. However, for the loop witho… 105 #### 1.Setting up user event loop and event handlers 112 …which will post the event to the appropriate loop. The application task which makes the call to ru… 114 #### 2. Posting to the event loop [all …]
|
/hal_espressif-3.4.0/docs/en/api-reference/system/ |
D | esp_event.rst | 7 The event loop library allows components to declare events to which other components can register h… 21 These two appear prominently in the event loop library APIs. 25 1. A user defines a function that should run when an event is posted to a loop. This function is re… 26 …loop is created using :cpp:func:`esp_event_loop_create`, which outputs a handle to the loop of typ… 27 3. Components register event handlers to the loop using :cpp:func:`esp_event_handler_register_with`… 28 4. Event sources post an event to the loop using :cpp:func:`esp_event_post_to`. 29 …move their handlers from being called can do so by unregistering from the loop using :cpp:func:`es… 44 …ation structure of type esp_event_loop_args_t is needed to specify the properties of the loop to be 45 …f type esp_event_loop_handle_t is obtained, which is needed by the other APIs to reference the loop 60 // event that handler run_on_event should execute on when it gets posted to the loop. [all …]
|
/hal_espressif-3.4.0/tools/unit-test-app/components/test_utils/ |
D | test_utils.c | 105 uint8_t loop = 0; in unity_util_convert_mac_from_string() local 110 for (loop = 0; loop < 6; loop++) { in unity_util_convert_mac_from_string() 111 start = mac_str + loop * 3; in unity_util_convert_mac_from_string() 113 if (stop - start == 2 && (*stop == ':' || (*stop == 0 && loop == 5))) { in unity_util_convert_mac_from_string() 114 mac_addr[loop] = tmp; in unity_util_convert_mac_from_string()
|
/hal_espressif-3.4.0/components/bootloader/subproject/components/micro-ecc/micro-ecc/ |
D | asm_arm.inc | 482 "1: \n\t" /* outer loop (k < num_words) */ 486 "2: \n\t" /* outer loop (k >= num_words) */ 490 "3: \n\t" /* inner loop */ 504 "bgt 4f \n\t" /* if so, exit the loop */ 508 "4: \n\t" /* end inner loop */ 516 "ble 1b \n\t" /* if so, loop back, start with i = 0 */ 518 "ble 2b \n\t" /* if so, loop back, start with i = (k + 1) - num_words */ 519 /* end outer loop */ 547 "1: \n\t" /* outer loop (k < num_words) */ 551 "2: \n\t" /* outer loop (k >= num_words) */ [all …]
|
/hal_espressif-3.4.0/docs/en/api-guides/ |
D | event-handling.rst | 9 …river, and TCP/IP stack were dispatched using the so-called *legacy event loop*. The following sec… 14 …loop for the purposes of event handling in ESP-IDF. In the legacy event loop, all possible event t… 16 …brary. Wi-Fi, Ethernet, and IP events are sent to the :ref:`default event loop <esp-event-default-… 18 .. _legacy-event-loop: 23 This event loop implementation is started using :cpp:func:`esp_event_loop_init` function. Applicati… 133 ESP-WIFI-MESH uses a system similar to the :ref:`legacy-event-loop` to deliver events to the applic…
|
D | openthread.rst | 82 The OpenThread main loop 85 …_openthread_launch_mainloop` to launch the OpenThread main loop. Note that this is a busy loop and…
|
/hal_espressif-3.4.0/examples/system/esp_event/user_event_loops/main/ |
D | main.c | 48 char* loop; in task_iteration_handler() local 51 loop = "loop_with_task"; in task_iteration_handler() 53 loop = "loop_without_task"; in task_iteration_handler() 56 …ESP_LOGI(TAG, "handling %s:%s from %s, iteration %d", base, "TASK_ITERATION_EVENT", loop, iteratio… in task_iteration_handler()
|
/hal_espressif-3.4.0/examples/system/gcov/ |
D | example_test.py | 22 def expect_counter_output(loop, timeout=10): argument 23 dut.expect_all('blink_dummy_func: Counter = {}'.format(loop), 24 'some_dummy_func: Counter = {}'.format(loop * 2),
|
/hal_espressif-3.4.0/components/ulp/ulp_riscv/ |
D | start.S | 22 loop: label 23 j loop
|
/hal_espressif-3.4.0/examples/system/perfmon/ |
D | README.md | 61 the loop (aka. not-taken loop) 74 Loop instr where execution falls into loop (aka. taken loop) 77 Last inst of loop and execution transfers 81 Last inst of loop and execution falls 337 the loop (aka. not-taken loop) 342 Loop instr where execution falls into loop (aka. taken loop) 343 Last inst of loop and execution transfers 345 Last inst of loop and execution falls
|
/hal_espressif-3.4.0/examples/cxx/experimental/esp_modem_cxx/main/ |
D | simple_client.cpp | 32 auto loop = std::make_shared<ESPEventLoop>(); in app_main() local 90 ESPEventHandlerSync event_handler(loop); in app_main() 108 auto reg = loop->register_event(MqttClient::get_event(MqttClient::Event::DATA), in app_main()
|
/hal_espressif-3.4.0/examples/peripherals/rmt/step_motor/ |
D | README.md | 8 RMT peripheral can send customized RMT items in a loop, which means we can use it to generate a con… 10 …d step motor driver to step accurately with simple APIs, based on the RMT loop feature. The exampl… 16 * Recommend running this example on development board with SOC chip that support loop auto-stop fea…
|
/hal_espressif-3.4.0/components/driver/test/ |
D | test_adc2_with_wifi.c | 247 for (int loop = 0; loop < 10; loop++) { in i2s_adc_test() local
|
/hal_espressif-3.4.0/examples/peripherals/rmt/musical_buzzer/ |
D | README.md | 8 RMT peripheral can send customized RMT items in a loop, which means we can use it to generate a con… 10 This example will show how to drive a passive buzzer to play a simple music, based on the RMT loop …
|
/hal_espressif-3.4.0/examples/system/eventfd/ |
D | README.md | 4 `select()` based main loop. The example starts two tasks and installs a timer interrupt handler: 7 3. The second task collects the event from two fds with a `select()` loop.
|