Mahavir Jain
43411da465
Merge branch 'bugfix/freertos_critical_section_compliance' into 'master'
...
Changes in uart and esp_timer for critical section compliance with vanilla FreeRTOS
See merge request espressif/esp-idf!6733
2019-11-21 19:25:14 +08:00
Ivan Grokhotkov
04324e4c3c
esp32s2beta: re-enable entering the debugger on panic
2019-11-21 11:52:10 +01:00
Ivan Grokhotkov
f21261d39c
esp32s2beta: don't use crtbegin from the toolchain
...
Similar to 22514c1dd9
for esp32
2019-11-21 11:52:10 +01:00
chenjianqiang
857dec108d
feat(ledc): refactor ledc driver
...
1. add hal and low-level layer for ledc driver
2. support esp32s2beta ledc
2019-11-21 16:25:22 +08:00
chenjianqiang
9f9da9ec96
feat(timer): refator timer group driver
...
1. add hal and low-level layer for timer group
2. add callback functions to handle interrupt
3. add timer deinit function
4. add timer spinlock take function
2019-11-21 14:14:19 +08:00
xiongyu
e62b831867
refactor(sigmadelta): add hal sigmadelta driver
2019-11-21 11:53:07 +08:00
fuzhibo
0c2bf7c8bc
rtcio: add hal for driver
2019-11-21 10:40:49 +08:00
Angus Gratton
b30b0e59fa
Merge branch 'feature/add_rmt_hal' into 'master'
...
rmt: add hal layer and new examples
Closes IDF-841, IDF-844, and IDF-857
See merge request espressif/esp-idf!5649
2019-11-21 09:53:54 +08:00
Angus Gratton
bc3233782b
Merge branch 'feature/remove_gcc5_support' into 'master'
...
global: remove gcc 5.2 support
Closes IDF-1131
See merge request espressif/esp-idf!6608
2019-11-21 09:08:41 +08:00
suda-morris
e673817530
ccomp_timer: fix broken unit test
2019-11-21 08:45:11 +08:00
Angus Gratton
e510e1779d
Merge branch 'bugfix/gcov_in_components' into 'master'
...
Fixes libgcov and libapp_trace cross dependency linking issue
Closes IDF-834
See merge request espressif/esp-idf!6250
2019-11-21 07:09:04 +08:00
Angus Gratton
95b9b41258
Merge branch 'bugfix/ethernet_add_reference_counter' into 'master'
...
ethernet: add reference counter for mac and phy && add gpio config outof Kconfig
Closes IDF-1056
See merge request espressif/esp-idf!6682
2019-11-21 06:58:13 +08:00
Ivan Grokhotkov
9a2af7ae33
global: remove gcc 5.2 support
2019-11-20 11:17:27 +01:00
Wang Jia Lin
f9d5b67b81
Merge branch 'refactor/hal_i2s_driver' into 'master'
...
refactor(i2s): add hal i2s driver
Closes IDFGH-2097
See merge request espressif/esp-idf!5601
2019-11-20 17:45:21 +08:00
morris
8fd8695ea1
rmt: add HAL layer
2019-11-20 10:54:21 +08:00
suda-morris
05d71319de
ethernet: add gpio number into config structure
2019-11-20 10:36:45 +08:00
suda-morris
f3d0429a9e
ethernet: add reference counter for mac and phy
2019-11-20 10:36:45 +08:00
Angus Gratton
bc9267aa24
Merge branch 'feature/use_cpu_time_for_tests' into 'master'
...
Cache compensated timer
See merge request espressif/esp-idf!6087
2019-11-20 08:33:27 +08:00
Angus Gratton
412b202741
Merge branch 'bugfix/ws_client_fix_wait_forever_timeout' into 'master'
...
ws_client: fix handling timeouts by websocket client.
Closes IDFGH-2161
See merge request espressif/esp-idf!6683
2019-11-20 07:44:25 +08:00
Anton Maklakov
bd49b3f315
Merge branch 'bugfix/soc_missing_tests' into 'master'
...
soc: fix unit tests not included in the build
See merge request espressif/esp-idf!6723
2019-11-20 00:32:43 +08:00
xiongyu
8c76a3c10d
refactor(i2s): add hal i2s driver
2019-11-19 22:19:19 +08:00
Ivan Grokhotkov
a74988ae3b
Merge branch 'bugfix/cpp_extern' into 'master'
...
Add extern C header guards to some files
Closes IDFGH-2025 and IDFGH-2093
See merge request espressif/esp-idf!6611
2019-11-19 19:01:29 +08:00
Wang Jia Lin
7494877b1c
Merge branch 'refactor/hal_pcnt_driver' into 'master'
...
refactor(pcnt): add hal pcnt driver
See merge request espressif/esp-idf!5600
2019-11-19 17:22:49 +08:00
Jiang Jiang Jian
9e0b9fcf4e
Merge branch 'bugfix/btdm_run_out_of_frame_element' into 'master'
...
components/bt: Fix assert due to no free element from
Closes BT-461
See merge request espressif/esp-idf!6574
2019-11-19 17:01:23 +08:00
Mahavir Jain
62a0659368
Merge branch 'bugfix/warning_fix_latest_freertos' into 'master'
...
Fixed warnings for components driver, esp32 and mbedtls
See merge request espressif/esp-idf!6673
2019-11-19 16:48:54 +08:00
Jiang Jiang Jian
6f633b2d5b
Merge branch 'bugfix/btdm_disable_some_secrity_mask' into 'master'
...
components/bt: Disable some unsupported security mask
See merge request espressif/esp-idf!6724
2019-11-19 12:15:25 +08:00
Angus Gratton
f8476c042d
Merge branch 'feature/transport_ssl_support_alpn' into 'master'
...
tcp_transport: added functionality for using ALPN with SSL
Closes IDF-1160
See merge request espressif/esp-idf!6684
2019-11-19 11:36:09 +08:00
Ivan Grokhotkov
5b6b624e1f
driver: fix gpio pin_bit_mask truncation in sdspi_host and others
...
Closes https://github.com/espressif/esp-idf/issues/4348
2019-11-18 13:42:22 +01:00
Ivan Grokhotkov
93a8603c54
Merge branch 'feature/builtin_type_exceptions_test' into 'master'
...
C++: Throw builtin type exception test
See merge request espressif/esp-idf!6570
2019-11-18 19:34:05 +08:00
David Cermak
e1f982921a
ws_client: fix handling timeouts by websocket client.
...
tcp-transport component did not support wait forever. this update uses value of -1 to request this state.
websocket client uses timeouts in RTOS ticks. fixed recalculation to ms (including special value of -1) to use correctly tcp-transport component
Closes https://github.com/espressif/esp-idf/issues/4316
2019-11-18 10:59:41 +00:00
Ivan Grokhotkov
f59170fcb9
Merge branch 'bugfix/fatfs_missing_tests' into 'master'
...
fatfs: fix unit tests not included in the build
See merge request espressif/esp-idf!6720
2019-11-18 17:36:20 +08:00
Anton Maklakov
f04e45b340
soc: remove invalid esp32s2beta tests
...
Need to update them later, ref: IDF-1169
2019-11-18 16:05:37 +07:00
Anton Maklakov
7b0be33a7a
soc: fix unit tests not included in the build
...
Regression from 9eccd7c082
2019-11-18 15:58:49 +07:00
Wang Jia Lin
be43bfe0c1
Merge branch 'bugfix/ledc_ut_esp32s2beta' into 'master'
...
bugfix(LEDC): fix ledc CI issue for esp32s2beta
Closes IDF-1011
See merge request espressif/esp-idf!6530
2019-11-18 16:19:42 +08:00
xiongyu
b1a72866ca
refactor(pcnt): add hal pcnt driver
2019-11-18 14:35:46 +08:00
Jiang Jiang Jian
45944da8ae
Merge branch 'bugfix/esp32s2beta_flash_cache' into 'master'
...
Bugfix/esp32s2beta flash cache
See merge request espressif/esp-idf!6561
2019-11-18 14:16:16 +08:00
Krzysztof Budzynski
1487bd2edd
docs: Replaced 'attenuaton' with 'attenuation'
2019-11-18 12:10:55 +08:00
Renz Christian Bagaporo
550c0ef234
vfs: use ccomp timer in performance test
2019-11-18 10:29:02 +08:00
Renz Christian Bagaporo
df26ab13e2
test_utils: implement performance timer
2019-11-18 10:29:01 +08:00
Jakob Hasse
cd730b94be
C++: added unit tests for builtin type exceptions
2019-11-18 08:53:50 +08:00
baohongde
2e570e78c6
components/bt: Disable some unsupported security mask
2019-11-17 13:42:09 +08:00
wanglei
5e55ffc95a
fix dummy issue in spi mem and make some spiflash api called from idf
2019-11-15 15:59:07 +00:00
wanglei
f3424afaab
bugfix: fix spi flash read when wrap enabled
2019-11-15 15:59:07 +00:00
wanglei
7b2348baad
fix bug that wrap mode not disabled in none-QIO mode
2019-11-15 15:59:07 +00:00
wanglei
8bea8dacbc
esp32s2beta: fix some macro and add flash wrap size condition
2019-11-15 15:59:07 +00:00
Jiang Jiang Jian
a9c162664c
Merge branch 'feature/get_remote_name' into 'master'
...
Feature/ Read Remote Device's Name
See merge request espressif/esp-idf!6562
2019-11-15 23:47:02 +08:00
Ivan Grokhotkov
28b7f11f93
fatfs: fix unit tests not included in the build
...
Regression from 9baa7826
.
2019-11-15 15:04:57 +01:00
Mahavir Jain
f53f450380
nvs_flash: build nvs_encr.cpp only if relevant config option is enabled
2019-11-15 15:58:31 +05:30
Mahavir Jain
ecf09382da
uart: critical section compliant API in ISR context
2019-11-15 15:58:31 +05:30
Mahavir Jain
d0a37704a3
esp_timer: use freertos critical section compliant APIs
...
Some modules use esp_timer from interrupt context and hence
with vanilla FreeRTOS it should use correct critical section
API
2019-11-15 15:57:55 +05:30
Shubham Kulkarni
c741dd0535
Fixed warnings for components driver, esp32 and mbedtls
2019-11-15 08:51:16 +00:00
Ivan Grokhotkov
59d818c387
Merge branch 'bugfix/mdns_task_include' into 'master'
...
mdns: add missing include of esp_task.h
See merge request espressif/esp-idf!6706
2019-11-15 15:50:31 +08:00
Jiang Jiang Jian
a9c1970c03
Merge branch 'bugfix/put_more_rx_code_to_iram' into 'master'
...
wifi: Put some rx code to iram
Closes WIFI-490 and WIFI-1041
See merge request espressif/esp-idf!6490
2019-11-15 10:58:22 +08:00
Ivan Grokhotkov
5884b80908
mdns: add missing include of esp_task.h
2019-11-14 18:02:26 +01:00
Ivan Grokhotkov
503c37e013
Merge branch 'bugfix/mdns_configure_task_params' into 'master'
...
mdns: add configuration values for task priority, affinity and internal service timeouts
See merge request espressif/esp-idf!6580
2019-11-14 21:30:50 +08:00
Ivan Grokhotkov
9e8fa4bb18
Merge branch 'feature/esp_netif_interface_update' into 'master'
...
tcpip_adapter refactor: ready for review
Closes IDF-39
See merge request espressif/esp-idf!5373
2019-11-14 21:27:53 +08:00
lly
093cc494b9
ble_mesh: fix ble mesh device with wrong name on iOS
2019-11-14 17:03:46 +08:00
Jiang Jiang Jian
e380c59c74
Merge branch 'feat/ble_mesh_4_1_new_features' into 'master'
...
ESP BLE Mesh 4.1 new features
Closes BLEMESH-1, BLEMESH-2, BLEMESH-3, BLEMESH-4, BLEMESH-39, and BLEMESH-43
See merge request espressif/esp-idf!6134
2019-11-14 16:47:49 +08:00
xiehang
b7334b0366
esp_wifi: Turn off wifi iram optimization by default, when using both Bluetooth and psram
2019-11-14 15:20:53 +08:00
baohongde
e248a4fe6e
components/bt: Fix assert due to no free element from
2019-11-14 06:59:23 +00:00
houwenxiang
30b2e02088
bugfix(LEDC):fix ledc CI issue for esp32s2beta.
2019-11-14 12:20:29 +08:00
weitianhua
3f0e851a39
Feature/ Read Remote Device's Name
2019-11-14 03:33:37 +00:00
Alexey Gerenkov
30ff7198b8
apptrace: Renames Kconfig options
2019-11-13 15:24:01 +03:00
Alexey Gerenkov
5909d3676c
esp32s2: Adds apptrace support
...
Closes IDF-510.
Closes IDF-1032.
2019-11-13 15:24:01 +03:00
xiehang
5e7f43f3d1
esp_wifi: Put some rx code to iram
2019-11-13 11:44:23 +00:00
David Cermak
9f2a45f15f
esp_netif: add dhcp state transition unit tests for default wifi interfaces
2019-11-13 12:36:26 +01:00
David Cermak
f91d69efb2
esp_netif: rename DHCP flags for client and server
2019-11-13 12:36:26 +01:00
David Cermak
064bed710e
esp_netif: fix esp_netif_stop() to stop DHCP client if configured
2019-11-13 12:36:26 +01:00
David Cermak
d0afdaaf24
esp_eth: moved starting link timer to eth driver start
2019-11-13 12:36:26 +01:00
David Cermak
4857e92e2c
esp_mesh: creation of wifi network interfaces for esp-mesh examples moved to used common esp_wifi_default API
2019-11-13 12:36:26 +01:00
David Cermak
7f5cda1b82
tcpip_adapter: updated tcpip_adapter compatablity layer to include all
...
public API and keep 100% backward compatibility
update build of tcpip adapter when ethernet disabled
2019-11-13 12:36:25 +01:00
David Cermak
7ef385963c
esp_netif: minor update of coding style based on clang-tidy
...
guidelines and fix some copyright notices
2019-11-13 12:36:25 +01:00
David Cermak
f839a1328c
esp_netif: added locking for netif list management, unit tests to use unique if_keys, updated comments
2019-11-13 12:36:25 +01:00
David Cermak
20add7da60
esp_netif: extract wifi_netif module as an abstraction to wifi universal interface defined by if handle and callback
2019-11-13 12:36:25 +01:00
David Cermak
359f6b3a21
esp_netif: add consistency checks for configs and interface key duplication
2019-11-13 12:36:25 +01:00
David Cermak
cf710a3cb1
esp_netif: include tcpip_adapter legacy header by default to provide *implicit* compatiblity
2019-11-13 12:36:25 +01:00
David Cermak
3f60837de2
esp_eth: make esp_eth_driver_start public API so application could start ethernet when used without esp-netif
2019-11-13 12:36:25 +01:00
David Cermak
549ee87912
esp_netif: moving default netifs to wifi, moved sta_list to a separate header -- note will fail unit tests
2019-11-13 12:36:25 +01:00
David Cermak
d471266b46
esp_netif: documentation udpated and grouped the esp-netif API
...
structure. Updated rst documenentation and diagram of esp-netif
cooperation with other components.
2019-11-13 12:36:25 +01:00
David Cermak
eb94d87935
esp_netif: address failures on tcpip-task ipc call, deinit lwip netif and ip address issues
2019-11-13 12:36:25 +01:00
David Cermak
3a19bf055d
esp_netif and examples: using wifi driver handle, update examples and tests to pass the CI
2019-11-13 12:36:25 +01:00
David Cermak
4366347fd4
esp_event: fix petty include dependency issue
2019-11-13 12:36:25 +01:00
David Cermak
ba13275c6b
esp_netif: update default DHCP IP addresses to be in line with old interface, added loopback implementation, explicit esp-netif init, sanity checks for parameters added
2019-11-13 12:36:25 +01:00
David Cermak
b834c99148
examples: modify other examples and tests to use esp_netif instead of tcpip_adapter
2019-11-13 12:36:25 +01:00
David Cermak
19e24fe61e
mdns: update mdns to use esp-netif for mdns supported services such as STA, AP, ETH
...
removes also include dependency on lwip to use esp_netif defined address fields and structures
2019-11-13 12:36:25 +01:00
David Cermak
ffe043b1a8
esp_netif: Introduction of esp-netif component as a replacement of tcpip_adpter
...
- provides object oriented access to network intefaces
- not limited to default netifs
- more generic abstraction to network input output functions
- event handler registration removed from component responsibility
- backward compatibility layer for legacy tcpip_apapter APIs
Closes IDF-39
2019-11-13 12:36:25 +01:00
David Cermak
ec9f245dd3
examples: removed ip4addr_ntoa and used prefered IP2STR for displaying IP addresses
2019-11-13 12:36:25 +01:00
Mahavir Jain
4ccac94816
freertos: modify configASSERTs around scheduler state check
...
Regression introduced in commit 79e74e5d5f
It is possible that some FreeRTOS APIs are invoked prior to
scheduler start condition (e.g. flash initialization in unicore mode).
In that condition these asserts should not trigger (scheduler state being yet to be started),
hence changes per this fix.
2019-11-13 10:44:09 +05:30
Marius Vikhammer
ed85046138
tcp_transport: added functionality for using ALPN with SSL
...
Closes IDF-1160
2019-11-13 11:33:13 +08:00
Alexey Gerenkov
5b83b198c6
gcov: Fixes libgcov and libapp_trace cross dependency linking issue
...
Closes IDF-834
2019-11-12 18:42:08 +03:00
Alex Lisitsyn
cfdd5f0ef7
freemodbus: configure timer handler placement
...
place timer interrupt handler into flash by default;
add default settings for timer and UART interrupts to place them into IRAM into example defaults;
CONFIG_FMB_TIMER_PORT_ENABLED default = n, when enabled, the UART_ISR_IN_IRAM set to y
2019-11-12 22:16:55 +08:00
Ivan Grokhotkov
bfe5662387
Merge branch 'bugfix/common_example_uart_init' into 'master'
...
fix common example connect and stdin/stdout
See merge request espressif/esp-idf!6642
2019-11-12 22:10:50 +08:00
Mahavir Jain
ca4a8a61c4
Merge branch 'bugfix/CMake_esp_https_ota_dependencies' into 'master'
...
components/esp_https_ota: Changes in public requirement list for CMake
Closes IDFGH-2066
See merge request espressif/esp-idf!6558
2019-11-12 19:43:26 +08:00
Angus Gratton
12de58bfac
Merge branch 'bugfix/config_assert_thread_safety' into 'master'
...
freertos: Fix configASSERT thread safety
Closes IDFGH-2055
See merge request espressif/esp-idf!6612
2019-11-12 10:59:00 +08:00
David Cermak
2e0d6d0e6a
uart: make uart_driver_install() more backward compatible, so if the interrupt handler configured to be in IRAM and not flagged in intr_alloc_flags argument, then the flag is gracefully updated rather then error return
2019-11-11 15:27:09 +00:00
Hrudaynath Dhabe
e543dbfe79
wpa_supplicant: Set assoc_ie_len based on generated RSN/WPA IE
2019-11-11 23:22:14 +08:00
David Cermak
c6f38f04f8
mdns: add configuration values for task priority, affinity and internal service timeouts
...
closes https://github.com/espressif/esp-idf/issues/4217
2019-11-08 16:29:40 +01:00
Angus Gratton
ae777b026f
Merge branch 'bugfix/cmake_uninit_vars_case_error' into 'master'
...
cmake: Fix some uninitialized variable issues
See merge request espressif/esp-idf!6632
2019-11-08 18:54:33 +08:00
Angus Gratton
83dbf9d6d6
Merge branch 'bugfix/partition_cmake_md5' into 'master'
...
cmake: fix partition_table cmake when using md5 checksum
See merge request espressif/esp-idf!5399
2019-11-08 18:51:59 +08:00
Angus Gratton
932758813a
Merge branch 'bugfix/http_client_buffer_overflow' into 'master'
...
Fix HTTP client buffer overflow
Closes IDF-694
See merge request espressif/esp-idf!6599
2019-11-08 18:02:33 +08:00
Alex Lisitsyn
1ab9e81729
freemodbus: fix nvs access failure
...
place timer handler functions into IRAM
update timer port handlers
fix communication issues
fix offset issue in example
add kconfig option to place handlers into IRAM
2019-11-08 16:55:42 +08:00
Angus Gratton
6f761dd62d
cmake: Fix some uninitialized variable warnings
2019-11-08 12:50:28 +08:00
Angus Gratton
4352265fa0
cmake: Fix case error passing extra CMake args to sub-projects
...
Bug in commit f4ea7c5a
where the wrong variable case was used when passing
through to sub-projects
2019-11-08 11:56:13 +08:00
lly
2bba9d7700
ble_mesh: miscellaneous modifications
...
1. Clean up client_common.c
2. Clean up esp_ble_mesh directory
3. Update Kconfig.in
4. Format esp_ble_mesh files
2019-11-08 11:10:52 +08:00
lly
30aa236219
ble_mesh: adapt ble mesh with nimble host
2019-11-08 11:10:52 +08:00
lly
547081cc3c
ble_mesh: add events for configuration server model
2019-11-08 11:10:52 +08:00
lly
f906b7caf3
ble_mesh: add Generic/Sensor/Time and Scenes/Lighting Server models
2019-11-08 11:10:52 +08:00
lly
287f80ec01
ble_mesh: add proxy client functionality
2019-11-08 11:10:52 +08:00
lly
c6286529eb
ble_mesh: add ble mesh friend node event
2019-11-08 11:10:52 +08:00
lly
fdfe59d369
ble_mesh: add low power node api and event
2019-11-08 11:10:52 +08:00
lly
afc00fb5f5
ble_mesh: add heartbeat message recv callback
2019-11-08 11:10:52 +08:00
lly
2511024e44
ble_mesh: modify health server model callbacks
2019-11-08 11:10:52 +08:00
lly
729af38346
ble_mesh: add separate advertising buffers for relay packets
2019-11-08 11:10:52 +08:00
Angus Gratton
ba72de2099
Merge branch 'bugfix/i2s-bootloader-random-disable' into 'master'
...
bugfix(bootloader): fix bootloader_random_disable bug
Closes IDFGH-1747 and IDFGH-1739
See merge request espressif/esp-idf!6522
2019-11-08 11:04:15 +08:00
Wu Jian Gang
1a29ddbd33
cmake: fix partition_table cmake when using md5 checksum
2019-11-08 02:59:22 +00:00
Angus Gratton
75488f1806
Merge branch 'bugfix/cmake_secure_boot' into 'master'
...
secure boot: CMake bug fixes
See merge request espressif/esp-idf!6523
2019-11-08 10:58:04 +08:00
Jakob Hasse
d8242fe976
nvs: Added nvs tests, minor corrections
...
* closes IDF-1135:
same namespace was used in different tests which
could lead to conflicts when re-running tests
* removes duplicated functions declarations
* correct argument order for test case macros
2019-11-07 10:23:47 +08:00
zhangyanjiao
bf37f8a03c
1. modify esp_wifi.h to support esp_netif feature
...
2. fix the bug for API_CHECK_ENABLE
2019-11-06 12:48:02 +00:00
Anton Maklakov
f8bfa69060
rsa test: fix a warning
2019-11-06 18:21:39 +07:00
Angus Gratton
5b33d6cf94
Merge branch 'feature/mbedtls_add_faster_modexp' into 'master'
...
mbedtls: Add a new (X^Y) mod M implementation (HAC 14.94)
Closes IDF-965
See merge request espressif/esp-idf!6418
2019-11-06 15:51:28 +08:00
Angus Gratton
796dd96757
Merge branch 'feature/hwcrypto_perf_ut' into 'master'
...
mbedtls: enable HW SHA by default, add SHA performance test
See merge request espressif/esp-idf!6320
2019-11-06 12:16:23 +08:00
Angus Gratton
e34bb7460f
secure boot: In Reflashable mode, make sure the bootloader digest updates
...
... whenever the bootloader.bin is updated
2019-11-06 12:13:24 +08:00
Darian Leung
79e74e5d5f
freertos: Fix configASSERT thread safety
...
This commit fixes thread safety issues with configASSERT() calls
regarding the value of uxSchedulerSuspended. A false negative
occurs if a context switch to the opposite core occurs in between
the getting the core ID and the assesment.
Closes https://github.com/espressif/esp-idf/issues/4230
2019-11-05 21:58:02 +08:00
Ivan Grokhotkov
2026340752
clk.h: add extern C guards
...
Closes https://github.com/espressif/esp-idf/issues/4215
2019-11-05 14:56:16 +01:00
Gabriel Durante
5f0d257240
Added Cpp compatibility for components/spi_flash/include/esp_flash_spi_init.h
...
Merges https://github.com/espressif/esp-idf/pull/4260
2019-11-05 14:52:57 +01:00
Ivan Grokhotkov
a8e3ad6bd9
bootloader: revert support for booting dual-core apps on single-core bootloader
2019-11-05 14:42:43 +01:00
David Cermak
1d904fdd81
http_client: added comments to http header generation function
2019-11-05 09:53:29 +01:00
David Cermak
9c0844da3f
http_client: possible buffer overflow fixed when determining last header item to be written
...
closes IDF-694
2019-11-05 09:44:06 +01:00
KonstantinKondrashov
e8d3b80e4b
mbedtls: Add an UT for performance RSA key operations
...
(New) - Montgomery exponentiation: Z = X ^ Y mod M (HAC 14.94)
keysize = 2048 bits
RSA key operation (performance): public [21894 us], private [199119 us]
RSA key operation (performance): public [18768 us], private [189051 us]
RSA key operation (performance): public [16242 us], private [190821 us]
keysize = 3072 bits
RSA key operation (performance): public [39762 us], private [437480 us]
RSA key operation (performance): public [36550 us], private [449422 us]
RSA key operation (performance): public [40536 us], private [443451 us]
keysize = 4096 bits
RSA key operation (performance): public [65671 us], private [885215 us]
RSA key operation (performance): public [60770 us], private [880936 us]
RSA key operation (performance): public [68951 us], private [872027 us]
(Old) - Sliding-window exponentiation: Z = X ^ Y mod M (HAC 14.85)
keysize = 2048 bits
RSA key operation (performance): public [93206 us], private [280189 us]
RSA key operation (performance): public [93060 us], private [278893 us]
RSA key operation (performance): public [97520 us], private [283252 us]
keysize = 3072 bits
RSA key operation (performance): public [293614 us], private [858157 us]
RSA key operation (performance): public [289902 us], private [843701 us]
RSA key operation (performance): public [291495 us], private [845232 us]
keysize = 4096 bits
RSA key operation (performance): public [653192 us], private [1912126 us]
RSA key operation (performance): public [656661 us], private [1901792 us]
RSA key operation (performance): public [641390 us], private [1938911 us]
2019-11-05 16:33:11 +08:00
KonstantinKondrashov
5ed8388f6b
mbedtls: Add Montgomery exponentiation implementation (HAC 14.94)
...
It gave us a better performance of RSA operations. (2~11 times)
The old modexp implementation (Z = X ^ Y mod M) loaded all the data into
the hw registers and was waiting for completion, but due to
the hardware RSA implementation, the calculations always started with 4096 bit,
which took a lot of time.
Measurement results (measurements were made for keys: 2048, 3072 and 4096 bits)
(Old) - Sliding-window exponentiation (HAC 14.85):
keysize = 2048 bits
RSA key operation (performance): public [93206 us], private [280189 us]
keysize = 3072 bits
RSA key operation (performance): public [293614 us], private [858157 us]
keysize = 4096 bits
RSA key operation (performance): public [653192 us], private [1912126 us]
Instead (Old) - Sliding-window exponentiation (HAC 14.85) was implemented
(New) - Montgomery exponentiation (HAC 14.94) which showed
better performance on private and public keys.
keysize = 2048 bits
RSA key operation (performance): public [14504 us], private [149456 us]
keysize = 3072 bits
RSA key operation (performance): public [35073 us], private [392743 us]
keysize = 4096 bits
RSA key operation (performance): public [58650 us], private [787186 us]
For this reason, the old implementation was removed
and the MBEDTLS_HARDWARE_MPI option was turned on by default.
Why the MPI_INTERRUPT option is removed:
the old implementation used calculations on the hardware and
it took a lot of time (10ms - 500ms). And in order not to stand idle
while waiting for completion, an interrupt option was added.
This made it possible to carry out other tasks during the calculation,
and this one to block. The new method is free from such a drawback and
the maximum duration of one RSA HW operation does not exceed 70us (usually 2-70 μs).
This option is no longer needed.
Closes: IDF-965
2019-11-05 16:33:11 +08:00
Angus Gratton
03d07741fd
Merge branch 'bugfix/esp32s2beta_vfs_performance' into 'master'
...
VFS: Fix performance test for esp32s2beta
Closes IDF-1024
See merge request espressif/esp-idf!6549
2019-11-05 12:42:52 +08:00
Angus Gratton
302510cd80
Merge branch 'feature/add_env_tag_for_32khz_xtal_uts' into 'master'
...
soc(esp32&esp32s2beta): Add test_env for 32kHz XTAL unit tests
See merge request espressif/esp-idf!6555
2019-11-05 12:05:24 +08:00
Angus Gratton
ffdb57e04d
Merge branch 'bugfix/http_client_message_complete_callback_invocation' into 'master'
...
Fix issue in http client regarding `message_complete` callback invocation
Closes IDFGH-2040
See merge request espressif/esp-idf!6413
2019-11-05 12:02:10 +08:00
Chen Zheng Wei
b4a02c57c2
bugfix(i2s_bootloader_random_disable): fix bug about i2s bootloader_random_disable
...
bootloader_random_disable disables the ADC incorrectly, causing the ADC to sometimes fail to work. Fix this bug
closes https://github.com/espressif/esp-idf/issues/3973
2019-11-05 10:36:53 +08:00
Angus Gratton
8b48a8e72e
Merge branch 'feature/efuse_example' into 'master'
...
examples: Add an example efuse API usage and the group writing mode
Closes IDF-773
See merge request espressif/esp-idf!5810
2019-11-05 10:13:21 +08:00
Angus Gratton
13ff57f133
Merge branch 'feature/ipc_runs_with_caller_priority' into 'master'
...
esp_common: IPC works with the priority of the caller's task
Closes IDF-78
See merge request espressif/esp-idf!6191
2019-11-04 18:29:14 +08:00
Angus Gratton
f80004a74e
Merge branch 'feat/spi_flash_verify_encrypted_write' into 'master'
...
spi_flash: support to verify written encrypted data
Closes IDF-142
See merge request espressif/esp-idf!6467
2019-11-04 18:26:07 +08:00
Angus Gratton
c5ef1cae04
Merge branch 'feature/perfmon' into 'master'
...
Performance monitor component
See merge request espressif/esp-idf!4705
2019-11-04 18:25:14 +08:00
Angus Gratton
9ac55b5e55
Merge branch 'fix/ci_ut_psram_wroverb' into 'master'
...
ci: fix one ut issue when using Wrover-B module with newer ver of PSRAM
See merge request espressif/esp-idf!6553
2019-11-04 18:12:44 +08:00
Ivan Grokhotkov
71b73e61e1
mbedtls: Enable SHA hardware acceleration by default
2019-11-04 10:48:08 +01:00
Ivan Grokhotkov
589a1f216f
mbedtls: add SHA performance test
...
Results with this revision:
SHA256 rate 2.599MB/sec Debug 240MHz SW
SHA256 rate 1.147MB/sec Release 80MHz SW
SHA256 rate 3.469MB/sec Release 240MHz SW
SHA256 rate 2.687MB/sec Release 240MHz SW + PSRAM workaround
SHA256 rate 9.433MB/sec Debug 240MHz HW rev1
SHA256 rate 3.727MB/sec Release 80MHz HW rev1
SHA256 rate 10.961MB/sec Release 240MHz HW rev1
SHA256 rate 9.966MB/sec Release 240MHz HW rev1 + PRAM workaround
SHA256 rate 10.974MB/sec Debug 240MHz HW rev3
SHA256 rate 4.362MB/sec Release 80MHz HW rev3
SHA256 rate 13.207MB/sec Release 240MHz HW rev3
Debug = Og, assertions enabled
Release = O2, assertions disabled
2019-11-04 10:48:08 +01:00
Angus Gratton
49193beb6d
Merge branch 'bugfix/reenable_esp_event_tests' into 'master'
...
esp_event: reenable esp_event tests
See merge request espressif/esp-idf!6371
2019-11-04 15:07:34 +08:00
Angus Gratton
0e9c2cdc93
Merge branch 'bugfix/esp32s2beta_enable_protocol_examples' into 'master'
...
Bugfix/esp32s2beta enable protocol examples
Closes IDF-1027
See merge request espressif/esp-idf!6566
2019-11-04 14:46:57 +08:00
Mahavir Jain
4dcffdb0a9
esp_http_client: fix issue where http parser was not invoking message_complete
callback
...
https://github.com/espressif/esp-idf/issues/2625
https://github.com/espressif/esp-idf/issues/4209
2019-11-04 12:15:19 +05:30
Mahavir Jain
917a406c0a
Logging improvements in OTA example and component
2019-11-04 12:15:19 +05:30
Angus Gratton
b7c2c93ecc
Merge branch 'bugfix/wifi_internal_memory' into 'master'
...
wifi: Include DMA reserved pool when allocating internal-only memory
Closes WIFI-883
See merge request espressif/esp-idf!6545
2019-11-04 13:55:49 +08:00
Renz Christian Bagaporo
f356d54365
esp_event: revert changes in !5702
2019-11-03 16:19:30 +08:00
Michael (XIAO Xufeng)
748b79e94a
ci: fix one ut issue when using Wrover-B module with newer ver of PSRAM
...
The workaround for PSRAM that will occupy an SPI bus is enabled only when:
1. used on 32MBit ver 0 PSRAM.
2. work at 80MHz.
The test used to only check 32MBit by the config option, but for PSRAM
on Wrover-B module seems to use a newer version of 32MBit PSRAM. So it
expects the workaround to be enabled, but actually not.
This commit split the unit test into two parts:
1. check all SPI buses are available, for all configs except psram_hspi
and psram_vspi, run on regular runners (including Wrover and Wrover-B).
a hidden option is enabled so that the compiler knows it's not building
psram_hspi or psram_vspi.
2. check the specified bus are acquired, for config psram_hspi and
psram_vspi. This only run on special runner (legacy Wrover module).
2019-11-03 03:07:37 +00:00
liu zhifu
c9dfdc0566
esp_wifi: fix TKIP/CCMP replay attack detection algorithm
2019-11-02 14:49:21 +00:00
Ivan Grokhotkov
28b10e633d
Merge branch 'bugfix/esp32s2beta_uxTopUsedPriority' into 'master'
...
freertos: fix defining uxTopUsedPriority for esp32s2beta
See merge request espressif/esp-idf!6378
2019-11-01 18:51:00 +08:00