David Cermak
b5d13b9837
lwip/dhcpserver: Support for adding extra opts
...
This enables users appending an extra, user defined options in dhcp
server messages. Example of adding captive_portal option (160) to dhcp
offer message is provided:
* Add idf-lwip hook file (project makefile):
idf_component_get_property(lwip lwip COMPONENT_LIB)
target_compile_options(${lwip} PRIVATE "-I${PROJECT_DIR}/main")
target_compile_definitions(${lwip} PRIVATE "-DESP_IDF_LWIP_HOOK_FILENAME=\"add_captive_portal.h\"")
* Implement appending (add_captive_portal.h):
#pragma once
#define LWIP_HOOK_DHCPS_POST_APPEND_OPTS(netif, dhcp, state, pp_opts) \
if ((state)==DHCPOFFER) { *(pp_opts) = append_captive_portal_uri(*(pp_opts)); }
static inline uint8_t *append_captive_portal_uri(uint8_t *optptr)
{
const static uint8_t DHCP_OPTION_CAPTIVE_PORTAL=160;
const static char CAPTIVE_PORTAL_URI[]="my_uri";
int size = sizeof(CAPTIVE_PORTAL_URI) - 1;
*optptr++ = DHCP_OPTION_CAPTIVE_PORTAL;
*optptr++ = size;
for(int i = 0; i < size; ++i) {
*optptr++ = CAPTIVE_PORTAL_URI[i];
}
return optptr;
}
Merges https://github.com/espressif/esp-idf/pull/3308
2022-07-26 07:09:22 +00:00
daiziyan
b995b584bd
docs: translated removed-components and build-system
2022-07-26 14:55:01 +08:00
Marius Vikhammer
4f1046a292
ulp-riscv: made ulp_riscv_delay_cycles more accurate
2022-07-26 14:32:39 +08:00
Anton Maklakov
57f231af82
docs: add a suggestion for apple m1 users
...
Closes: https://github.com/espressif/esp-idf/issues/9300
2022-07-26 11:14:05 +07:00
Marius Vikhammer
c2a5f48498
ci: migrate system test apps to pytest
2022-07-26 11:47:28 +08:00
Anton Maklakov
5d80b1295f
tools: update toolchain version to 'esp-2022r1-11.2.0'
...
Closes https://github.com/espressif/esp-idf/issues/6113
2022-07-26 10:31:15 +07:00
Fu Hanxi
b823831a26
Merge branch 'ci/set_include_nightly_run_rule_for_all_jobs' into 'master'
...
ci: export INCLUDE_NIGHTLY_RUN when mr got label
See merge request espressif/esp-idf!19116
2022-07-26 10:35:16 +08:00
Fu Hanxi
7ed174aee0
Merge branch 'ci/fix_wrongly_cleanup_preserve_dirs' into 'master'
...
ci: fix cleanup bin wrongly when extra_preserve_dir equals to the app dir
See merge request espressif/esp-idf!19214
2022-07-26 10:35:09 +08:00
Martin Vychodil
85f21a02d8
Merge branch 'feature/storage_migrate_to_pytest' into 'master'
...
examples/storage: Tests migrated to pytest
Closes IDFCI-1139 and IDFCI-1353
See merge request espressif/esp-idf!18453
2022-07-26 05:20:42 +08:00
morris
3385fff2b0
Merge branch 'refactor/systimer_hal_support_other_xtal' into 'master'
...
systimer: refactor hal to accomodate more xtal choices
Closes IDF-5643
See merge request espressif/esp-idf!19175
2022-07-25 23:36:49 +08:00
David Cermak
9806dff253
esp_netif/ci: Add test to verify dependencies to/from lwip/drivers
2022-07-25 16:58:05 +02:00
Fu Hanxi
a8f6cfb97d
ci: export INCLUDE_NIGHTLY_RUN when mr got label
2022-07-25 16:24:23 +08:00
morris
5e50ec1d66
systimer: add helper functions to convert between tick and us
2022-07-25 16:08:52 +08:00
morris
783e1781bd
esp_rom: patch systimer driver for esp32c2
2022-07-25 16:08:52 +08:00
morris
d94432fea8
systimer: refactor hal to accomodate more xtal choices
2022-07-25 16:08:52 +08:00
Roland Dobai
0f08d4050d
Merge branch 'feat/add_hints' into 'master'
...
Tools: Add more hint examples on how to resolve breaking changes of v5.0
See merge request espressif/esp-idf!19178
2022-07-25 16:04:32 +08:00
Fu Hanxi
59cc82349a
ci: fix cleanup bin wrongly when extra_preserve_dir equals to the app dir
2022-07-25 15:54:54 +08:00
Ivan Grokhotkov
a97686f607
xtensa: fix swapped breakpoint and watchpoint numbers
2022-07-25 09:43:10 +02:00
Michael (XIAO Xufeng)
f19dfd6afb
Merge branch 'ci/reduce_usage_of_ut_sdio_runners' into 'master'
...
CI: reduce usage of sdio runners (UT_044, UT_045)
See merge request espressif/esp-idf!19184
2022-07-25 15:12:16 +08:00
Fu Hanxi
51d6f9c885
Merge branch 'fix/missing_component_ut_junit_report' into 'master'
...
CI: junit report not merged in component ut
Closes IDFCI-1388
See merge request espressif/esp-idf!19207
2022-07-25 14:01:09 +08:00
Isha Pardikar
d46a2af0bf
Merge branch 'feature/nimble_l2cap_coc' into 'master'
...
NimBLE: Add example framework for L2CAP COC
See merge request espressif/esp-idf!18483
2022-07-25 12:28:38 +08:00
Wang Fang
2100469a8b
Merge branch 'docs/update_documents_regarding_flash_and_ulp_and_wakeupSource' into 'master'
...
Updated documents related to wakeup source, ulp, flash-encryption and memory types
Closes DOC-2947, DOC-2963, and DOC-2966
See merge request espressif/esp-idf!17873
2022-07-25 12:19:26 +08:00
Fu Hanxi
377cd97f4d
fix: junit report not merged in component ut
...
related github pr: https://github.com/espressif/pytest-embedded/pull/111
released in pytest-embedded 0.7.6
2022-07-25 11:34:58 +08:00
Wang Fang
83a0cd33ce
docs: updated documents related to wakeup source, ulp, flash-encryption and memory types
2022-07-25 10:57:40 +08:00
Martin Vychodil
8def7b3e55
Merge branch 'contrib/github_pr_9361' into 'master'
...
Change placeholder in ESP_LOGD conditionally depending on FF_FS_EXFAT (GitHub PR)
Closes IDFGH-7832 and IDFGH-7735
See merge request espressif/esp-idf!19111
2022-07-24 16:49:22 +08:00
Martin Vychodil
a16431c7a9
Merge branch 'feature/vfs_serial_fcntl_get_rd_wr_state' into 'master'
...
vfs: uart/cdcacm/usb_serial_jtag fcntl return read/write state
See merge request espressif/esp-idf!19168
2022-07-24 16:15:28 +08:00
Chen Jian Xing
feefe820a4
Merge branch 'bugfix/esp32c2_coex_timer_clk_src' into 'master'
...
esp_wifi: select slowclk as coex hardware timer source on esp32c2
See merge request espressif/esp-idf!19170
2022-07-23 11:37:35 +08:00
Jakob Hasse
45b3662c3a
Merge branch 'bugfix/esp_timer_mux_static' into 'master'
...
bugfix (esp_timer): made os spinlock static
See merge request espressif/esp-idf!19112
2022-07-23 05:58:06 +08:00
simon.chupin
819d5a2b61
ci: Add python types hints
2022-07-22 21:15:01 +02:00
Fu Hanxi
585e0431c7
Merge branch 'test/spi_param_redund_desc' into 'master'
...
test_spi: fixed redundant quotes in test descriptions
See merge request espressif/esp-idf!19140
2022-07-23 02:22:58 +08:00
Darian
c8ee369a7c
Merge branch 'feature/deprecate-old-cpu-api' into 'master'
...
HAL: Deprecate old CPU/SoC/Interrupt Controller HAL API
Closes IDF-4919 and IDF-5032
See merge request espressif/esp-idf!18987
2022-07-23 00:37:33 +08:00
John
aaf35889b6
Change placeholder in ESP_LOGD conditionally depending on FF_FS_EXFAT
...
In case of using EXFAT by setting in ffconf.h:
the type FSIZE_t is changing from 4 to 8 bytes.
As a result, ESP_LOGD() in vfs_fat_lseek() does not compile:
error: format '%d' expects argument of type 'int', but argument 8 has type 'FSIZE_t' {aka 'long long unsigned int'} [-Werror=format=]
ESP_LOGD(TAG, "%s: offset=%ld, filesize:=%d", __func__, new_pos, f_size(file));
To solve the problem we need to change %d with %lld conditionally, depending on FF_FS_EXFAT.
Closes https://github.com/espressif/esp-idf/pull/9361
2022-07-22 16:52:14 +01:00
liuning
bc2f2a3100
esp_wifi: select slowclk as coex hardware timer source on esp32c2
2022-07-22 21:44:11 +08:00
Jiang Jiang Jian
05b31339f6
Merge branch 'docs/improve_pytest_related_readme' into 'master'
...
docs: improve ci related docs
See merge request espressif/esp-idf!19169
2022-07-22 21:26:53 +08:00
Jiang Jiang Jian
88f2f5fdd7
Merge branch 'bugfix/default_config_sae_pwe_value' into 'master'
...
esp_wifi: WPA3 SAE keep default value as h2e and hunting and pecking for sae pwe
See merge request espressif/esp-idf!19015
2022-07-22 20:30:58 +08:00
Roland Dobai
6928d1f3ec
Tools: Add more hint examples on how to resolve breaking changes of v5.0
2022-07-22 13:47:31 +02:00
morris
dc7d39d6cf
Merge branch 'bugfix/esp_system_make_xt_wdt_lock_static' into 'master'
...
bugfix (esp_system): made xt_wdt spinlock static
See merge request espressif/esp-idf!19113
2022-07-22 18:20:20 +08:00
Zhang Xiao Yan
a1b5dae782
Merge branch 'docs/updated_DevBoards_based_on_feedbacks' into 'master'
...
docs:updates based on feedbacks
Closes DOC-3376, DOC-3375, DOC-3180, and DOC-3353
See merge request espressif/esp-idf!19154
2022-07-22 17:57:36 +08:00
radek.tandler
3271088428
storage examples migrated to pytest
2022-07-22 10:23:53 +02:00
Jakob Hasse
bff6826ee1
bugfix (esp_system): made xt_wdt spinlock static
2022-07-22 08:17:59 +00:00
Linda
3d5f2fbafc
docs:updates based on feedbacks
2022-07-22 15:58:09 +08:00
Island
37bc05c84d
Merge branch 'bugfix/vendor_model_send_message_no_memory' into 'master'
...
ble_mesh:example: free the memory of malloc
See merge request espressif/esp-idf!19135
2022-07-22 15:18:38 +08:00
Yuan Hong Hui
33d6c07d6e
ble_mesh:example: free the memory of malloc
2022-07-22 15:18:37 +08:00
Chen Yudong
9b44bc1d31
CI: reduce usage of sdio runners
2022-07-22 15:03:44 +08:00
Shreyas Sheth
341a92aaa5
esp_wifi: WPA3 SAE keep default value as h2e and hunting and pecking for sae pwe
2022-07-22 12:23:13 +05:30
Isha Pardikar
eeea118ca5
Merge branch 'feature/nimble_l2cap_coc' into 'master'
...
NimBLE : BLE example for L2CAP connection oriented channels
See merge request !18483
2022-07-22 11:43:16 +05:30
Jiang Jiang Jian
0e874812a0
Merge branch 'bugfix/sync_reg_base' into 'master'
...
esp_wifi: fix crash in esp_wifi_set_ant_gpio()
Closes IDFGH-7720
See merge request espressif/esp-idf!19096
2022-07-22 14:07:33 +08:00
Jiang Jiang Jian
9a6ccb7f57
Merge branch 'bugfix/make_sure_sempher_and_queue_used_in_isr_is_in_DRAM' into 'master'
...
Bugfix/make sure sempher and queue used in isr is in dram
Closes WIFI-3571, IDFGH-7458, IDFGH-7342, and IDFGH-7569
See merge request espressif/esp-idf!19160
2022-07-22 14:04:27 +08:00
Jiang Jiang Jian
371a935e76
Merge branch 'bugfix/wpa2_enterprise_issues' into 'master'
...
esp_wifi: WPA2 enterprise related changes
Closes WIFI-4579
See merge request espressif/esp-idf!19162
2022-07-22 13:56:41 +08:00
Angus Gratton
bb141956df
nvs_partition_gen: Allow up to 4000 byte strings with NVS V2
...
As documented, the limit for NVS format v2 is 4000 bytes for a string.
2022-07-22 15:43:19 +10:00