Home
last modified time | relevance | path

Searched +full:- +full:f (Results 1 – 25 of 544) sorted by relevance

12345678910>>...22

/hal_espressif-3.6.0/tools/test_apps/peripherals/i2c_wifi/
DREADME.md1 # I2C-WIFI Test
27 | ------------------ | ------ | ------ |
28 | ESP32/ESP32-S2 I2C | GPIO18 | GPIO19 |
29 | ESP32-S3 I2C | GPIO1 | GPIO2 |
30 | ESP32-C3 I2C | GPIO5 | GPIO9 |
32 …o add external pull-up resistors for SDA/SCL pins to make the communication more stable, though th…
40 - In the `I2C working mode select` menu, you can set the working mode of i2c, choose `i2c master mo…
41 - In the `I2C Configuration` menu, you can set the pin number of SDA/SCL. Also you can modify the I…
42 - Enable `WIFI AP` if you need it.
43 - In the `WIFI softAP Configuration` menu, you can set the wifi information here.
[all …]
/hal_espressif-3.6.0/components/nvs_flash/test_nvs_host/
Dtest_spi_flash_emulation.cpp1 // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
7 // http://www.apache.org/licenses/LICENSE-2.0
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);
[all …]
Dtest_nvs.cpp1 // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
7 // http://www.apache.org/licenses/LICENSE-2.0
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);
[all …]
Dtest_nvs_handle.cpp1 // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
7 // http://www.apache.org/licenses/LICENSE-2.0
34 PartitionEmulationFixture f(0, 10, "test"); variable
36 …REQUIRE(NVSPartitionManager::get_instance()->init_custom(&f.part, NVS_FLASH_SECTOR, NVS_FLASH_SECT…
39 CHECK(NVSPartitionManager::get_instance()->open_handles_size() == 0);
42 …REQUIRE(NVSPartitionManager::get_instance()->open_handle("test", "ns_1", NVS_READWRITE, &handle) =…
44 CHECK(NVSPartitionManager::get_instance()->open_handles_size() == 1);
48 CHECK(NVSPartitionManager::get_instance()->open_handles_size() == 0);
50 REQUIRE(NVSPartitionManager::get_instance()->deinit_partition("test") == ESP_OK);
58 PartitionEmulationFixture f(0, 10, "test"); variable
[all …]
DMakefile35 ifeq ($(shell $(CC) -v 2>&1 | grep -c "clang version"), 1)
41-I../include -I../src -I../../esp_rom/include -I../../esp_rom/include/linux -I../../log/include -I…
42 CFLAGS += -fprofile-arcs -ftest-coverage -DLINUX_TARGET
43 CXXFLAGS += -std=c++11 -Wall -Werror -DLINUX_TARGET
44 LDFLAGS += -lstdc++ -Wall -fprofile-arcs -ftest-coverage
47 CFLAGS += -fsanitize=address
48 CXXFLAGS += -fsanitize=address
49 LDFLAGS += -fsanitize=address
60 $(TEST_PROGRAM): clean-coverage $(OBJ_FILES) $(OBJ_FILES_C)
61 $(MAKE) -C ../../mbedtls/mbedtls/ lib
[all …]
/hal_espressif-3.6.0/components/esp_hw_support/test/
Dgen_digital_signature_tests.py2 # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
3 # SPDX-License-Identifier: Apache-2.0
29 def number_as_bignum_words(number): # type: (int) -> str
32 (little-endian, same as ESP32 RSA peripheral or mbedTLS)
41 def number_as_bytes(number, pad_bits=None): # type: (int, int) -> bytes
45 result = int_to_bytes(number)[::-1] # type: bytes
51 def bytes_as_char_array(b): # type: (bytes) -> str
58 def generate_tests_cases(target): # type: (str) -> None
67 with open('digital_signature_test_cases.h', 'w') as f:
68 f.write('/*\n')
[all …]
Dtest_fp.c2 * SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
4 * SPDX-License-Identifier: Apache-2.0
128 float a = 100.0f;
129 float b = 0.5f;
131 float eps = c - 100.5f;
138 float a = 100.0f;
139 float b = 0.05f;
141 float eps = c - 5.0f;
148 float a = 100.0f;
149 float b = 5.0f;
[all …]
/hal_espressif-3.6.0/examples/peripherals/i2c/i2c_self_test/
DREADME.md1 # I2C Self-Test Example
9 1. Read external I2C sensor, here we take the BH1750 ambient light sensor (GY-30 module) for an exa…
18-WROVER Kit) or ESP core board (e.g. ESP32-DevKitC). Optionally, you can also connect an external …
25 | ------------------------- | ------ | ------ |
26 | ESP32/ESP32-S2 I2C Master | GPIO18 | GPIO19 |
27 | ESP32/ESP32-S2 I2C Slave | GPIO4 | GPIO5 |
30 - slave:
31 - GPIO4 is assigned as the data signal of I2C slave port
32 - GPIO5 is assigned as the clock signal of I2C slave port
33 - master:
[all …]
/hal_espressif-3.6.0/components/esp_rom/test/
Dtest_libgcc.c7 TEST_ASSERT(__absvdi2(-1L) == 1);
9 TEST_ASSERT(__absvsi2(-1) == 1);
13 TEST_ASSERT(__addsf3(1.0f, 4.0f) == 5.0f);
27 TEST_ASSERT(__clrsbdi2(-1) == 63);
29 TEST_ASSERT(__clrsbsi2(-1) == 31);
49 TEST_ASSERT(__divsf3(16.0f, 2.0f) == 8.0f);
55 TEST_ASSERT(__eqsf2(4.0f, 4.0f) == 0);
57 TEST_ASSERT(__extendsfdf2(4.0f) == 4.0);
67 TEST_ASSERT(__fixsfdi(4.0f) == 4LL);
69 TEST_ASSERT(__fixsfsi(4.0f) == 4);
[all …]
/hal_espressif-3.6.0/components/esptool_py/esptool/esptool/
Dbin_image.py1 # SPDX-FileCopyrightText: 2014-2022 Fredrik Ahlberg, Angus Gratton,
4 # SPDX-License-Identifier: GPL-2.0-or-later
32 def align_file_position(f, size): argument
34 align = (size - 1) - (f.tell() % size)
35 f.seek(align, 1)
49 def select_image_class(f, chip): argument
50 chip = re.sub(r"[-()]", "", chip.lower())
64 }[chip](f)
66 magic = ord(f.read(1))
67 f.seek(0)
[all …]
/hal_espressif-3.6.0/examples/wifi/wifi_enterprise/main/
Dserver.pem13 RSA Public-Key: (2048 bit)
15 00:b4:cb:f6:1d:10:2f:4a:c3:1e:a7:38:6d:79:02:
16 f2:af:0a:da:cd:34:cf:5c:3a:8d:d6:1b:9f:f1:17:
19 01:4f:41:93:1b:3e:d1:cf:7a:62:51:da:d5:f0:ee:
20 f1:92:88:7d:ec:4f:c8:db:60:7d:4c:07:c9:9f:35:
21 85:b8:97:54:f2:78:78:9f:a1:c1:1f:4f:a2:ea:06:
22 7c:59:d9:be:51:cb:13:0c:ed:32:82:f0:a1:9f:bd:
24 d1:cd:7d:b2:b5:d7:fd:81:4c:68:1f:bf:92:1b:ee:
26 36:76:46:1c:74:0f:2e:55:93:4e:53:6a:d9:ff:f2:
28 19:74:38:4d:e1:96:26:f7:7f:69:10:a3:50:ab:86:
[all …]
Dserver.crt13 RSA Public-Key: (2048 bit)
15 00:b4:cb:f6:1d:10:2f:4a:c3:1e:a7:38:6d:79:02:
16 f2:af:0a:da:cd:34:cf:5c:3a:8d:d6:1b:9f:f1:17:
19 01:4f:41:93:1b:3e:d1:cf:7a:62:51:da:d5:f0:ee:
20 f1:92:88:7d:ec:4f:c8:db:60:7d:4c:07:c9:9f:35:
21 85:b8:97:54:f2:78:78:9f:a1:c1:1f:4f:a2:ea:06:
22 7c:59:d9:be:51:cb:13:0c:ed:32:82:f0:a1:9f:bd:
24 d1:cd:7d:b2:b5:d7:fd:81:4c:68:1f:bf:92:1b:ee:
26 36:76:46:1c:74:0f:2e:55:93:4e:53:6a:d9:ff:f2:
28 19:74:38:4d:e1:96:26:f7:7f:69:10:a3:50:ab:86:
[all …]
Dclient.crt13 RSA Public-Key: (2048 bit)
15 00:c4:9c:0a:f9:43:91:7f:92:6c:ea:f5:cb:a4:b4:
16 e2:a0:56:c5:9b:2b:6f:e0:84:25:4d:69:f4:4f:22:
17 13:80:8e:04:8e:73:c4:61:14:2f:fd:df:58:60:10:
19 d9:4f:9d:27:c7:bf:a0:fc:89:fa:1a:62:4f:cd:96:
22 f1:fc:47:8a:c9:6f:37:19:71:06:09:c6:ce:61:7c:
25 5f:e8:a0:4e:b8:0d:87:ca:78:d3:83:92:e3:ba:c5:
28 13:31:2f:bd:e6:61:7d:0d:da:ef:b7:c6:e0:27:93:
29 00:45:51:1f:99:2f:1d:cd:fe:77:dd:5a:4e:1b:c6:
30 92:fe:a0:29:15:6c:47:5d:b8:1f:dd:b4:2e:ff:91:
[all …]
Dclient.pem13 RSA Public-Key: (2048 bit)
15 00:c4:9c:0a:f9:43:91:7f:92:6c:ea:f5:cb:a4:b4:
16 e2:a0:56:c5:9b:2b:6f:e0:84:25:4d:69:f4:4f:22:
17 13:80:8e:04:8e:73:c4:61:14:2f:fd:df:58:60:10:
19 d9:4f:9d:27:c7:bf:a0:fc:89:fa:1a:62:4f:cd:96:
22 f1:fc:47:8a:c9:6f:37:19:71:06:09:c6:ce:61:7c:
25 5f:e8:a0:4e:b8:0d:87:ca:78:d3:83:92:e3:ba:c5:
28 13:31:2f:bd:e6:61:7d:0d:da:ef:b7:c6:e0:27:93:
29 00:45:51:1f:99:2f:1d:cd:fe:77:dd:5a:4e:1b:c6:
30 92:fe:a0:29:15:6c:47:5d:b8:1f:dd:b4:2e:ff:91:
[all …]
/hal_espressif-3.6.0/components/fatfs/test/
Dtest_fatfs_common.c1 // Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD
7 // http://www.apache.org/licenses/LICENSE-2.0
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()
[all …]
Dtest_fatfs_rawflash.c1 // Copyright 2015-2018 Espressif Systems (Shanghai) PTE LTD
7 // http://www.apache.org/licenses/LICENSE-2.0
45 TEST_ASSERT(part->size == (fatfs_end - fatfs_start - 1)); in test_setup()
49 …TEST_ESP_OK(esp_partition_mmap(part, 0, part->size, SPI_FLASH_MMAP_DATA, &mmap_ptr, &mmap_handle)); in test_setup()
50 bool content_valid = memcmp(fatfs_start, mmap_ptr, part->size) == 0; in test_setup()
55 esp_partition_erase_range(part, 0, part->size); in test_setup()
56 for (int i = 0; i < part->size; i+= SPI_FLASH_SEC_SIZE) { in test_setup()
72 FILE* f = fopen("/spiflash/hello.txt", "r"); variable
73 TEST_ASSERT_NOT_NULL(f);
75 int cb = fread(buf, 1, sizeof(buf), f);
[all …]
/hal_espressif-3.6.0/components/bt/host/bluedroid/external/sbc/plc/
Dsbc_plc.c1 // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
7 // http://www.apache.org/licenses/LICENSE-2.0
43 0.99148655f,0.96623611f,0.92510857f,0.86950446f,
44 0.80131732f,0.72286918f,0.63683150f,0.54613418f,
45 0.45386582f,0.36316850f,0.27713082f,0.19868268f,
46 0.13049554f,0.07489143f,0.03376389f,0.00851345f};
50 // 0.96984631f,0.88302222f, 0.75f,0.58682409f,
51 // 0.41317591f, 0.25f,0.11697778f,0.09015369f};
61 const float threehalfs = 1.5f; in SqrtByCarmack()
63 x2 = x * 0.5f; in SqrtByCarmack()
[all …]
/hal_espressif-3.6.0/components/spiffs/test/
Dtest_spiffs.c1 // Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD
7 // http://www.apache.org/licenses/LICENSE-2.0
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()
[all …]
/hal_espressif-3.6.0/examples/wifi/wifi_eap_fast/main/
Dserver.crt13 Public-Key: (2048 bit)
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:
[all …]
/hal_espressif-3.6.0/tools/ci/
Dtest_build_system.sh7 # Assumes PWD is an out-of-tree build directory, and will create a
11 # IDF_PATH - must be set
12 # ESP_IDF_TEMPLATE_GIT - Can override git clone source for template app. Otherwise github.
13 # NOCLEANUP - Set to '1' if you want the script to leave its temporary directory when done, for pos…
25 # (although very invasive ones like appending CRLFs to all files take a copy of the esp-idf tree), …
26 # function can be used to force-delete all files from the build output directory.
31 [ -z ${ESP_IDF_TEMPLATE_GIT} ] && ESP_IDF_TEMPLATE_GIT=https://github.com/espressif/esp-idf-templat…
41 [ -z ${IDF_PATH} ] && echo "IDF_PATH is not set. Need path to esp-idf installation." && exit 2
46 if [ -z $CHECKOUT_REF_SCRIPT ]; then
47 git checkout ${CI_BUILD_REF_NAME} || echo "Using esp-idf-template default branch..."
[all …]
/hal_espressif-3.6.0/examples/peripherals/touch_sensor/touch_element/touch_button/main/
Dtouch_button_example_main.c2 * SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
4 * SPDX-License-Identifier: CC0-1.0
38 0.1F,
39 0.1F,
40 0.1F,
41 0.1F,
42 0.1F,
43 0.1F,
44 0.1F,
45 0.1F,
[all …]
/hal_espressif-3.6.0/examples/peripherals/spi_slave_hd/append_mode/
DREADME.md12 … [Espressif ESP32-S2 Technical Reference Manual-SPI Slave Halfduplex](https://www.espressif.com/si…
25 |-----------|--------|--------|
39 idf.py set-target {IDF_TARGET}
47 idf.py -p PORT flash monitor
52 (To exit the serial monitor, type ``Ctrl-]``.)
54 See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.
64 I (560) Receiver: 29 2a 2b 2c 2d 2e 2f 30
66 I (650) Receiver: 2b 2c 2d 2e 2f 30 31 32
70 I (830) Receiver: 0c 0d 0e 0f 10 11 12 13
74 I (1010) Receiver: 1d 1e 1f 20 21 22 23 24
[all …]
/hal_espressif-3.6.0/tools/ci/python_packages/idf_iperf_test_util/
DIperfUtility.py23 FAILED_TO_SCAN_RSSI = -97
32 …PC_BANDWIDTH_LOG_PATTERN = re.compile(r'(\d+).0\s*-\s*(\d+).0\s+sec\s+[\d.]+\s+MBytes\s+([\d.]+)\s…
33 DUT_BANDWIDTH_LOG_PATTERN = re.compile(r'(\d+)-\s+(\d+)\s+sec\s+([\d.]+)\s+Mbits/sec')
35 ZERO_POINT_THRESHOLD = -88 # RSSI, dbm
36 ZERO_THROUGHPUT_THRESHOLD = -92 # RSSI, dbm
37 BAD_POINT_RSSI_THRESHOLD = -75 # RSSI, dbm
44 RSSI_RANGE = [-x for x in range(10, 100)]
47 def __init__(self, proto, direction, config_name): # type: (str, str, str) -> None
57 …sult(self, throughput, ap_ssid, att, rssi, heap_size): # type: (float, str, int, int, str) -> None
72 def record_throughput(database, key_value): # type: (dict, int) -> None
[all …]
/hal_espressif-3.6.0/tools/idf_py_actions/
Ddebug_ext.py28 with open(file_name, 'r') as f:
29 content = f.read()
49 with open(name, 'r') as f:
50 content = f.read()
54 # expect OpenOCD has started successfully - stop watching
59 # OpenOCD exited or error message detected -> print possible output and terminate
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')
[all …]
/hal_espressif-3.6.0/components/esp_system/port/arch/xtensa/
Dpanic_arch.c2 * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
4 * SPDX-License-Identifier: Apache-2.0
34 void panic_print_registers(const void *f, int core) in panic_print_registers() argument
36 XtExcFrame *frame = (XtExcFrame *) f; in panic_print_registers()
68 && ((core == 0 && frame->exccause == PANIC_RSN_INTWDT_CPU0) || in panic_print_registers()
69 (core == 1 && frame->exccause == PANIC_RSN_INTWDT_CPU1)) in panic_print_registers()
98 static void print_illegal_instruction_details(const void *f) in print_illegal_instruction_details() argument
100 XtExcFrame *frame = (XtExcFrame *) f; in print_illegal_instruction_details()
102 uint32_t epc = frame->pc; in print_illegal_instruction_details()
103 epc = (epc & ~0x3) - 4; in print_illegal_instruction_details()
[all …]

12345678910>>...22