/hal_espressif-2.7.6/components/nvs_flash/test_nvs_host/ |
D | test_spi_flash_emulation.cpp | 37 FlashEmuFixture f(4); variable 42 CHECK(esp_partition_read(&f.esp_part, 0, sector, sizeof(sector)) == ESP_OK); 51 FlashEmuFixture f(1); variable 54 CHECK(esp_partition_write(&f.esp_part, 0, &val, 4) == ESP_OK); 56 CHECK(esp_partition_write(&f.esp_part, 0, &val, 4) == ESP_ERR_FLASH_OP_FAIL); 62 FlashEmuFixture f(4); variable 65 CHECK(esp_partition_write(&f.esp_part, 0, &vals, sizeof(vals)) == ESP_OK); 67 CHECK(esp_partition_write(&f.esp_part, 4*4096 - sizeof(vals), &vals, sizeof(vals)) == ESP_OK); 69 …CHECK(esp_partition_write(&f.esp_part, 4*4096 - sizeof(vals) + 4, &vals, sizeof(vals)) == ESP_ERR_… 74 FlashEmuFixture f(4); variable [all …]
|
D | test_nvs.cpp | 86 PartitionEmulationFixture f; variable 89 CHECK(page.load(&f.part, 0) == ESP_OK); 95 PartitionEmulationFixture f; variable 97 CHECK(page.load(&f.part, 0) == ESP_OK); 111 PartitionEmulationFixture f; variable 113 CHECK(page.load(&f.part, 0) == ESP_OK); 121 PartitionEmulationFixture f; variable 123 CHECK(page.load(&f.part, 0) == ESP_OK); 132 PartitionEmulationFixture f; variable 134 CHECK(page.load(&f.part, 0) == ESP_OK); [all …]
|
D | test_nvs_handle.cpp | 34 PartitionEmulationFixture f(0, 10, "test"); variable 36 …REQUIRE(NVSPartitionManager::get_instance()->init_custom(&f.part, NVS_FLASH_SECTOR, NVS_FLASH_SECT… 58 PartitionEmulationFixture f(0, 10, "test"); variable 60 …REQUIRE(NVSPartitionManager::get_instance()->init_custom(&f.part, NVS_FLASH_SECTOR, NVS_FLASH_SECT… 90 PartitionEmulationFixture f(0, 10); variable 97 f.emu.setBounds(NVS_FLASH_SECTOR, NVS_FLASH_SECTOR + NVS_FLASH_SECTOR_COUNT_MIN); 99 …CHECK(NVSPartitionManager::get_instance()->init_custom(&f.part, NVS_FLASH_SECTOR, NVS_FLASH_SECTOR… 128 PartitionEmulationFixture f(0, 10); variable 132 f.emu.setBounds(NVS_FLASH_SECTOR, NVS_FLASH_SECTOR + NVS_FLASH_SECTOR_COUNT_MIN); 134 …REQUIRE(NVSPartitionManager::get_instance()->init_custom(&f.part, NVS_FLASH_SECTOR, NVS_FLASH_SECT… [all …]
|
/hal_espressif-2.7.6/components/esp32s2/test/ |
D | gen_digital_signature_tests.py | 53 with open('digital_signature_test_cases.h', 'w') as f: 54 f.write('/* File generated by gen_digital_signature_tests.py */\n\n') 57 f.write('#define NUM_HMAC_KEYS %d\n\n' % NUM_HMAC_KEYS) 58 f.write('static const uint8_t test_hmac_keys[NUM_HMAC_KEYS][32] = {\n') 60 f.write(' %s,\n' % bytes_as_char_array(h)) 61 f.write('};\n\n') 64 f.write('#define NUM_MESSAGES %d\n\n' % NUM_MESSAGES) 65 f.write('static const uint32_t test_messages[NUM_MESSAGES][4096/32] = {\n') 67 f.write(' // Message %d\n' % messages.index(m)) 68 f.write(' %s,\n' % number_as_bignum_words(m)) [all …]
|
/hal_espressif-2.7.6/components/xtensa/esp32/include/xtensa/config/ |
D | tie.h | 130 XCHAL_SA_REG(s,0,0,2,0, f0, 4, 4, 4,0x0030, f,0 , 32,0,0,0) \ 131 XCHAL_SA_REG(s,0,0,2,0, f1, 4, 4, 4,0x0031, f,1 , 32,0,0,0) \ 132 XCHAL_SA_REG(s,0,0,2,0, f2, 4, 4, 4,0x0032, f,2 , 32,0,0,0) \ 133 XCHAL_SA_REG(s,0,0,2,0, f3, 4, 4, 4,0x0033, f,3 , 32,0,0,0) \ 134 XCHAL_SA_REG(s,0,0,2,0, f4, 4, 4, 4,0x0034, f,4 , 32,0,0,0) \ 135 XCHAL_SA_REG(s,0,0,2,0, f5, 4, 4, 4,0x0035, f,5 , 32,0,0,0) \ 136 XCHAL_SA_REG(s,0,0,2,0, f6, 4, 4, 4,0x0036, f,6 , 32,0,0,0) \ 137 XCHAL_SA_REG(s,0,0,2,0, f7, 4, 4, 4,0x0037, f,7 , 32,0,0,0) \ 138 XCHAL_SA_REG(s,0,0,2,0, f8, 4, 4, 4,0x0038, f,8 , 32,0,0,0) \ 139 XCHAL_SA_REG(s,0,0,2,0, f9, 4, 4, 4,0x0039, f,9 , 32,0,0,0) \ [all …]
|
/hal_espressif-2.7.6/examples/peripherals/i2c/i2c_self_test/ |
D | README.md | 82 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 83 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 84 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 85 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 86 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 87 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f 88 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 89 70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f 92 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 93 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f [all …]
|
/hal_espressif-2.7.6/components/xtensa/esp32s3/include/xtensa/config/ |
D | tie.h | 131 XCHAL_SA_REG(s,0,0,2,0, f0, 4, 4, 4,0x0030, f,0 , 32,0,0,0) \ 132 XCHAL_SA_REG(s,0,0,2,0, f1, 4, 4, 4,0x0031, f,1 , 32,0,0,0) \ 133 XCHAL_SA_REG(s,0,0,2,0, f2, 4, 4, 4,0x0032, f,2 , 32,0,0,0) \ 134 XCHAL_SA_REG(s,0,0,2,0, f3, 4, 4, 4,0x0033, f,3 , 32,0,0,0) \ 135 XCHAL_SA_REG(s,0,0,2,0, f4, 4, 4, 4,0x0034, f,4 , 32,0,0,0) \ 136 XCHAL_SA_REG(s,0,0,2,0, f5, 4, 4, 4,0x0035, f,5 , 32,0,0,0) \ 137 XCHAL_SA_REG(s,0,0,2,0, f6, 4, 4, 4,0x0036, f,6 , 32,0,0,0) \ 138 XCHAL_SA_REG(s,0,0,2,0, f7, 4, 4, 4,0x0037, f,7 , 32,0,0,0) \ 139 XCHAL_SA_REG(s,0,0,2,0, f8, 4, 4, 4,0x0038, f,8 , 32,0,0,0) \ 140 XCHAL_SA_REG(s,0,0,2,0, f9, 4, 4, 4,0x0039, f,9 , 32,0,0,0) \ [all …]
|
/hal_espressif-2.7.6/components/spiffs/test/ |
D | test_spiffs.c | 39 FILE* f = fopen(name, "wb"); in test_spiffs_create_file_with_text() local 40 TEST_ASSERT_NOT_NULL(f); in test_spiffs_create_file_with_text() 41 TEST_ASSERT_TRUE(fputs(text, f) != EOF); in test_spiffs_create_file_with_text() 42 TEST_ASSERT_EQUAL(0, fclose(f)); in test_spiffs_create_file_with_text() 82 FILE* f = fopen(filename, "r"); in test_spiffs_read_file() local 83 TEST_ASSERT_NOT_NULL(f); in test_spiffs_read_file() 85 int cb = fread(buf, 1, sizeof(buf), f); in test_spiffs_read_file() 88 TEST_ASSERT_EQUAL(0, fclose(f)); in test_spiffs_read_file() 109 FILE* f = fopen(filename, "wb+"); in test_spiffs_lseek() local 110 TEST_ASSERT_NOT_NULL(f); in test_spiffs_lseek() [all …]
|
/hal_espressif-2.7.6/components/fatfs/test/ |
D | test_fatfs_common.c | 41 FILE* f = fopen(name, "wb"); in test_fatfs_create_file_with_text() local 42 TEST_ASSERT_NOT_NULL(f); in test_fatfs_create_file_with_text() 43 TEST_ASSERT_TRUE(fputs(text, f) != EOF); in test_fatfs_create_file_with_text() 44 TEST_ASSERT_EQUAL(0, fclose(f)); in test_fatfs_create_file_with_text() 84 FILE* f = fopen(filename, "r"); in test_fatfs_read_file() local 85 TEST_ASSERT_NOT_NULL(f); in test_fatfs_read_file() 87 int cb = fread(buf, 1, sizeof(buf), f); in test_fatfs_read_file() 90 TEST_ASSERT_EQUAL(0, fclose(f)); in test_fatfs_read_file() 95 FILE* f = fopen(filename, "r"); in test_fatfs_read_file_utf_8() local 96 TEST_ASSERT_NOT_NULL(f); in test_fatfs_read_file_utf_8() [all …]
|
D | test_fatfs_rawflash.c | 72 FILE* f = fopen("/spiflash/hello.txt", "r"); variable 73 TEST_ASSERT_NOT_NULL(f); 75 int cb = fread(buf, 1, sizeof(buf), f); 78 TEST_ASSERT_EQUAL(0, fclose(f)); 107 FILE* f = fopen("/spiflash/hello.txt", "r"); variable 108 TEST_ASSERT_NOT_NULL(f); 109 TEST_ASSERT_EQUAL(0, fseek(f, 2, SEEK_CUR)); 110 TEST_ASSERT_EQUAL('l', fgetc(f)); 111 TEST_ASSERT_EQUAL(0, fseek(f, 4, SEEK_SET)); 112 TEST_ASSERT_EQUAL('o', fgetc(f)); [all …]
|
/hal_espressif-2.7.6/examples/protocols/coap_client/main/certs/ |
D | coap_client.crt | 17 7d:5f:8d:0a:3e:aa:79:02:f9:96:ad:10:00:ec:51: 18 e9:dc:3f:fb:ea:b0:57:eb:48:c7:ca:ef:e8:05:ab: 19 ee:3f:66:ba:5c:9e:7f:40:85:9f:25:a0:e0:e3:7c: 23 11:31:4b:06:ae:9f:45:fa:12:17:0c:ef:6a:fa:d0: 25 e6:18:3d:53:22:dc:e8:4a:12:78:11:2f:e4:3b:92: 26 bd:d7:07:5a:c9:81:5d:48:58:c8:0f:9b:e9:a4:0f: 27 bb:89:b1:ad:38:07:6f:93:d0:a6:12:56:f9:07:48: 28 d2:23:2f:a3:a9:93:b0:11:0a:27:4c:48:0a:8d:70: 29 41:68:76:7a:dd:bc:54:c3:42:33:b0:7b:f6:ae:1f: 31 87:95:7f:93:06:a1:72:c9:81:12:a5:b7:8f:9d:7e: [all …]
|
/hal_espressif-2.7.6/examples/wifi/wpa2_enterprise/main/ |
D | wpa2_client.crt | 17 7d:5f:8d:0a:3e:aa:79:02:f9:96:ad:10:00:ec:51: 18 e9:dc:3f:fb:ea:b0:57:eb:48:c7:ca:ef:e8:05:ab: 19 ee:3f:66:ba:5c:9e:7f:40:85:9f:25:a0:e0:e3:7c: 23 11:31:4b:06:ae:9f:45:fa:12:17:0c:ef:6a:fa:d0: 25 e6:18:3d:53:22:dc:e8:4a:12:78:11:2f:e4:3b:92: 26 bd:d7:07:5a:c9:81:5d:48:58:c8:0f:9b:e9:a4:0f: 27 bb:89:b1:ad:38:07:6f:93:d0:a6:12:56:f9:07:48: 28 d2:23:2f:a3:a9:93:b0:11:0a:27:4c:48:0a:8d:70: 29 41:68:76:7a:dd:bc:54:c3:42:33:b0:7b:f6:ae:1f: 31 87:95:7f:93:06:a1:72:c9:81:12:a5:b7:8f:9d:7e: [all …]
|
D | wpa2_server.crt | 16 e9:14:24:30:98:33:53:fa:56:0e:ec:9a:43:7f:87: 20 3f:f0:ab:92:61:92:2d:71:10:2e:f2:eb:bc:81:2f: 21 5a:3b:74:ca:5f:fd:e0:ee:d1:d9:07:6a:6c:20:c0: 22 07:88:b4:8b:0f:ad:1e:c9:4f:7c:11:98:37:89:15: 24 c3:71:da:a6:94:97:f5:95:fd:61:06:44:e2:3f:12: 25 43:0b:1d:33:48:91:d2:ce:4f:97:a1:ed:6a:30:c7: 26 5d:98:b5:6e:0a:b7:4f:d9:03:ec:80:76:09:b0:40: 27 a1:a1:af:ab:2a:59:c4:0f:56:22:bc:be:14:be:18: 29 20:a1:a7:60:d4:f1:87:9d:9f:60:b9:d3:db:2c:25: 43 a4:25:21:51:0b:22:6c:63:8d:a9:c1:4f:04:33:69:79:34:f0: [all …]
|
/hal_espressif-2.7.6/examples/protocols/coap_server/main/certs/ |
D | coap_server.crt | 16 e9:14:24:30:98:33:53:fa:56:0e:ec:9a:43:7f:87: 20 3f:f0:ab:92:61:92:2d:71:10:2e:f2:eb:bc:81:2f: 21 5a:3b:74:ca:5f:fd:e0:ee:d1:d9:07:6a:6c:20:c0: 22 07:88:b4:8b:0f:ad:1e:c9:4f:7c:11:98:37:89:15: 24 c3:71:da:a6:94:97:f5:95:fd:61:06:44:e2:3f:12: 25 43:0b:1d:33:48:91:d2:ce:4f:97:a1:ed:6a:30:c7: 26 5d:98:b5:6e:0a:b7:4f:d9:03:ec:80:76:09:b0:40: 27 a1:a1:af:ab:2a:59:c4:0f:56:22:bc:be:14:be:18: 29 20:a1:a7:60:d4:f1:87:9d:9f:60:b9:d3:db:2c:25: 43 a4:25:21:51:0b:22:6c:63:8d:a9:c1:4f:04:33:69:79:34:f0: [all …]
|
/hal_espressif-2.7.6/examples/storage/wear_levelling/main/ |
D | wear_levelling_example_main.c | 44 FILE *f = fopen("/spiflash/hello.txt", "wb"); in app_main() local 45 if (f == NULL) { in app_main() 49 fprintf(f, "written using ESP-IDF %s\n", esp_get_idf_version()); in app_main() 50 fclose(f); in app_main() 55 f = fopen("/spiflash/hello.txt", "rb"); in app_main() 56 if (f == NULL) { in app_main() 61 fgets(line, sizeof(line), f); in app_main() 62 fclose(f); in app_main()
|
/hal_espressif-2.7.6/components/ulp/test/ulp/ |
D | test_jumps_esp32.S | 22 jumps 1f, 1, LT /* 0 < 1: true, should jump */ 26 jumps 1f, 3, LT /* 2 < 1: true */ 34 jumps 1f, 0, LE /* 0 <= 0: true */ 37 jumps 1f, 1, LE /* 0 <= 1: true */ 45 jumps 1f, 0, EQ /* 0 = 0: true */ 53 jumps 1f, 1, EQ /* 1 = 1: true */ 58 jumps 1f, 0, GE /* 0 >= 0: true */ 64 jumps 1f, 0, GE /* 1 >= 0: true */ 67 jumps 1f, 1, GE /* 1 >= 1: true */ 78 jumps 1f, 0, GT /* 1 > 0: true */
|
/hal_espressif-2.7.6/components/esp_system/port/arch/xtensa/ |
D | panic_arch.c | 45 void panic_print_registers(const void *f, int core) in panic_print_registers() argument 47 XtExcFrame *frame = (XtExcFrame *) f; in panic_print_registers() 108 static void print_illegal_instruction_details(const void *f) in print_illegal_instruction_details() argument 110 XtExcFrame *frame = (XtExcFrame *) f; in print_illegal_instruction_details() 133 static void print_debug_exception_details(const void *f) in print_debug_exception_details() argument 153 if (f == g_exc_frames[1]) { in print_debug_exception_details() 181 static inline void print_cache_err_details(const void *f) in print_cache_err_details() argument 269 static inline void print_memprot_err_details(const void *f) in print_memprot_err_details() argument 289 static inline void print_cache_err_details(const void* f) in print_cache_err_details() argument 358 void panic_arch_fill_info(void *f, panic_info_t *info) in panic_arch_fill_info() argument [all …]
|
/hal_espressif-2.7.6/examples/storage/spiffs/main/ |
D | spiffs_example_main.c | 56 FILE* f = fopen("/spiffs/hello.txt", "w"); in app_main() local 57 if (f == NULL) { in app_main() 61 fprintf(f, "Hello World!\n"); in app_main() 62 fclose(f); in app_main() 81 f = fopen("/spiffs/foo.txt", "r"); in app_main() 82 if (f == NULL) { in app_main() 87 fgets(line, sizeof(line), f); in app_main() 88 fclose(f); in app_main()
|
/hal_espressif-2.7.6/components/esp_system/include/esp_private/ |
D | startup_internal.h | 61 #define ESP_SYSTEM_INIT_FN(f, c, ...) \ argument 62 static void __attribute__((used)) __VA_ARGS__ __esp_system_init_fn_##f(void); \ 63 static __attribute__((used)) esp_system_init_fn_t _SECTION_ATTR_IMPL(".esp_system_init_fn", f) \ 64 esp_system_init_fn_##f = { .fn = ( __esp_system_init_fn_##f), .cores = (c) }; \ 65 static __attribute__((used)) __VA_ARGS__ void __esp_system_init_fn_##f(void) // [refactor-todo] thi…
|
/hal_espressif-2.7.6/tools/idf_py_actions/ |
D | debug_ext.py | 28 with open(file_name, 'r') as f: 29 content = f.read() 49 with open(name, 'r') as f: 50 content = f.read() 100 with open(gdbinit, 'w') as f: 103 f.write('file {}\n'.format(elf_file)) 104 f.write('target remote :3333\n') 105 f.write('mon reset halt\n') 106 f.write('flushregs\n') 107 f.write('thb app_main\n') [all …]
|
/hal_espressif-2.7.6/examples/storage/spiffsgen/main/ |
D | spiffsgen_example_main.c | 26 FILE* f = fopen("/spiffs/hello.txt", "r"); in read_hello_txt() local 27 if (f == NULL) { in read_hello_txt() 34 fread(buf, 1, sizeof(buf), f); in read_hello_txt() 35 fclose(f); in read_hello_txt() 46 FILE* f = fopen("/spiffs/sub/alice.txt", "r"); in compute_alice_txt_md5() local 47 if (f == NULL) { in compute_alice_txt_md5() 65 read = fread((void*) buf, 1, sizeof(buf), f); in compute_alice_txt_md5() 81 fclose(f); in compute_alice_txt_md5()
|
/hal_espressif-2.7.6/tools/test_mkdfu/ |
D | test_mkdfu.py | 36 with tempfile.NamedTemporaryFile(delete=False) as f: 37 self.addCleanup(os.unlink, f.name) 39 '-o', f.name, 48 '"{}" has been written. You may proceed with DFU flashing.'.format(f.name)]) 59 …self.assertTrue(filecmp.cmp(f.name, os.path.join(current_dir, '1','dfu.bin')), 'Output files are d… 75 with tempfile.NamedTemporaryFile(dir=temp_dir, delete=False) as f: 76 output = f.name 80 delete=False) as f: 81 bootloader = f.name
|
/hal_espressif-2.7.6/tools/cmake/ |
D | convert_to_cmake.py | 132 with open(project_cmakelists, 'w') as f: 133 f.write(""" 141 f.write(""" 144 f.write('project(%s)\n' % project_name) 172 with open(cmakelists_path, 'w') as f: 174 f.write('idf_component_register(SRCS %s)\n' % component_srcs) 175 f.write(' INCLUDE_DIRS %s' % component_add_includedirs) 176 …f.write(' # Edit following two lines to set component requirements (see docs… 177 f.write(' REQUIRES '')\n') 178 f.write(' PRIV_REQUIRES '')\n\n') [all …]
|
/hal_espressif-2.7.6/components/esp32/test/ |
D | test_fp.c | 208 float f = MAXFLOAT; in test_fp_benchmark_fp_divide() local 213 f /= 1.000432f; in test_fp_benchmark_fp_divide() 219 return f; in test_fp_benchmark_fp_divide() 230 float f = test_fp_benchmark_fp_divide(COUNTS, &cycles); variable 232 printf("%d divisions from %f = %f\n", COUNTS, MAXFLOAT, f); 241 float f = MAXFLOAT; in test_fp_benchmark_fp_sqrt() local 246 f = sqrtf(f); in test_fp_benchmark_fp_sqrt() 252 return f; in test_fp_benchmark_fp_sqrt() 263 float f = test_fp_benchmark_fp_sqrt(COUNTS, &cycles); variable 265 printf("%d square roots from %f = %f\n", COUNTS, MAXFLOAT, f);
|
/hal_espressif-2.7.6/tools/kconfig_new/ |
D | gen_kconfig_doc.py | 157 with open(filename, 'w') as f: 159 write_menu_item(f, node, visibility) 280 def write_menu_item(f, node, visibility): argument 302 f.write('.. _%s:\n\n' % get_link_anchor(node)) 303 f.write('%s\n' % title) 304 f.write(HEADING_SYMBOLS[get_heading_level(node)] * len(title)) 305 f.write('\n\n') 308 f.write('%s%s\n\n' % (INDENT, node.prompt[0])) 309 f.write('%s:emphasis:`Found in:` %s\n\n' % (INDENT, get_breadcrumbs(node))) 316 f.write(format_rest_text(node.help, INDENT)) [all …]
|