Ivan Grokhotkov
d135a017f4
Merge branch 'bugfix/ut_startup_time' into 'master'
...
By default, don't print test menu in unit-test-app
See merge request !1565
2017-11-21 12:12:46 +08:00
Angus Gratton
93c75b4978
Merge branch 'bugfix/update_BOD_voltages' into 'master'
...
esp32/Update brownout voltages
See merge request !1520
2017-11-21 05:37:55 +08:00
He Yin Ling
81f806e676
test: change initial condition of unit test:
...
now UT App will not print test menu by default. it will print a prompt
to indicate it's ready. we can check this prompt instead of delay.
2017-11-20 17:51:27 +08:00
Ivan Grokhotkov
024e4c4337
Merge branch 'feature/openssl_cn_hostname_verification' into 'master'
...
openssl: Add CN hostname verification
See merge request !1554
2017-11-20 15:59:15 +08:00
Ivan Grokhotkov
18f4696371
Merge branch 'bugfix/pthread_test_mem_leaks' into 'master'
...
pthread: Fixes memory leaks and stack overflow in tests
See merge request !1563
2017-11-20 15:58:53 +08:00
Ivan Grokhotkov
4b8f55aadf
Merge branch 'bugfix/minor_fixes_github' into 'master'
...
Minor fixes from github
See merge request !1555
2017-11-20 15:58:34 +08:00
Andy Green
ae1f1e9b84
openssl wrapper: introduce X509_VERIFY_PARAM_set/clear_hostflags
...
This defines the OpenSSL X509_CHECK_FLAG_...s and the set/clear
accessors. Since none of them are supported, the set / clear
accessor currently always does nothing and returns error.
This call is often part of the generic openssl user code to
set up certificate verification. This patch allows it to
compile for ESP32 and decide at runtime what to do about
unsupported flags.
Merges https://github.com/espressif/esp-idf/pull/980
2017-11-20 16:25:57 +11:00
Angus Gratton
4395f7c94e
Merge branch 'feature/spi_flash_lock_recursive' into 'master'
...
spi_flash: Expose recursive op_lock for atomic multi-part flash operations
See merge request !1556
2017-11-20 13:24:41 +08:00
Andy Green
effc6c6d0d
openssl wrapper: introduce X509_VERIFY_PARAM_set1_host
...
This lets the user code set the mbedtls hostname using the standard OpenSSL
X509_VERIFY_PARAM_set1_host() API semantics.
The API takes an X509_VERIFY_PARAM pointer. We use the fact that is
a composed member of the SSL struct to derive the SSL pointer.
The X509_VERIFY_PARAM_set1_host() is unusual in that it can accept a
NUL terminated C string as usual, or a nonterminated pointer + length.
This implementation converts the latter to the former if given, before
using it.
This is enough for user code to get the openssl wrapper to make
mbedtls confirm the CN on the peer cert belongs to the hostname used
to reach it, by doing, eg
X509_VERIFY_PARAM_set1_host(SSL_get0_param(myssl), myhostname, 0);
Merges https://github.com/espressif/esp-idf/pull/980
2017-11-20 16:24:06 +11:00
Andy Green
0f02a38262
openssl wrapper: introduce SSL_get0_param
...
This adds the standard OpenSSL api to get a pointer to the SSL struct's
X509_VERIFY_PARAM. We need this for the OpenSSL api to set the peer
hostname introduced in the next patch.
Part of https://github.com/espressif/esp-idf/pull/980
2017-11-20 16:23:18 +11:00
Angus Gratton
f54e99008d
spi: Add ESP_ERR_NO_MEM to spi_device_queue_trans() documentation
...
Ref https://github.com/espressif/esp-idf/pull/1243#issuecomment-343103414
2017-11-20 16:06:59 +11:00
Angus Gratton
7a924bd85a
spi_flash: Expose an accessor the current SPI flash guard functions
...
Change places which uses g_flash_guard_default_ops to use this. Probably exact same data, but a bit
cleaner.
2017-11-20 15:54:31 +11:00
Angus Gratton
e72e5a9706
spi_flash: Make spi_flash op_lock/op_unlock recursive
...
Allows chaining of multiple flash operations as an atomic operation.
2017-11-20 15:54:31 +11:00
Darian Leung
91ccf588d1
esp32/Update brownout voltages
...
This commit updates the voltages of each brownout level in Kconfig.
Note that there is some variation of brownout voltage between each chip.
2017-11-20 12:26:13 +08:00
Ivan Grokhotkov
1fbd3ffac8
Merge branch 'feature/fatfs_r013a' into 'master'
...
fatfs: update to R0.13a
See merge request !1524
2017-11-20 10:16:39 +08:00
Ivan Grokhotkov
148130066f
Merge branch 'feature/esp32_stack_protector' into 'master'
...
esp32: Adds Stack Smashing Protection Feature
See merge request !1537
2017-11-20 10:16:15 +08:00
Alexey Gerenkov
7ce945a9de
pthread: Fixes memory leaks and stack overflow in tests
...
Also this commit replaces FreeRTOS list used for pthread internals
with simple one from rom/queue.h
2017-11-17 16:57:33 +03:00
Alexey Gerenkov
692a890232
esp32: Adds Stack Smashing Protection Feature
...
These changes add posibility to enable GCC stack protector via menuconfig
for all source files in project.
2017-11-17 12:08:36 +03:00
michael
02573a8dc9
fix(spi_master): release temporary memory when queue new trans timeout.
2017-11-17 12:15:19 +08:00
michael
13d38f10ee
test(spi): internal connection test master with slave for address and command field.
2017-11-17 12:15:19 +08:00
michael
57e1d47ad7
fix(spi_master): fix the CS pin issue with GPIO 0.
...
Closes #909
2017-11-17 12:15:19 +08:00
michael
842292523f
fix(spi_slave): add interrupt free into bus free process.
2017-11-17 12:14:40 +08:00
Raphael Luba
31711b5ac7
SPI: Document TIMEOUT return values
...
`spi_device_queue_trans` and `spi_device_get_trans_result` can return `ESP_ERR_TIMEOUT` – but this had not been documented.
Merges https://github.com/espressif/esp-idf/pull/1243
2017-11-17 10:50:54 +11:00
Krzysztof Bociurko
4da90f09e7
freertos: minor issue in documentation snippet of queue.
...
taskYIELD was used in ISR context, but portYIELD_FROM_ISR should instead.
Merges https://github.com/espressif/esp-idf/pull/1187
2017-11-17 10:44:19 +11:00
Ivan Grokhotkov
7e8c2a9c00
Merge branch 'bugfix/newlib_strptime' into 'master'
...
newlib: Add strptime(), qsort_r(), nanf() to libc & libc_nano
See merge request !1547
2017-11-16 17:40:27 +08:00
Jiang Jiang Jian
c03d12b9e5
Merge branch 'bugfix/btdm_delete_gattc_cache_write' into 'master'
...
component/bt: delete gattc cache write operation
See merge request !1543
2017-11-16 17:39:22 +08:00
Jiang Jiang Jian
af367452b0
Merge branch 'bugfix/rebind_pcb_when_ip_changed' into 'master'
...
lwip: rebind UDP/TCP pcb to valid ip address when ip is changed
See merge request !1535
2017-11-16 17:28:06 +08:00
Jiang Jiang Jian
88e1a374a0
Merge branch 'bugfix/fix_airkiss_macro_typo' into 'master'
...
Fix an airkiss macro error
See merge request !1532
2017-11-16 17:25:45 +08:00
island
7bd8133639
component/bt: delete api bta_gattc_cache_write
2017-11-16 16:40:18 +08:00
Angus Gratton
7d20e4e422
newlib: Remove out of date libc_discard.list
2017-11-16 17:43:05 +11:00
Angus Gratton
239ac0e17b
newlib: Add strptime(), qsort_r(), nanf() to libc & libc_nano
...
These functions were discarded but not provided in ROM.
Generated from commit 8ad0aa7d6 in newlib script repo. Didn't rebuild most of libc/libc_nano,
only appended the missing object files to the existing archives (should save some git churn).
2017-11-16 17:35:18 +11:00
Jiang Jiang Jian
2d148cd34b
Merge branch 'bugfix/heap_region_add' into 'master'
...
component/heap : fix heap_region_add check bug
See merge request !1523
2017-11-16 13:45:10 +08:00
island
5789a8a6e9
component/bt: delete gattc cache write operation
2017-11-16 11:18:17 +08:00
Tian Hao
e7a9ddcf72
component/heap : fix heap_region_add check bug
2017-11-16 11:10:13 +08:00
XiaXiaotian
eef595501c
Fix an airkiss macro error
2017-11-15 21:44:12 +08:00
Liu Zhi Fu
095d163050
lwip: rebind UDP/TCP pcb to valid ip address when ip is changed
...
This change fix the issue UDP/TCP pcb failed to rebind to correct ip address when ip is changed
2017-11-15 16:15:24 +08:00
Angus Gratton
b83792f504
Merge branch 'doc/esp_wifi_types' into 'master'
...
docs: Add esp_wifi_types.h items to wifi API reference
See merge request !1320
2017-11-15 15:03:02 +08:00
Ivan Grokhotkov
da141a2c7e
Merge branch 'bugfix/touch_pad_register_mismatch' into 'master'
...
Bugfix/touch pad register mismatch
See merge request !1469
2017-11-15 14:52:13 +08:00
Ivan Grokhotkov
c6d25dd9cc
Merge branch 'features/http2_demo' into 'master'
...
HTTP2 Client Demo
See merge request !1475
2017-11-15 14:51:51 +08:00
Ivan Grokhotkov
fac2e78bfe
Merge branch 'bugfix/emac_rx_process' into 'master'
...
component/emac: fix process rx err
See merge request !1529
2017-11-15 14:51:33 +08:00
Ivan Grokhotkov
a4f9dfc6a4
Merge branch 'bugfix/queue_registry_test' into 'master'
...
unit tests: fix queue registry test
See merge request !1528
2017-11-15 14:51:18 +08:00
Angus Gratton
c40dc36814
docs: Remove internal header esp_wifi_crypto_types.h from documentation
2017-11-15 17:40:38 +11:00
Angus Gratton
beba74ff61
docs: Add esp_wifi_types.h descriptions
2017-11-15 17:40:38 +11:00
shangke
d46dcaf9e5
component/emac: fix process rx err
2017-11-15 11:04:32 +08:00
Jiang Jiang Jian
ec9d93f4fc
Merge branch 'bugfix/btdm_gattc_command_queue_fix' into 'master'
...
Bugfix/btdm gattc command queue fix
See merge request !1317
2017-11-15 10:54:02 +08:00
Jiang Jiang Jian
957b97720a
Merge branch 'bugfix/update_wifi_lib_for_some_fixes' into 'master'
...
esp32: update wifi lib to fix some wifi bugs
See merge request !1525
2017-11-15 10:12:39 +08:00
Ivan Grokhotkov
8b56345e44
unit tests: fix queue registry test
...
In the queue registry test, start_sem is given twice to let both tasks
start the test. Each task takes start_sem, does some work, gives done_sem,
and goes on to wait for start_sem again.
It may happen that one task can grab start_sem, add queues to the
registry, give done_sem, then grab start_sem again, delete the queues
from the registry, and give done_sem again. At this point, main test
task takes done_sem twice and proceeds to verify that queues have been
added to the registry. But in fact, the first task has already deleted
its queues from the registry, and the second one might not have added
the queues yet. This causes test to fail.
This changes the test to use separate start semaphores for each task,
to avoid the race condition.
2017-11-14 23:53:08 +08:00
Jiang Jiang Jian
41272c5b94
Merge branch 'bugfix/btdm_modify_logs' into 'master'
...
component/bt: modify some log
See merge request !1485
2017-11-14 21:13:00 +08:00
Jiang Jiang Jian
a2194ec665
Merge branch 'bugfix/btdm_remove_redundant_open_evt_for_same_app' into 'master'
...
component/bt: remove redundant open evt while calling gattc_open twice in the same app_id
See merge request !1526
2017-11-14 21:12:05 +08:00
Jiang Jiang Jian
ef2c370a30
Merge branch 'bugfix/btdm_no_ind_ack_for_server_only' into 'master'
...
component/bt: fix not send indication confirm in case of server only
See merge request !1522
2017-11-14 21:09:26 +08:00