Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 319) sorted by relevance

12345678910>>...13

/hal_espressif-2.7.6/components/newlib/
Dreent_init.c30 void IRAM_ATTR esp_reent_init(struct _reent* r) in esp_reent_init() argument
32 memset(r, 0, sizeof(*r)); in esp_reent_init()
33 r->_stdout = _GLOBAL_REENT->_stdout; in esp_reent_init()
34 r->_stderr = _GLOBAL_REENT->_stderr; in esp_reent_init()
35 r->_stdin = _GLOBAL_REENT->_stdin; in esp_reent_init()
36 r->__cleanup = &_cleanup_r; in esp_reent_init()
37 r->__sdidinit = 1; in esp_reent_init()
38 r->__sglue._next = NULL; in esp_reent_init()
39 r->__sglue._niobs = 0; in esp_reent_init()
40 r->__sglue._iobs = NULL; in esp_reent_init()
[all …]
Dsyscalls.c37 ssize_t _write_r_console(struct _reent *r, int fd, const void * data, size_t size) in _write_r_console() argument
50 ssize_t _read_r_console(struct _reent *r, int fd, void * data, size_t size) in _read_r_console() argument
72 ssize_t _read_r(struct _reent *r, int fd, void * dst, size_t size)
74 ssize_t _write_r(struct _reent *r, int fd, const void * data, size_t size)
85 int _open_r(struct _reent *r, const char * path, int flags, int mode)
87 int _close_r(struct _reent *r, int fd)
89 off_t _lseek_r(struct _reent *r, int fd, off_t size, int mode)
91 int _fcntl_r(struct _reent *r, int fd, int cmd, int arg)
93 int _fstat_r(struct _reent *r, int fd, struct stat * st)
95 int _stat_r(struct _reent *r, const char * path, struct stat * st)
[all …]
/hal_espressif-2.7.6/components/esp_rom/include/esp32/rom/
Dlibc_stubs.h45 void* (*_malloc_r)(struct _reent *r, size_t);
46 void (*_free_r)(struct _reent *r, void*);
47 void* (*_realloc_r)(struct _reent *r, void*, size_t);
48 void* (*_calloc_r)(struct _reent *r, size_t, size_t);
50 int (*_system_r)(struct _reent *r, const char*);
51 int (*_rename_r)(struct _reent *r, const char*, const char*);
52 clock_t (*_times_r)(struct _reent *r, struct tms *);
53 int (*_gettimeofday_r) (struct _reent *r, struct timeval *, void *);
54 void (*_raise_r)(struct _reent *r); /* function signature is incorrect in ROM */
55 int (*_unlink_r)(struct _reent *r, const char*);
[all …]
/hal_espressif-2.7.6/components/esp_rom/include/esp32s3/rom/
Dlibc_stubs.h44 void *(*_malloc_r)(struct _reent *r, size_t);
45 void (*_free_r)(struct _reent *r, void *);
46 void *(*_realloc_r)(struct _reent *r, void *, size_t);
47 void *(*_calloc_r)(struct _reent *r, size_t, size_t);
49 int (*_system_r)(struct _reent *r, const char *);
50 int (*_rename_r)(struct _reent *r, const char *, const char *);
51 clock_t (*_times_r)(struct _reent *r, struct tms *);
52 int (*_gettimeofday_r) (struct _reent *r, struct timeval *, void *);
53 void (*_raise_r)(struct _reent *r);
54 int (*_unlink_r)(struct _reent *r, const char *);
[all …]
/hal_espressif-2.7.6/components/esp_rom/include/esp32s2/rom/
Dlibc_stubs.h45 void* (*_malloc_r)(struct _reent *r, size_t);
46 void (*_free_r)(struct _reent *r, void*);
47 void* (*_realloc_r)(struct _reent *r, void*, size_t);
48 void* (*_calloc_r)(struct _reent *r, size_t, size_t);
50 int (*_system_r)(struct _reent *r, const char*);
51 int (*_rename_r)(struct _reent *r, const char*, const char*);
52 clock_t (*_times_r)(struct _reent *r, struct tms *);
53 int (*_gettimeofday_r) (struct _reent *r, struct timeval *, void *);
54 void (*_raise_r)(struct _reent *r);
55 int (*_unlink_r)(struct _reent *r, const char*);
[all …]
/hal_espressif-2.7.6/components/esp_rom/include/esp32c3/rom/
Dlibc_stubs.h45 void* (*_malloc_r)(struct _reent *r, size_t);
46 void (*_free_r)(struct _reent *r, void*);
47 void* (*_realloc_r)(struct _reent *r, void*, size_t);
48 void* (*_calloc_r)(struct _reent *r, size_t, size_t);
50 int (*_system_r)(struct _reent *r, const char*);
51 int (*_rename_r)(struct _reent *r, const char*, const char*);
52 clock_t (*_times_r)(struct _reent *r, struct tms *);
53 int (*_gettimeofday_r) (struct _reent *r, struct timeval *, void *);
54 void (*_raise_r)(struct _reent *r);
55 int (*_unlink_r)(struct _reent *r, const char*);
[all …]
/hal_espressif-2.7.6/examples/protocols/esp_http_client/
Desp_http_client_test.py22 dut1.expect(re.compile(r'HTTP GET Status = 200, content_length = (\d)'))
23 dut1.expect(re.compile(r'HTTP POST Status = 200, content_length = (\d)'))
24 dut1.expect(re.compile(r'HTTP PUT Status = 200, content_length = (\d)'))
25 dut1.expect(re.compile(r'HTTP PATCH Status = 200, content_length = (\d)'))
26 dut1.expect(re.compile(r'HTTP DELETE Status = 200, content_length = (\d)'))
27 dut1.expect(re.compile(r'HTTP HEAD Status = 200, content_length = (\d)'))
28 dut1.expect(re.compile(r'HTTP Basic Auth Status = 200, content_length = (\d)'))
29 dut1.expect(re.compile(r'HTTP Basic Auth redirect Status = 200, content_length = (\d)'))
30 dut1.expect(re.compile(r'HTTP Digest Auth Status = 200, content_length = (\d)'))
31 dut1.expect(re.compile(r'HTTPS Status = 200, content_length = (\d)'))
[all …]
/hal_espressif-2.7.6/components/esp_http_server/src/
Dhttpd_txrx.c55 int httpd_send(httpd_req_t *r, const char *buf, size_t buf_len) in httpd_send() argument
57 if (r == NULL || buf == NULL) { in httpd_send()
61 if (!httpd_valid_req(r)) { in httpd_send()
65 struct httpd_req_aux *ra = r->aux; in httpd_send()
74 static esp_err_t httpd_send_all(httpd_req_t *r, const char *buf, size_t buf_len) in httpd_send_all() argument
76 struct httpd_req_aux *ra = r->aux; in httpd_send_all()
92 static size_t httpd_recv_pending(httpd_req_t *r, char *buf, size_t buf_len) in httpd_recv_pending() argument
94 struct httpd_req_aux *ra = r->aux; in httpd_recv_pending()
105 int httpd_recv_with_opt(httpd_req_t *r, char *buf, size_t buf_len, bool halt_after_pending) in httpd_recv_with_opt() argument
110 struct httpd_req_aux *ra = r->aux; in httpd_recv_with_opt()
[all …]
Dhttpd_parse.c66 struct httpd_req *r = parser_data->req; in verify_url() local
67 struct httpd_req_aux *ra = r->aux; in verify_url()
74 if ((r->method = parser->method) < 0) { in verify_url()
80 if (sizeof(r->uri) < (length + 1)) { in verify_url()
82 length, sizeof(r->uri)); in verify_url()
90 strlcpy((char *)r->uri, at, (length + 1)); in verify_url()
91 ESP_LOGD(TAG, LOG_FMT("received URI = %s"), r->uri); in verify_url()
103 if (http_parser_parse_url(r->uri, strlen(r->uri), in verify_url()
104 r->method == HTTP_CONNECT, res)) { in verify_url()
151 struct httpd_req *r = parser_data->req; in pause_parsing() local
[all …]
/hal_espressif-2.7.6/components/hal/esp32c3/include/hal/
Dmemprot_ll.h173 static inline uint32_t memprot_ll_iram0_set_permissions(bool r, bool w, bool x) in memprot_ll_iram0_set_permissions() argument
176 if ( r ) { in memprot_ll_iram0_set_permissions()
189 static inline void memprot_ll_iram0_set_pms_area_0(bool r, bool w, bool x) in memprot_ll_iram0_set_pms_area_0() argument
191 …ENSITIVE_CORE_X_IRAM0_PMS_CONSTRAIN_SRAM_WORLD_0_PMS_0, memprot_ll_iram0_set_permissions(r, w, x)); in memprot_ll_iram0_set_pms_area_0()
194 static inline void memprot_ll_iram0_set_pms_area_1(bool r, bool w, bool x) in memprot_ll_iram0_set_pms_area_1() argument
196 …ENSITIVE_CORE_X_IRAM0_PMS_CONSTRAIN_SRAM_WORLD_0_PMS_1, memprot_ll_iram0_set_permissions(r, w, x)); in memprot_ll_iram0_set_pms_area_1()
199 static inline void memprot_ll_iram0_set_pms_area_2(bool r, bool w, bool x) in memprot_ll_iram0_set_pms_area_2() argument
201 …ENSITIVE_CORE_X_IRAM0_PMS_CONSTRAIN_SRAM_WORLD_0_PMS_2, memprot_ll_iram0_set_permissions(r, w, x)); in memprot_ll_iram0_set_pms_area_2()
204 static inline void memprot_ll_iram0_set_pms_area_3(bool r, bool w, bool x) in memprot_ll_iram0_set_pms_area_3() argument
206 …ENSITIVE_CORE_X_IRAM0_PMS_CONSTRAIN_SRAM_WORLD_0_PMS_3, memprot_ll_iram0_set_permissions(r, w, x)); in memprot_ll_iram0_set_pms_area_3()
[all …]
/hal_espressif-2.7.6/components/vfs/
Dvfs.c348 #define CHECK_AND_CALL(ret, r, pvfs, func, ...) \ argument
350 __errno_r(r) = ENOSYS; \
360 #define CHECK_AND_CALLV(r, pvfs, func, ...) \ argument
362 __errno_r(r) = ENOSYS; \
371 #define CHECK_AND_CALLP(ret, r, pvfs, func, ...) \ argument
373 __errno_r(r) = ENOSYS; \
382 int esp_vfs_open(struct _reent *r, const char * path, int flags, int mode) in esp_vfs_open() argument
386 __errno_r(r) = ENOENT; in esp_vfs_open()
391 CHECK_AND_CALL(fd_within_vfs, r, vfs, open, path_within_vfs, flags, mode); in esp_vfs_open()
405 CHECK_AND_CALL(ret, r, vfs, close, fd_within_vfs); in esp_vfs_open()
[all …]
/hal_espressif-2.7.6/examples/peripherals/adc/single_read/adc2/main/
Dadc2_example_main.c32 esp_err_t r; in app_main() local
36 r = adc2_pad_get_io_num( ADC2_EXAMPLE_CHANNEL, &adc_gpio_num ); in app_main()
37 assert( r == ESP_OK ); in app_main()
38 r = dac_pad_get_io_num( DAC_EXAMPLE_CHANNEL, &dac_gpio_num ); in app_main()
39 assert( r == ESP_OK ); in app_main()
55 r = adc2_get_raw( ADC2_EXAMPLE_CHANNEL, width, &read_raw); in app_main()
56 if ( r == ESP_OK ) { in app_main()
58 } else if ( r == ESP_ERR_INVALID_STATE ) { in app_main()
59 printf("%s: ADC2 not initialized yet.\n", esp_err_to_name(r)); in app_main()
60 } else if ( r == ESP_ERR_TIMEOUT ) { in app_main()
[all …]
/hal_espressif-2.7.6/components/esp_hid/src/
Desp_hidh.c295 …esp_hid_report_item_t *r = (esp_hid_report_item_t *)malloc(sizeof(esp_hid_report_item_t) * dev->re… in esp_hidh_dev_reports_get() local
296 if (r == NULL) { in esp_hidh_dev_reports_get()
304 free(r); in esp_hidh_dev_reports_get()
307 r[i].map_index = dr->map_index; in esp_hidh_dev_reports_get()
308 r[i].protocol_mode = dr->protocol_mode; in esp_hidh_dev_reports_get()
309 r[i].usage = dr->usage; in esp_hidh_dev_reports_get()
310 r[i].report_id = dr->report_id; in esp_hidh_dev_reports_get()
311 r[i].report_type = dr->report_type; in esp_hidh_dev_reports_get()
312 r[i].value_len = dr->value_len; in esp_hidh_dev_reports_get()
316 *reports = r; in esp_hidh_dev_reports_get()
[all …]
/hal_espressif-2.7.6/examples/bluetooth/esp_hid_host/main/
Desp_hid_host_main.c85 esp_hid_scan_result_t *r = results; in hid_demo_task() local
87 while (r) { in hid_demo_task()
88 …printf(" %s: " ESP_BD_ADDR_STR ", ", (r->transport == ESP_HID_TRANSPORT_BLE) ? "BLE" : "BT ", ESP… in hid_demo_task()
89 printf("RSSI: %d, ", r->rssi); in hid_demo_task()
90 printf("USAGE: %s, ", esp_hid_usage_str(r->usage)); in hid_demo_task()
91 if (r->transport == ESP_HID_TRANSPORT_BLE) { in hid_demo_task()
92 cr = r; in hid_demo_task()
93 printf("APPEARANCE: 0x%04x, ", r->ble.appearance); in hid_demo_task()
94 printf("ADDR_TYPE: '%s', ", ble_addr_type_str(r->ble.addr_type)); in hid_demo_task()
96 cr = r; in hid_demo_task()
[all …]
Desp_hid_gap.c115 esp_hid_scan_result_t *r = NULL; in esp_hid_scan_results_free() local
117 r = results; in esp_hid_scan_results_free()
119 if (r->name != NULL) { in esp_hid_scan_results_free()
120 free((char *)r->name); in esp_hid_scan_results_free()
122 free(r); in esp_hid_scan_results_free()
128 esp_hid_scan_result_t *r = results; in find_scan_result() local
129 while (r) { in find_scan_result()
130 if (memcmp(bda, r->bda, sizeof(esp_bd_addr_t)) == 0) { in find_scan_result()
131 return r; in find_scan_result()
133 r = r->next; in find_scan_result()
[all …]
/hal_espressif-2.7.6/components/esp_http_client/test/
Dtest_http_client.c65 esp_err_t r = esp_http_client_get_username(client, &value); variable
66 TEST_ASSERT_EQUAL(ESP_OK, r);
71 r = esp_http_client_get_password(client, &value);
72 TEST_ASSERT_EQUAL(ESP_OK, r);
93 esp_err_t r = esp_http_client_get_username(client, &value); variable
94 TEST_ASSERT_EQUAL(ESP_OK, r);
98 r = esp_http_client_get_username(client, &value);
99 TEST_ASSERT_EQUAL(ESP_OK, r);
121 esp_err_t r = esp_http_client_get_username(client, &value); variable
122 TEST_ASSERT_EQUAL(ESP_OK, r);
[all …]
/hal_espressif-2.7.6/examples/protocols/mdns/main/
Dmdns_example_main.c68 mdns_result_t * r = results; in mdns_print_results() local
71 while(r){ in mdns_print_results()
72 …printf("%d: Interface: %s, Type: %s\n", i++, if_str[r->tcpip_if], ip_protocol_str[r->ip_protocol]); in mdns_print_results()
73 if(r->instance_name){ in mdns_print_results()
74 printf(" PTR : %s\n", r->instance_name); in mdns_print_results()
76 if(r->hostname){ in mdns_print_results()
77 printf(" SRV : %s.local:%u\n", r->hostname, r->port); in mdns_print_results()
79 if(r->txt_count){ in mdns_print_results()
80 printf(" TXT : [%u] ", r->txt_count); in mdns_print_results()
81 for(t=0; t<r->txt_count; t++){ in mdns_print_results()
[all …]
/hal_espressif-2.7.6/components/esp_http_server/include/
Desp_http_server.h396 esp_err_t (*handler)(httpd_req_t *r);
801 int httpd_req_to_sockfd(httpd_req_t *r);
833 int httpd_req_recv(httpd_req_t *r, char *buf, size_t buf_len);
853 size_t httpd_req_get_hdr_value_len(httpd_req_t *r, const char *field);
880 esp_err_t httpd_req_get_hdr_value_str(httpd_req_t *r, const char *field, char *val, size_t val_size…
894 size_t httpd_req_get_url_query_len(httpd_req_t *r);
925 esp_err_t httpd_req_get_url_query_str(httpd_req_t *r, char *buf, size_t buf_len);
1013 esp_err_t httpd_resp_send(httpd_req_t *r, const char *buf, ssize_t buf_len);
1052 esp_err_t httpd_resp_send_chunk(httpd_req_t *r, const char *buf, ssize_t buf_len);
1071 static inline esp_err_t httpd_resp_sendstr(httpd_req_t *r, const char *str) { in httpd_resp_sendstr() argument
[all …]
/hal_espressif-2.7.6/components/esp32/
Desp_himem.c113 int r; in set_bank() local
114r = cache_sram_mmu_set( 0, 0, SOC_EXTRAM_DATA_LOW + CACHE_BLOCKSIZE * virt_bank, phys_bank * CACHE… in set_bank()
115 assert(r == 0); in set_bank()
116r = cache_sram_mmu_set( 1, 0, SOC_EXTRAM_DATA_LOW + CACHE_BLOCKSIZE * virt_bank, phys_bank * CACHE… in set_bank()
117 assert(r == 0); in set_bank()
200 esp_himem_ramdata_t *r = calloc(sizeof(esp_himem_ramdata_t), 1); in esp_himem_alloc() local
201 if (!r) { in esp_himem_alloc()
204 r->block = calloc(sizeof(uint16_t), blocks); in esp_himem_alloc()
205 if (!r->block) { in esp_himem_alloc()
209 int ok = allocate_blocks(blocks, r->block); in esp_himem_alloc()
[all …]
/hal_espressif-2.7.6/tools/ci/
Dcheck_build_warnings.py21 WARNING_REGEX = re.compile(r'(?:error|warning)[^\w]', re.MULTILINE | re.IGNORECASE)
25 r'library/error\.o',
26 r'.*error.*\.c\.obj',
27 r'-Werror',
28 r'error\.d',
29 r'reassigning to symbol',
30 r'changes choice state',
31 r'crosstool_version_check\.cmake',
32 r'CryptographyDeprecationWarning',
33 r'Python 3 versions older than 3.6 are not supported.',
[all …]
/hal_espressif-2.7.6/examples/bluetooth/esp_hid_device/main/
Desp_hid_gap.c115 esp_hid_scan_result_t *r = NULL; in esp_hid_scan_results_free() local
117 r = results; in esp_hid_scan_results_free()
119 if (r->name != NULL) { in esp_hid_scan_results_free()
120 free((char *)r->name); in esp_hid_scan_results_free()
122 free(r); in esp_hid_scan_results_free()
128 esp_hid_scan_result_t *r = results; in find_scan_result() local
129 while (r) { in find_scan_result()
130 if (memcmp(bda, r->bda, sizeof(esp_bd_addr_t)) == 0) { in find_scan_result()
131 return r; in find_scan_result()
133 r = r->next; in find_scan_result()
[all …]
/hal_espressif-2.7.6/examples/protocols/cbor/
Dexample_test.py14 dut.expect(re.compile(r'example: encoded buffer size \d+'))
16 …parsed_info = dut.expect(re.compile(r'\[\{"chip":"(\w+)","unicore":(\w+),"ip":\[(\d+),(\d+),(\d+),…
17 r'3.1400001049041748'
18r',"simple\(99\)","2019-07-10 09:00:00\+0000","undefined"\]'))
21 dut.expect(re.compile(textwrap.dedent(r'''
40 … \]'''.format(*parsed_info)).replace('{', r'\{').replace('}', r'\}')))
/hal_espressif-2.7.6/components/esp32c3/
Dmemprot.c182 void esp_memprot_iram_set_pms_area(pms_area_t area_type, bool r, bool w, bool x) in esp_memprot_iram_set_pms_area() argument
186 memprot_ll_iram0_set_pms_area_0(r, w, x); in esp_memprot_iram_set_pms_area()
189 memprot_ll_iram0_set_pms_area_1(r, w, x); in esp_memprot_iram_set_pms_area()
192 memprot_ll_iram0_set_pms_area_2(r, w, x); in esp_memprot_iram_set_pms_area()
195 memprot_ll_iram0_set_pms_area_3(r, w, x); in esp_memprot_iram_set_pms_area()
202 void esp_memprot_iram_get_pms_area(pms_area_t area_type, bool *r, bool *w, bool *x) in esp_memprot_iram_get_pms_area() argument
206 memprot_ll_iram0_get_pms_area_0(r, w, x); in esp_memprot_iram_get_pms_area()
209 memprot_ll_iram0_get_pms_area_1(r, w, x); in esp_memprot_iram_get_pms_area()
212 memprot_ll_iram0_get_pms_area_2(r, w, x); in esp_memprot_iram_get_pms_area()
215 memprot_ll_iram0_get_pms_area_3(r, w, x); in esp_memprot_iram_get_pms_area()
[all …]
/hal_espressif-2.7.6/docs/zh_CN/api-reference/protocols/
Dmdns.rst110 mdns_result_t * r = results;
113 while(r){
114 …printf("%d: Interface: %s, Type: %s\n", i++, if_str[r->tcpip_if], ip_protocol_str[r->ip_protocol]);
115 if(r->instance_name){
116 printf(" PTR : %s\n", r->instance_name);
118 if(r->hostname){
119 printf(" SRV : %s.local:%u\n", r->hostname, r->port);
121 if(r->txt_count){
122 printf(" TXT : [%u] ", r->txt_count);
123 for(t=0; t<r->txt_count; t++){
[all …]
/hal_espressif-2.7.6/tools/
Didf_size.py206 … RE_MEMORY_SECTION = re.compile(r'(?P<name>[^ ]+) +0x(?P<origin>[\da-f]+) +0x(?P<length>[\da-f]+)')
229 RE_TARGET = re.compile(r'project_elf_src_(.*)\.c.obj')
231 RE_TARGET_MAKE = re.compile(r'^LOAD .*?/xtensa-([^-]+)-elf/')
261 … RE_SECTION_HEADER = re.compile(r'(?P<name>[^ ]+) +0x(?P<address>[\da-f]+) +0x(?P<size>[\da-f]+)$')
267 …RE_SOURCE_LINE = re.compile(r'\s*(?P<sym_name>\S*) +0x(?P<address>[\da-f]+) +0x(?P<size>[\da-f]+) …
270 RE_PRE_FILTER = re.compile(r'.*\.(o|obj)\)?')
273 RE_SYMBOL_ONLY_LINE = re.compile(r'^ (?P<sym_name>\S*)$')
451 r = StructureForSummary()
453 r.dram_data_names = frozenset([n for n in reg.used_dram_names if n.endswith('.data')])
454 r.dram_bss_names = frozenset([n for n in reg.used_dram_names if n.endswith('.bss')])
[all …]

12345678910>>...13