/hal_espressif-3.4.0/components/freertos/test/ |
D | test_timers.c | 11 volatile int *count; in timer_callback() local 12 count = (volatile int *)pvTimerGetTimerID( timer ); in timer_callback() 13 (*count)++; in timer_callback() 14 printf("Callback timer %p count %p = %d\n", timer, count, *count); in timer_callback() 19 volatile int count = 0; variable 21 (void *)&count, timer_callback); 24 TEST_ASSERT_EQUAL(0, count); 30 TEST_ASSERT_EQUAL(0, count); 34 TEST_ASSERT_EQUAL(1, count); 43 volatile int count = 0; variable [all …]
|
/hal_espressif-3.4.0/components/wpa_supplicant/test/ |
D | test_crypto.c | 55 uint8_t count; variable 59 for (count = 0; count < 32; count++) { 60 buf1[count] = 0x11; 61 buf2[count] = 0x22; 62 buf3[count] = 0x33; //expected result 63 buf4[count] = 0x0; //Calculated result 86 uint8_t count; variable 90 for (count = 0; count < 32; count++) { 91 buf1[count] = 0x33; 92 buf2[count] = 0x22; [all …]
|
/hal_espressif-3.4.0/components/heap/ |
D | heap_trace_standalone.c | 43 static size_t count; variable 75 count = 0; in heap_trace_start() 106 return count; in heap_trace_get_count() 117 if (index >= count) { in heap_trace_get() 132 count, total_records); in heap_trace_dump() 133 size_t start_count = count; in heap_trace_dump() 134 for (int i = 0; i < count; i++) { in heap_trace_dump() 165 if (start_count != count) { // only a problem if trace isn't stopped before dumping in heap_trace_dump() 182 if (count == total_records) { in record_allocation() 192 count--; in record_allocation() [all …]
|
D | heap_task_info.c | 39 size_t count = *params->num_totals; in heap_caps_get_per_task_info() local 44 for (size_t i = 0; i < count; ++i) { in heap_caps_get_per_task_info() 47 params->totals[i].count[type] = 0; in heap_caps_get_per_task_info() 84 for (i = 0; i < count; ++i) { in heap_caps_get_per_task_info() 89 if (i < count) { in heap_caps_get_per_task_info() 91 params->totals[i].count[type] += 1; in heap_caps_get_per_task_info() 94 if (count < params->max_totals) { in heap_caps_get_per_task_info() 95 params->totals[count].task = btask; in heap_caps_get_per_task_info() 96 params->totals[count].size[type] = bsize; in heap_caps_get_per_task_info() 97 params->totals[i].count[type] = 1; in heap_caps_get_per_task_info() [all …]
|
/hal_espressif-3.4.0/components/nvs_flash/test_nvs_host/ |
D | test_nvs_partition.cpp | 33 for(int count = 0; count < NVS_KEY_SIZE; count++) { variable 34 xts_cfg.eky[count] = 0x11; 35 xts_cfg.tky[count] = 0x22; 46 for(int count = 0; count < NVS_KEY_SIZE; count++) { variable 47 xts_cfg.eky[count] = 0x11; 48 xts_cfg.tky[count] = 0x22;
|
/hal_espressif-3.4.0/examples/peripherals/lcd/lvgl/main/ |
D | lvgl_demo_ui.c | 35 int count = timer_ctx->count_val; in anim_timer_cb() local 39 if (count < 90) { in anim_timer_cb() 40 lv_coord_t arc_start = count > 0 ? (1 - cosf(count / 180.0f * PI)) * 270 : 0; in anim_timer_cb() 41 lv_coord_t arc_len = (sinf(count / 180.0f * PI) + 1) * 135; in anim_timer_cb() 45 lv_arc_set_rotation(arc[i], (count + 120 * (i + 1)) % 360); in anim_timer_cb() 50 if (count == 90) { in anim_timer_cb() 62 if ((count >= 100) && (count <= 180)) { in anim_timer_cb() 63 lv_coord_t offset = (sinf((count - 140) * 2.25f / 90.0f) + 1) * 20.0f; in anim_timer_cb() 70 if ((count += 5) == 220) { in anim_timer_cb() 73 timer_ctx->count_val = count; in anim_timer_cb()
|
/hal_espressif-3.4.0/components/esp_event/test/ |
D | test_event.c | 142 int* count = (int*) arg->data; in test_event_simple_handler() local 145 (*count)++; in test_event_simple_handler() 147 (*count) += *((int*) event_data); in test_event_simple_handler() 215 int* count = (int*) arg->data; in test_handler_post_w_task() local 217 (*count)++; in test_handler_post_w_task() 219 if (*count <= 2) { in test_handler_post_w_task() 240 int* count = (int*) arg->data; in test_handler_post_wo_task() local 242 (*count)++; in test_handler_post_wo_task() 244 if (*count <= 2) { in test_handler_post_wo_task() 277 int *count = (int*) unregister_data->data; in test_handler_instance_unregister_itself() local [all …]
|
D | test_default_loop.c | 63 int* count = (int*) arg->data; in test_event_simple_handler() local 66 (*count)++; in test_event_simple_handler() 68 (*count) += *((int*) event_data); in test_event_simple_handler() 99 int count = 0; variable 102 .data = &count, 119 TEST_ASSERT_EQUAL(1, count); 127 TEST_ASSERT_EQUAL(1, count);
|
/hal_espressif-3.4.0/examples/system/ulp_fsm/ulp/ |
D | README.md | 6 This example demonstrates how to program the ULP coprocessor to count pulses on an IO while the mai… 12 …ouncing and increments the variable maintaining the total edge count. Once the edge count reaches … 14 Upon wakeup, the main program saves total edge count into NVS and returns to deep sleep. 26 ULP wakeup, saving pulse count 27 Read pulse count from NVS: 384 28 Pulse count from ULP: 5 29 Wrote updated pulse count to NVS: 389 32 ULP wakeup, saving pulse count 33 Read pulse count from NVS: 389 34 Pulse count from ULP: 5 [all …]
|
/hal_espressif-3.4.0/components/bt/host/bluedroid/api/ |
D | esp_gattc_api.c | 161 … esp_gattc_service_elem_t *result, uint16_t *count, uint16_t offset) in esp_ble_gattc_get_service() argument 165 if (result == NULL || count == NULL || *count == 0) { in esp_ble_gattc_get_service() 170 return btc_ble_gattc_get_service(conn_hdl, svc_uuid, result, count, offset); in esp_ble_gattc_get_service() 179 uint16_t *count, uint16_t offset) in esp_ble_gattc_get_all_char() argument 184 *count = 0; in esp_ble_gattc_get_all_char() 188 if (result == NULL || count == NULL || *count == 0) { in esp_ble_gattc_get_all_char() 193 return btc_ble_gattc_get_all_char(conn_hdl, start_handle, end_handle, result, count, offset); in esp_ble_gattc_get_all_char() 200 uint16_t *count, uint16_t offset) in esp_ble_gattc_get_all_descr() argument 208 if (result == NULL || count == NULL || *count == 0) { in esp_ble_gattc_get_all_descr() 213 return btc_ble_gattc_get_all_descr(conn_hdl, char_handle, result, count, offset); in esp_ble_gattc_get_all_descr() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/aligenie_demo/components/vendor_model/ |
D | genie_reset.c | 79 static esp_err_t genie_reset_write_count(uint8_t count) in genie_reset_write_count() argument 82 uint8_t data = count; in genie_reset_write_count() 135 uint8_t count = 0; in genie_reset_by_repeat_init() local 139 flash_err = genie_reset_read_count(&count); in genie_reset_by_repeat_init() 142 count = 0; in genie_reset_by_repeat_init() 145 ESP_LOGI(TAG, "read count %d", count); in genie_reset_by_repeat_init() 147 count++; in genie_reset_by_repeat_init() 148 if (count == GENIE_RESET_BY_REPEAT_COUNTER) { in genie_reset_by_repeat_init() 154 if (count < GENIE_RESET_BY_REPEAT_COUNTER) { in genie_reset_by_repeat_init() 155 genie_reset_write_count(count); in genie_reset_by_repeat_init()
|
/hal_espressif-3.4.0/components/wpa_supplicant/src/utils/ |
D | base64.c | 88 size_t i, count, olen; in base64_gen_decode() local 97 count = 0; in base64_gen_decode() 100 count++; in base64_gen_decode() 103 if (count == 0) in base64_gen_decode() 105 extra_pad = (4 - count % 4) % 4; in base64_gen_decode() 107 olen = (count + extra_pad) / 4 * 3; in base64_gen_decode() 112 count = 0; in base64_gen_decode() 126 block[count] = tmp; in base64_gen_decode() 127 count++; in base64_gen_decode() 128 if (count == 4) { in base64_gen_decode() [all …]
|
/hal_espressif-3.4.0/components/esp_hw_support/include/soc/ |
D | spinlock.h | 32 #define SPINLOCK_INITIALIZER {.owner = SPINLOCK_FREE,.count = 0} 37 NEED_VOLATILE_MUX uint32_t count; member 49 lock->count = 0; in spinlock_initialize() 123 …assert((result == SPINLOCK_FREE) == (lock->count == 0)); /* we're first to lock iff count is zero … in spinlock_acquire() 124 assert(lock->count < 0xFF); /* Bad count value implies memory corruption */ in spinlock_acquire() 126 lock->count++; in spinlock_acquire() 159 lock->count--; in spinlock_release() 161 if(!lock->count) { in spinlock_release() 164 assert(lock->count < 0x100); // Indicates memory corruption in spinlock_release()
|
/hal_espressif-3.4.0/components/wpa_supplicant/src/crypto/ |
D | sha1-pbkdf2.c | 15 size_t ssid_len, int iterations, unsigned int count, in pbkdf2_sha1_f() argument 36 count_buf[0] = (count >> 24) & 0xff; in pbkdf2_sha1_f() 37 count_buf[1] = (count >> 16) & 0xff; in pbkdf2_sha1_f() 38 count_buf[2] = (count >> 8) & 0xff; in pbkdf2_sha1_f() 39 count_buf[3] = count & 0xff; in pbkdf2_sha1_f() 75 unsigned int count = 0; in pbkdf2_sha1() local 81 count++; in pbkdf2_sha1() 83 count, digest)) in pbkdf2_sha1()
|
/hal_espressif-3.4.0/components/wpa_supplicant/src/tls/ |
D | tlsv1_server.c | 344 size_t count; in tlsv1_server_init() local 362 count = 0; in tlsv1_server_init() 364 suites[count++] = TLS_RSA_WITH_AES_256_CBC_SHA; in tlsv1_server_init() 365 suites[count++] = TLS_RSA_WITH_AES_128_CBC_SHA; in tlsv1_server_init() 367 suites[count++] = TLS_RSA_WITH_3DES_EDE_CBC_SHA; in tlsv1_server_init() 369 suites[count++] = TLS_RSA_WITH_RC4_128_SHA; in tlsv1_server_init() 370 suites[count++] = TLS_RSA_WITH_RC4_128_MD5; in tlsv1_server_init() 371 conn->num_cipher_suites = count; in tlsv1_server_init() 621 size_t count; in tlsv1_server_set_cipher_list() local 626 count = 0; in tlsv1_server_set_cipher_list() [all …]
|
D | tlsv1_client.c | 444 size_t count; in tlsv1_client_init() local 460 count = 0; in tlsv1_client_init() 462 suites[count++] = TLS_RSA_WITH_AES_256_CBC_SHA256; in tlsv1_client_init() 463 suites[count++] = TLS_RSA_WITH_AES_256_CBC_SHA; in tlsv1_client_init() 464 suites[count++] = TLS_RSA_WITH_AES_128_CBC_SHA256; in tlsv1_client_init() 465 suites[count++] = TLS_RSA_WITH_AES_128_CBC_SHA; in tlsv1_client_init() 467 suites[count++] = TLS_RSA_WITH_3DES_EDE_CBC_SHA; in tlsv1_client_init() 469 suites[count++] = TLS_RSA_WITH_RC4_128_SHA; in tlsv1_client_init() 470 suites[count++] = TLS_RSA_WITH_RC4_128_MD5; in tlsv1_client_init() 471 conn->num_cipher_suites = count; in tlsv1_client_init() [all …]
|
/hal_espressif-3.4.0/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ |
D | ble_mesh_reg_cfg_client_cmd.c | 15 struct arg_int *count; member 79 …status_cb.heartbeat_pub_status.dst, param->status_cb.heartbeat_pub_status.count, param->status_cb… in ble_mesh_configuration_client_model_cb() 89 …param->status_cb.heartbeat_sub_status.count, param->status_cb.heartbeat_sub_status.min_hops, param… in ble_mesh_configuration_client_model_cb() 169 …status_cb.heartbeat_pub_status.dst, param->status_cb.heartbeat_pub_status.count, param->status_cb.… in ble_mesh_configuration_client_model_cb() 179 …param->status_cb.heartbeat_sub_status.count, param->status_cb.heartbeat_sub_status.min_hops, param… in ble_mesh_configuration_client_model_cb() 252 if (configuration_client_model_operation.opcode->count != 0) { in ble_mesh_configuration_client_model_operation() 256 if (configuration_client_model_operation.net_idx->count != 0) { in ble_mesh_configuration_client_model_operation() 262 if (configuration_client_model_operation.unicast_address->count != 0) { in ble_mesh_configuration_client_model_operation() 271 if (configuration_client_model_operation.appkey_index->count != 0) { in ble_mesh_configuration_client_model_operation() 278 if (configuration_client_model_operation.value->count != 0) { in ble_mesh_configuration_client_model_operation() [all …]
|
/hal_espressif-3.4.0/components/fatfs/src/ |
D | diskio.c | 103 UINT count /* Number of sectors to read */ in disk_read() argument 113 result = RAM_disk_read(buff, sector, count); in disk_read() 122 result = MMC_disk_read(buff, sector, count); in disk_read() 131 result = USB_disk_read(buff, sector, count); in disk_read() 153 UINT count /* Number of sectors to write */ in disk_write() argument 163 result = RAM_disk_write(buff, sector, count); in disk_write() 172 result = MMC_disk_write(buff, sector, count); in disk_write() 181 result = USB_disk_write(buff, sector, count); in disk_write()
|
/hal_espressif-3.4.0/examples/bluetooth/bluedroid/ble/gattc_multi_connect/main/ |
D | gattc_multi_connect.c | 196 uint16_t count = 0; in gattc_profile_a_event_handler() local 203 &count); in gattc_profile_a_event_handler() 207 if (count > 0) { in gattc_profile_a_event_handler() 208 … char_elem_result_a = (esp_gattc_char_elem_t *)malloc(sizeof(esp_gattc_char_elem_t) * count); in gattc_profile_a_event_handler() 218 &count); in gattc_profile_a_event_handler() 224 … if (count > 0 && (char_elem_result_a[0].properties & ESP_GATT_CHAR_PROP_BIT_NOTIFY)){ in gattc_profile_a_event_handler() 241 uint16_t count = 0; in gattc_profile_a_event_handler() local 249 &count); in gattc_profile_a_event_handler() 253 if (count > 0){ in gattc_profile_a_event_handler() 254 … descr_elem_result_a = (esp_gattc_descr_elem_t *)malloc(sizeof(esp_gattc_descr_elem_t) * count); in gattc_profile_a_event_handler() [all …]
|
/hal_espressif-3.4.0/examples/network/network_tests/main/ |
D | stdinout.c | 113 size_t count = 0; in process_line() local 120 ++count; in process_line() 123 packet[count] *= 16; in process_line() 124 packet[count] += c - '0'; in process_line() 127 packet[count] *= 16; in process_line() 128 packet[count] += c - 'a' + 10; in process_line() 133 count++; in process_line() 135 return count; in process_line()
|
/hal_espressif-3.4.0/components/esp_hw_support/test/ |
D | test_intr_alloc.c | 51 static volatile int count[SOC_TIMER_GROUP_TOTAL_TIMERS] = {0}; variable 58 count[timer_idx]++; in timer_isr() 93 count[i] = 0; in timer_test() 94 printf(" %d", count[i]); in timer_test() 101 printf(" %d", count[i]); in timer_test() 105 TEST_ASSERT(count[0] == 0); in timer_test() 107 TEST_ASSERT(count[i] != 0); in timer_test() 118 count[i] = 0; in timer_test() 124 printf(" %d", count[i]); in timer_test() 128 TEST_ASSERT(count[i] == 0); in timer_test() [all …]
|
/hal_espressif-3.4.0/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/main/ |
D | cmd_mcpwm_motor.c | 81 if (motor_ctrl_config_args.pid_flag->count) { in do_motor_ctrl_config_cmd() 92 if (motor_ctrl_config_args.period->count) { in do_motor_ctrl_config_cmd() 98 if (motor_ctrl_config_args.show->count) { in do_motor_ctrl_config_cmd() 109 if (motor_ctrl_expt_args.init->count) { in do_motor_ctrl_expt_cmd() 113 if (motor_ctrl_expt_args.max->count) { in do_motor_ctrl_expt_cmd() 117 if (motor_ctrl_expt_args.min->count) { in do_motor_ctrl_expt_cmd() 121 if (motor_ctrl_expt_args.pace->count) { in do_motor_ctrl_expt_cmd() 125 if (motor_ctrl_expt_args.mode->count) { in do_motor_ctrl_expt_cmd() 149 if (motor_ctrl_pid_args.kp->count) { in do_motor_ctrl_pid_cmd() 153 if (motor_ctrl_pid_args.ki->count) { in do_motor_ctrl_pid_cmd() [all …]
|
/hal_espressif-3.4.0/examples/protocols/http_server/persistent_sockets/ |
D | README.md | 51 I (12860) example: /adder visitor count = 1 54 I (13070) example: /adder visitor count = 2 56 I (13090) example: /adder visitor count = 3 58 I (13110) example: /adder visitor count = 4 60 I (13170) example: /adder visitor count = 5 62 I (13190) example: /adder visitor count = 6 64 I (13210) example: /adder visitor count = 7 66 I (13270) example: /adder visitor count = 8 68 I (13290) example: /adder visitor count = 9 70 I (13300) example: /adder visitor count = 10 [all …]
|
/hal_espressif-3.4.0/components/bt/host/bluedroid/btc/profile/std/gatt/ |
D | btc_gattc.c | 237 static void btc_gattc_fill_gatt_db_conversion(uint16_t count, uint16_t num, esp_gatt_db_attr_type_t… in btc_gattc_fill_gatt_db_conversion() argument 241 uint16_t db_size = (count + offset > num) ? (num - offset) : count; in btc_gattc_fill_gatt_db_conversion() 309 uint16_t *count, uint16_t offset) in btc_ble_gattc_get_service() argument 329 *count = 0; in btc_ble_gattc_get_service() 332 …btc_gattc_fill_gatt_db_conversion(*count, svc_num, ESP_GATT_DB_PRIMARY_SERVICE, offset, (void *)re… in btc_ble_gattc_get_service() 335 *count = svc_num; in btc_ble_gattc_get_service() 350 uint16_t *count, uint16_t offset) in btc_ble_gattc_get_all_char() argument 361 *count = 0; in btc_ble_gattc_get_all_char() 364 …btc_gattc_fill_gatt_db_conversion(*count, char_num, ESP_GATT_DB_CHARACTERISTIC, offset, (void *)re… in btc_ble_gattc_get_all_char() 367 *count = char_num; in btc_ble_gattc_get_all_char() [all …]
|
/hal_espressif-3.4.0/components/wpa_supplicant/src/common/ |
D | wpa_common.c | 165 int i, count; in wpa_parse_wpa_ie_rsn() local 220 count = WPA_GET_LE16(pos); in wpa_parse_wpa_ie_rsn() 223 if (count == 0 || left < count * RSN_SELECTOR_LEN) { in wpa_parse_wpa_ie_rsn() 226 "count %u left %u", __func__, count, left); in wpa_parse_wpa_ie_rsn() 230 for (i = 0; i < count; i++) { in wpa_parse_wpa_ie_rsn() 245 count = WPA_GET_LE16(pos); in wpa_parse_wpa_ie_rsn() 248 if (count == 0 || left < count * RSN_SELECTOR_LEN) { in wpa_parse_wpa_ie_rsn() 251 "count %u left %u", __func__, count, left); in wpa_parse_wpa_ie_rsn() 255 for (i = 0; i < count; i++) { in wpa_parse_wpa_ie_rsn() 323 int i, count; in wpa_parse_wpa_ie_wpa() local [all …]
|