Angus Gratton
4332a2c4bc
Merge branch 'bugfix/cxx-exceptions-missing-stubs' into 'master'
...
cxx_exceptions: Add missing stubs for cxx exceptions with exceptions disabled
See merge request !1574
2017-11-22 09:26:24 +08:00
Angus Gratton
a556e1c782
heap: Add C++ header guards to heap headers
...
Closes https://github.com/espressif/esp-idf/issues/1195
2017-11-22 10:08:50 +11:00
Adrián Paníček
0b48d5978e
ringbuf.h: Add anti name-mangling definition
...
When using CPP and C combination this particular file threw error on linking.
Merges https://github.com/espressif/esp-idf/pull/1249
(Amended to add INC_FREERTOS_H guard, comment on #endif)
2017-11-22 10:08:15 +11:00
krzychb
2ec35f60ca
RMT API docs update, new example
2017-11-21 22:34:23 +01:00
Ivan Grokhotkov
c03b068931
spiffs: make OBJ_META_LEN configurable, make mtime support optional
...
- SPIFFS_OBJ_META_LEN can be set in sdkconfig
- mtime support can be enabled in sdkconfig, if META_LENGTH is sufficient
- add test for mtime updates
2017-11-22 00:17:11 +08:00
luc lebosse
58f046715e
Unify the time file creation for SPIFFS and SD
2017-11-21 22:51:36 +08:00
Piyush Shah
4f33339c1d
test_ringbuf: Add tests for arbitrary length ring buffer
...
This will test the ring buffer for buffer length that is not
a multiple of 4
Signed-off-by: Piyush Shah <piyush@espressif.com>
2017-11-21 17:18:54 +05:30
Piyush Shah
7dd9c4f57f
ringbuf: Fixes to header files for better understanding
...
1. Usage of this module required applications to include additional
files. What files to include is not very intuitive. Instead, it is
better for the header file itself to include other files as required.
2. Even though it may seem logical, it is better to explicitly mention
that an item needs to be "Returned" after a Receive
Signed-off-by: Piyush Shah <piyush@espressif.com>
2017-11-21 17:16:04 +05:30
Piyush Shah
62f44e45df
ringbuf: Bugfixes for managing arbitrary sizes of ring buffer
...
It was observed that if the ring buffer size provided by application
is not a multiple of 4, some checks were failing (as read_ptr and write_ptr
could shoot beyond the ring buffer boundary), thereby causing asserts.
Simply wrapping around the pointers for such cases fixes the issue.
Moreover, because of the logic for maintaining 4-byte boundary,
it was also possible that a wrap-around occurred for some data,
even when the actual size remaining was sufficient for it.
Eg. Buffer available: 34, data size: 34, 4-byte aligned size: 36
Since the logic compares against 36, it writes 34 bytes and does a
wraparound. But since all 34 bytes are already written, there is
nothing to write after wrapping. It is better to just re-set the
write pointer to the dtart of ring buffer in such cases.
Tested send/receive for various arbitrary sizes of data and for
arbitrary sizes of ring buffer.
Alternative Solutions:
1) Allow only sizes which are multiples of 4, and return error otherwise.
Appropriate code and documentation change would be required
2) Allow arbitrary sizes, but internally add upto 3 bytes to make
the total size a multiple of 4
Signed-off-by: Piyush Shah <piyush@espressif.com>
2017-11-21 17:15:53 +05:30
Ivan Grokhotkov
6e1453e864
Merge branch 'feature/bot' into 'master'
...
CI: support customize test with @bot
See merge request !1502
2017-11-21 18:43:56 +08:00
Amey Inamdar
78ed138453
cxx_exceptions: Add missing stubs for cxx exceptions with exceptions
...
disabled
The misssing stubs get pulled in from the toolchain's libstdc++ also
causing to pull in defined stubs. This results in redefinition of
symbols. Fixing it by simply adding the missing stubs when exceptions
are disabled.
Signed-off-by: Amey Inamdar <amey.inamdar@gmail.com>
2017-11-21 12:41:49 +05:30
Ivan Grokhotkov
46673bb6f1
Merge branch 'bugfix/rtc_apll_disable' into 'master'
...
soc/rtc: don't power down BIAS_I2C along with APLL if other PLL is used
See merge request !1568
2017-11-21 12:13:07 +08:00
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
Yulong
729e0c2544
component/bt: Correct the SP_BLE_PWR_TYPE_CONN_HDL0-9 comment in the bt.h file to ESP_BLE_PWR_TYPE_CONN_HDL0-8
2017-11-20 08:05:35 -05: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
Ivan Grokhotkov
3369f15fa3
soc/rtc: don't power down BIAS_I2C along with APLL if other PLL is used
...
If enable == false, and SOC_CLK_SEL == PLL, the code would would
erroneously set RTC_CNTL_BIAS_I2C_FORCE_PD. This change fixes the logic.
2017-11-20 15:27:16 +08:00
zhangyanjiao
9fbcc6f922
In STA mode, tcp_send cannot catch err after disconnect station
2017-11-20 15:19:19 +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
He Yin Ling
0c40b2ec9d
test: collect performance for esp-timer / spinlock
2017-11-16 17:48:48 +08:00
He Yin Ling
9395a702ef
test: check and collect performance via CI
2017-11-16 17:48:30 +08: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
krzychb
d488bb7bac
Provided more meaningful parameter names by renaming 'bit_num' to 'duty_resolution' and 'div_num' to 'clock_divider'
2017-11-15 08:08:12 +01: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
Mahavir Jain
b37e5d64b8
freertos: port: add check for portMUX address validity
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2017-11-15 11:16:45 +05:30
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
Liu Zhi Fu
3554d190ff
esp32: update wifi lib to fix some wifi bugs
...
1. Fix resend eapol cause crash issue
2. Don't asser the system when the channel is in 14
2017-11-14 20:45:33 +08:00
Jiang Jiang Jian
9e90baf5a0
Merge branch 'bugfix/tw15564_fix_socket_close_crash' into 'master'
...
Bugfix/tw15564 fix socket close crash
See merge request !1496
2017-11-14 20:40:39 +08:00
Yulong
b07a5f03cf
component/bt: Change the gattc prepare write callback params.
2017-11-14 07:00:45 -05:00
Wangjialin
7200b2cc11
bugfix(touch): registers of touchpad 8 and 9 are mismatched
...
1. All the registers of touch sensor 8 and 9 are mismatched except the ‘dac’ field in touch register of RTC IO
2. To swap the index for sensor 8 and 9 in APIs.
2017-11-14 18:47:56 +08:00
island
2a4af8b83c
component/bt: remove redundant open evt while calling gattc_open twice in the same app_id
2017-11-14 17:11:34 +08:00
Darian Leung
d1853dbbc0
FreeRTOS/make Queue Registry and Run Time Stats configurable
...
This commit makes the configQUEUE_REGISTRY_SIZE and
configGENERATE_RUN_TIME_STATS configurable in menuconfig.
- configQUEUE_REGISTRY_SIZE can now be set in menuconfig.
- The functions vQueueAddToRegistry() and vQueueUnregisterQueue() were made
SMP compatbile
- pcQueueGetName() was backported from FreeRTOS v9.0.0
- Added test case for Queue Registry functions
- configGENERATE_RUN_TIME_STATS can now be enabled in menuconfig. CCOUNT or
esp_timer can be selected as the FreeRTOS run time clock in menuconfig as
well, although CCOUNT will overflow quickly.
- Run time stats collection (in vTaskSwitchContext) and generation (in
uxTaskGetSystemState) have been made SMP compatible. Therefore
vTaskGetRunTimeStats() now displays the run time usage of each task as a
percentage of total runtime of both CPUs
Squash
2017-11-14 15:50:31 +08:00
Ivan Grokhotkov
8e180f6155
fatfs: update to R0.13a
...
- Remove ASCII-only configuration, CP437 is used instead
- Add dynamic code page configuration
See components/fatfs/src/00history.txt for FATFS changelog.
2017-11-14 12:57:55 +08:00
Yulong
1d13b58c62
component/bt: Added the queue event when the gattc command is full.
2017-11-13 22:44:27 -05:00
island
38b287593c
component/bt: fix not send indication confirm in case of server only
2017-11-14 11:43:57 +08:00
Ivan Grokhotkov
09d2791cfd
Merge branch 'feature/spi_variable_len' into 'master'
...
feat(spi_master): add new feature allow use variable command and address field length for the same device.
See merge request !1322
2017-11-14 00:08:50 +08:00
Ivan Grokhotkov
31d0c8eec5
Merge branch 'feature/emac_apll' into 'master'
...
feat(emac): add support for emac to use internal (APLL) clock outputs.
See merge request !1518
2017-11-14 00:07:35 +08:00
Ivan Grokhotkov
5404252e80
Merge branch 'bugfix/uart_fifo_bug_workaround' into 'master'
...
bugfix(uart): workaround for uart fifo reset issue
See merge request !1499
2017-11-13 17:46:42 +08:00
Wangjialin
4052803e16
bugfix(uart): workaround for uart fifo reset issue
...
Reported from github:
https://github.com/espressif/esp-idf/issues/1219
https://github.com/espressif/esp-idf/issues/1202
After providing a simple code to digital team, they confirmed that this is a hardware bug.
Root cause:
The fifo reset signal is incorrectly connected
If we want to reset tx fifo of UART2, we have to set txfifo_rst bit of both UART1 and UART2
If we want to reset rx fifo of UART2, we have to set rxfifo_rst bit of both UART1 and UART2
Workaround:
we don't use fifo rst bit in driver.
Documentation:
Digital team would update TRM and give more explanation about this issue.
2017-11-13 15:23:00 +08:00
Yulong
2be5e73090
rebase the origin to the local
2017-11-13 02:20:02 -05:00
Yulong
8352eb6fa2
component/bt: Added the prepare write check.
2017-11-13 02:12:33 -05:00
Frank Sautter
f324458b6a
feat(emac): add support for emac to use internal (APLL) clock outputs.
2017-11-13 14:18:58 +08:00
Liu Zhi Fu
48ca949fd4
lwip: fix socket close crash issue
...
When lwip_close free the socket resource (netconn etc), any work
related to these resource (netconn etc) must be aborted.
2017-11-13 06:00:52 +00:00
He Yin Ling
e64b9ecaf4
Merge branch 'bugfix/ut_only_test_app_core_sleep_on_dual_core' into 'master'
...
test: only test app core sleep on dual core
See merge request !1517
2017-11-13 13:35:07 +08:00
Jiang Jiang Jian
004c391591
Merge branch 'feature/adjust_task_stack_size_according_to_nano' into 'master'
...
esp32/lwip: adjust task stack size according 'nano' print
See merge request !1510
2017-11-13 11:18:20 +08:00
Angus Gratton
36692dbac7
docs: Add esp_wifi_types.h items to wifi API reference
...
Previously only items defined esp_wifi.h in esp_wifi_crypto_types.h
were including in documentation reference.
2017-11-10 11:00:44 -08:00
Angus Gratton
bd9c5d9adc
Merge branch 'feature/fatfs_kconfig_options' into 'master'
...
fatfs: expose some configuration values in Kconfig
See merge request !1415
2017-11-11 02:48:15 +08:00
Angus Gratton
4468825028
Merge branch 'bugfix/TW#16106_esp_heap_trace.h_C++_include_guards' into 'master'
...
freertos/add C++ include guards for esp_heap_caps.h
See merge request !1516
2017-11-11 02:47:10 +08:00
He Yin Ling
be405d69d8
test: ut only test app core reset on dual core
2017-11-10 17:53:59 +08:00
Jiang Jiang Jian
e24ea6207b
Merge branch 'bugfix/btdm_osi_alarm' into 'master'
...
component/bt: use esp_timer instead of FreeRTOS timer to implement osi_alarm in bluedroid
See merge request !1506
2017-11-10 15:34:11 +08:00
Jiang Jiang Jian
b8694eeeb9
Merge branch 'bugfix/tw16339_sta_cant_connect_ap_in_channel_14' into 'master'
...
Bugfix/tw16339 sta cant connect ap in channel 14
See merge request !1514
2017-11-10 15:31:19 +08:00
He Yin Ling
b1d13ded1a
test: only test app core sleep on dual core
2017-11-10 13:26:11 +08:00
Darian Leung
fff482acd9
freertos/add C++ include guards for esp_heap_caps.h
2017-11-10 12:01:30 +08:00
wangmengyang
53273172fe
component/bt: modify the implementation and interface of osi_alarm module
...
1. use esp_timer instead of FreeRTOS timer to implement osi_alarm in bluedroid
2. Remove two APIs: osi_alarm_now() and osi_alarm_time_diff() and modify the hci layer logic that use them
3. Implement osi_alarm_get_remaining_ms()
4. Move the definition of struct alarm_t in source file "alarm.c"
5. Add definition of module error code
2017-11-10 11:53:55 +08:00
Ivan Grokhotkov
7632c6a80c
Merge branch 'test/UT_reset_check' into 'master'
...
Test/ut reset check
See merge request !1086
2017-11-10 11:30:46 +08:00
Ivan Grokhotkov
3eedf3ed18
Merge branch 'bugfix/to_docs_from_github' into 'master'
...
Documentation bugfixes from the github
See merge request !1501
2017-11-10 11:13:25 +08:00
Ivan Grokhotkov
d1f6030921
Merge branch 'bugfix/from_github' into 'master'
...
Bug fixes from Github
See merge request !1487
2017-11-10 11:13:04 +08:00
Ivan Grokhotkov
cfe1f4724c
Merge branch 'bugfix/cas_for_pthread_once' into 'master'
...
pthread: Fix pthread_once to use atomic compare and set
See merge request !1497
2017-11-10 11:12:46 +08:00
Liu Zhi Fu
2041ba9add
esp32: fix station can't connect esp32 softap in channel 14
...
Channel 14 only supports HT20 while ESP32 softap channel 14 is HT40, fix it.
2017-11-10 10:55:08 +08:00
Ivan Grokhotkov
8e04b86153
Merge branch 'bugfix/tg_wdt_reboot_uart_garbage' into 'master'
...
bootloader: wait for UART FIFO to be empty before switching frequency
See merge request !1511
2017-11-09 17:14:13 +08:00
Yulong
ee43527108
compoent/bt: Modify bta_gattc_utils.c The value pointer copy is overwritten when a write event occurs.
2017-11-09 14:47:11 +08:00
Yulong
e6b2c19eea
component/bt: Fix the write value not store in the queue command bug.
2017-11-09 14:47:11 +08:00
Yulong
68833fe94c
component/bt: Change the bta_gattc_pop_command_to_send function to static.
2017-11-09 14:47:11 +08:00
Yulong
0ae5320f50
component/bt: Added the gattc command queue support.
2017-11-09 14:47:11 +08:00
Yulong
7a27e3c74d
component/bt: added the queue to store the gattc commands.
2017-11-09 14:47:11 +08:00
Yulong
1ceef12238
compoent/bt: Modify bta_gattc_utils.c The value pointer copy is overwritten when a write event occurs.
2017-11-09 01:44:16 -05:00
Ivan Grokhotkov
afa9a85396
bootloader: wait for UART FIFO to be empty before switching frequency
2017-11-09 13:17:58 +08:00
Anton Maklakov
bb4838314c
doc: Add internal links for chapters and fix typos
...
Used 'git grep -i -E "see *\`[^\`]+\`[^_]"' to find the invalid links
2017-11-09 11:45:13 +08:00
Liu Zhi Fu
710055025e
esp32/lwip: adjust task stack size according 'nano' print
...
1. Adjust tcpip/main/event/timer task stack size according 'nano' print
2. If 'nano' print is disabled the task stack size reduces 512 bytes
2017-11-09 10:09:42 +08:00
Ivan Grokhotkov
f22c681c1c
soc/rtc: raise core voltage when 80MHz flash frequency is used
...
To achieve reliable operation with GD flash at 80MHz, need to raise
core voltage.
This causes the following current consumption increase:
At 80MHz: from 29mA to 33mA
At 160MHz: from 41mA to 47mA
Test conditions: 2 cores running code from IRAM, remaining peripherals
clock gated.
2017-11-08 21:13:02 +08:00
Jiang Jiang Jian
793ea56204
Merge branch 'bugfix/fail_to_scan_all_matched_ap' into 'master'
...
Wifi: bugfix/fail_to_scan_all_matched_ap
See merge request !1493
2017-11-08 17:39:29 +08:00
Yulong
8ca40818eb
component/bt: Fix the write value not store in the queue command bug.
2017-11-08 04:23:12 -05:00
Anton Maklakov
27c1fc52ba
Added .command_timeout_ms = 0 to SDSPI_HOST_DEFAULT() too
2017-11-08 12:52:50 +08:00
Seppe Stas
a106dc183d
Clean up documentation of esp_wifi_set_country
...
Signed-off-by: krzychb
2017-11-07 20:26:22 +01:00
Jiang Jiang Jian
dfe4e68cc3
Merge branch 'bugfix/btdm_lib_update_for_psram' into 'master'
...
component/bt: update toolchain and add compile options to build libbtdm_app.a to support PSRAM
See merge request !1491
2017-11-07 20:01:14 +08:00
Ivan Grokhotkov
5f9ac5fadb
Merge branch 'doc/freertos_port_comments' into 'master'
...
freertos: Update comments in "port" section (portMUX/etc)
See merge request !1431
2017-11-07 19:31:21 +08:00
Ivan Grokhotkov
744896bde2
Merge branch 'bugfix/hardware_mpi_sign' into 'master'
...
hwcrypto mpi: Fix losing sign when multiplying by -1 (github PR)
Contribution from github: https://github.com/espressif/esp-idf/pull/1181/
See merge request !1471
2017-11-07 19:30:31 +08:00
Mahavir Jain
158ecdcfd5
pthread: Fix pthread_once to use atomic compare and set
...
Earlier recursive mutex was being used for this but since
SCOMPARE1 is already being saved/restored during context
switch, atomic compare and set can be used for this.
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2017-11-07 14:28:43 +05:30
wangmengyang
016a49f8e3
component/bt: update toolchain and add compile options to build libbtdm_app.a to support PSRAM
2017-11-07 16:08:47 +08:00
houchenyao
f80824a2d8
test: support test for UT cases expect to reset
2017-11-07 12:19:39 +08:00
Ivan Grokhotkov
1613044aef
Merge branch 'bugfix/restart_reconfigure_flash_pins' into 'master'
...
esp32: reconfigure SPI flash pins in esp_restart
See merge request !1492
2017-11-07 12:08:52 +08:00
Ivan Grokhotkov
a45e9c806d
Merge branch 'bugfix/new_task_watchdog_API_false_trigger' into 'master'
...
feat/New Task Watchdog API
See merge request !1380
2017-11-07 10:43:56 +08:00
Deng Xin
092e99c05d
Wifi: bugfix/fail_to_scan_all_matched_ap
...
fail to scan all matched ap in fast scan mode
2017-11-06 21:31:45 +08:00
Ivan Grokhotkov
5f6be9b4ce
esp32: reconfigure SPI flash pins in esp_restart
2017-11-06 16:44:26 +08:00
Darian Leung
637ba2e8bb
freertos: Test untested functions
...
Test cases were added for the following functions
- xTaskNotify(), xTaskNotifyGive(), xTaskNotifyFromISR(), vTaskNotifyGiveFromISR(),
- xTaskNotifyWait(), ulTaskNotifyTake()
- vTaskDelayUntil()
The following function was made smp compatible and tested as well
- eTaskGetState()
2017-11-06 15:31:01 +08:00
Angus Gratton
2c72223a4e
Merge branch 'bugfix/protect_spiflash_regions' into 'master'
...
spi_flash: Abort on writes to dangerous regions (bootloader, partition table, app)
See merge request !1452
2017-11-04 12:40:21 +08:00
Angus Gratton
670733df9f
spi_flash: Abort on writes to dangerous regions (bootloader, partition table, app)
...
Can be disabled or made into a failure result in kconfig if needed.
2017-11-03 15:52:27 -07:00
Jiang Jiang Jian
abacf8d2a0
Merge branch 'bugfix/rtc_and_restart_fixes' into 'master'
...
rtc_clk and esp_restart fixes
See merge request !1458
2017-11-04 01:34:38 +08:00
Liu Zhi Fu
13621852dd
esp32: add wifi lib which is compiled with psram gcc
...
Add psram wifi lib because it doesn't impact the WiFi throughput once the psram is not enabled in IDF menuconfig
2017-11-03 23:02:35 +08:00
Frederik Merz
20ccec1061
Disable all UART CLKs that are not console
2017-11-03 19:03:00 +08:00
Philip Ashmore
d72bef02e9
Added .command_timeout_ms = 0 to SDMMC_HOST_DEFAULT() in components/driver/include/driver/sdmmc_host.h
2017-11-03 17:15:44 +08:00
Siarhei Volkau
6e24566186
components/mdns: wrong Message compression detect
...
Old behavior assumes message compressed when any of 2 most significant bits are set,
But in fact Message compressed only when both those bits are set to 1.
Also maximal label length should be 63 bytes.
2017-11-03 16:52:22 +08:00
jeanleflambeur
8712fd3ccf
Update esp_err.h
...
Renamed the internal rc to __err_rc to avoid clashes with local variables.
This code would not do the expected thing with the original ESP_ERROR_CHECK macro:
esp_err_t my_func(esp_err_t x)
{
assert(x == 23);
}
esp_err_t rc = 23; //some value that is important fo the user
ESP_ERROR_CHECK(my_func(rc));
The macro will expand to:
esp_err_t rc = (my_func(rc));
And the code will assert, as my_func will receive a random value - whatever is in the internal macro rc temp variable. This is due to the C weirdness of allowing this code:
int x = x; //x has a random value.
2017-11-03 16:45:28 +08:00
Dmitry4Bh
a0cedb1f44
Fix type conversion error in components/lwip/api/pppapi.c
...
Pointer tcpip_api_call *m should be converted to pppapi_msg* instead of pppapi_msg_msg*
in pppapi_do_ppp_set_default(), pppapi_do_ppp_free() and so on.
It solve this issue https://github.com/espressif/esp-idf/pull/1028
so there is no need to patch ip4.c because now netif_defauilt is setted correctly.
Also it prevents memory corruption when pppapi_free() is called.
2017-11-03 16:42:56 +08:00
Tom Vijlbrief
58b411a5fe
fix makefile for multiple source files
2017-11-03 16:40:15 +08:00
Wangjialin
cea7dfbe90
psram: improve clock signal generation, increase drive strength
...
Also check the chip type when initializing.
2017-11-03 16:30:10 +08:00
Wangjialin
d034bc9ca0
bootloader: add configuration of flash pins and VDDIO boost
2017-11-03 16:29:56 +08:00
Ivan Grokhotkov
a02b30ccda
efuse: add package definitions for PICOD2/D4
2017-11-03 15:49:10 +08:00
Ivan Grokhotkov
fb9c106bcb
soc/rtc: add function to get/set VDDSDIO configuration
...
Also consider case of VDDSDIO force powered on in rtc_sleep.
2017-11-03 15:49:09 +08:00
Ivan Grokhotkov
5a294c9acd
soc/gpio: fix description of GPIO_STRAP_REG
2017-11-03 15:49:09 +08:00
Jiang Jiang Jian
b13cd4adf8
Merge branch 'feature/btdm_add_value_callback_when_send_notification_or_indicate_failed' into 'master'
...
component/bt: add value callback when send notification or indicate failed
See merge request !1457
2017-11-03 10:05:29 +08:00
zhiweijian
9a96187655
Component/bt: modify some log
2017-11-02 19:45:13 +08:00
Ivan Grokhotkov
80eb3b6ddb
Merge branch 'bugfix/light_sleep_current' into 'master'
...
soc/rtc: fix increased current consumption in light sleep
See merge request !1483
2017-11-02 18:26:23 +08:00
Darian Leung
9d63e1da4a
New Task Watchdog API (Revert of Revert)
...
This commit reverts the revert on the new task watchdog API. It also
fixes the following bug which caused the reversion.
- sdkconfig TASK_WDT_TIMEOUT_S has been reverted from the unit of ms back to the
unit of seconds. Fixes bug where projects using the new API without rebuilding sdkconfig
would cause the old default value of 5 to be interpreted in ms.
This commit also adds the following features to the task watchdog
- Updated idle hook registration to be compatible with dual core hooks
- Updated dual core hooks to support deregistration for cpu
- Legacy mode has been removed and esp_task_wdt_feed() is now replaced by
esp_task_wdt_reset(). esp_task_wdt_feed() is deprecated
- Idle hooks to reset are now registered/deregistered when the idle tasks are
added/deleted from the Task Watchdog instead of at Task Watchdog init/deinit
- Updated example
2017-11-02 16:47:51 +08:00
XiaXiaotian
27b52dfd18
fix some phy bugs
...
1. V366, fix a problem which initialize current can reach 800mA.
2. V365, fix a problem for pll_cap tracking in Coexist (BT & WIFI)
mode. The problem will make Coexist (BT & WIFI) WIFI AP mode TX
Fail in high temperature(>70).
3. V364, fix a bug of BT and Wifi coexist (hung in function of
force_wifi_mode())
2017-11-02 15:53:17 +08:00
Jiang Jiang Jian
1de3fc4a2c
Merge branch 'bugfix/btdm_master_dont_send_pair_req_#13686' into 'master'
...
component/bt: Fix the bug of master don't send pair request to the slave when the sec_act set to the value of ESP_BLE_SEC_ENCRYPT.
See merge request !1376
2017-11-02 15:49:27 +08:00
XiaXiaotian
42cefc173f
refractor WiFi clock setting
...
Do not set WiFi clock in PHY initializing function, move it to WiFi
start/stop function.
2017-11-02 15:24:21 +08:00
wangmengyang
bd6394db92
component/bt: clean up WIFI_CLK_EN_REG settings for Bluetooth
...
1. move settings of WIFI_CLK_EN_REG for bluetooth into controller init/deinit APIs
2. modify the bit mask used in phy_rf init/deinit to use WIFI-BT shared bits
2017-11-02 15:24:21 +08:00
Jiang Jiang Jian
da178e446d
Merge branch 'feature/increase_dynamic_tx_buffer_number' into 'master'
...
Feature/increase dynamic tx buffer number
See merge request !1473
2017-11-02 15:09:37 +08:00
Ivan Grokhotkov
9bfb45aa1d
soc/rtc: fix increased current consumption in light sleep
...
This fixes a configuration issue of RTC, which caused light sleep current
to be 1.35mA instead of 0.85mA.
2017-11-02 13:57:26 +08:00
zhiweijian
e7020460c6
Component/bt: add value callback when send notification or indicate failed
2017-11-01 11:00:08 +08:00
zhiweijian
481e436587
Component/bt: modify close event and disconnection event params
...
- modify close event params
- modify disconnection event params
- modify connect event params
2017-11-01 10:40:03 +08:00
Kedar Sovani
b65f47c586
[openssl] Add support for SNI (sending the hostname)
2017-10-31 16:57:38 +05:30
Kedar Sovani
3420baa01b
[openssl] Add support for defining ALPN protocols
2017-10-31 16:57:38 +05:30
XiaXiaotian
50b6912bf8
Increase maximum number of WiFi dynamic transmitting buffer
2017-10-31 15:18:20 +08:00
XiaXiaotian
87d3986b87
Fix the return value of esp_now_send()
2017-10-31 15:18:20 +08:00
Jiang Jiang Jian
19aa3c72e9
Merge branch 'bugfix/wrong_ap_info_in_all_channel_scan' into 'master'
...
Wifi: bugfix of get wrong ap information in all channel scan
See merge request !1470
2017-10-31 15:15:07 +08:00
Jiang Jiang Jian
939b46596f
Merge branch 'bugfix/btdm_unable_use_esp_ble_gatts_get_attr_value_after_long_write' into 'master'
...
component/bt: Fix the bug cann't use esp_ble_gatts_get_attr_value to get the att…
See merge request !1381
2017-10-31 14:45:17 +08:00
Jiang Jiang Jian
07f92f0bd1
Merge branch 'bugfix/btdm_smp_decide_association_model' into 'master'
...
component/bt: Fix bug of function smp_decide_association_model
See merge request !1377
2017-10-31 14:34:41 +08:00
Jiang Jiang Jian
c4bb378e4c
Merge branch 'bugfix/btdm_set_MAX_L2CAP_CHANNELS_error' into 'master'
...
component/bt: Fix bug of set MAX_L2CAP_CHANNELS error
See merge request !1448
2017-10-31 14:32:53 +08:00
Deng Xin
ccfbecd25f
Wifi: bugfix of get wrong ap information in all channel scan
...
fix the issue get wrong ap information in all channel scan
2017-10-31 11:35:11 +08:00
Jiang Jiang Jian
97dffbfc47
Merge branch 'bugfix/btdm_disable_role_switch' into 'master'
...
component/bt: disable the use of ROLE_SWITCH feature for classic BT as workaround
See merge request !1446
2017-10-31 11:31:15 +08:00
Jiang Jiang Jian
182cd1ce4d
Merge branch 'bugfix/btdm_fix_crash_when_set_device_name_null' into 'master'
...
component/bt: fix crash when set device name NULL
See merge request !1462
2017-10-31 11:17:49 +08:00
Jiang Jiang Jian
5b19cf23fc
Merge branch 'feature/reduce_default_wifi_static_buffer_number' into 'master'
...
esp32: reduce default wifi static tx buffer
See merge request !1465
2017-10-31 11:16:22 +08:00
Angus Gratton
696dfbcfee
Merge branch 'bugfix/fix_tcp_crash' into 'master'
...
fix tcp crash
See merge request !1444
2017-10-31 06:18:49 +08:00
Darian Leung
b908b3cd58
unit_tests/Update unit test timer divider
...
This commit updates various test cases throughout esp-idf such that
the values used for timer divider pass the assertions in the timer component.
Timer divider values must be between 2 to 65536
2017-10-30 19:42:16 +08:00
michael
0330ec270a
feat(spi_master): add new feature allow use variable command and address field length for the same device.
...
Closes #654
2017-10-30 19:33:41 +08:00
Liu Zhi Fu
1195ced75c
esp32: reduce default wifi static tx buffer
...
Modify the the default WiFi static tx buffer from 32 to 16
2017-10-28 12:15:40 +08:00
Alexey Skalozub
5405255928
Fix losing sign when multiplying by -1
2017-10-28 03:47:00 +03:00
Angus Gratton
7c9b24b407
Merge branch 'bugfix/fix_uart_vfs_test_error' into 'master'
...
bugfix(uart): Don't disable console uart peripheral
See merge request !1456
2017-10-27 19:20:13 +08:00
Jiang Jiang Jian
a9b63b796e
Merge branch 'bugfix/btdm_cpu_core' into 'master'
...
component/bt : fix bug of sw interrupt cause to run btdm to different cpu core.
See merge request !1434
2017-10-27 18:36:59 +08:00
Wangjialin
102eb96c8b
bugfix(uart): Don't disable console UART peripheral
2017-10-27 16:46:10 +08:00
zhiweijian
15c75974de
component/bt: fix crash when set device name NULL
2017-10-27 15:21:00 +08:00
Angus Gratton
ffeecde9e2
Merge branch 'feature/docs_update_timer_api' into 'master'
...
Timer API docs update, refactored example
See merge request !1316
2017-10-27 13:31:18 +08:00
krzychb
9b7d5d76a7
Timer API docs update, refactored example
2017-10-27 07:13:59 +02:00
Ivan Grokhotkov
00bf160f94
Merge branch 'bugfix/pthread_once' into 'master'
...
[pthread] Perform init_routine execution outside of the mutex
See merge request !1453
2017-10-27 09:21:55 +08:00
Angus Gratton
3338f1074f
Merge branch 'bugfix/set_cppflags' into 'master'
...
Ensure that C++ and C compilers get the same preprocessor setup (from github)
See merge request !1459
2017-10-26 20:21:49 +08:00
Ivan Grokhotkov
eb5752c635
esp_restart: fix possible race while stalling other CPU, enable WDT early
...
Previously esp_restart would stall the other CPU before enabling RTC_WDT.
If the other CPU was executing an s32c1i instruction, the lock signal
from CPU to the arbiter would still be held after CPU was stalled. If
the CPU running esp_restart would then try to access the same locked
memory pool, it would be stuck, because lock signal would never be
released.
With this change, esp_restart resets the other CPU before stalling it.
Ideally, we would want to reset the CPU and keep it in reset, but the
hardware doesn't have such feature for PRO_CPU (it is possible to hold
APP_CPU in reset using DPORT register). Given that ROM code will not use
s32c1i in the first few hundred cycles, doing reset and then stall seems
to be safe.
In addition to than, RTC_WDT initialization is moved to the beginning of
the function, to prevent possible lock-up if CPU stalling still has any
issue.
2017-10-26 19:53:53 +08:00
Ivan Grokhotkov
f11ad0c904
soc/rtc: fix spurious warnings about XTAL frequency on startup
...
1. Make sure that 8MD256 clock used to estimate XTAL frequency is enabled
before trying to use rtc_clk_cal_ratio.
This fixes "Bogus XTAL frequency: 0 MHz" warnings after software reset.
2. Don't call rtc_clk_xtal_freq_estimate if XTAL frequency is already
known. This reduces startup time after deep sleep or software reset.
3. Compare known XTAL frequency and estimated one before printing a
warning. This fixes "Possibly invalid CONFIG_ESP32_XTAL_FREQ setting
(40MHz). Detected 40 MHz." warnings.
2017-10-26 19:53:53 +08:00
Ivan Grokhotkov
9317cb3434
soc/rtc: add tests for CPU frequency switching
...
These tests switch between PLL and XTAL frequencies for 10 seconds.
2017-10-26 19:53:53 +08:00
Ivan Grokhotkov
6d4ed4ff6c
soc/rtc: wait for SLOW_CLK cycle when switching CPU clock
...
Previous implementation waited for 20us after setting
RTC_CNTL_SOC_CLK_SEL_XTL register, using ets_delay_us, assuming that
the CPU was running at XTAL frequency. In reality, clock switch happened
on the next RTC_SLOW_CLK cycle, and CPU could be running at the previous
frequency (for example, 240 MHz) until then.
ets_delay_us would wait for 20 us * 40 cycles per us = 800 CPU cycles
(assuming 40 MHz XTAL; even less with a 26 MHz XTAL).
But if CPU was running at 240 MHz, 800 cycles would pass in just 3.3us,
while SLOW_CLK cycle could happen as much as 1/150kHz = 6.7us after
RTC_CNTL_SOC_CLK_SEL_XTL was set. So the software would not actually wait
long enough for the clock switch to happen, and would disable the PLL
while CPU was still clocked from PLL, leading to a halt.
This implementation uses rtc_clk_wait_for_slow_cycle() function to wait
until the clock switch, removing the need to wait for a fixed number of
CPU cycles.
2017-10-26 19:53:53 +08:00
Ivan Grokhotkov
05a0fbd49b
soc/rtc: add a function to wait for slow clock cycle
...
Some RTC features are synchronized to RTC_SLOW_CLK, so sometimes
software needs to wait for the next slow clock cycle.
This function implements waiting using Timer Group clock calibration
feature.
2017-10-26 19:53:53 +08:00
Andreas Pokorny
2a1906cf50
Ensure that C++ and C compilers get the same preprocessor setup
...
CPPFLAGS is applied for both languages while CFLAGS only for C
Signed-off-by: Andreas Pokorny <andreas.pokorny@siemens.com>
2017-10-26 13:04:41 +02:00
Angus Gratton
9159e2b807
Merge branch 'bugfix/panic_handler_debugexception' into 'master'
...
panic handler: Print correct PC & backtrace for debug exceptions
See merge request !1441
2017-10-26 15:49:30 +08:00
Angus Gratton
f5b3a370cd
Merge branch 'feature/adc2_driver' into 'master'
...
feature(adc2): add support to use ADC2 when WIFI is disabled
See merge request !1237
2017-10-26 15:48:48 +08:00
Angus Gratton
baf1641c29
Merge branch 'bugfix/uart_set_default_idle_time_to_zero' into 'master'
...
bugfix(uart): set default tx idle num
See merge request !1419
2017-10-26 15:17:45 +08:00
Angus Gratton
5c5d5f0acb
Merge branch 'bugfix/tcpip_stack_overflow_logging_printf' into 'master'
...
lwip: Increase minimum TCP/IP task stack size if log level is Debug or Verbose
See merge request !1396
2017-10-26 15:09:22 +08:00
michael
87f2b27dc4
refactor(rtc): re-organize code in rtc_module.c
2017-10-26 14:35:30 +08:00
michael
d30f3e7aa8
example(adc2): add example and test case for adc2.
...
closes #461
2017-10-26 14:35:30 +08:00
esp32de
7c0020bfd0
feat(adc2): append adc2 support and api and the lock with WIFI module
...
append adc support and api
- esp_err_t adc2_config_width(adc_bits_width_t width_bit);
- esp_err_t adc2_config_channel_atten(adc2_channel_t channel, adc_atten_t atten);
- int adc2_get_voltage(adc2_channel_t channel);
2017-10-26 14:35:29 +08:00
Kedar Sovani
07992b08e8
[pthread] Perform init_routine execution outside of the mutex
...
The mutex is common across all the threads. It needn't be held across
the init_routine() call as long as the 'once' behaviour is guaranteed
Saw a deadlock case, where init_routine of one thread was waiting for
the completion of init_routine in another thread.
t2: wait for command
t1: pthread_once:
lock once_mux
init_routine:
inform thread t2
wait for signal from t2
t2: received command
pthread_once
lock once_mux (already held by t1)
---- Deadlock ----
2017-10-25 13:57:39 +05:30
Wangjialin
303b9f60db
bugfix(uart): set default tx idle num
...
Reported from:
https://github.com/espressif/esp-idf/issues/703
https://github.com/espressif/esp-idf/issues/917
In uart driver we didn't change the default value of tx idle num, so there would be a delay after tx FIFO is empty.
1. Add API to set tx idle interval before next data transmission. (The UART hardware can add an interval after tx FIFO is empty).
2. Set default tx idle interval to zero.
3. Add hardware disable in uart driver delete function.
2017-10-25 13:29:02 +08:00
baohongde
3dab0fd340
component/bt: Fix bug of set MAX_L2CAP_CHANNELS error
2017-10-25 12:02:41 +08:00
island
4e7de126dc
component/bt: Fix scan problem of bonded device using public address
2017-10-25 11:52:03 +08:00
Tian Hao
85eb5d4374
component/bt : fix bug of sw interrupt cause to run btdm to different cpu core.
...
1. add sw interrupt cause osi to controller.
2. modify the kconfig to improve the option view.
3. add option of the cpu core which bluedroid run.
4. add option of the cpu core which bluetooth controller run.
2017-10-24 16:13:58 +08:00
wangmengyang
837678e4f3
component/bt: disable the use of ROLE_SWITCH feature for classic BT as workaround
2017-10-24 14:44:53 +08:00
michael
a6ac5b33c9
feat(rtc): open adc*(dac)_pad_get_io_num functions to public.
2017-10-24 12:06:14 +08:00
michael
cff8d30c25
refactor(rtc): change register writing from macros to structures in *_struct.h
2017-10-24 12:05:52 +08:00
zhangyanjiao
18dcbfa1e2
fix tcp crash
2017-10-24 09:44:44 +08:00
Ivan Grokhotkov
552ba35da5
add missing ioctl declaration
...
Previously ioctl was declared as a macro in lwip/sockets.h.
Disabling LWIP_POSIX_SOCKETS_IO_NAMES removed that declaration.
This adds sys/ioctl.h file and the missing declaration.
Also adds missing includes in vfs.c.
2017-10-23 19:47:33 +08:00
Angus Gratton
2c2e7f6303
Merge branch 'bugfix/optmize_ipv6_event' into 'master'
...
bugfix: add netif info in event message when got ipv6 address
See merge request !959
2017-10-23 17:00:10 +08:00
Angus Gratton
c61060e673
panic handler: Print correct PC & backtrace for debug exceptions
2017-10-23 15:46:43 +08:00
baohongde
84a55f9ee4
component/bt: Fix bug of function smp_decide_association_model
2017-10-23 15:34:02 +08:00
yulong
a9a423a025
component/bt: Added the sec_act != BTM_BLE_SEC_ENCRYPT check in the btm_ble_set_encryption function when the sec_act is BTM_BLE_SEC_ENCRYPT_NO_MITM or BTM_BLE_SEC_ENCRYPT_MITM.
2017-10-23 15:12:36 +08:00
Yulong
da32fbce7a
component/bt: Fix the bug of can't pair if master send pair req but slave don't send sec req.
2017-10-23 15:12:36 +08:00
Tian Zhong Xing
55e95b04bd
bugfix: add netif info in event message when got ipv6 address
2017-10-23 13:50:43 +08:00
Ivan Grokhotkov
91d9cb98d3
Merge branch 'bugfix/unit_tests_build' into 'master'
...
spi_flash: fix build error with profiling enabled
See merge request !1437
2017-10-23 12:14:10 +08:00
Angus Gratton
454e47385c
Merge branch 'bugfix/select_fdset' into 'master'
...
LWIP: Fix select() FD_SET/FD_GET/etc
See merge request !1435
2017-10-23 10:55:33 +08:00
Angus Gratton
01befe4d6a
Merge branch 'bugfix/i2c_hw_fsm_recover' into 'master'
...
bugfix(i2c): add I2C hardware reset if the hw FSM get stuck
See merge request !1272
2017-10-23 10:16:02 +08:00
Ivan Grokhotkov
fbd52dcf34
spi_flash: fix build error with profiling enabled
2017-10-22 12:57:56 +08:00
Ivan Grokhotkov
f039aac1e5
Merge branch 'bugfix/i2s_bck_polariy' into 'master'
...
bugfix(i2s): fix bck polarity issue when using pll clock.
See merge request !1428
2017-10-22 12:36:27 +08:00
Ivan Grokhotkov
000a4f5941
Merge branch 'bugfix/rmt_thresh_check' into 'master'
...
bugfix(rmt): fix event thresh check issue
See merge request !1423
2017-10-22 12:35:44 +08:00
Ivan Grokhotkov
59b7d98fec
Merge branch 'feature/dfs' into 'master'
...
Dynamic frequency scaling
See merge request !1189
2017-10-22 12:34:11 +08:00
Wangjialin
ed1e32f583
bugfix(i2c): add I2C hardware reset if the hw FSM get stuck
...
Reported from different sources from github or bbs:
https://github.com/espressif/esp-idf/issues/680
https://github.com/espressif/esp-idf/issues/922
We tested reading several sensor or other I2C slave devices, if the power and SDA/SCL wires are in proper condition, everything works find with reading the slave.
If we remove the power supply for the slave during I2C is reading, or directly connect SDA or SCL to ground, this would cause the I2C FSM get stuck in wrong state, all we can do is the reset the I2C hardware in this case.
After this commit, no matter whether the power supply of I2C slave is removed or SDA / SCL are shorted to ground, the driver can recover from wrong state.
We are not sure whether this the save issue with the reported one yet, but to make the driver more robust.
Further information:
1. For I2C master mode, we have tested different situations, e.g., to short the SDA/SCL directly to GND/VCC, to short the SDA to SCL, to un-plug the slave device, to power off the slave device. Under all of those situations, this version of driver can recover and keep working.
2. Some slave device will die by accident and keep the SDA in low level, in this case, master should send several clock to make the slave release the bus.
3. Slave mode of ESP32 might also get in wrong state that held the SDA low, in this case, master device could send a stop signal to make esp32 slave release the bus.
Modifications:
1. Disable I2C_MASTER_TRAN_COMP interrupt to void extra interrupt.
2. Disable un-used timeout interrupt for slave.
3. Add bus reset if error detected for master mode.
4. Add bus clear if SDA level is low when error detected.
5. Modify the argument type of i2c_set_pin.
6. add API to set timeout value
7. add parameter check for timing APIs
2017-10-21 02:10:59 +08:00
Angus Gratton
f76a3c45c0
newlib: Disable sys/types.h implementations of FD_SET, etc.
...
Temporary measure, until we have VFS-level select() support.
Closes https://github.com/espressif/esp-idf/issues/1141
2017-10-20 18:11:32 +08:00
Angus Gratton
e5ae0f5927
lwip: Make LWIP_SOCKET_OFFSET signed, remove need for underflow check
...
This reverts commit 541493d877
.
2017-10-20 18:04:28 +08:00
Angus Gratton
22756b6c02
Merge branch 'feature/FreeRTOS_Trace_Facilities' into 'master'
...
feature/make freertos trace facility configurable
See merge request !1420
2017-10-20 16:42:15 +08:00
Ivan Grokhotkov
b6f37bda97
Merge branch 'feature/i2s_built_in_adc' into 'master'
...
feature(I2S-ADC): add ADC mode for I2S.
See merge request !1077
2017-10-20 15:52:56 +08:00
Darian Leung
a6854b72cd
freertos/make trace facility configurable
...
This commit makes configUSE_TRACE_FACILITY and
configUSE_STATS_FORMATTING_FUNCTIONS configurable in kconfig. Test cases fro the
functions enabled by the two configurations above have also been added.
Test cases for the following functions have been added...
- uxTaskGetSystemState()
- uxTaskGetTaskNumber()
- vTaskSetTaskNumber()
- xEventGroupClearBitsFromISR()
- xEventGroupSetBitsFromISR()
- uxEventGroupGetNumber()
- uxQueueGetQueueNumber()
- vQueueSetQueueNumber()
- ucQueueGetQueueType()
Test cases for the following functions were not required...
- prvListTaskWithinSingleList()
- prvWriteNameToBuffer()
- vTaskList()
2017-10-20 15:17:17 +08:00
Angus Gratton
477ed8ce62
Merge branch 'bugfix/touchpad_dac_mismatch_on_tp8_tp9' into 'master'
...
bugfix(touch): add workaround for touch pad DAC hardware source mismatch on tp8 and tp9.
See merge request !1288
2017-10-20 14:18:32 +08:00
Ivan Grokhotkov
dbebece1d2
Merge branch 'feature/unit-test-configs' into 'master'
...
unit-test-app: add support for testing multiple configurations
See merge request !1249
2017-10-20 14:03:53 +08:00
Angus Gratton
b30c0d1bbb
Merge branch 'feature/add_dns_api' into 'master'
...
tcpip_adapter/lwip: add dns api
See merge request !1405
2017-10-20 11:54:20 +08:00
Angus Gratton
47aaf402b8
heap: Add heap_caps_dump() / heap_caps_dump_all() functions
...
Dump the structure of the heap for debugging purposes.
2017-10-20 11:38:24 +08:00
Angus Gratton
b10e1a92b6
freertos: Update comments in "port" section (portMUX/etc)
...
Some comments had fallen out of date.
2017-10-20 11:17:44 +08:00
Wangjialin
a84db78eb1
bugfix(i2s): fix bck polarity issue when using pll clock.
...
reported from github: https://github.com/espressif/esp-idf/issues/1119
Digital team think it is due to the decimal divider.
We can reset the i2s tx and rx when calling i2s_stop to avoid this.
2017-10-19 23:23:01 +08:00
Ivan Grokhotkov
90bbcbcdc0
unit tests: fix warnings, build with -Werror
...
- libsodium: silence warnings
- unit tests: fix warnings
- spiram: fix warnings
- ringbuf test: enable by default, reduce delays
2017-10-19 21:35:23 +08:00
Ivan Grokhotkov
b52e3fae64
build system: fix warning about undefined variable 'quote'
2017-10-19 21:35:23 +08:00
Ivan Grokhotkov
ae7404972c
sleep: don't power down VDD_SDIO in light sleep if SPIRAM is enabled
2017-10-19 21:35:23 +08:00
Ivan Grokhotkov
d55ddfe56d
update libstdc++.a built with pSRAM workaround
2017-10-19 21:35:22 +08:00
Ivan Grokhotkov
8990549e89
spi_flash: fix spi_flash_read into buffer in external RAM, add test
2017-10-19 21:35:21 +08:00
Ivan Grokhotkov
099565635b
soc: correct values of SOC_BYTE_ACCESSIBLE_LOW, SOC_MEM_INTERNAL_LOW
...
Internal byte accessible memory starts with Internal ROM 1 at 0x3FF90000.
Region of RTC fast memory starting at 0x3FF80000 is not used in IDF as
it is mapped to PRO CPU only.
2017-10-19 21:35:21 +08:00
Ivan Grokhotkov
ee99bdfbad
spi_flash_cache_enabled: report correct result in single core mode
2017-10-19 21:35:21 +08:00
Ivan Grokhotkov
cc67500d3e
unit test: adapt tests to single core configuration
2017-10-19 21:35:21 +08:00
He Yin Ling
1fc2ac8b09
unit-test: esp timer use same name as ets timer
...
We will use case name to select test cases in UT jobs.
Same case name is not allowed.
2017-10-19 21:35:21 +08:00
Ivan Grokhotkov
6cc8099610
Merge branch 'bugfix/malloc_failure' into 'master'
...
heap: Fix race condition causing malloc() to fail under some conditions
See merge request !1424
2017-10-19 21:30:26 +08:00
Ivan Grokhotkov
c360f8dece
Merge branch 'bugfix/heap_check_integrity' into 'master'
...
heap: Fix spurious heap_caps_check_integrity() errors in Comprehensive mode
See merge request !1421
2017-10-19 21:30:16 +08:00
Liu Zhi Fu
cf7ae8135b
tcpip_adapter/lwip: make dhcp domain name server option configurable
...
Add api to configure dhcp option: domain name server
1.closes https://github.com/espressif/esp-idf/issues/162
2.closes https://github.com/espressif/esp-idf/issues/705
2017-10-19 19:28:00 +08:00
Angus Gratton
b0c5665f15
heap: Fix race condition causing malloc() to fail under some conditions
...
During a call to multi_heap_malloc(), if both these conditions were true:
- That heap only has one block large enough for the allocation
(this is always the case if the heap is unfragmented).
- Another allocation is simultaneously occurring in the same heap.
... multi_heap_malloc() could incorrectly return NULL.
This caused IDF heap_caps_malloc() and malloc() to also fail, particularly
often if only one or two heaps had space for the allocation (otherwise
heap_caps_malloc() fails over to the next heap).
2017-10-19 16:05:00 +08:00
Ivan Grokhotkov
8e01b4aef8
Merge branch 'docs/esp32_hooks' into 'master'
...
docs/Added documentation about esp32 hooks
See merge request !1417
2017-10-19 12:32:36 +08:00
Wangjialin
ab1abff080
bugfix(rmt): fix event thresh check issue
...
reported from: https://github.com/espressif/esp-idf/issues/1011
1. Fix event thresh check issue
2. Change IO number in example in case it conflicts with GPIO16(psram cs pin).
2017-10-18 18:49:09 +08:00
Ivan Grokhotkov
54d2dc7681
Merge branch 'bugfix/fix_some_wifi_bugs' into 'master'
...
esp32: fix some wifi bugs
See merge request !1414
2017-10-18 16:20:09 +08:00
Angus Gratton
04188d8ec7
heap: Fix spurious heap_caps_check_integrity() errors in Comprehensive mode
...
Heap was not being locked before poisoning, so heap_caps_check_integrity()
would sometimes race with checking the poison bytes and print unnecessary
errors.
Details: https://esp32.com/viewtopic.php?f=2&t=3348&p=15732#p15732
2017-10-18 15:57:52 +08:00
Darian Leung
461f8da704
docs/Added documentation about esp32 hooks
...
This commit adds documentation about the esp32 Idle and Tick Hooks
2017-10-18 15:19:35 +08:00
Angus Gratton
78f70d4e79
Merge branch 'bugfix/cxx_exceptions' into 'master'
...
Full C++ Exception Support option (& reclaim memory when exceptions disabled)
See merge request !1353
2017-10-18 15:08:10 +08:00
Deng Xin
80b14fc77f
esp32: fix some wifi bugs
...
1. Fix WiFi timer enable twice issue
2. Fix a softAP compatibility issue
3. Fix ebuf alloc counter issue
4. remove nvs_flash_init() in esp_wifi_init()
5. Fix scan only find few APs after set bssid
6. Fix can not connect to hidden SoftAP
7. Remove group key entry before connecting ot AP
2017-10-18 14:53:19 +08:00
Ivan Grokhotkov
d503b991b4
bt: lock APB frequency while BT controller is enabled
2017-10-18 14:37:22 +08:00
Ivan Grokhotkov
373d85dd9f
freertos: fix error when including xtensa-timer.h from other components
2017-10-18 14:37:22 +08:00
Ivan Grokhotkov
266d2b3e4f
ethernet: lock APB frequency while ethernet is enabled
2017-10-18 14:37:22 +08:00
Ivan Grokhotkov
5048d38ce7
spi slave: lock APB frequency while driver is in use
2017-10-18 14:37:21 +08:00
Ivan Grokhotkov
e4616588b7
spi master: lock APB frequency while in transaction
2017-10-18 14:19:21 +08:00
Ivan Grokhotkov
330b6bd668
sdmmc: lock APB frequency while in transaction
2017-10-18 14:19:20 +08:00
Ivan Grokhotkov
c2fff997ea
sysview: always use TG as timestamp source
2017-10-18 14:19:20 +08:00
Ivan Grokhotkov
fba9678c56
uart: add support for REF_TICK
2017-10-18 14:19:20 +08:00
Ivan Grokhotkov
bfeecd2b56
freertos: deprecate XT_CLOCK_FREQ
...
- freertos: add deprecated definition for XT_CLOCK_FREQ
- flash_ops: don't use XT_CLOCK_FREQ
- unity: don't use XT_CLOCK_FREQ
- hw_random: don't use XT_CLOCK_FREQ
- core_dump: don't use XT_CLOCK_FREQ
- app_trace: don't use XT_CLOCK_FREQ
- xtensa_init: init xt_tick_divisor
2017-10-18 14:19:19 +08:00
Ivan Grokhotkov
df3c857a30
esp32: add power management hooks for WiFi library
2017-10-18 14:19:19 +08:00
Ivan Grokhotkov
eb0c34e5c9
esp_timer: add support for frequency scaling
2017-10-18 14:19:18 +08:00
Ivan Grokhotkov
3f818f4862
pm: support for tracing using GPIOs
2017-10-18 14:19:18 +08:00
Ivan Grokhotkov
535695f0b9
freertos: add frequency switching hooks to ISR and idle task
2017-10-18 14:19:17 +08:00
Ivan Grokhotkov
42d51a4224
esp32: initialize PM at startup, add Kconfig options
2017-10-18 14:19:17 +08:00
Ivan Grokhotkov
68e1751b78
pm: initial implementation for ESP32
2017-10-18 14:19:16 +08:00
Ivan Grokhotkov
47e3c9dd4b
pm: initial version of power management APIs
2017-10-18 14:19:16 +08:00
Ivan Grokhotkov
4798b7d775
unit tests: add test to dump esp_timer stats
2017-10-18 14:19:15 +08:00
Ivan Grokhotkov
3788b35f87
unit tests: more robust esp_timer test
2017-10-18 14:19:15 +08:00
Ivan Grokhotkov
b03e08dc4e
soc/rtc: add function to convert CPU frequency in MHz to rtc_cpu_freq_t
2017-10-18 14:19:15 +08:00
Ivan Grokhotkov
a242ae6d0b
soc/rtc: add fast paths for switching between PLL and XTAL
2017-10-18 14:19:14 +08:00
Ivan Grokhotkov
37e9bc715c
esp_clk.h: make public, add getters for RTC time, CPU/APB freq
2017-10-18 14:19:14 +08:00
Ivan Grokhotkov
f13623d97d
make esp_timer.h public
2017-10-18 12:31:38 +08:00
Ivan Grokhotkov
566f018996
crosscore_int: add support for FREQ_SWITCH event
2017-10-18 12:31:38 +08:00
Ivan Grokhotkov
2e8441df9e
Merge branch 'feature/fsync' into 'master'
...
vfs,fat: add fsync to VFS interface, implement it for fatfs
See merge request !1412
2017-10-18 07:17:56 +08:00
Ivan Grokhotkov
07c44d7f01
fatfs: expose some configuration values in Kconfig
...
- _FS_TINY: disables per-file caches
- _FS_TIMEOUT: locking timeout for concurrent access
- _FS_LOCK: prevents operations which are not allowed on open files
Also sets _MAX_SS based on sector size configured for wear_levelling.
This reduces memory usage of FATFS if wear_levelling is using 512 byte
sectors.
2017-10-17 18:43:46 +08:00
Tian Hao
09862b5918
component/esp32 : update phy & rtc
...
RTC V230
add BT AGC saturation protection, replace RTC V229.
PHY V362
Power up print: "phy_version: 362.0, 61e8d92, Sep 8 2017, 18:48:13"
1. esp_init_data_v3.bin
modify TX target power
modify WIFI & BT RX gain table
2. modify phy_close_rf()
3. add phy_set_most_tpw()
4. 26M crystal work OK
5. noise_check_loop ok
2017-10-17 18:02:42 +08:00
Ivan Grokhotkov
6b8c8bf638
Merge branch 'bugfix/slave_dma_claim' into 'master'
...
fix(spi_slave): enable DMA clock when initialization.
See merge request !1385
2017-10-17 17:41:39 +08:00
Ivan Grokhotkov
7babc74fce
Merge branch 'feature/reduce_min_num_of_wifi_static_tx_buffer' into 'master'
...
Reduce minimum number of WiFi static tx buffer
See merge request !1398
2017-10-17 17:40:14 +08:00
Angus Gratton
3f4c8f7174
pthreads local storage: add test for unique keys
2017-10-17 15:29:25 +08:00
Angus Gratton
69e92ee320
unit tests: If heap tracing is enabled in sdkconfig, leak trace each test
2017-10-17 15:29:25 +08:00
Angus Gratton
9c7477ef34
cxx: Add KConfig option for C++ exceptions, disable by default
...
Fixes https://github.com/espressif/esp-idf/issues/1072
(Additional 20KB is still used if C++ exception support is enabled in
menuconfig.)
2017-10-17 15:29:25 +08:00
Ivan Grokhotkov
502c3d0243
vfs,fat: add fsync to VFS interface, implement it for fatfs
2017-10-17 15:14:53 +08:00
Angus Gratton
a231ba22f3
cxx: Add a sanity check for C++ exception support
2017-10-17 14:46:08 +08:00
Angus Gratton
86c89ff169
pthread: Add support for pthread thread local storage
...
Refactors LWIP to use this for the LWIP thread local semaphore
2017-10-17 14:46:08 +08:00
Angus Gratton
3234064b6a
freertos: Idle task shouldn't hold xTaskQueueMutex while calling TLS destructors
...
If the callbacks use any blocking call (ie printf), this can otherwise trigger a deadlock.
2017-10-17 14:31:58 +08:00
Angus Gratton
2ccc2ec5ee
cxx tests: Fix race condition w/ leak checker when tearing down test tasks
2017-10-17 14:31:58 +08:00
Angus Gratton
90bf40587e
Merge branch 'feature/sockets_files_shared_fd_space' into 'master'
...
lwip & vfs: POSIX I/O functions operate on sockets and files (first stage, no select() yet)
See merge request !1352
2017-10-17 14:17:09 +08:00
Ivan Grokhotkov
6e7dd5962b
Merge branch 'bugfix/add_mutex_for_dual_core_hooks' into 'master'
...
freertos/Add mutex for dual core hooks
See merge request !1406
2017-10-17 14:15:09 +08:00
Ivan Grokhotkov
08d6ca4f70
Merge branch 'bugfix/ets_timer_iram' into 'master'
...
wifi/bt coexistence: Fix disabled cache access race when writing to flash
See merge request !1409
2017-10-17 14:12:43 +08:00
Gabriel Carstoiu
8128bb95ef
fix(spi_slave): enable DMA clock when initialization.
...
merging in the code updates to the SPI master code done in commit b834fcf78a
.
TW#15670, Closes #1027
2017-10-17 12:20:40 +08:00
michael
88f602a0e0
fix(periph_ctrl): fix reset function in periph_ctrl.c
2017-10-17 12:20:40 +08:00
michael
8e31a36562
feat(spi_slave): append trans_len field in trans_desc to show length actually transferred.
2017-10-17 12:01:12 +08:00
Ivan Grokhotkov
d3bb9de36a
Merge branch 'feature/spiram_init_in_app' into 'master'
...
spiram: expose function to initialize SPI RAM cache
See merge request !1281
2017-10-17 04:56:35 +08:00
Ivan Grokhotkov
b58e19f8a2
Merge branch 'bugfix/soc_component_rodata' into 'master'
...
soc: place constant data from rtc_clk.c into DRAM
See merge request !1321
2017-10-17 04:54:43 +08:00
Ivan Grokhotkov
edb212986f
Merge branch 'bugfix/sd_card_fixes' into 'master'
...
SD card fixes
See merge request !1393
2017-10-17 04:45:24 +08:00
Ivan Grokhotkov
2bba4a77c4
Merge branch 'bugfix/console_empty_command' into 'master'
...
console: handle empty input to esp_console_run correctly
See merge request !1390
2017-10-17 04:44:19 +08:00
Ivan Grokhotkov
468d90762a
Merge branch 'bugfix/freertos_portmux_debug' into 'master'
...
freertos: fix compilation errors with portMUX debugging enabled
See merge request !1392
2017-10-17 04:44:04 +08:00
Ivan Grokhotkov
a638871aa5
Merge branch 'bugfix/nvs_init_partition' into 'master'
...
nvs: fix nvs_flash_init_partition initializing default partition
See merge request !1391
2017-10-17 04:43:54 +08:00
Angus Gratton
094cf4d79d
wifi/bt coexistence: Fix disabled cache access race when writing to flash
...
Moves the ets_timer_arm() / ets_timer_disarm() code paths to RAM
Overhead is 740 bytes of IRAM, 0 bytes DRAM
(For comparison: If all of esp_timer.c is moved to RAM, overhead is 1068 bytes IRAM and 480 bytes DRAM.)
2017-10-16 19:47:33 +08:00
Jiang Jiang Jian
99f2996779
Merge branch 'bugfix/tw15595_eth_got_ip_log_error' into 'master'
...
esp32/tcpipadapter: correct eth ip got event info
See merge request !1388
2017-10-16 17:30:14 +08:00
Jiang Jiang Jian
50c993a1b2
Merge branch 'feature/some_refactor_for_esp_ping' into 'master'
...
lwip: refactor to socket ping
See merge request !875
2017-10-16 17:30:00 +08:00
Yulong
4b1968f315
component/bt: Change the queue_data->p_attr->p_value->attr_val.attr_len += queue_data->len code to the if case.
2017-10-16 03:42:49 -04:00
Darian Leung
7584f89278
esp32/Add mutex for dual core hooks
...
This commit adds critical sections for the dual core hooks
2017-10-16 11:47:38 +08:00
Angus Gratton
539262b5c2
vfs: Remove fd_offset member
...
This was intended for integrating LWIP, but a different approach was used.
2017-10-16 09:45:50 +08:00
Angus Gratton
4a9d4587b7
vfs: Add C++ guards to esp_vfs_dev.h
...
Closes https://github.com/espressif/esp-idf/issues/1069
2017-10-16 09:45:50 +08:00
Angus Gratton
541493d877
lwip: Check for underflow in FD_SET()/FD_GET()
...
select() only works with LWIP sockets which have a high LWIP_SOCKET_OFFSET,
so chance of accidental underflow is high.
2017-10-16 09:45:50 +08:00
Angus Gratton
3f83914f7a
lwip: Fix bug with LWIP_SOCKET_OFFSET & IGMP group support
2017-10-16 09:45:50 +08:00
Angus Gratton
48d9d507aa
newlib: Remove fcntl() implementation from libc
...
Allows fcntl() implementation in vfs to be used.
Closes https://github.com/espressif/esp-idf/issues/1070
Note this is different to the other libc file-related syscalls, as there is no
reent structure involved.
2017-10-16 09:45:50 +08:00
Angus Gratton
3ebf7923d3
lwip: Route LWIP socket POSIX I/O functions via IDF VFS layer
...
No more conflicts between LWIP & newlib read(), write(), fcntl(), etc.
select() still only works if all of the fds are sockets.
Closes https://github.com/espressif/esp-idf/issues/273
2017-10-16 09:45:49 +08:00
Angus Gratton
a320fed3b5
vfs: Add ioctl() to filesystem set
2017-10-16 09:45:49 +08:00
Angus Gratton
0c50b65a34
lwip: Increase minimum TCP/IP task stack size if log level is Debug or Verbose
...
... unless nano formatting is enabled.
Fixes stack overflow in tcpip_adapter at the default level, as reported on forum:
https://esp32.com/viewtopic.php?f=2&t=3250&p=15538#p15447
2017-10-16 09:43:23 +08:00
Angus Gratton
b013f5d490
Merge branch 'bugfix/freertos_resume_scheduler_pending_tasks' into 'master'
...
freertos: Fix bug with xTaskResumeAll() not resuming all tasks
See merge request !1330
2017-10-16 09:43:04 +08:00
Ivan Grokhotkov
1da3204a7c
spiram: expose function to initialize SPI RAM cache
...
Some frameworks based on ESP-IDF need to be able to decide whether to
initialize SPI RAM after the application has started. This change splits
out part of esp_spiram_init which manipulate cache MMU into a separate
function. Applications can disable cache, call esp_spiram_init_cache,
re-enable cache, and then call esp_spiram_init.
Disabling and re-enabling the cache can be achieved using functions
provided in esp_spi_flash.h.
2017-10-16 09:15:11 +08:00
He Yin Ling
3a271a4ae7
Merge branch 'bugfix/freertos_dual_core_hooks' into 'master'
...
bugfix/freertos_dual_core_hooks
See merge request !1399
2017-10-14 09:41:03 +08:00
Jiang Jiang Jian
a1d23051b4
Merge branch 'bugfix/tw15538_ipv6_socket_close_error' into 'master'
...
lwip: init lwip error code
See merge request !1379
2017-10-13 19:15:44 +08:00
Darian Leung
95d63137d1
bugfix/freertos_dual_core_hooks
...
This commit fixes bugs with the dual core changes to freeRTOS tick and idle hooks.
Interrupt watchdog now registers tick hooks to both cores.
API for cross core tick and idle hook registration were also added
2017-10-13 18:27:53 +08:00
XiaXiaotian
c730f676c3
Reduce minimum number of WiFi static tx buffer
...
Calibrate tx power after sending five packets
2017-10-13 17:11:31 +08:00
Jiang Jiang Jian
713dee57f0
Merge branch 'feature/add_const_for_wifi_api' into 'master'
...
esp32: add const for some WiFi api
See merge request !1394
2017-10-13 17:08:29 +08:00
Liu Zhi Fu
3bcaa592ee
lwip: refactor to socket ping
...
Do some refactor to socket ping:
1. Add ping_deinit to kill ping thread
2. Apply configuration set by esp_ping_set_target to socket ping
3. Limit only one ping thread
2017-10-13 16:37:09 +08:00
Jiang Jiang Jian
a0ad3ff008
Merge branch 'bugfix/btdm_fix_set_attr_value_crash_when_length_is_0' into 'master'
...
component/bt: fix crash when the length of attr value set zero
See merge request !1397
2017-10-13 16:00:15 +08:00
Liu Zhi Fu
e2d077cea1
lwip: init lwip error code
...
Init the error code to ERR_OK when call tcpip_apimsg
2017-10-13 15:59:04 +08:00
Jiang Jiang Jian
90be957af1
Merge branch 'bugfix/btdm_fix_register_app_id_failed_when_more_than_3' into 'master'
...
component/bt: fix register more than three app_ids failed
See merge request !1389
2017-10-13 15:57:00 +08:00
Liu Zhi Fu
e04a0d66b8
esp32/tcpipadapter: correct eth ip got event info
...
1. Raise SYSTEM_EVENT_ETH_GOT_IP when eth got ip
2. Add default handler for SYSTEM_EVENT_ETH_GOT_IP
3. Minor change about ethernet kconfig
2017-10-13 15:56:51 +08:00
Jiang Jiang Jian
6ff5c32ae5
Merge branch 'feature/alloc_memories_of_wifi_and_lwip_in_spiram_first' into 'master'
...
Allocate some memories in SPIRAM first.
See merge request !1367
2017-10-13 15:47:27 +08:00
Jiang Jiang Jian
aa7a1e5e2d
Merge branch 'bugfix/btdm_controller_deinit' into 'master'
...
component/bt : allow init after de-init
See merge request !1371
2017-10-13 15:44:58 +08:00
Liu Zhi Fu
0e586a4cdf
esp32: add const for some WiFi api
...
Add const if the pointer parameter is const
2017-10-13 15:10:34 +08:00
zhiweijian
520b3340f6
Component/bt: fix crash when set attr value 0
2017-10-13 15:06:08 +08:00
XiaXiaotian
5df39cd4b6
Allocate some memories in SPIRAM first.
...
Try to allocate some WiFi and LWIP memories in SPIRAM first. If
failed, try to allocate in internal RAM then.
2017-10-13 10:11:24 +08:00
Angus Gratton
0a52dbccca
Merge branch 'bugfix/spi_reset_race' into 'master'
...
periph_ctrl: Refactor to add periph_module_reset(), avoid potential race in SPI DMA workaround
See merge request !1349
2017-10-13 08:51:36 +08:00
Angus Gratton
5d8bd1aa9e
Merge branch 'bugfix/libsodium_mbedtls_sha' into 'master'
...
libsodium: Fix mbedTLS SHA256 & SHA512 implementation, make optional
See merge request !1329
2017-10-13 08:50:24 +08:00
Ivan Grokhotkov
715d081341
freertos: fix compilation errors with portMUX debugging enabled
...
Fixes https://github.com/espressif/esp-idf/issues/1057
Ref TW15702.
2017-10-13 08:33:57 +08:00
Ivan Grokhotkov
3cf23ff77d
sdmmc: allow command timeouts to be configured
...
Previously the timeout was set to the same value (1000ms) for all kinds
of commands. In some cases, such as with slow cards, write commands
failed to complete in time.
This change makes command timeouts configurable via sdmmc_host_t
structure, and also makes default timeouts different for ordinary
commands and write commands.
Closes https://github.com/espressif/esp-idf/issues/1093
Ref TW15774.
2017-10-13 08:16:07 +08:00
Angus Gratton
ca7485cc9a
freertos: Remove "stop program on scheduler start when JTAG/OCD is detected" option
...
No longer used with new dual core target & JTAG instructions.
2017-10-13 10:54:02 +11:00
Ivan Grokhotkov
ab13db0e45
nvs: fix nvs_flash_init_partition initializing default partition
...
Fixes https://github.com/espressif/esp-idf/issues/1052 .
Ref TW15698.
2017-10-13 07:19:16 +08:00
Ivan Grokhotkov
4d42b5ea24
console: handle empty input to esp_console_run correctly
...
Fixes https://github.com/espressif/esp-idf/issues/1067
Ref. TW15752
2017-10-13 07:14:53 +08:00
zhiweijian
49ad8bf6c3
Component/bt: fix register more than 3 app_id failed
2017-10-12 21:07:40 +08:00
Jiang Jiang Jian
8e47c355fa
Merge branch 'feature/i2s_apll' into 'master'
...
driver/i2s: add support apll clock
See merge request !1115
2017-10-12 19:06:50 +08:00
Jiang Jiang Jian
244e947beb
Merge branch 'bugfix/btdm_fix_add_whitelist_failed' into 'master'
...
Component/bt: fix add whitelist failed
See merge request !1326
2017-10-12 19:01:01 +08:00
Jiang Jiang Jian
dbee895741
Merge branch 'bugfix/phy_init_remove_descriptions' into 'master'
...
phy init: remove descriptions of PHY init parameters
See merge request !1363
2017-10-12 19:00:10 +08:00
Jiang Jiang Jian
f8caa403db
Merge branch 'bugfix/btdm_remove_bond_device_not_return_error' into 'master'
...
component/bt: Fixed the bug when remove the bonded device with not exist address…
See merge request !1370
2017-10-12 18:59:09 +08:00
Jiang Jiang Jian
73462c052e
Merge branch 'bugfix/btdm_fix_set_scan_params_not_work' into 'master'
...
component/bt: fix scan params not work when start scan
See merge request !1307
2017-10-12 18:57:36 +08:00
Jiang Jiang Jian
e0922c9564
Merge branch 'bugfix/i2s_set_pin_valid_gpio' into 'master'
...
change to GPIO_IS_VALID_OUTPUT_GPIO for data out pin
See merge request !764
2017-10-12 18:21:25 +08:00
Jiang Jiang Jian
da247c2cf8
Merge branch 'bugfix/ledc_duty_type_change' into 'master'
...
ledc_get_duty return type changed from int to uint32_t, target_duty changed from int to uint32_t
See merge request !752
2017-10-12 18:18:33 +08:00
Jiang Jiang Jian
52be20343b
Merge branch 'bugfix/tw15438_mem_leak_on_wifi_start_stop_loop' into 'master'
...
Release DHCP structure memory when netif is down.
See merge request !1386
2017-10-12 17:51:58 +08:00
Jiang Jiang Jian
a4e4322f6c
Merge branch 'bugfix/btdm_set_sec_properity_error' into 'master'
...
component/bt: Fix bug of set sec properity error
See merge request !1336
2017-10-12 17:45:32 +08:00
Jiang Jiang Jian
3f1198529f
Merge branch 'bugfix/fail_to_connect_in_wps' into 'master'
...
WiFi :bug fix of fail to connect in wps
See merge request !1384
2017-10-12 17:39:29 +08:00
XiaXiaotian
ad1350f0ac
Release DHCP structure memory when netif is down.
2017-10-12 17:03:44 +08:00
Angus Gratton
3a4bd7f16c
Merge branch 'bugfix/wifi_tx_buffer_doc' into 'master'
...
wifi docs: Clarify WIFI_DYNAMIC_TX_BUFFER_NUM config item limit
See merge request !1375
2017-10-12 13:20:28 +08:00
Angus Gratton
f3681e22de
wifi docs: Clarify WIFI_DYNAMIC_TX_BUFFER_NUM config item limit
...
Setting WIFI_DYNAMIC_TX_BUFFER_NUM to zero is not possible.
Also edit some of the related config docs a little.
2017-10-12 15:53:53 +11:00
Deng Xin
a99c89f6af
bug fix of fail to connect in wps
2017-10-12 12:01:11 +08:00
Yulong
7617a3c434
component/bt: Fix the bug cann't use esp_ble_gatts_get_attr_value to get the attribute value after long write.
2017-10-11 07:47:12 -04:00
Deng Xin
a05867f673
Wifi: bugfix of fail to reconnect after reboot
...
fix the issue fail to reconnect after reboot
2017-10-11 17:58:36 +08:00
Jiang Jiang Jian
3ed90a559d
Merge branch 'bugfix/btdm_fix_multi_connection_failed' into 'master'
...
component/bt: modify some comments
See merge request !1332
2017-10-11 17:00:34 +08:00
zhiweijian
cd3d9715bb
Component/bt: fix add whitelist failed
...
- fix add whitelist failed
- add add whitelist callback func
2017-10-11 15:30:09 +08:00
Angus Gratton
353e81da63
freertos: Also test (& handle) the case where scheduler is disabled on other CPU...
...
ie CPU A has scheduler disabled and task blocked on Q. CPU B sends to Q (or gives mutex, etc.) Task on CPU A should be woken on scheduler resume.
2017-10-11 10:48:20 +11:00
Angus Gratton
3e62c2e052
freertos: When scheduler is disabled, tasks on other core should immediately resume
...
... if triggered by a SemaphoreGive/etc.
Previously they would resume after scheduler was resumed, on next
RTOS tick of other CPU.
2017-10-11 10:48:20 +11:00
Angus Gratton
f2f9170abc
freertos: Fix bug with xTaskResumeAll() not resuming all tasks
...
Previously if multiple tasks had been added to xPendingReadyList for the CPU, only the first one was resumed.
Includes a test case for resuming multiple (pending) tasks on xTaskResumeAll().
Document the limitation that while scheduler is suspended on one CPU, it can't wake tasks on either CPU.
2017-10-11 10:48:20 +11:00
Yulong
fc359e4491
component/bt: Change the _btc_storage_remove_ble_bonding_keys function ret default vaule from 1 to 0.
2017-10-10 04:19:11 -04:00
Yulong
25e8c09b6d
component/bt: Change the param.remove_bond_dev_cmpl.status value.
2017-10-10 04:02:05 -04:00
Tian Hao
b54ef13fae
component/bt : allow init after de-init
2017-10-10 15:35:17 +08:00
Yulong
e02ff1ed89
component/bt: Change the bta_gattc_pop_command_to_send function to static.
2017-10-10 03:12:00 -04:00
Angus Gratton
30b40a2175
Merge branch 'bugfix/ff_ioctl_types' into 'master'
...
fatfs: use correct return types in ioctl calls
See merge request !1362
2017-10-10 15:01:47 +08:00
Angus Gratton
dda136eab7
Merge branch 'bugfix/heap_debugging_cleanup' into 'master'
...
Heap debugging docs cleanup & convenience functions
See merge request !1347
2017-10-10 14:59:54 +08:00
Yulong
8e08097151
component/bt: Fixed the bug when remove the bonded device with not exist address will not return error.
2017-10-10 02:29:54 -04:00
Jeroen Domburg
a8131b14b0
Merge branch 'feature/docs_update_uart_api' into 'master'
...
Updated functional overview of UART API documentation
See merge request !1328
2017-10-10 14:06:08 +08:00
Jeroen Domburg
1835c3a213
Merge branch 'feature/docs_update_pcnt_api' into 'master'
...
Extended description of the Pulse Counter API and removed redundant comments from the example
See merge request !1312
2017-10-10 14:06:03 +08:00
Jiang Jiang Jian
904d6c8f2b
Merge branch 'feature/scan_optimize' into 'master'
...
wifi: scan optimize
See merge request !1334
2017-10-10 13:39:16 +08:00
Angus Gratton
f0d7cfdafe
heap: Add new heap_caps_check_integrity_all() & heap_caps_check_integrity_addr() debugging functions
...
Easier to either check all heaps, or focus on checking a particular region.
2017-10-10 16:19:30 +11:00
Angus Gratton
bb8ba76604
Merge branch 'bugfix/multi_heap_get_info_typo' into 'master'
...
Fix multi_heap_get_info alias (from github)
See merge request !1357
2017-10-10 13:14:09 +08:00
Deng Xin
d515494d1b
wifi: optimize scan feature
...
1. add the threshold of match AP in fast scan
2. add blacklist feature
3. make sure would wrong if password didn't set
4. add scan example
2017-10-10 12:27:02 +08:00
Jiang Jiang Jian
3106ca1c1e
Merge branch 'bugfix/btdm_ea_overloaded' into 'master'
...
component/bt: increase programming delay for event arbiter to allow for heavy workload
See merge request !1338
2017-10-10 12:26:25 +08:00
Angus Gratton
19d983974f
Merge branch 'feature/freertos_dual_core_hooks_github' into 'master'
...
freertos: Make the tick/idle hooks dual core compatible (from github)
See merge request !1361
2017-10-10 12:06:05 +08:00
Ivan Grokhotkov
104204ce56
fatfs: use correct return types in ioctl calls
...
GET_SECTOR_SIZE should return WORD (unsigned short) but returned
uint32_t.
Reference: http://elm-chan.org/fsw/ff/doc/dioctl.html
Closes https://github.com/espressif/esp-idf/pull/1031 .
2017-10-10 12:02:32 +08:00
Ivan Grokhotkov
139b0c8396
Merge branch 'bugfix/fatfs_timezone' into 'master'
...
fatfs: use localtime_r instead of gmtime to get timezone
See merge request !1358
2017-10-10 12:00:24 +08:00
krzychb
9107b47deb
Updated UART API documentation and examples. Included a fix of #1091 from GitHub
2017-10-10 05:54:36 +02:00
Ivan Grokhotkov
fdc24eb118
phy init: remove descriptions of PHY init parameters
2017-10-09 14:40:08 +08:00
Angus Gratton
ec85f9fc3f
heap: Fix documentation references to multi_get_heap_info()
2017-10-09 14:42:31 +11:00
Daniel Campora
1c046f30a6
freertos: Make the tick/idle hooks dual core compatible
...
The way these hooks are implemented at the moment, once you register a tick or idle task hook, it is run by both cores, leading to intermittent crashes that are difficult to explain (and debug). One solution is to register the hook with the core that is currently running, which is what this patch attempts to do.
Merges https://github.com/espressif/esp-idf/pull/781
2017-10-09 13:04:20 +11:00
Angus Gratton
110c71d3f1
Merge branch 'feature/ipv6_socket_options' into 'master'
...
IPV6 multicast socket options
See merge request !964
2017-10-09 09:03:30 +08:00
Tuan PM
9d39881981
i2s: add support apll clock
...
using apll_param to setup APLL
new apll calculation method, much faster
validate freq calculation
Ensure that the i2s frequency is greater than the hardware limit
Add description of how to calculate apll clock, support apll for other 16-bits audio, check rev0 chip
correct space
2017-10-06 15:36:24 +07:00
Angus Gratton
de750e9921
Merge branch 'bugfix/pthread_join_hangup' into 'master'
...
Bugfix/pthread join hangup
See merge request !1346
2017-10-06 13:14:51 +08:00
Angus Gratton
acff3c9c59
libsodium: Fix mbedTLS SHA256 & SHA512 implementation, make optional
...
* Only direct invocation of cypto_hash_sha256 & crypto_hash_sha512 produced correct output.
* Some remaining header file mixups, so changed approach to wrapping the state structures.
* Fixes https://github.com/espressif/esp-idf/issues/1044 (crypto_sign problems)
* Add option to disable mbedTLS implementation for SHA256 & SHA512 in libsodium
2017-10-06 11:51:55 +11:00
Angus Gratton
0dd9b899b7
periph_ctrl: Refactor to add periph_module_reset(), avoid potential race in SPI DMA workaround
...
Also refactor use of direct clock access in unit test ref_clock (probably not a real issue)
2017-10-02 17:48:16 +11:00
Angus Gratton
530bca1813
freertos: Remove obsolete "Enable heap memory debug" option
...
All heap debugging is now under the Heap component.
2017-10-02 13:43:54 +11:00
Angus Gratton
3fdb1944d3
lwip: Disable IPV4 Link-Local addressing by default
...
Keeps existing IDF behaviour the same. Can still be enabled via menuconfig.
2017-10-02 10:50:27 +11:00
Angus Gratton
2cc8c91ad8
lwip: Remove undocumented CONFIG_MDNS macro flag
...
All options that were enabled via CONFIG_MDNS are now in menuconfig, with
the default values set the same as with CONFIG_MDNS enabled (meaning existing
projects that were using CONFIG_MDNS do not need to change).
2017-10-02 10:50:27 +11:00
Angus Gratton
04a2cefb26
lwip: Enable IPV6_ONLY option for UDP sockets (BSD & netconn)
...
* setsockopt(s, IPV6_ONLY, &one, sizeof(int)) will disable IPV6-only
mode. Incoming/outgoing IPV4 packets are dropped.
* Otherwise, sockets bound to IPV6_ANY_ADDR can receive unicast packets
for IPV4 or IPV6.
* sendto() a IPV6-mapped-IPV4 address on a UDP socket works correctly
(not supported for RAW or TCP sockets.)
* getaddrinfo() option AI_V4MAPPED is implemented.
As well as extending support to TCP & RAW, there is some potential improvement
to dropping incoming packets - the drop happens a bit late in the process and
there is no "ICMP port unreachable" response sent.
2017-10-02 10:50:27 +11:00
Angus Gratton
961180617e
lwip: Add IPV6 multicast group membership socket options
...
As described in RFC2133: IPV6_MULTICAST_IF, IPV6_MULTICAST_HOPS,
IPV6_MULTICAST_LOOP, IPV6_MULTICAST_LOOP, IPV6_DROP_MEMBERSHIP.
2017-10-02 10:50:27 +11:00
Alexey Gerenkov
5795ccc806
freertos: Fixes deadlock in pthread_once for init_routines calling pthread_once
2017-10-01 19:52:48 +03:00
Alexey Gerenkov
54a529f596
freertos: Fixes hangup upon pthread_join on finished thread
2017-10-01 19:52:48 +03:00
Luc
6e0f054884
use localtime_r instead of gmtime to get timezone
...
on fatfs
2017-09-30 21:44:35 +08:00
wangmengyang
2797966c47
component/bt: increase programming delay for event arbiter to allow for heavy workload
2017-09-30 18:12:45 +08:00
Jeroen Domburg
b6a2bd1184
Revert "esp32: New Task Watchdog API"
...
This reverts commit 616baa239d
.
2017-09-30 18:07:19 +08:00
zhiweijian
c75da555af
Component/bt: fix set scan params and start scan action
2017-09-30 17:01:57 +08:00
zhiweijian
4720196015
Component/bt: fix multi-connection failed
...
- modify some comments
2017-09-30 16:30:43 +08:00
Yulong
1a07a13727
component/bt: Change the 0x04 to Macro BTA_LE_AUTH_REQ_MITM.
2017-09-30 04:05:21 -04:00
Jiang Jiang Jian
91c259b105
Merge branch 'bugfix/btdm_change_pll_track_interrupt' into 'master'
...
component/bt : change pll track interrupt bits
See merge request !1310
2017-09-30 15:53:58 +08:00
Jiang Jiang Jian
c2a4713958
Merge branch 'bugfix/btdm_btc_ble_set_rand_addr' into 'master'
...
component/bt: Fix bug of function btc_ble_set_rand_addr
See merge request !1297
2017-09-30 15:49:53 +08:00
Jiang Jiang Jian
b420c62602
Merge branch 'bugfix/btdm_mem_leak_of_gattc_open_and_close' into 'master'
...
component/bt: Fix bug of memory leak of gatt open and close
See merge request !1325
2017-09-30 15:48:57 +08:00
Jiang Jiang Jian
a8dab7680a
Merge branch 'bugfix/btdm_gattc_mutiple_read_bug' into 'master'
...
component/bt: Fixed the bug of mutiple read can not callback.
See merge request !1286
2017-09-30 15:45:56 +08:00
Jiang Jiang Jian
816fe6cf1f
Merge branch 'bugfix/btdm_gattc_get_db_prop_bug' into 'master'
...
component/bt: Fiexd the bug of the gattc cannot get the db properties.
See merge request !1284
2017-09-30 15:42:45 +08:00
Jiang Jiang Jian
f619386967
Merge branch 'bugfix/btdm_fail_to_find_handle_#15534' into 'master'
...
component/bt: Fix the bug of total attr didn't reset when init the gattc cache.
See merge request !1331
2017-09-30 15:42:07 +08:00
Yulong
3d3bcd6275
component/bt: Added the gattc command queue support.
2017-09-30 13:59:14 +08:00
Yulong
fb93a59619
component/bt: added the queue to store the gattc commands.
2017-09-30 13:59:14 +08:00
Darian Leung
616baa239d
esp32: New Task Watchdog API
...
Legacy API of task watchdog used the same function esp_task_wdt_feed() to add
and feed a task. This caused issues of implicitly adding a task to the wdt list
if the function was used in shared code.
The new API introduces init, adding, feeding, deleting, deinit functions. Tasks
must now be explicitly added to the task watchdog using their handles. Deletion
must also be explicit using task handles. This resolves the issue of implicit
task additions to the task watchdog due to shared code calling
esp_task_wdt_feed().
Task watchdog is now fully configurable at runtime by calling the init and
deinit functions.
Also added functions to get the handles of idle tasks of the other core. This
helps when adding idle tasks to the watchdog at run time.
Configuring the task watchdog using menu config is still available, however
menu config will only result in calling the init and add functions for idle
tasks shortly after the scheduler starts.
Menu config also allows for using legacy behavior, however the legacy behavior
willcall the new API functions but with slight variations to make them legacy
compatible.
Documentation and example have also been updated
gcov_rtio.c headers updated to prevent error of freertos header files being
included in the wrong order.
Resolves issue TW#13265
2017-09-29 23:10:55 +08:00
Darian Leung
ae9041ab71
esp32: Fix task watchdog timer triggering issues TW#14794
...
The two task watchdog timer bugs are as follows...
1) If only a single task existed on the wdt task list, and esp_task_wdt_feed()
was only called once, the watchdog triggers but fails to print task name
2) If a single task already exists on the task wdt list, and another task calls
esp_task_wdt_feed() once, the watchdog fails to trigger
Problem stemmed from the loop responsible for resetting the watchdog timer
having incorrect loop parameters. The loop failed to traverse the full length
of the task wdt list
2017-09-29 22:12:58 +08:00
baohongde
b78da3b715
component/bt: Fix bug of set sec properity error
2017-09-29 18:46:28 +08:00
baohongde
b59708ca87
component/bt: Fix bug of function btc_ble_set_rand_addr
2017-09-29 11:46:08 +08:00
Jeroen Domburg
740f8a79f0
Add logic to make external RAM usable with malloc()
2017-09-28 17:17:50 +08:00
baohongde
27e1db508d
component/bt: Fix bug of function btc_ble_set_rand_addr
2017-09-28 14:41:31 +08:00
baohongde
68958a2485
component/bt: Fix bug of memory leak of gatt open and close
2017-09-28 14:34:57 +08:00
Yulong
f7a2cc37b3
component/bt: Fix the bug of total attr didn't reset when init the gattc cache.
2017-09-28 02:09:02 -04:00
Jeroen Domburg
58a5d883f4
Merge branch 'test/spi_master_internal_connect' into 'master'
...
test(spi_master): add test case for 3 DMA issues with internal connection by gpio mux.
See merge request !1217
2017-09-27 17:00:31 +08:00
Angus Gratton
a3a4a20518
Merge branch 'bugfix/bt_sdp_server_continuation' into 'master'
...
bluedroid: Add continuation offset check to SDP server
See merge request !1323
2017-09-27 11:13:54 +08:00
michael
fcd0f52e21
test(spi_master): add test case for 3 DMA issues with internal connection by gpio mux.
...
3 issues are:
1. RX buffer not aligned (start and end)
2. not setting rx_buffer
3. setting rx_length != length
also add spi release code here.
2017-09-27 10:44:28 +08:00
Angus Gratton
c9241b4310
bluedroid: Add continuation offset check to SDP server
...
Fix for CVE-2017-0785
https://android.googlesource.com/platform/system/bt/+/818cf6f%5E%21/#F0
2017-09-27 09:49:04 +10:00
krzychb
e69691427c
Extended description of the Pulse Counter API and removed redundant comments from the example
2017-09-26 22:44:46 +02:00
Deomid Ryabkov
882f164e7c
Fix multi_heap_get_info alias
2017-09-26 15:00:47 +01:00
Ivan Grokhotkov
73e8afc5b9
soc: place constant data from rtc_clk.c into DRAM
...
In release mode, switches in rtc_clk_bbpll_set would be converted to
jump tables. These tables would be placed into .rodata, which caused
rtc_clk_cpu_freq_set to be unusable while cache is disabled. This
manifested itself in crashes when exiting from light sleep:
https://esp32.com/posting.php?mode=reply&f=13&t=3089#pr14590
2017-09-26 17:08:49 +08:00
Ivan Grokhotkov
7d436c9a44
Merge branch 'bugfix/timestamp' into 'master'
...
fix(global, log): correct the CCOUNT register when switching CPU clock during boot 2nd and before scheduler.
See merge request !1296
2017-09-26 16:15:42 +08:00
Ivan Grokhotkov
b7a79ab67e
Merge branch 'bugfix/bind_dhcp_server_udp_to_ip_of_ap' into 'master'
...
Fix the bug that if one device is in station+softap mode, other device can not get IP address after connecting to the softap.
See merge request !1314
2017-09-26 16:06:55 +08:00
Ivan Grokhotkov
545421be47
Merge branch 'feature/support_wifi_country_api' into 'master'
...
esp32: support wifi country code
See merge request !1300
2017-09-26 16:05:49 +08:00
Ivan Grokhotkov
bbab9ecf23
Merge branch 'feature/docs_update_sigmadelta_api' into 'master'
...
Updated sigma delta API documenation and example
See merge request !1319
2017-09-26 16:05:18 +08:00
michael
9d9e771933
fix(global, log): fix esp_log(_early)_timestamp
readings after startup by correct the CCOUNT register when switching CPU clock.
...
TW#13332, Closes #700
2017-09-26 15:18:17 +08:00
Liu Zhi Fu
762f8da078
esp32: support wifi country code
...
1. Add completed support for WiFi country code
2. Modify esp_wifi_set_country API
2017-09-26 13:36:53 +08:00
Ivan Grokhotkov
fd02668d8b
Merge branch 'feature/record_more_info_of_scanned_ap' into 'master'
...
Record more information of scanned AP
See merge request !1289
2017-09-26 10:13:48 +08:00
Ivan Grokhotkov
6875fd2339
Merge branch 'feature/tw15502_add_iperf_example' into 'master'
...
example: add iperf example
See merge request !1313
2017-09-26 09:38:34 +08:00
Liu Zhi Fu
05b0d567e5
example: add iperf example
...
Support iperf
2017-09-26 09:19:01 +08:00
krzychb
b5e4c76bfe
Updated sigma delta API documenation and example
2017-09-25 21:31:09 +02:00
Tian Hao
e1177ca9cb
component/bt : change pll track interrupt bits
2017-09-25 18:35:46 +08:00
Jiang Jiang Jian
2908e8a33a
Merge branch 'bugfix/scan_fail' into 'master'
...
component/bt : fix bug of scan fail after a long time
See merge request !1301
2017-09-25 18:28:09 +08:00
Angus Gratton
1773770f44
Merge branch 'feature/multi_heap_assert' into 'master'
...
multi_heap: Print the problem address when aborting due to heap corruption
See merge request !1277
2017-09-25 09:51:14 +08:00
XiaXiaotian
20064978ba
Fix the bug that if one device is in station+softap mode, other device can not
...
get IP address after connecting to the softap.
Now the default netif is station in station+softap mode. The UDP pcb of
DHCP server is binded to IP 0.0.0.0. When other device connects to softap, the
DHCP offer will be sent by softap.But because the destination IP of DHCP offer
is broadcast IP and the source IP of it is 0.0.0.0, it will be sent from default
netif, that is station interface. Other device can not receive the DHCP offer
sent from station interface. As a result, other device can not get IP address.
The resolution is that bind UDP pcb to the IP address of softap. So, the source
IP of DHCP offer is that of softap. DHCP offer can be sent from softap interface
by source IP route method.
2017-09-23 20:18:50 +08:00
Ivan Grokhotkov
845c3fba35
Merge branch 'test/update_ble_known_issues' into 'master'
...
test: udpate new BLE known issues
See merge request !1306
2017-09-22 22:34:18 +08:00
Ivan Grokhotkov
750f47c28b
Merge branch 'bugfix/gpio26_rtc_hold' into 'master'
...
driver/rtc: fix copy-paste error in HOLD_FORCE field name for GPIO26
See merge request !1299
2017-09-22 22:34:04 +08:00
Ivan Grokhotkov
7bfbc5bf7c
Merge branch 'bugfix/light_sleep' into 'master'
...
Light sleep fix
See merge request !1303
2017-09-22 16:37:59 +08:00
XiaXiaotian
98dfb8c0b9
Record more information of scanned AP
2017-09-22 15:43:33 +08:00
Ivan Grokhotkov
6b61c6d39f
esp32: exclude DPORT-related code in single core mode
2017-09-22 12:07:05 +08:00
Ivan Grokhotkov
3f761e1a83
light sleep: make sure code to be placed into IRAM is not inlined
2017-09-22 11:41:30 +08:00
He Yin Ling
363a20abec
test: udpate new BLE known issues:
...
1. some cases caused by GATTC can't get correct attribute handle
2. some cases with increased fail ratio
2017-09-22 09:49:18 +08:00
Tian Hao
602b90b892
component/bt : fix bug of scan fail after a long time
2017-09-21 17:40:30 +08:00
Ivan Grokhotkov
0a6fdc3a96
Merge branch 'bugfix/btdm_enable_limit' into 'master'
...
BT controller: add function to release unused memory to the heap
See merge request !1248
2017-09-21 17:33:09 +08:00
Jeroen Domburg
c54a9ff40a
Merge branch 'docs/FreeRTOS_SMP_Changes' into 'master'
...
docs: Added documentation for FreeRTOS SMP changes
See merge request !1238
2017-09-21 17:10:33 +08:00
Darian Leung
6ab552a6ea
docs: Added documentation for FreeRTOS SMP changes
...
Added documentation about the ESP-IDF changes to FreeRTOS.
The documentation covers changes to the following FreeRTOS aspects.
- Task Creation
- Affects on scheduling (Task skipping, scheduler suspension, tick synchronicity)
- Critical sections and disabling interrupts
- Thread Local Storage Pointers and deletion callbacks
- Configuring ESP-IDF FreeRTOS
2017-09-21 16:40:57 +08:00
Tian Hao
3e2ee24e4f
component/bt : support bluetooth controller DRAM release dynamically
...
1. remove CONFIG_BT_DRAM_RELEASE from Kconfig
2. add API to release bluetooth controller DRAM to heap
2017-09-21 14:31:20 +08:00
Deng Xin
ee25caf4b2
WiFi: optimize scan feature
...
1. Add all channel scan feature
2. Add sort matched SSID by authmode feature
2017-09-21 14:28:49 +08:00
Ivan Grokhotkov
8c4c5ae034
Merge branch 'bugfix/apptrace_down_buf_init' into 'master'
...
esp32: Fixes double initialization of apptrace down ring buffer in dual core mode
See merge request !1274
2017-09-21 12:37:40 +08:00
Ivan Grokhotkov
64d1f947ed
driver/rtc: fix copy-paste error in HOLD_FORCE field name for GPIO26
...
This error prevented EXT1 wakeup using GPIO26 from working.
2017-09-21 12:26:03 +08:00
Angus Gratton
b5aad2fa3d
Merge branch 'bugfix/spiffs_debug' into 'master'
...
Fix typo in spiffs config
See merge request !1287
2017-09-21 07:24:43 +08:00
Angus Gratton
728b46c578
Merge branch 'bugfix/minor_fixes_github' into 'master'
...
Minor fixes from github
See merge request !1292
2017-09-21 07:21:32 +08:00
me-no-dev
14b12a27cf
Fix typo in spiffs config and update submodule
...
Fixes github issues #1012 and #1013
https://github.com/espressif/esp-idf/issues/1012
https://github.com/espressif/esp-idf/issues/1013
2017-09-20 17:29:57 +08:00
Yulong
f325ba3942
component/bt: Change the cmpl_evt command in the bta_gattc_read_cmpl function.
2017-09-20 04:28:52 -04:00
Angus Gratton
7e428433e1
Merge branch 'bugfix/lwip_tcp_oversize_assert' into 'master'
...
fix lwip tcp_oversize_dbgcheck assert
See merge request !1260
2017-09-20 10:16:47 +08:00
Simon Werner
45ad0cdda2
Improved uart_flush()
documentation.
...
Improved `uart_flush()` documentation based on this discussion: https://esp32.com/viewtopic.php?f=13&t=2804&p=13377&hilit=uart_flush#p13373
Merges https://github.com/espressif/esp-idf/pull/970
2017-09-20 12:09:44 +10:00
Tian Hao
b54719d00f
component/bt : fix bluetooth controller enable limit && release memory when de-initialize bluetooth controller
...
1. fix bluetooth controller enable limit
2. release memory when de-initialize bluetooth controller
3. fix heap_caps_add_region limit
2017-09-19 21:14:28 +08:00
Wangjialin
449f9e10a3
bugfix(touch): add workaround for touch pad DAC hardware source mismatch on tp8 and tp9.
2017-09-19 20:10:39 +08:00
michael
1b91cb7be0
fix(sdspi): fix issues causing the sdspi driver to work low efficiently with DMA.
2017-09-19 19:00:47 +08:00
Yulong
e815660824
component/bt: Fixed the bug of mutiple read can not callback.
2017-09-19 04:50:26 -04:00
michael
074f36afff
fix(spi_master): fix the heap corruption bug that RX DMA writes over the temporary buffer boundary.
...
TW#15434
Closes #994 .
2017-09-19 16:47:14 +08:00
Yulong
7827bc486d
component/bt: Fiexd the bug of the gattc cannot get the db properties.
2017-09-18 23:15:32 -04:00
Ivan Grokhotkov
9325f2a7a4
nvs_flash: emulator: fix issues in load function, add save function
2017-09-19 10:39:44 +08:00
Ivan Grokhotkov
fe30789149
nvs_flash: delete Storage if init fails
...
Previously, nvs_flash_init_custom would not be called if Storage for a
particular partition was already created. This caused issues if the
first call to nvs_flash_init failed due to Storage init error. This issue
exhibited itself as random failures of NVS CI test.
With this change, storage object is deleted (and not added to storage
list) if initialization fails.
2017-09-19 10:39:44 +08:00
Ivan Grokhotkov
f32b25ebe2
nvs_flash: add functions to deinitialize storage
2017-09-19 10:39:44 +08:00
Amey Inamdar
c8945bb82a
nvs: minor - removed unused header inclusion
...
Signed-off-by: Amey Inamdar <amey.inamdar@gmail.com>
2017-09-18 17:02:32 +05:30
Jiang Jiang Jian
e9655c5d90
Merge branch 'feature/btdm_cherry_pick_ble_new_api' into 'master'
...
Feature/btdm cherry pick ble new api
See merge request !1113
2017-09-18 18:17:11 +08:00
Yulong
388bf8d579
componnent/bt: remove the <<<<<<< HEAD in the code.
2017-09-18 05:44:50 -04:00
Yulong
8925a90d40
squash again
...
squash the commit.
component/bt:Added the update_white_list & set_prefer_conn_params API to the bt project.
component/bt: Added the get white list size API & delete the read adv tx power API.
component/bt: Change the esp_gap_ble_api.h esp_ble_gap_set_prefer_conn_params API docs.
changed btm_find_dev to btm_find_or_alloc_dev
component/bt: Change the rssi API deep copy method.
component/bt: Change the code as comment in the gitlab.
squash the commit.
component/bt:Added the update_white_list & set_prefer_conn_params API to the bt project.
component/bt: Added the get white list size API & delete the read adv tx power API.
component/bt: Change the esp_gap_ble_api.h esp_ble_gap_set_prefer_conn_params API docs.
changed btm_find_dev to btm_find_or_alloc_dev
component/bt: Change the rssi API deep copy method.
component/bt: Change the code as comment in the gitlab.
component/bt: change the ESP_BLE_CONN_PARAM_UNDEF redefinition error.
component/bt: Change the ESP_BLE_IS_VALID_PARAM function with the compile error.
2017-09-18 05:39:26 -04:00
Angus Gratton
959462ffb6
multi_heap_poisoning: Use MULTI_HEAP_STDERR_PRINTF (ets_printf) to print heap errors
...
Needed because normal printf() can trigger a malloc() (for standard stream locks) which
then re-triggers this check.
2017-09-18 16:54:28 +10:00
Angus Gratton
76d8190444
multi_heap: Print the problem address when aborting due to heap corruption
...
New multi_heap code has proven effective at aborting when buffer overruns occur,
but it's currently hard to debug the stack traces from these failures.
2017-09-18 16:54:23 +10:00
michael
8244fa95fe
feat(log): add new function to log buffer with level and hex dump.
2017-09-18 11:44:54 +08:00
Angus Gratton
9a1ba5985b
Merge branch 'feature/partition_table_expand_line' into 'master'
...
partition_table: Expand vars before splitting fields (github #841 )
See merge request !1174
2017-09-18 09:18:25 +08:00
Alexey Gerenkov
fe3b557fa8
esp32: Fixes double initialization of apptrace down ring buffer in dual core mode
...
Additional minor fixes:
- Host file I/O code warnings
- Initialization of down buffer for GCOV
2017-09-15 22:45:21 +03:00
Jiang Jiang Jian
3d7ec475d1
Merge branch 'feature/btdm_cherry_pick_change_gattc_api' into 'master'
...
component/bt: Change all the gattc API && bta gattc layer.
See merge request !1147
2017-09-15 19:39:29 +08:00
Jiang Jiang Jian
18f2a29a99
Merge branch 'bugfix/btdm_smp_close_compile_error' into 'master'
...
component/bt: fix the bug when close the SMP module in the menuconfig will lead to compile error.
See merge request !1265
2017-09-15 19:36:30 +08:00
Ivan Grokhotkov
4d62f8e5d0
Merge branch 'bugfix/apptrace_init_sequence' into 'master'
...
Changed initialization sequence of application tracing component on APP CPU so i…
See merge request !1256
2017-09-15 15:02:42 +08:00
Tian Hao
dff95aed65
component/bt : fix a malloc bzero of blufi
2017-09-15 11:08:42 +08:00
Yulong
875ba996d5
component/bt: fix the bug when close the SMP module in the menuconfig will lead to compile error.
2017-09-15 10:32:28 +08:00
zhangyanjiao
336c4b4a55
fix lwip tcp_oversize_dbgcheck assert
2017-09-15 10:28:51 +08:00
Alexey Gerenkov
b09f4acb27
Added proper handling of apptrace and pthread initialization errors
2017-09-14 20:47:43 +02:00
krzychb
a1ebeed303
Changed initialization sequence of application tracing component on APP CPU so it follows completion of initialization of the same component on PRO CPU. Previously, because of missing locking mechanism, both components were printing logs to UART at the same time. As results logs contained only corrupted characters / were not legible at all. Internal tracking: esp-idf/openocd-esp32, Issue 15
2017-09-14 20:47:43 +02:00
yulong
09a3e4fd58
squesh the commit.
...
component/bt: Change the idf test KnownIssues file.
component/bt: Fixed the bug of gattc mutilple read.
2017-09-14 09:35:36 -04:00
Jiang Jiang Jian
4c97fc04ca
Merge branch 'bugfix/optimize_lwip_loopback_route' into 'master'
...
optimize lwip route when loopback open and in "APSTA" mode
See merge request !1252
2017-09-14 21:07:58 +08:00
Jiang Jiang Jian
5aa52709c2
Merge branch 'bugfix/fix_some_wifi_lib_bugs' into 'master'
...
Fix some wifi lib bugs
See merge request !1255
2017-09-14 20:39:02 +08:00
Jiang Jiang Jian
c74d944edf
Merge branch 'feature/refractor_smartconfig' into 'master'
...
Refractor smartconfig
See merge request !1253
2017-09-14 20:38:30 +08:00
Jeroen Domburg
0460069582
Merge branch 'bugfix/panic_dport_no_mutex' into 'master'
...
Panic: stop dport access handler without trying to use a lock
See merge request !1244
2017-09-14 18:07:06 +08:00
Jiang Jiang Jian
fff90da8d6
Merge branch 'bugfix/btdm_gatt_read_by_type_bug' into 'master'
...
component/bt: Fix gatt read by type response bug
See merge request !1102
2017-09-14 17:24:02 +08:00
zhangyanjiao
164006509f
optimize lwip route when loopback open and in "APSTA" mode
2017-09-14 16:19:05 +08:00
XiaXiaotian
6bfbe6e4ed
Fix some wifi lib bugs
...
1. add adc2 coexistence
2. change NOW() to WDEV_NOW()
3. call ets_timer_done() before calling ets_timer_setfn()
4. fix the bug that api lock is not unlocked when call esp_wifi_stop()
twice
5. more hmac tx buffer limit from 32 to 64.
2017-09-14 15:19:46 +08:00
Kewal Shah
379320bdb2
change to GPIO_IS_VALID_OUTPUT_GPIO for data out pin
2017-09-14 13:33:39 +08:00
Wangjialin
2fceec4d85
feature(I2S-ADC): add ADC mode for I2S.
...
1. Support built-in ADC for I2S.
2. Modify code of ADC, made no change to the original APIs.
3. Add APIs in I2S:
esp_err_t i2s_set_adc_mode(adc_unit_t adc_unit, adc1_channel_t adc_channel);
4. Add I2S ADC/DAC example code.
5. add old-fashion definition to make it more compatible
6. replase spi_flash_ APIs with esp_partition_ APIs
7. add example of generating audio table from wav
8. change example sound
2017-09-14 13:24:08 +08:00
Jeroen Domburg
6d95934a3c
Make 80MHz PSRAM work as well, add testcase for weirdness reported on esp32 forums, clean up unused define in psram code
2017-09-14 10:47:44 +08:00
Jeroen Domburg
875ae6a134
Add option to allocate external RAM using heap_alloc_caps
2017-09-14 10:47:44 +08:00
Jiang Jiang Jian
574daad1c4
Merge branch 'feature/btdm_update_to_bluedroid7.1_l2cap' into 'master'
...
component/bt: Added the new feature of the l2cap layer from the bluedroid new version 7.1.1
See merge request !1087
2017-09-13 20:39:38 +08:00
Jiang Jiang Jian
33a4a6a510
Merge branch 'feature/add_espnow' into 'master'
...
add ESPNOW feature
See merge request !1061
2017-09-13 20:32:53 +08:00
Jiang Jiang Jian
b70329040d
Merge branch 'bugfix/btdm_gatts_notify_stress_test_crash' into 'master'
...
component/bt: fix bug for gatts notify stress test crash
See merge request !1245
2017-09-13 20:27:17 +08:00
Ivan Grokhotkov
a91b330b49
Merge branch 'bugfix/spiffs_submodule' into 'master'
...
spiffs: Track spiffs submodule in component
See merge request !1251
2017-09-13 18:02:32 +08:00
XiaXiaotian
6753f6cb59
Refractor smartconfig
...
Move code of receiving smartconfig packets and getting password to
wifi lib. Open source code of sending smartconfig ACK to cellphone
in IDF.
2017-09-13 16:55:30 +08:00
Angus Gratton
b687e1a41f
spiffs: Track spiffs submodule in component
...
Will now automatically initialise as part of "make".
2017-09-13 14:54:33 +10:00
Jiang Jiang Jian
f1e3b0df02
Merge branch 'feature/adv_scan_simultaneously' into 'master'
...
component/bt : support adv & scan simultaneously
See merge request !1209
2017-09-13 11:50:57 +08:00
Jiang Jiang Jian
ea7a09c3e4
Merge branch 'bugfix/btdm_sec_config' into 'master'
...
component/bt : fix btc security storage bug
See merge request !1161
2017-09-13 11:46:34 +08:00
zhiweijian
8921a36828
Component/bt: fix bug for gatts notify stress test crash
2017-09-13 11:19:58 +08:00
Jeroen Domburg
9c56d9e75e
Make sure functions that are in ROM in the non-external-ram-workaround version, are in RAM (and not in flash) in the ext-ram workaround version.
2017-09-13 10:36:56 +08:00
Angus Gratton
df888a4f54
Merge branch 'bugfix/openocd_top_used_priority' into 'master'
...
freertos: place uxTopUsedPriority into DRAM
See merge request !1246
2017-09-13 09:02:27 +08:00
Kewal Shah
c4f15a0e5d
ledc_get_duty return type changed from int to uint32_t, target_duty changed from int to uint32_t
2017-09-13 01:43:42 +08:00
Yulong
1759a47060
This is a combination of 4 commits.
...
squash again all the commit.
component/bt: Change all the gattc API && bta gattc layer.
component/bt: Debug the code and change the btc_ble_gattc_get_db method.
component/bt: Change the gatt read API interface.
component/bt: Reconstruction the BTA_gattc_cache code.
component/bt: Change back the bluedroid_get_status to marco.
component/bt: Added the serch service res start_handle & end_handle to the result.
component/bt: Change the gattc docs format.
component/bt: Change the docs format.
component/bt: fix the read char value bug.
component/bt: change the gattc_get_attr_count method.
component/bt: Change back the bta_gattc write ccc code.
component/bt: Change the gattc api docs format
component/bt: Change the gattc API docs.
component/bt: Change the prepare write descriptor method to avoid the exection.
Component/bt: modify gatt clinet demo with new API
component/bt: Change the p_src_data->read.p_value to avoid exection.
compoent/bt: Change the bugfix of gattc unreg for the notify.
Modify gattc security demo
component/bt: Change the log error.
Component/bt: modify gattc_multi_connect demo
componnet/bt: Change the bta_gattc_cache sdp include.
component/bt: Change the start_handle & end_handle not from the service.
component/bt: Change the gattc API docs.
component/bt: Change the return issues.
component/bt: Fixed the include service bug.
component/bt: Modify gattc_multi_connect demo , add scan log
component/bt: Fixed the BTA_GATTC_GetIncludeService start handle & end handle error bug.
component/bt: Fix the invalid handle of the get all char issues.
component/bt: Fix the bug with get_db_size_with_type of the start handle & end_handle not correted issue.
component/bt: Fixed the get secondly service num not correct issue.
component/bt: Fixed the last service handle not correted issue.
2017-09-12 07:36:02 -04:00
Ivan Grokhotkov
b6d82eeceb
Merge branch 'feature/gcov_over_apptrace' into 'master'
...
esp32: Adds gcov over JTAG feature
See merge request !1117
2017-09-12 18:54:26 +08:00
Tian Hao
00a7cdbb0b
component/bt : support adv & scan simultaneously
...
1. Occupy conn[9] for adv. The max connection number of bluetooth controller decrease to 9. (Previously, it is 10)
2. modify the enum of setting BLE TX power corresponding to connection's.
3. fix libbtdm_app.a cwitch jump table
2017-09-12 16:10:30 +08:00
Ivan Grokhotkov
820df6aa27
Merge branch 'bugfix/btdm_nvs_get_str_or_blob' into 'master'
...
fix: Fix bug of function nvs_get_str_or_blob
See merge request !1182
2017-09-12 12:20:42 +08:00
XiaXiaotian
e4ba31a8b9
add ESPNOW feature
...
ESPNOW is a kind of WiFi communication bettween WiFi devices, no
matter they are connected to each other or not. Once two WiFi
devices are paired, they can send data to or receive data from
each other. The data is transmitted in action frame which can
be encrypted with CCMP method. ESPNOW also support mutilcast frame
transmitting.
2017-09-12 12:12:13 +08:00
Ivan Grokhotkov
23f10e1a57
Merge branch 'feature/uart_software_flow_control' into 'master'
...
uart: Add api call to switch on hardware support for 'software' flow control. (github #890 )
See merge request !1215
2017-09-12 12:11:11 +08:00
Ivan Grokhotkov
868b0ce228
Merge branch 'bugfix/list_node_naming' into 'master'
...
Fix "list_node" name conflict in bluedroid & dhcp_server
See merge request !1216
2017-09-12 12:10:54 +08:00
Ivan Grokhotkov
635bd9ac9e
Merge branch 'bugfix/btdm_disable_gatts' into 'master'
...
component/bt: fix build error when GATTS is disabled in menuconfig
See merge request !1232
2017-09-12 12:06:41 +08:00
Ivan Grokhotkov
f4ddaa7a11
Merge branch 'bugfix/crashed_core_dump' into 'master'
...
esp32: Fixes crash during core dump.
See merge request !1239
2017-09-12 11:32:48 +08:00
me-no-dev
dd87deb278
Add SPIFFS Component to IDF
2017-09-11 19:56:40 +03:00
Alexey Gerenkov
4e0c3a0415
esp32: Fixes crash during core dump.
...
Removes piece of debugging code introduced by 8d43859b
.
2017-09-11 17:20:42 +03:00
Ivan Grokhotkov
64bce3ce59
freertos: place uxTopUsedPriority into DRAM
...
When debugging crashes caused by flash cache access errors, OpenOCD may
request the value of uxTopUsedPriority when cache is disabled. Placing
it into IRAM to avoid an error in such case.
2017-09-11 20:15:27 +08:00
Ivan Grokhotkov
1e7c3854d3
Merge branch 'bugfix/warn_on_invalid_xtal_freq' into 'master'
...
soc/rtc: warn if detected XTAL frequency does not match configured one
See merge request !1242
2017-09-11 18:15:11 +08:00
Jeroen Domburg
b3fd494e71
Panic: stop dport access handler without trying to use a lock
2017-09-11 17:24:22 +08:00
Ivan Grokhotkov
de038f502c
Merge branch 'feature/gpio_channel_macro' into 'master'
...
feat(global): add macros for GPIO->channel lookup
See merge request !1170
2017-09-11 12:15:08 +08:00
Ivan Grokhotkov
5a88f90a33
soc/rtc: warn if detected XTAL frequency does not match configured one
...
Since 9a8c0392
, XTAL frequency is set to 40MHz by default, and users
of 26MHz boards need to select 26MHz manually. Most users are not aware
of this change, and existing getting started guides do not mention that
XTAL frequency needs to be set for some boards. So users are left with
garbage output from UART without any clue what to check.
This change adds a warning in case specific XTAL frequency was set, and
it does not match automatically detected one. This should help users
fix the issue.
2017-09-11 11:42:26 +08:00
baohongde
87031f9457
component/bt: fix nvs_get_str_or_blob length output error
2017-09-08 12:02:35 +08:00
baohongde
e1bd51af80
component/bt: fix nvs_get_str_or_blob length output error
2017-09-08 12:02:35 +08:00
baohongde
f3be0395d2
component/bt: fix nvs_get_str_or_blob length output error
2017-09-08 12:02:35 +08:00
Ivan Grokhotkov
e12967297d
Merge branch 'feature/docs_touch_pad_api' into 'master'
...
Touch Pad driver overview
See merge request !1195
2017-09-08 11:55:27 +08:00
wangmengyang
21586063de
component/bt: fix build error when GATTS is disabled in menuconfig
2017-09-08 11:34:59 +08:00
Ivan Grokhotkov
33cb16fd2a
esp32: fix cache error interrupt handler
...
Cache error interrupt would read DPORT registers, which caused DPORT
access protection to kick in. Disable DPORT protection before doing the
reads.
2017-09-08 09:59:09 +08:00
Alexey Gerenkov
891f0db31d
esp32: Adds gcov over JTAG feature
...
Implements function to dump GCOV data to host via JTAG.
The following functionality was added:
- Host file I/O
- GCOV runtime I/O stubs
- GCOV example
2017-09-07 18:13:16 +03:00
Tian Hao
38102f4148
component/bt : fix btc security storage bug
...
1. Remove the bond_device global variable.
2. Fix bond_device add cause memory exception
3. Modify the code location.
4. modify thread security
5. remove esp_ble_clear_bond_device_list() API
6. modify esp_ble_get_gond_device_list() to return list immediately, rather than wait event.
7. modify the gatt_security_server demo to show how to remove all the bonded devices.
8. fix some code bugs may cause something error.
2017-09-07 19:37:49 +08:00
Ivan Grokhotkov
3c470e7c43
Merge branch 'bugfix/rmt' into 'master'
...
RMT 2 fixes: Rename one API and specify wait_time in another API
See merge request !896
2017-09-07 18:03:08 +08:00
Ivan Grokhotkov
5425d8569c
Merge branch 'feature/pthread_api' into 'master'
...
esp32: pthread API
See merge request !1146
2017-09-07 17:49:42 +08:00
Ivan Grokhotkov
40df6546c0
Merge branch 'feature/multi_heap_poisoning' into 'master'
...
Heap tracing & poisoning features
See merge request !749
2017-09-07 17:47:51 +08:00
Ivan Grokhotkov
310269bcdc
Merge branch 'bugfix/tcpip_adapter_ethernet' into 'master'
...
tcpip_adapter: Fix bug which prevents setting a static IP address for Ethernet interface (github #657 )
See merge request !1178
2017-09-07 17:47:20 +08:00
Ivan Grokhotkov
de06a0b8a7
Merge branch 'feature/mbedtls2_6_0' into 'master'
...
Update mbedTLS to version 2.6.0
See merge request !1224
2017-09-07 17:45:45 +08:00
Ivan Grokhotkov
b9dfb437ab
Merge branch 'bugfix/intr_free' into 'master'
...
fix(intr): fix the logic for allocating and freeing interrupts.
See merge request !1124
2017-09-07 17:45:18 +08:00
Angus Gratton
c503a01388
mbedtls: Rename net to net_sockets (in line with 2.4.0 API change)
2017-09-07 18:02:39 +10:00
Angus Gratton
3a08ec7b3d
mbedtls: Re-apply: MBEDTLS_SHA512_ALT also replaces mbedtls_sha512_process()
...
IDF-specific patch.
2017-09-07 18:02:26 +10:00
Angus Gratton
3142997830
mbedtls: Re-apply ECP memory leak fix
...
Fix not yet submitted upstream.
(Previously applied in ffefeef5ea
)
2017-09-07 18:02:26 +10:00
Angus Gratton
736db688a8
mbedtls: Re-apply MBEDTLS_BIGNUM_ALT & related macros for custom bignum functions
...
(IDF-specific patch.)
2017-09-07 18:02:26 +10:00
Angus Gratton
ae382b3bfa
mbedtls: Update to 2.6.0 release (without IDF-specific patches)
2017-09-07 18:02:26 +10:00
Angus Gratton
f8339fc1bd
newlib: Avoid deprecation warning calling system_get_time() from system_relative_time()
2017-09-07 16:32:05 +10:00
Angus Gratton
73b3ae8a2d
lwip: Use hardware RNG for LWIP_RAND(), use LWIP_RAND() for random port assignment
2017-09-07 16:32:05 +10:00
Angus Gratton
72995bfcec
doc: Add docs for heap trace & poisoning
2017-09-07 16:32:05 +10:00
Angus Gratton
ec498ad86d
libgcc: Place assembly functions (including __xtensa_libgcc_window_spill) in IRAM
2017-09-07 16:32:05 +10:00
Angus Gratton
1c7b8aa3a5
Heap tracing support
2017-09-07 16:32:05 +10:00
Angus Gratton
5c417963eb
multi_heap: Add heap poisoning features
2017-09-07 16:32:05 +10:00
Angus Gratton
5222428dde
unit tests: Check heap integrity after each test, check for obvious leaks
2017-09-07 16:32:05 +10:00
Angus Gratton
1cb0f30933
heap_caps: Add heap_caps_check_integrity() function
2017-09-07 16:32:05 +10:00
Ivan Grokhotkov
63e1e4e502
Merge branch 'test/modify_mtu_cases' into 'master'
...
test: update BLE GATT MTU cases
See merge request !1223
2017-09-07 14:27:41 +08:00
chensheng
ac5e1f65b2
test:update BLE GATT MTU cases
2017-09-07 13:46:13 +08:00
Jiang Jiang Jian
5146289eea
Merge branch 'feature/update_wifi_lib_for_some_feature_and_bugfix' into 'master'
...
esp32: update wifi lib for a bunch of small feature and bugfix
See merge request !1222
2017-09-07 13:24:24 +08:00
Ivan Grokhotkov
8f5e4bacf3
Merge branch 'bugfix/spi_cache_disable_adjustments_iram' into 'master'
...
Make sure cache is disabled/enabled when *both* CPUs are running inside the iram guard code
See merge request !1208
2017-09-07 11:02:21 +08:00
Liu Zhi Fu
a568ad2c9d
esp32: update wifi lib for a bunch of small feature and bugfix
...
1. Update RTC V229: add BT AGC saturation protection
2. Update PHY V359: (1). esp_init_data_v2.bin -- modify WIFI and BT RX gain table Setting
(2). modify phy_close_rf()
(3). noisefloor add limit and no print
3. WiFi supports modem sleep dynamic frequency switch
4. Fix disabling AMPDU cause esp_wifi_init fail issue
5. Fix sniffer mode cause WiFi can't connect issue
6. Optimize an internal rx buffer full issue
7. Rollback the internal wifi init flag when wifi init fail
2017-09-07 11:01:12 +08:00
michael
08b9fbc242
feat(global): add macros for GPIO->channel lookup
...
including: macros for dac, adc, touch, rtc_gpio, uart and clk_out.
TW#13970
2017-09-07 10:40:25 +08:00
Angus Gratton
4809c70899
Merge branch 'feature/register_heaps_runtime' into 'master'
...
heap: Support adding new heap regions at runtime
See merge request !1159
2017-09-07 10:18:21 +08:00
Angus Gratton
dcd2f71d11
Merge branch 'bugfix/http_to_https_url_changes' into 'master'
...
Mass replacement of http with https urls, fixed broken urls
See merge request !1221
2017-09-07 10:16:43 +08:00
Tian Hao
b8b2816f67
component/bt : fix unloaded memory(0x3fff0000 overwrite) bug
2017-09-06 21:45:18 +08:00
Jeroen Domburg
b24d2c4cf3
Make sure cache is disabled/enabled when *both* CPUs are running inside the iram guard code
2017-09-06 16:34:36 +08:00
Yulong
371c55138e
component/bt: Added the new feature of the l2cap layer from the bluedroid new version 7.1.1
2017-09-06 04:25:57 -04:00
michael
73ba29e6df
refactor(intr): remove useless tags in the debug log.
2017-09-06 15:20:04 +08:00
michael
c82e51cf79
fix(intr): always assign the same intr to a same source, disable the source only when all the handlers disabled.
...
also document handlers sharing a same source.
TW#13454, https://github.com/nodemcu/nodemcu-firmware/issues/1874
Breaking change: handles assigned to a same source should have the same flag now.
2017-09-06 15:20:01 +08:00
krzychb
672390c458
Mass replacement of http with https urls, fixed broken urls
2017-09-06 08:16:01 +02:00
Alexey Gerenkov
5dea0fca15
esp_pthread_init constructor attr was removed
2017-09-06 10:30:23 +08:00
Alexey Gerenkov
5094965e98
According to comments
2017-09-06 10:30:23 +08:00
Ivan Grokhotkov
e3b86e7bdb
pthread: handle statically initialized mutexes
2017-09-06 10:30:23 +08:00
Alexey Gerenkov
20942421c3
According to review comments
2017-09-06 10:30:23 +08:00
Alexey Gerenkov
8859dab10c
Cleanup
2017-09-06 10:30:23 +08:00
Alexey Gerenkov
bf8ff8c98b
1) Thread detach functionality added
...
2) Recursive mutexes support
3) C++ test updated
2017-09-06 10:30:23 +08:00
Alexey Gerenkov
c631c6b358
1) Mux API was added
...
2) C++ test for threading and mux functions
2017-09-06 10:30:23 +08:00
Alexey Gerenkov
0b09c7006d
pthread: Initial version of thread API
2017-09-06 10:30:23 +08:00
Jeroen Domburg
604308f4ab
Merge branch 'bugfix/soft_reboot_psram' into 'master'
...
Fix rebooting when external RAM is active
See merge request !1207
2017-09-05 15:43:30 +08:00
Angus Gratton
74d5f85c53
Merge branch 'feature/build_warn_undefined_vars' into 'master'
...
Add --warn-undefined-variables to MAKEFLAGS (github #138 )
See merge request !1214
2017-09-05 15:39:48 +08:00
Angus Gratton
9471ce9135
dhcpserver: Move DHCP option names to a separate header
...
Avoids naming conflicts. Resolves TW13826.
2017-09-05 17:28:40 +10:00
Angus Gratton
48333aea48
bluedroid: Move fixed_queue.h to implementation of hci_layer.c
...
Avoids pulling types like list_node into the public interface.
Closes https://github.com/espressif/esp-idf/issues/948
2017-09-05 17:14:40 +10:00
Angus Gratton
1be6bf6790
dhcpserver: Move list_node to implementation not public interface
...
Was unused in the public interface.
Closes https://github.com/espressif/esp-idf/issues/948
2017-09-05 17:14:23 +10:00
Alex Burr
93cc3a77cb
uart: Add api call to switch on hardware support for 'software' flow control.
...
Cherry-picks https://github.com/espressif/esp-idf/pull/890
2017-09-05 16:30:21 +10:00
krzychb
ba42c46cb3
Touch Pad driver overview
2017-09-05 08:28:44 +02:00
Deomid Ryabkov
1ea082a053
Expand vars before splitting fields
...
This allows making entire partition table line a variable.
Merges https://github.com/espressif/esp-idf/pull/841
2017-09-05 16:23:54 +10:00
Angus Gratton
f17bbff4b5
Merge branch 'feature/tcp_msl_menuconfig' into 'master'
...
components/lwip: Expose TCP_MSL in menuconfig. (github #783 )
See merge request !1175
2017-09-05 14:18:36 +08:00
Angus Gratton
8670844acf
build system: Restore ifdef/ifndef in Makefiles, clean up examples build
2017-09-05 16:11:03 +10:00
Deomid Ryabkov
9903ea1c11
Add --warn-undefined-variables to MAKEFLAGS
...
Fix warnings where undefined vars are used.
Make Kconfig emit "FOO=" for unset bool options
To ensure make variables are always defined, even if empty.
When writing auto.conf, include symbols disabled by dependency to make sure all make variables are always defined.
Fixes espressif/esp-idf#137
Cherry-picked from https://github.com/espressif/esp-idf/pull/138
2017-09-05 16:10:46 +10:00
Angus Gratton
167f2cf9e1
Merge branch 'bugfix/nvs_item_crc_check' into 'master'
...
nvs: check CRC of items on full pages
See merge request !1200
2017-09-05 12:09:40 +08:00
Angus Gratton
5361c08989
heap: Support adding new heap regions at runtime
...
To facilitate this, the list of registered heap regions is now a linked list
(allowing entries to be appended at runtime.)
2017-09-05 14:07:02 +10:00
Ivan Grokhotkov
8433fed7f4
Merge branch 'bugfix/core_dump_loop' into 'master'
...
esp32: Fixes infinite loop caused by exception during core dumping
See merge request !1210
2017-09-05 11:40:31 +08:00
Angus Gratton
74a017e1e4
Merge branch 'bugfix/mbedtls_net_failures' into 'master'
...
mbedtls: Don't assign ctx->fd until connect() or bind() has succeeded
See merge request !1211
2017-09-05 11:28:43 +08:00
Ivan Grokhotkov
9362d66812
Merge branch 'feature/adc_calibration' into 'master'
...
Bugfix/ added esp_adc_cal include guards
See merge request !1192
2017-09-05 11:23:05 +08:00
Ivan Grokhotkov
c007213fed
Merge branch 'bugfix/deep_sleep_wakeup_stub' into 'master'
...
deep sleep: don't use protected DPORT access in wake stub
See merge request !1194
2017-09-05 11:22:52 +08:00
Alexey Gerenkov
fb8b0c534a
esp32: Fixes infinite loop caused by exception during core dumping
2017-09-05 11:15:27 +08:00
Ivan Grokhotkov
51e8f439b8
Merge branch 'bugfix/cpu_clk_disable_spi' into 'master'
...
spi_master, sdmmc: fix regressions due to peripherals being disabled by default
See merge request !1193
2017-09-05 10:41:51 +08:00
Angus Gratton
d531b56d93
Merge branch 'bugfix/spinlock_performance' into 'master'
...
freertos: Reduce CPU spinlock (portmux) overhead
See merge request !497
2017-09-05 09:16:10 +08:00
Angus Gratton
8ce09c2c1c
mbedtls: Don't assign ctx->fd until connect() or bind() has succeeded
...
Avoid leaking closed file descriptors via ctx->fd
Reported: https://esp32.com/viewtopic.php?f=13&t=2910&sid=8568b1fd93a4c8d5760628a638efc48b#p13620
2017-09-05 11:08:35 +10:00
Angus Gratton
11a87ca811
Merge branch 'bugfix/bootloader_ota_sel' into 'master'
...
Fix bootloader OTA regression
See merge request !1205
2017-09-05 07:25:08 +08:00
Ivan Grokhotkov
e93c33050e
ethernet: enable EMAC module clock on initialization
2017-09-04 22:43:52 +08:00
Ivan Grokhotkov
b38186dc43
sdmmc: use periph_ctrl to enable peripheral when initializing the host
2017-09-04 22:43:52 +08:00
Ivan Grokhotkov
956a28a95c
driver: add periph_ctrl support for SDMMC, SDIO slave, CAN, EMAC
2017-09-04 22:43:51 +08:00
michael
b834fcf78a
fix(spi_master): this fix the SPI MOSI output missing bug.
2017-09-04 22:43:51 +08:00
Jiang Jiang Jian
f254555a41
Merge branch 'feature/btdm_add_set_local_MTU_API_for_gatt' into 'master'
...
component/bt: add set local MTU API
See merge request !1152
2017-09-04 21:32:23 +08:00
Alexey Gerenkov
cf29dd47a9
apptrace lock acquire function was re-designed to minimize waiting time with disabled IRQs
2017-09-04 20:44:11 +08:00
Jeroen Domburg
0e74ec67be
Fix rebooting when PSRAM is active
2017-09-04 19:00:47 +08:00
Ivan Grokhotkov
9da1bf1a45
Merge branch 'bugfix/lwip_send_timeout' into 'master'
...
match sys tick with lwip_send_timeout
See merge request !1203
2017-09-04 18:19:59 +08:00
Angus Gratton
a19aaf2072
esp32: Update wifi lib to use new spinlock implementation
2017-09-04 19:11:51 +10:00
Angus Gratton
4486d4cb10
portmux: Add vPortCPUAcquireMutexTimeout() function
...
Refactor app_trace locking to use this function.
2017-09-04 19:11:51 +10:00
Angus Gratton
397c0bfb4b
freertos scheduler test: Free timer group interrupt handle when test finishes
2017-09-04 19:11:51 +10:00