Hrishikesh Dhayagude
da6cb6c741
components/bt: Improve the Bluetooth debug messaging scheme
...
As of now, when Bluetooth debugs are enabled, all the messages are
mapped to BT_PRINTF which is mapped to ESP_LOGE. Hence, make monitor
shows all logs in red color which might lead to missing the actual
errors
This patch maps the Bluetooth messages to appropriate ESP_LOG* messages
and improves readability.
Also, make the BT trace level be configurable in menuconfig, so that
each layer of bt trace can be enabled/disabled.
Finally, add debug log control for BTC, OSI, BLUFI and clear up
Bluetooth debug logs.
So, with this the method of enabling Bluetooth logs is as follows:
1. make menuconfig -> Component config -> Bluetooth -> Bluedroid Enable
-> BT DEBUG LOG LEVEL -> set trace level for every layer of BT
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-05-14 20:45:05 +08:00
Jiang Jiang Jian
256a9a8a33
Merge branch 'feature/wifi_add_sniffer_ctrl_pkt' into 'master'
...
add sniffer control packet support
See merge request idf/esp-idf!1904
2018-05-14 20:42:15 +08:00
Jiang Jiang Jian
9e5318b584
Merge branch 'bugfix/btdm_reconnect_con_params_update_reject_in_smp' into 'master'
...
Component/bt: update con params is rejected in smp when reconnection
See merge request idf/esp-idf!2318
2018-05-14 20:19:29 +08:00
chenjianqiang
b5de860bcb
revise the explain of a parameter(brk_len) in uart driver file
2018-05-14 19:47:16 +08:00
kooho
a8d26d7e4d
driver(rmt):Fix rmt_tx_stop bug.
2018-05-14 19:46:30 +08:00
Angus Gratton
b888032a8c
Merge branch 'bugfix/logging_docs_cleanup' into 'master'
...
log: clean up docs, clarify esp_log_level_set usage
See merge request idf/esp-idf!2080
2018-05-14 18:36:35 +08:00
Roland Dobai
ca08397b6b
Fix compilation errors when -O3 is used
...
Closes https://github.com/espressif/esp-idf/issues/718
2018-05-14 12:29:57 +02:00
jack
c384fa2492
rename clock enable and reset bits for SPI modules
...
1.The names of clock enable and reset bits do not match with TRM, just rename them.
2018-05-14 16:45:03 +08:00
Angus Gratton
c94a5ecfdd
mbedtls: Add mbedtls submodule check to build system
2018-05-14 16:07:18 +08:00
Jiang Jiang Jian
d4276efed7
Merge branch 'bugfix/bluedroid_const_char' into 'master'
...
Bluedroid: remove warnings about discarding "const" for "const char*"
See merge request idf/esp-idf!2387
2018-05-14 15:25:45 +08:00
Roland Dobai
4345e198ce
Implement VFS support for access()
...
Closes https://github.com/espressif/esp-idf/issues/1085
2018-05-14 09:04:18 +02:00
XiaXiaotian
57297cf7b7
add sniffer control packet support
2018-05-14 14:16:03 +08:00
Liu Zhi Fu
1c81e4be60
esp32: fix interrupt list insert issue
...
If the allocated interrupt list is not empty and the new item will be inserted
as the header of the list, insert_vector_desc() causes crash because pre is
null. This commit fix this issue.
2018-05-14 14:13:08 +08:00
He Yin Ling
adc3315677
Merge branch 'test/add_unit_test_jobs' into 'master'
...
ci: increase number of unit test jobs, temporarily disable light sleep test for short durations
See merge request idf/esp-idf!2386
2018-05-14 14:06:05 +08:00
kooho
1bebec05c6
driver(ledc): fix duty and fade issues and add thread-safe version APIs.
...
1. Fix the duty fade check issue reported from https://github.com/espressif/esp-idf/issues/1914
2. Fix the duty overflow issue when duty_scale is set to 1.
3. Fix the duty fade error when a fade operation is under way. We must configure a new duty setting after the previous fade operation has finished due to hardware limit.
4. Add thread-safe version APIs to set duty and fade.
5. Correct the duty range in driver.
2018-05-14 12:27:21 +08:00
Angus Gratton
e23ee9fa73
Merge branch 'bugfix/ledc_error' into 'master'
...
ledc driver: Clarify logging of function argument errors
See merge request idf/esp-idf!2380
2018-05-14 09:16:02 +08:00
Angus Gratton
6817088ce4
Merge branch 'feature/mbedtls_2_9_0' into 'master'
...
Re-add mbedTLS as a submodule, update to 2.9.0
See merge request idf/esp-idf!2367
2018-05-14 09:15:44 +08:00
Angus Gratton
64c52022b9
Merge branch 'bugfix/add_comments_for_adc' into 'master'
...
driver(adc): Add descriptions that starting ADC can trigger interrupt of GPIO36…
See merge request idf/esp-idf!1910
2018-05-11 18:54:40 +08:00
Ivan Grokhotkov
1b7ed6455b
esp32/test: temporarily disable test for light sleep duration
...
Until the issue in CI is debugged
2018-05-11 18:15:58 +08:00
Angus Gratton
3a53e35fe8
Merge branch 'bugfix/vfs_append' into 'master'
...
VFS: use O_APPEND flag of open() correctly
See merge request idf/esp-idf!2382
2018-05-11 18:12:47 +08:00
Roland Dobai
2041c08681
Bluedroid: remove warnings about discarding "const" for "const char*"
2018-05-11 11:29:10 +02:00
kooho
d53661a663
driver(adc): add descriptions for the issue that starting ADC can trigger interrupt of GPIO36 and GPIO39.
2018-05-11 17:08:58 +08:00
Jiang Jiang Jian
a5f36ec2d5
Merge branch 'feature/wifi_refactor_smartconfig' into 'master'
...
refactor smartconfig
See merge request idf/esp-idf!2205
2018-05-11 16:23:22 +08:00
Jiang Jiang Jian
5616491c50
Merge branch 'bugfix/i2s_dma_buf_alloc' into 'master'
...
i2s: fix issue in dma descriptor allocation if SPIRAM is enabled
See merge request idf/esp-idf!2383
2018-05-11 16:03:40 +08:00
Jiang Jiang Jian
41228c83c7
Merge branch 'bugfix/dhcp_server_max_limit' into 'master'
...
dhcp/dhcpserver Fix max station limit check in dhcp server
See merge request idf/esp-idf!2298
2018-05-11 15:50:38 +08:00
Jiang Jiang Jian
325920046f
Merge branch 'bugfix/btdm_conn_fail_after_deinit_and_init_spp' into 'master'
...
component/bt: Fix can't be connected if init SPP again after SPP deinit
See merge request idf/esp-idf!2369
2018-05-11 15:38:03 +08:00
Jiang Jiang Jian
41ba013bd4
Merge branch 'bugfix/btdm_fix_service_change_write_busy' into 'master'
...
Component/bt: fix service change write busy
See merge request idf/esp-idf!2359
2018-05-11 15:20:04 +08:00
Jiang Jiang Jian
c1e0f029d1
Merge branch 'bugfix/btdm_a2dp_disconn_state_when_connecting_with_iphone' into 'master'
...
component/bt: Fix bug a2dp have disconnect state when connecting with iphone 7
See merge request idf/esp-idf!2288
2018-05-11 14:59:34 +08:00
Ivan Grokhotkov
827772df69
Merge branch 'bugfix/light_sleep_wdt_fix' into 'master'
...
Fix occasional WDT reset in light sleep test
See merge request idf/esp-idf!2374
2018-05-11 14:55:51 +08:00
XiaXiaotian
0033c3ef3a
refactor smartconfig
...
move wifi part to wifi lib and lwip part to idf
2018-05-11 14:49:35 +08:00
Roland Dobai
733ff15719
VFS: use O_APPEND flag of open() correctly
...
Closes https://github.com/espressif/esp-idf/pull/1455
2018-05-11 08:28:22 +02:00
Ivan Grokhotkov
12f707932f
log: clean up docs, clarify esp_log_level_set usage
...
Closes https://github.com/espressif/esp-idf/issues/1713
2018-05-11 13:55:16 +08:00
Mahavir Jain
b2a1a79eb4
i2s: fix issue in dma descriptor allocation if SPIRAM is enabled
...
It has been observed that, if external SPIRAM is enabled, then under
certain scenarios (e.g. internal memory being too much fragmented),
I2S tx/rx descriptors can land in external SPIRAM and hence resulting
in failure in DMA. Adding explicit capability to allocate in only DMA
capable memory.
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-05-10 18:26:01 +05:30
Angus Gratton
feb64c3be6
ledc driver: Clarify logging of function argument errors
...
Some parameter errors did not specify which parameter was invalid.
Adds a new macro to name the invalid param.
2018-05-10 17:21:35 +08:00
zhangyanjiao
be76260d81
wifi: fix some potential thread safe issue
...
change some API function to throw event:
esp_wifi_deauth_sta
esp_wifi_get_country
esp_wifi_ap_get_sta_list
esp_wifi_sta_get_ap_info
esp_wifi_stop
esp_wifi_get_channel
esp_wifi_get_protocol
esp_wifi_get_bandwidth
2018-05-10 16:24:43 +08:00
baohongde
dfbc59f1c2
component/bt: Fix can't be connected if init SPP again after SPP deinit
2018-05-10 16:16:25 +08:00
Ivan Grokhotkov
ade14518ef
Merge branch 'feature/vfs_small_fds' into 'master'
...
Use smaller numbers as file descriptors
See merge request idf/esp-idf!2300
2018-05-10 14:29:34 +08:00
zhiweijian
b7a5fef871
Component/bt: fix crash without SMP when deinit bluedroid
...
- fix crash without SMP when bluedroid deinit
- modify default menuconfig in blufi demo
2018-05-10 11:39:34 +08:00
Ivan Grokhotkov
7dada45d60
mbedtls: enable deprecation warnings when building unit tests
2018-05-09 23:15:28 +08:00
Ivan Grokhotkov
dbc919eff5
mbedtls: update usage of mbedtls_aes_encrypt/decrypt
2018-05-09 23:15:28 +08:00
Ivan Grokhotkov
aad51ea8a0
mbedtls/port: don’t re-declare mbedtls_shaX functions
...
ALT header files for sha1, sha256, sha512 are only supposed to declare
mbedtls_sha1_context data structure. Function prototypes should come
from original header files.
2018-05-09 23:15:28 +08:00
Ivan Grokhotkov
254e29aca4
mbedtls: update usage of deprecated mbedtls_shaX APIs
...
The following mbedTLS APIs have been deprecated and replaced with the
new ones which return error codes:
mbedtls_shaX_starts -> mbedtls_shaX_starts_ret
mbedtls_shaX_update -> mbedtls_shaX_update_ret
mbedtls_shaX_finish -> mbedtls_shaX_finish_ret
mbedtls_shaX_process -> mbedtls_shaX_internal_process
Update hardware implementations of SHA functions, and other IDF
components which used above functions, to use new versions.
2018-05-09 23:15:28 +08:00
Ivan Grokhotkov
e9cbf96bd1
mbedtls: re-add version 2.9.0 as a submodule
2018-05-09 23:15:28 +08:00
Ivan Grokhotkov
8c307a5720
sleep: fix deadlock in esp_timer_impl_advance after light sleep
...
When light sleep is started, the other CPU gets halted using DPORT
stall mechanism. This can happen while it is inside an esp_timer
critical section, which may lead to a deadlock. This change adds
functions to take and release esp_timer lock before entering
DPORT critical section, preventing the deadlock.
2018-05-09 22:52:50 +08:00
Ivan Grokhotkov
296b280801
esp_timer: fix esp_timer_impl_advance not triggering expired timers
2018-05-09 22:52:41 +08:00
zhiweijian
cb59576dd0
Component/bt: fix service change write busy
2018-05-09 20:49:26 +08:00
zhiweijian
58b2cb3e0c
Component/bt: update con params is rejected in smp when reconnection
2018-05-09 20:28:13 +08:00
Jiang Jiang Jian
b9aee83d9b
Merge branch 'feature/put_supplicant_source_code_from_VNC_to_IDF' into 'master'
...
wpa_supplicant: move part of codes to IDF
See merge request idf/esp-idf!2272
2018-05-09 15:19:37 +08:00
Deng Xin
b00d256d5b
wpa_supplicant:move part of codes to IDF
2018-05-09 10:44:35 +08:00
Ivan Grokhotkov
a2556229aa
Merge branch 'bugfix/uart_fix_get_baudrate_error_bug' into 'master'
...
driver(uart): Fix uart_get_baudrate incorrect return value when using ref_tick
See merge request idf/esp-idf!2295
2018-05-08 20:25:13 +08:00
michael
197f594b06
fix(spi): fix the issue when bus flag not set, dual mode cannot be used.
2018-05-08 15:47:26 +08:00
michael
28beafc624
fix(spi): fix the issue that native pins don't work after SPI initialized before
2018-05-08 15:47:25 +08:00
Michael (XIAO Xufeng)
1f085b1a3b
feat(gpio): add function allowing switching input source from GPIO back to IOMUX
2018-05-08 15:47:25 +08:00
Angus Gratton
bb1f3ae264
Merge branch 'feature/psram_configure_in_runtime' into 'master'
...
feature(psram): update psram and flash SPI frequency in runtime
See merge request idf/esp-idf!1776
2018-05-08 15:23:47 +08:00
Jiang Jiang Jian
139a8a2745
Merge branch 'bugfix/optimize_coexist_performance' into 'master'
...
component/esp32 : improve wifi and bluetooth coexistence performance
See merge request idf/esp-idf!2349
2018-05-08 11:11:03 +08:00
Tian Hao
8cd9deed5c
component/esp32 : improve wifi and bluetooth coexistence performance
...
1. update coexistence and wifi libraries. Coexist version update to
v0.9.2
2. Cancel the restriction of use AMPDU when SW_COEXIST_ENABLE is y.
2018-05-07 19:55:41 +08:00
Angus Gratton
c7f19e76d7
docs: Move main docs to cover CMake
...
Add "GNU Make build system" doc with "cheat sheet" for moving to new system
2018-05-07 18:45:49 +08:00
Jiang Jiang Jian
db90f49758
Merge branch 'bugfix/update_emac_h' into 'master'
...
update emac_reg_v2.h
See merge request idf/esp-idf!2050
2018-05-07 16:16:52 +08:00
Roland Dobai
80ff8d55ac
bluedroid: use the new socket registering API
2018-05-07 09:01:56 +02:00
Roland Dobai
5129bca67c
VFS: Use smaller numbers as file descriptors
2018-05-07 09:01:56 +02:00
Angus Gratton
06082d9308
Merge branch 'doc/spi_master_thread_safety' into 'master'
...
driver: Add notes to SPI driver docs about thread safety
See merge request idf/esp-idf!2354
2018-05-07 14:49:41 +08:00
Jiang Jiang Jian
dc13f489ca
Merge branch 'bugfix/fix_two_wifi_bugs' into 'master'
...
esp32: fix two wifi bugs
See merge request idf/esp-idf!2352
2018-05-07 14:00:24 +08:00
Ivan Grokhotkov
73ec743a0a
Merge branch 'bugfix/nvs_page_compaction' into 'master'
...
nvs: Fix recovery from power-off while page is being freed
See merge request idf/esp-idf!2327
2018-05-07 09:08:23 +08:00
Angus Gratton
b90ad81f22
driver: Add notes to SPI driver docs about thread safety
2018-05-07 09:03:48 +08:00
Liu Zhi Fu
a9dfa06125
esp32: fix two wifi bugs
...
1. Fix the bug that WiFi receives duplicate MPDU
2. Deauth the station if soft-AP already has max WiFi connections
2018-05-06 17:29:06 +08:00
baohongde
cbab7fec76
component/bt: Fix bug a2dp have disconnect state when connecting with iphone 7
2018-05-04 19:44:40 +08:00
Jiang Jiang Jian
b827e0e331
Merge branch 'feature/btdm_get_end_handle_when_get_include_service' into 'master'
...
Component/bt: get end_handle when get include services
See merge request idf/esp-idf!2319
2018-05-04 19:31:43 +08:00
Jiang Jiang Jian
ade78d3850
Merge branch 'bugfix/btdm_fix_version_excahnge_issue' into 'master'
...
Component/bt: fix version exchange issue
See merge request idf/esp-idf!2329
2018-05-04 19:30:03 +08:00
Jiang Jiang Jian
25440cbc23
Merge branch 'bugfix/tw12351_wifi_lock_op' into 'master'
...
esp32: optimize wifi lock
See merge request idf/esp-idf!2345
2018-05-04 19:27:14 +08:00
Jiang Jiang Jian
dc7280c1d9
Merge branch 'bugfix/tw20575_fix_potential_phy_calibration_bug' into 'master'
...
esp32: fix potential PHY calibration bug
See merge request idf/esp-idf!2339
2018-05-04 19:24:05 +08:00
Liu Zhi Fu
017f109f6e
esp32: optimize wifi lock
...
Replace portENTER_CRITICAL/portEXIT_CRITICAL with semaphore lock if
the protected resource is only accessed by different tasks
2018-05-04 10:36:04 +08:00
kooho
0dca2d4c68
driver(uart): Fix uart_get_baudrate incorrect return value when using ref_tick
2018-05-04 09:41:41 +08:00
baohongde
c22c070e07
component/bt: Add APIs of get and remove bond device
...
1. Add APIs of get and remove bond device
2. Add ESP_BT_GAP_AUTH_CMPL_EVT
2018-05-03 19:05:57 +08:00
Liu Zhi Fu
402dee17a1
esp32: fix potential PHY calibration bug
...
1. Add error log if failed to store calibration version/mac/data
2. Change the NVS calibration version/mac/data store sequence
3. Pass the init_data instead of NULL to esp_phy_rf_init() in esp_phy_load_cal_and_init()
2018-05-03 15:48:14 +08:00
Jiang Jiang Jian
444d6606e7
Merge branch 'bugfix/mark_auto_connect_api_as_obsolete' into 'master'
...
esp32: mark WiFi auto connect API as deprecated
See merge request idf/esp-idf!1970
2018-05-03 10:40:27 +08:00
Angus Gratton
ec536b3961
Merge branch 'bugfix/wifi_log_level' into 'master'
...
wifi: Set default wifi library log level based on sdkconfig
See merge request idf/esp-idf!2334
2018-05-03 10:21:19 +08:00
Ivan Grokhotkov
0d65f3b7f9
Merge branch 'bugfix/light_sleep_fixes' into 'master'
...
light sleep fixes
See merge request idf/esp-idf!2242
2018-05-02 20:09:36 +08:00
Ivan Grokhotkov
34816ff008
Merge branch 'bugfix/free_mem_console' into 'master'
...
Free allocations in command.c after error conditions
See merge request idf/esp-idf!2332
2018-05-02 15:48:31 +08:00
Ivan Grokhotkov
5cc966e5b4
Merge branch 'feature/aws_iot_mqtt_on_443' into 'master'
...
aws_iot: add support for MQTT TLS over port 443
See merge request idf/esp-idf!2292
2018-05-02 15:43:29 +08:00
Ivan Grokhotkov
57630bf5ec
Merge branch 'bugfix/cjson_include_objs' into 'master'
...
cJSON : Include only source file objects
See merge request idf/esp-idf!2326
2018-05-02 15:42:59 +08:00
Sagar Bijwe
7ae1df1c5e
nvs: Fix recovery from power-off while page is being freed
...
Currently when page is being freed, items are individually moved from
FREEING page to ACTIVE page and erased. If power-off happens during the
process, the remaining entries are moved to ACTIVE page during recovery.
The problem with this approach is there may not be enough space on
ACTIVE page for all items if an item was partially written before
power-off and erased during recovery. This change moves all the items
from FREEING to ACTIVE page and then erased the FREEING page, If
power-off happens during the process, then ACTIVE page is erased and the
process is restarted.
2018-05-02 12:18:02 +05:30
Angus Gratton
b9126e69bc
wifi: Set default wifi library log level based on sdkconfig
...
Has to be set at runtime, due to precompiled wifi libraries.
Prompted by discussion on forum: https://esp32.com/viewtopic.php?f=2&t=5570&p=24216#p24216
2018-05-02 15:11:21 +10:00
Ivan Grokhotkov
5f956125c1
Merge branch 'feature/mfg_bin_create_utility' into 'master'
...
nvs_flash: Add external binary creation support for NVS partition.
See merge request idf/esp-idf!2031
2018-05-02 11:58:38 +08:00
Liu Zhi Fu
c23915939d
esp32: mark WiFi auto connect API as obsolete
...
Mark esp_wifi_set/get_auto_connect as obsolete
2018-05-02 09:54:31 +08:00
Jiang Jiang Jian
1e8ab3d18e
Merge branch 'bugfix/gap_appearance_fixes' into 'master'
...
components/bt: Make modifications to the support of GAP appearance/icon characteristic
See merge request idf/esp-idf!2249
2018-05-01 23:00:24 +08:00
Jiang Jiang Jian
0bb551c051
Merge branch 'bugfix/btdm_prepare_write_status_correct' into 'master'
...
component/bt: Check the value received from the peer device when sent the data used prepare write.
See merge request idf/esp-idf!2320
2018-05-01 22:57:20 +08:00
Jiang Jiang Jian
95cbdd76dc
Merge branch 'feature/btdm_read_bredr_rssi' into 'master'
...
component/bt : add class bt read RSSI delta (golden range)
See merge request idf/esp-idf!2325
2018-05-01 22:55:50 +08:00
Angus Gratton
68282cf80b
heap/cmake: Fix linking error when heap tracing is enabled
2018-05-01 17:27:39 +10:00
Anuj Deshpande
87adbd3229
console: Fix formatting
2018-04-30 14:22:45 +05:30
Anuj Deshpande
b3894dba97
console: Free alloc'd memory after error conditions
...
Closes https://github.com/espressif/esp-idf/issues/1901
2018-04-30 14:21:03 +05:30
Anuj Deshpande
9356d6af3f
cJSON : Include only source file objects
...
- test.c can cause issues if there is another main function
- Closes https://github.com/espressif/esp-idf/issues/1883
2018-04-30 13:51:54 +05:30
Angus Gratton
381be65472
cmake: Build all examples in CI
...
Includes some fixes for compile errors/warnings in examples.
2018-04-30 10:18:33 +10:00
Angus Gratton
858b95a924
cmake: Add build system tests
2018-04-30 09:59:20 +10:00
Angus Gratton
1cb5712463
cmake: Add component dependency support
...
Components should set the COMPONENT_REQUIRES & COMPONENT_PRIVATE_REQUIRES variables to define their
requirements.
2018-04-30 09:59:20 +10:00
Angus Gratton
4a2f1f0354
esptool: Add note that ESPTOOLPY_PORT & ESPTOOLPY_BAUD are ignored when using idf.py
2018-04-30 09:59:20 +10:00
Angus Gratton
f1d3bfc0c7
cmake: Add new flasher_args.json file for IDE parsing, document metadata files better
2018-04-30 09:59:20 +10:00
Angus Gratton
b44c8b125f
cmake: Style cleanup, add cmake linter to gitlab CI
2018-04-30 09:59:20 +10:00
Angus Gratton
800bffb8b0
cmake: Add CMakeLists.txt files for all examples
...
Generating using convert_to_cmake.py, with some minor cleanup
2018-04-30 09:59:20 +10:00
Angus Gratton
b57843b66a
cmake: Linker scripts need to account for .c.obj extension as well as .o
2018-04-30 09:59:20 +10:00
Angus Gratton
12be399762
cmake: Add link-time dependencies for linker script files
...
Requires some hackery around limitations in CMake's LINK_DEPENDS
2018-04-30 09:59:20 +10:00
Angus Gratton
bc1693aae3
cmake: Fix SPIRAM options
2018-04-30 09:59:20 +10:00
Angus Gratton
88df8fd293
cmake: Use cmake_lint project, tidy up all CMake source files
2018-04-30 09:59:20 +10:00
Angus Gratton
9f8cdd3572
cmake: Add "Preview release" getting start guide & build system documentation
2018-04-30 09:59:20 +10:00
Angus Gratton
abef220b13
cmake: Allow selecting toolchain file based on config
...
Refactor IDF "project" functionality under a wrapping of the default
"project" command, so we can tweak it a bit...
Will need more testing in other environments.
2018-04-30 09:59:20 +10:00
Angus Gratton
e94db98e73
link bootloader to libgcc (shouldn't be necessary, is necessary...)
2018-04-30 09:59:20 +10:00
Angus Gratton
efb5928934
idf.py build & flash tool
...
Generate flasher args files & .json project info file as part of cmake build
2018-04-30 09:59:20 +10:00
Angus Gratton
cb99531d15
cmake: Generate PHY init data partition as part of the build
2018-04-30 09:59:20 +10:00
Angus Gratton
4f1a856dbf
cmake: Remove defaults for COMPONENT_SRCDIRS, COMPONENT_SRCS, COMPONENT_ADD_INCLUDEDIRS
...
* Philosophical: "explicit is better than implicit".
* Practical: Allows useful errors if invalid directories given in components as the defaults aren't
always used. Also trims the -I path from a number of components that have no actual include
directory.
* Simplifies knowing which components will be header-only and which won't
2018-04-30 09:59:20 +10:00
Angus Gratton
3fac2b2ddc
cmake: Refactor bootloader_subproject into the bootloader component itself
2018-04-30 09:59:20 +10:00
Angus Gratton
674d398c93
cmake: Add partition table, and .bin file targets
2018-04-30 09:59:20 +10:00
Angus Gratton
3ae4822115
cmake: Add partition table generation
2018-04-30 09:59:20 +10:00
Angus Gratton
97e01a4c4d
cmake: Remove stray tab
2018-04-30 09:59:20 +10:00
Angus Gratton
ce6748873d
cmake: Add embedding files in components support
...
Add subscribe_publish AWS example and fixes to allow it to build.
2018-04-30 09:59:20 +10:00
Angus Gratton
134f2238bd
cmake: Refactor main cmake project logic
2018-04-30 09:59:20 +10:00
Angus Gratton
68e75dd0df
cmake: Detect missing or out of date submodules during cmake pass
2018-04-30 09:59:20 +10:00
Angus Gratton
c671a0c3eb
build system: Initial cmake support, work in progress
2018-04-30 09:59:20 +10:00
Jiang Jiang Jian
5a080ee37a
Merge branch 'bugfix/btdm_genrate_hash_key_by_bluedroid' into 'master'
...
component/bt: Added the hash key generated directly in the bluedroid module.
See merge request idf/esp-idf!2321
2018-04-28 16:42:27 +08:00
zhiweijian
5549ea3439
Component/bt: fix version exchange issue
...
- Android 7.0 version issue
- version exchange late in some phones
- can not get version in smp
2018-04-28 16:32:24 +08:00
Hrishikesh Dhayagude
fd7baaf4ba
components/bt: Make modifications to the support of GAP appearance/icon
...
characateristic
1. In addition to mentioning in the documentation, use the standard appearance
values already present and return appropriate error in case an incorrect
value is passed
2. Add ESP_BLE_APPEARANCE* macros corresponding to BTM_BLE_APPEARANCE*
and use them from the API instead
3. Add the missing appearance parameter values from
https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.gap.appearance.xml
4. Fix some minor typos
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-04-28 13:59:36 +05:30
zhiweijian
e236ffd91f
Component/bt: get end_handle when get include services
2018-04-28 16:27:25 +08:00
Yulong
6c20bc3203
component/bt: Added the hash key generated directly in the bluedroid module.
...
1. Change all the hash used from the coap module to generated by the bluedroid module directly.
component/bt: Added the <string.h> include file to the gattc_co module to avoid compile error.
2018-04-28 03:11:05 -04:00
Jiang Jiang Jian
ee9ab48347
Merge branch 'feature/btdm_bt_spp_vfs' into 'master'
...
component/bt: Add SPP profile with VFS
See merge request idf/esp-idf!1883
2018-04-28 15:10:07 +08:00
Jiang Jiang Jian
25798b0e3a
Merge branch 'feature/btdm_ble_throughput_optimiz' into 'master'
...
Feature/btdm ble throughput optimiz
See merge request idf/esp-idf!2265
2018-04-28 15:01:39 +08:00
baohongde
d95d0ececb
component/bt: Add SPP profile with VFS
2018-04-28 11:36:22 +08:00
Yulong
fd3162d831
component/bt: Added the server test for the bit rate test.
...
component/bt: optimiz the code
component/bt: optimiz the code.
component/bt: added the l2c change.
component/bt: Added the modified.
component/bt: change the indicate callback function.
component/bt: added the BLE throughput test gattc & gatts example.
component/bt: Change the sdkconfig.default CONFIG_GATTS_NOTIFY_THROUGHPUT setting.
component/bt: Change the throughput_client_task delay method.
component/bt: change the btu task size from 4096 to 5096
comonent/bt: close the print when congest.
component/bt: Added the CPU frequency set method to the readme file.
component/bt: Change the gatts_demo_char1_val to gl_profile_tab[PROFILE_A_APP_ID].char_handle to avoid make error.
example/ble_throughput: Added the Readme explanation.
component/bt: Added the bt lib change.
component/bt: Update the bt lib & Change the LOG level from ERROR to DEBUG when congest.
component/bt: Fixed the bug of timer start assign error.
component/bt: Change back the gattc & gatts demo with same as the master.
example/ble_throughput: Fixed the bug when prepare write of the ble throughput.
component/bt: Update the check_sum algorithm.
component/bt: Change Added the path when used the include file of "l2cdefs.h" & "l2c_api.h".
example/throughput_client: Added the Freertos related header files to ble throughput client demo to avoid compile error.
2018-04-27 23:02:10 -04:00
Yulong
8f015e3e48
component/bt: Check the value received from the peer device when sent the data used prepare write.
...
component/bt: Fix misspellings of "corret" in comments in bta_gattc_write_cmpl function.
2018-04-27 08:20:01 -04:00
Liu Zhi Fu
ed46976f41
esp32/bt/driver: support static allocation of FreeRTOS queues used by ISR routine
...
Support static allocation of FreeRTOS queues used by ISR routine in WiFi/BT/esp_timer/driver etc
2018-04-27 15:02:30 +08:00
Tian Hao
8646913cbf
component/bt : add class bt read RSSI delta (golden range)
2018-04-27 14:33:47 +08:00
Jiang Jiang Jian
cc2d1fda96
Merge branch 'bugfix/btdm_modify_include_path' into 'master'
...
component/bt : modify header files to avoid conflict
See merge request idf/esp-idf!2195
2018-04-27 12:01:46 +08:00
Jiang Jiang Jian
44c3318749
Merge branch 'mesh/feature_fix_root' into 'master'
...
Mesh/feature fix root
See merge request idf/esp-idf!2308
2018-04-27 10:56:35 +08:00
qiyueixa
ebd1849e18
mesh: add fix root function
2018-04-26 21:15:35 +08:00
Ivan Grokhotkov
94250e42a0
sleep: optimize light sleep wakeup latency
2018-04-26 19:36:47 +08:00
Tian Hao
adada3f67e
component/bt : modify header files to avoid conflict
...
1. add the L1 include path with a prefix, such like osi/list.h, stack/a2d_api.h and etc.
2. modify component, only bluedroid/api/include/api is export to another component and application,
other include path just for bluedroid used
3. put bluedroid/include into common/include/common, so the root directory of bluedroid have no include path.
4. modify doxygen to use esp_bt.h and redirect to
component/bt/bluedroid/api/include/api/
fix compile
2018-04-26 19:32:06 +08:00
Ivan Grokhotkov
ac623a9756
soc/rtc: restore dbg attenuation when waking from sleep
...
This fixes inability to enter deep sleep after waking up from light sleep
2018-04-26 18:52:46 +08:00
Ivan Grokhotkov
d38b22b11b
soc/rtc, sleep: don’t lower the bias for wakeup state
...
This fixes watchdog resets occurring during wakeup from light sleep.
2018-04-26 18:52:45 +08:00
Ivan Grokhotkov
b0a91630fb
soc/rtc: allow main XTAL to be powered on in sleep
2018-04-26 18:52:45 +08:00
Ivan Grokhotkov
3c78faa0a9
soc/rtc: don’t switch frequency in rtc_sleep_init
2018-04-26 18:52:45 +08:00
Ivan Grokhotkov
487210221b
esp_timer: add internal function to adjust time
2018-04-26 18:52:45 +08:00
Ivan Grokhotkov
0236592fe5
Merge branch 'feature/esp32_sw_breaks' into 'master'
...
ESP32 SW Breakpoints Support
See merge request idf/esp-idf!2316
2018-04-26 18:05:38 +08:00
Ivan Grokhotkov
add969f69d
Merge branch 'bugfix/partition_make3.81' into 'master'
...
partition table: Fix regression with make 3.81
See merge request idf/esp-idf!2314
2018-04-26 15:29:15 +08:00
Alexey Gerenkov
439140d269
esp32: Adds support for SW breakpoints in flash
...
Disables app image integrity checks when running under OpenOCD control.
Allows setting breakpoints in flash before application start (just after reset).
2018-04-26 10:17:02 +03:00
Ivan Grokhotkov
4083a356a8
Merge branch 'bugfix/build_failure_with_heap_task_tracking' into 'master'
...
Fix build failure if CONFIG_HEAP_TASK_TRACKING enabled
See merge request idf/esp-idf!2315
2018-04-26 15:16:43 +08:00
Ivan Grokhotkov
4ba19abeb6
esp_timer: add a function to get next alarm time
2018-04-26 14:39:54 +08:00
Jiang Jiang Jian
464dbbdaa9
Merge branch 'bugfix/fix_a_minor_compile_issue' into 'master'
...
Bugfix/fix a minor compile issue
See merge request idf/esp-idf!2307
2018-04-26 14:31:04 +08:00
Jiang Jiang Jian
37513cd738
Merge branch 'feature/wifi_add_wifi_event_mask' into 'master'
...
add WiFi event mask API
See merge request idf/esp-idf!2072
2018-04-26 14:27:42 +08:00
Mahavir Jain
5cdd08ef5a
heap: fix build failure due to missing header
...
Closes https://github.com/espressif/esp-idf/issues/1881
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-26 11:08:58 +05:30
Jiang Jiang Jian
9b9eb7e724
Merge branch 'bugfix/fix_some_wifi_phy_mode_bugs' into 'master'
...
esp32: fix some wifi phy mode bugs
See merge request idf/esp-idf!2294
2018-04-26 10:27:32 +08:00
Angus Gratton
8fbdad5b0c
partition table: Fix regression with make 3.81
...
"undefine" was added in make 3.8.2
Namespace the global partition table option variables to minimise scope leakage.
2018-04-26 12:07:27 +10:00
Ivan Grokhotkov
5a63faa516
sdmmc: enable more test cases
...
Some test cases did not run automatically in CI, this change enables
them.
2018-04-26 10:04:44 +08:00
Ivan Grokhotkov
2699bb49ae
sdspi: handle delayed responses for data write commands
...
Command response tokens can be delayed from the original command by 1
to 8 bytes. In 4a2489b9
, handling for delayed tokens was added for
normal (no data) commands, and data read commands. This adds handling
for delayed commands for data write commands.
2018-04-26 10:04:44 +08:00
Angus Gratton
081c830d2f
Merge branch 'feature/partition_size_check' into 'master'
...
partition_table: Check configured flash size fits in partition table
See merge request idf/esp-idf!2274
2018-04-26 08:48:31 +08:00
Angus Gratton
d9cbfe42f9
Merge branch 'bugfix/log_macro_statements' into 'master'
...
log: Make ESP_LOGx macros into single statements
See merge request idf/esp-idf!2275
2018-04-26 08:05:49 +08:00
Angus Gratton
fa3205737f
partition_table: Check configured flash size fits in partition table
...
Check happens at build time, so flash size config may need to be changed.
Also fixes MD5_OPT undefined warning, closes https://github.com/espressif/esp-idf/issues/1867
2018-04-26 09:51:55 +10:00
Angus Gratton
2f318d16fa
log: Make ESP_LOGx macros into single statements
...
Requires a semicolon after any use (previously this was optional due to trailing } after expansion)
Closes https://github.com/espressif/esp-idf/issues/1757
2018-04-26 09:08:07 +10:00
jack
81e4cad615
fix the bug that in mdns test code redefine esp_err_t to uint32_t, which should be int32_t
2018-04-25 21:05:21 +08:00
Jiang Jiang Jian
683270958c
Merge branch 'feature/btdm_set_bredr_txpower' into 'master'
...
component/bt : add BR/EDR TX power set
See merge request idf/esp-idf!2267
2018-04-25 20:53:21 +08:00
Liu Zhi Fu
f5ae421e14
esp32: fix some wifi phy mode bugs
...
Fix several WiFi phy mode bugs
2018-04-25 20:32:18 +08:00
XiaXiaotian
364c15b9f8
add WiFi event mask API
2018-04-25 19:25:43 +08:00
Tian Hao
e660785532
component/bt : add BR/EDR TX power set
2018-04-25 15:28:19 +08:00
Jiang Jiang Jian
d8c63160af
Merge branch 'bugfix/btdm_fix_gatt_cache_error' into 'master'
...
Component/bt: fix gattc some errors
See merge request idf/esp-idf!2104
2018-04-25 14:57:18 +08:00
shangke
5fc130f2c0
update emac_reg_v2.h
2018-04-25 14:54:09 +08:00
Ivan Grokhotkov
0b1bb2ab57
Merge branch 'bugfix/fatfs_readwrite_test_failure' into 'master'
...
fatfs/test: increase stack size in read-write unit test
See merge request idf/esp-idf!2256
2018-04-24 23:43:24 +08:00
Ivan Grokhotkov
907248b6a7
Merge branch 'feature/nvs_coverage' into 'master'
...
NVS: add power off recovery and coverage test into CI
See merge request idf/esp-idf!2246
2018-04-24 23:42:00 +08:00
Ivan Grokhotkov
52f9a5ca16
Merge branch 'bugfix/sdspi_wp_cd_pins' into 'master'
...
sdmmc, sdspi: fix handling of CD and WP
See merge request idf/esp-idf!2285
2018-04-24 20:53:47 +08:00
Sagar Bijwe
21584827b3
dhcp/dhcpserver Fix max station limit check in dhcp server
...
Currently when MAX_STATION limit in DHCP config is set to N, dhcp server
issues only N-1 IP addresses. This is problematic from customer
perspective if both SoftAP MAX_STATION and DHCP MAX_STATION limit is set
to same value. With this change DHCP server can issue N addresses that
is inline with the set limit.
Closes TW<20556>
2018-04-24 17:36:55 +05:30
Ivan Grokhotkov
e0f1524c86
sdmmc: add tests for CD and WP pins for SD and SPI mode
2018-04-24 19:08:44 +08:00
Ivan Grokhotkov
e19901c898
sdmmc: don’t print sdio_reset warning when CD is idle
2018-04-24 19:08:44 +08:00
Ivan Grokhotkov
85ab4fc83e
sdmmc host: add handling of CD and WP pins
...
Previous version of the code only connected CD and WP to the
peripheral, in fact the hardware does not use the values of these
signals automatically. This adds code to read CD and WP values when
command is executed and return errors if card is not present, or
write command is executed when WP signal is active.
2018-04-24 19:08:44 +08:00
Ivan Grokhotkov
829c6cef39
sdmmc host: when parameter validation fails, exit cleanly
...
This fixes lock-up which happened when sending a command, if the
previous command has failed.
2018-04-24 19:08:44 +08:00
Jiang Jiang Jian
edcaa5f300
Merge branch 'bugfix/minor_fix_for_wifi_tx' into 'master'
...
esp32: minor fix for WiFi TX
See merge request idf/esp-idf!2281
2018-04-24 13:42:41 +08:00
Mahavir Jain
7b50ed70a3
aws_iot: add support for MQTT TLS over port 443
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-23 18:27:28 +05:30
Ivan Grokhotkov
50304d719e
Merge branch 'bugfix/esp_tls_error_logging' into 'master'
...
esp-tls: Expand error logging
See merge request idf/esp-idf!2284
2018-04-23 20:18:30 +08:00
Liu Zhi Fu
2461a780aa
more
2018-04-23 19:09:46 +08:00
Ivan Grokhotkov
5a3b2eddd3
Merge branch 'bugfix/esp_tls_memory_leak' into 'master'
...
esp-tls: fix memory leak when using CA certification validation
See merge request idf/esp-idf!2283
2018-04-23 18:57:11 +08:00
Jiang Jiang Jian
cad88fb18c
Merge branch 'bugfix/authmode_change_event_peg_core_in_wep_mode' into 'master'
...
bugfix/wrong_authmode_change_event_is_reported_in_wep_mode
See merge request idf/esp-idf!2282
2018-04-23 18:51:46 +08:00
zhiweijian
be107320f7
Component/bt: fix gatt cache error
...
- fix sev == NULL error
- fix start_handle == end_handle
2018-04-23 15:43:10 +08:00
Ivan Grokhotkov
92a16ac6e6
sdspi: fix CD and WP incorrectly configured as outputs
2018-04-23 14:35:40 +08:00
Ivan Grokhotkov
2a7d85cfa4
sdmmc, sdspi: fix initializers to be C++-compatible, add test
...
Closes https://github.com/espressif/esp-idf/issues/1861
Closes https://github.com/espressif/arduino-esp32/issues/1312
2018-04-23 14:35:13 +08:00
Deng Xin
aab573746e
Bug fix of authmode change event peg core in wep mode
...
auth mode change event will report continous in wep mode due to wrong original auth record
close github issue https://github.com/espressif/esp-idf/issues/1804
2018-04-23 14:25:36 +08:00
Flavio Bayer
d477d3c5bd
bugfix/sdspi_host.c: wrong CD/WP pin configuration
...
Looks like the configuration of CP and WP pins are wrong, since the check for `gpio_cd` and `gpio_wp` in `slot_config` seems to be swapped.
2018-04-23 11:32:42 +10:00
Angus Gratton
088c73bd22
Merge branch 'feature/disable_ble_service_change_pr1673' into 'master'
...
Add option to ena/dis BLE service change registration
See merge request idf/esp-idf!2210
2018-04-23 09:15:02 +08:00
Angus Gratton
f4241dc796
Merge branch 'bugfix/typo_in_aws_iot_config' into 'master'
...
Typo in aws_iot_config.h
See merge request idf/esp-idf!2280
2018-04-23 09:02:02 +08:00
Amit Sheth
aa357a32bc
nvs_flash: Add binary creation support for NVS partition.
...
Ideally suited for generating a binary externally, containing key-value pairs specific
to device manufacturers. Utility allows creation of a binary, compatible
with NVS structure, which can be separately flashed onto a new
partition. This helps device manufacturers set different values for
different devices, e.g. serial numbers, but using a single firmaware
image.
2018-04-23 00:27:29 +05:30
Jiang Jiang Jian
e37ceaed32
Merge branch 'bugfix/tw18453_fix_ap_eapol_retry_bug' into 'master'
...
esp32: fix soft-AP eapol retry issue
See merge request idf/esp-idf!2264
2018-04-22 16:37:24 +08:00
Liu Zhi Fu
db5f927087
esp32: fix the bug that soft-AP fails to retry eapol
...
Fix the issue that soft-AP fails to retry eapol frame when multiple
stations connects it at the same time.
More
2018-04-22 10:19:31 +08:00
redchenjs
854c5260d4
esp-tls: fix memory leak when using CA certification validation
2018-04-22 01:13:09 +08:00
Kyle Secord
6807d80733
Typo in aws_iot_config.h
...
-breaks compilation when 'Override Shadow RX buffer size' is enabled via
menuconfig
Merges https://github.com/espressif/esp-idf/pull/1869
2018-04-20 19:32:52 +05:30
Wangjialin
b1dcb52fec
feature(psram): configure flash and psram speed during runtime
...
1. Bootloader reads SPI configuration from bin header, so that the burning configuration can be different with compiling configuration.
2. Psram mode init will overwrite original flash speed mode, so that users can change psram and flash speed after OTA.
3. Flash read mode(QIO/DIO…) will not be changed in app bin. It is decided by bootloader, OTA can not change this mode.
4. Add read flash ID function, and save flash ID in g_rom_flashchip
5. Set drive ability for all related GPIOs
6. Check raise VDDSDIO voltage in 80Mhz mode
7. Add check flash ID and update settings in bootloader
8. Read flash ID once and keep in global variable
9. Read flash image header once and reuse the result
Tested cases:
1. Test new and old version of bootloader
boot Flash 20M —> app Flash 80M + Psram 80M
boot Flash 40M —> app Flash 80M + Psram 80M
boot Flash 80M —> app Flash 80M + Psram 80M
boot Flash 20M —> app Flash 80M + Psram 40M
boot Flash 40M —> app Flash 80M + Psram 40M
boot Flash 80M —> app Flash 80M + Psram 40M
boot Flash 20M —> app Flash 40M + Psram 40M
boot Flash 40M —> app Flash 40M + Psram 40M
boot Flash 80M —> app Flash 40M + Psram 40M
2. Working after esp_restart reboot.
2018-04-20 20:51:44 +08:00
Jitin George
d57495cb1c
esp-tls: Fix HTTP2 failure
...
Closes https://github.com/espressif/esp-idf/issues/1874
2018-04-20 16:59:36 +05:30
Jiang Jiang Jian
c32ccf7abb
Merge branch 'bugfix/add_NULL_value_check_bta_gattc_get_services' into 'master'
...
components/bt: Add NULL value check in bta_gattc_get_service_with_uuid()
See merge request idf/esp-idf!2212
2018-04-20 18:15:45 +08:00
Jiang Jiang Jian
1c06b44f08
Merge branch 'bugfix/bt_correct_inquiry_mode_name' into 'master'
...
components/bt: Correct the enquiry mode name
See merge request idf/esp-idf!2217
2018-04-20 18:14:57 +08:00
Jiang Jiang Jian
102d08fd79
Merge branch 'feature/btdm_gattc_cache' into 'master'
...
Feature/btdm gattc cache
See merge request idf/esp-idf!1083
2018-04-20 17:49:35 +08:00
Ivan Grokhotkov
22fbcd276c
Merge branch 'feature/amazon_freertos_compat_v2' into 'master'
...
Changes for Amazon Freertos compatibility
See merge request idf/esp-idf!2123
2018-04-20 14:55:47 +08:00
Yulong
2c7182c59f
component/bt: For unity, Change all the associat & associa to abbreviated form(assoc).
2018-04-20 02:16:33 -04:00
Ivan Grokhotkov
6185e722c3
Revert "Merge branch 'feature/vfs_select' into 'master'"
...
This reverts merge request !2074
2018-04-20 11:51:41 +08:00
Yulong
b940abca0e
component/bt: Change the cache 'associat' name for unify.
2018-04-19 22:56:33 -04:00
Mahavir Jain
441b4a9742
esp32: fix few components with dependency on networking stack
...
* Move smartconfig to its component directory, it should be possible to override
this as whole component
* Fix few header includes related to lwIP networking stack
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-19 18:28:55 +05:30
Mahavir Jain
43a12894ea
driver/spi: add _ISR counterparts if invoked from interrupt for critical section
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-19 18:28:55 +05:30
Mahavir Jain
c65a08d2fb
freertos: portCLEAN_UP_TCB should be performed before freeing tcb memory
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-19 18:28:55 +05:30
Mahavir Jain
24ad64bfe4
pthread: implement local storage using pvTaskGetThreadLocalStoragePointer
...
If static task cleanup option is enabled, then before invoking application
defined `vPortCleanUpTCB` hook, pthread specific cleanup is performed.
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-19 18:28:55 +05:30
Ivan Grokhotkov
2d598d6fb7
esp_timer: use _ISR version of port{ENTER,EXIT}_CRITICAL from ISR
2018-04-19 18:28:55 +05:30
Ivan Grokhotkov
41ae0fe52b
newlib: define _REENT_INIT_PTR correctly for ESP_PLATFORM
2018-04-19 18:28:55 +05:30
Ivan Grokhotkov
573ea385b4
multi_heap: use portENTER/EXIT_CRITICAL instead of taskENTER/EXIT_CRITICAL
2018-04-19 18:28:55 +05:30
Ivan Grokhotkov
f65870566a
crosscore_int: use _ISR version of portENTER/EXIT_CRITICAL in ISR
2018-04-19 18:28:55 +05:30
Jiang Jiang Jian
5d3b26e8d0
Merge branch 'feature/mesh' into 'master'
...
mesh: update mesh libs
See merge request idf/esp-idf!2244
2018-04-19 20:24:16 +08:00
Ivan Grokhotkov
6f504deed0
nvs: run all test by default, exclude long tests by tag
...
Reduces the chance of new tests being skipped in CI
2018-04-19 15:08:08 +08:00
Ivan Grokhotkov
f8cb95d0b8
nvs: print progress in nvs API tests, reduce number of iterations
2018-04-19 15:08:08 +08:00
Ivan Grokhotkov
88d0d6ffb0
Merge branch 'feature/vfs_select' into 'master'
...
Allow VFS file descriptors in select()
See merge request idf/esp-idf!2074
2018-04-19 15:06:02 +08:00
Ivan Grokhotkov
b297b72abb
Merge branch 'bugfix/fix_gpio_install_isr_service_check_value' into 'master'
...
driver(gpio): modify return value when gpio ISR service already exists.
See merge request idf/esp-idf!2125
2018-04-19 15:01:50 +08:00
Ivan Grokhotkov
fbb3610c0b
Merge branch 'feature/bootloader_refactoring_common' into 'master'
...
bootloader: Refactoring
See merge request idf/esp-idf!2251
2018-04-19 14:58:00 +08:00
Ivan Grokhotkov
bc4c201e20
Merge branch 'bugfix/fix_github_reported_1841_and_1845' into 'master'
...
Fix few minor github reported issues
See merge request idf/esp-idf!2252
2018-04-19 12:59:37 +08:00
Yulong
ece6bd9b82
component/bt: Change the btc gattc callback function with the compile error.
...
1. Change all the gattc API && bta gattc layer.
2. Debug the code and change the btc_ble_gattc_get_db method.
3. Change the gatt read API interface.
4. Reconstruction the BTA_gattc_cache code.
5. Change back the bluedroid_get_status to marco.
6. Change the gattc docs format.
7. Change the docs format.
8. fix the read char value bug.
9. change the gattc_get_attr_count method.
10. Change back the bta_gattc write ccc code.
11. Change the gattc api docs format
12. Change the gattc API docs.
13. Change the prepare write descriptor method to avoid the exection.
14. modify gatt clinet demo with new API
15. Change the p_src_data->read.p_value to avoid exection.
16. Change the bugfix of gattc unreg for the notify.
component/bt: Added the serch service res start_handle & end_handle to the result.
component/bt: Added the bta_gattc_cache_write when gatt discovery complete.
component/bt: Added the bta_gattc_cache_write declaration.
component/bt: Added the comments for esp_ble_gattc_cache_refresh API.
component/bt: Change the spelling errors & some comment error.
component/bt: fix bug of get gattc cache address list error.
1. Change the esp_bluedroid_get_status to macro;
2. added the malloc & free for the get_addr_list
component/bt: Added the addr_info->ass_addr == NULL Judgment to prevent crashes in the bta_gattc_co_cache_find_src_addr function.
component/bt: Fixed following gattc cache bugs
1. gattc can't refresh the gattc cache in the gatt discover state;
2. remove the nvs_get_blob in the cache address init function;
3. added the nvs_set_blob return value judgment in the cache address save function;
4. added the list_new when ass_address is NULL;
5. Change the ass_address list remove method to fix the ass address can't remove bug.
2018-04-19 12:05:13 +08:00
Angus Gratton
04103e96f5
esp-tls: Log errors for all "connection failed" code paths
2018-04-19 11:34:27 +10:00
Angus Gratton
507ca8196c
esp-tls: Allow esp_tls_conn_delete() to be called with a NULL pointer
2018-04-19 11:34:06 +10:00
Ivan Grokhotkov
cbd7431d94
fatfs/test: increase stack size in read-write unit test
...
2048 byte stack was not sufficient when some error was logged by SD
card driver, leading to stack overflows.
2018-04-18 14:35:21 +08:00
Angus Gratton
fe907bde60
Merge branch 'bugfix/heap_tracing_newlib_allocations' into 'master'
...
heap tracing: Fix tracing of newlib internal allocations
See merge request idf/esp-idf!1992
2018-04-18 12:07:15 +08:00
Ivan Grokhotkov
b76c9ef706
Merge branch 'feature/esp-tls' into 'master'
...
esp-tls: Fix connection failure
See merge request idf/esp-idf!2241
2018-04-18 11:11:49 +08:00
Ivan Grokhotkov
17ab60d642
Merge branch 'bugfix/nvs_failed_crc_assert' into 'master'
...
nvs: don’t expect items with bad CRC to be in cache
See merge request idf/esp-idf!2239
2018-04-18 11:01:21 +08:00
qiyueixa
899f2fa1ed
mesh: update mesh libs
...
1. fix issues on sending beacon caused by too much tx retries on other packets.
2. modify not to scan if rc exists when connect.
3. modify scan dwell time to default 120ms fo root.
2018-04-17 11:49:54 +00:00
Konstantin Kondrashov
86256b3541
bootloader: Refactoring
...
Need to make the bootloader modular so that users can redefine its functional part.
- refactoring and moving functions to the bootloader_support component
- Changed function to `void` bootloader_utility_load_image(...);
TW19596
2018-04-17 16:36:49 +05:00
Roland Dobai
6852d653bd
Allow VFS file descriptors in select()
2018-04-17 11:25:30 +02:00
Sagar Bijwe
9a3c4b7134
nvs: Fix recovery after power-off during erase operation
...
Current code for recovery after power-off do not clean-up partially
erased items for FULL pages. If the erasure was part of modification
operation, this gets luckily cleaned-up because of duplicate detection
logic. For erase-only operation, the problem still exists. This patch
adds the recovery for FULL pages also.
Closes TW<20284>
2018-04-17 12:24:21 +05:30
Jiang Jiang Jian
16ad81c636
Merge branch 'feature/btdm_get_and_set_cod' into 'master'
...
component/bt: Add API: get cod & set cod
See merge request idf/esp-idf!2127
2018-04-17 14:21:18 +08:00
Jiang Jiang Jian
a3cfbdb150
Merge branch 'bugfix/btdm_a2dp_source_cleanup_bug' into 'master'
...
component/bt: Fix bug of a2dp source cleanup bug when connected
See merge request idf/esp-idf!2042
2018-04-17 14:20:15 +08:00
Jiang Jiang Jian
0d55f2cb7b
Merge branch 'bugfix/btdm_add_assert_when_no_device_name' into 'master'
...
component/bt: Fix exception when there is no device name
See merge request idf/esp-idf!2184
2018-04-17 14:19:39 +08:00
Mahavir Jain
60ab582ba6
bt: fix incorrect comments for error codes
...
Closes https://github.com/espressif/esp-idf/issues/1845
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-17 10:44:48 +05:30
Mahavir Jain
959c677025
rtc_module: fix build failure if assertions are disabled
...
Closes https://github.com/espressif/esp-idf/issues/1841
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-17 10:44:48 +05:30
Konstantin Kondrashov
6a4033b8a7
nvs: fix nvs_get_stats unit test
...
Changed check for the returned parameter from ESP_ERR_NVS_PART_NOT_FOUND to ESP_ERR_NVS_NOT_INITIALIZED.
2018-04-16 13:28:45 +00:00
He Yin Ling
c36687aac6
Merge branch 'test/fix_ci_test_fail_in_jap_case' into 'master'
...
test: fix CI fail when join AP
See merge request idf/esp-idf!2245
2018-04-16 19:02:46 +08:00
Ivan Grokhotkov
2c3644a09f
nvs: don’t expect items with bad CRC to be in cache
...
When erasing a variable length item with an incorrect CRC32, the span
value of the item can not be trusted, so the item will be erased with
span = 1. Subsequent entries represent the data of the variable
length item, and these will be treated as separate items. For each
entry CRC32 is checked, the check most likely fails (because the
entry contains arbitrary data, and not a proper NVS item), and the
entry is erased. Erase function assumed that every item should be
present in cache, but it is not the case for the entries which are
just parts of item’s payload. This change allows for the item to be
not found in the hashlist, if the CRC32 check fails.
2018-04-16 09:36:17 +00:00
Ivan Grokhotkov
fc1e944f59
Merge branch 'bugfix/nvs_stat_test' into 'master'
...
NVS: fix nvs_get_stats unit test
See merge request idf/esp-idf!2248
2018-04-16 14:45:43 +08:00
Ivan Grokhotkov
d3fd00c049
Merge branch 'bugfix/spi_miso_on_input_only_pins' into 'master'
...
fix(spi): allow to use MISO on GPIO34-39.
See merge request idf/esp-idf!2136
2018-04-16 14:39:02 +08:00
Ivan Grokhotkov
20405fbbcc
nvs: make nvs_flash_deinit useable from unit tests
2018-04-16 14:06:52 +08:00
Ivan Grokhotkov
fa3bd16d75
nvs: deinit NVS in nvs_stats unit test
...
This fixes the failure when this test runs after another test which
leaves NVS initialized.
2018-04-16 12:50:57 +08:00
Ivan Grokhotkov
d0d314d8f8
Merge branch 'bugfix/nvs_page_selection' into 'master'
...
nvs: Fix page selection algo to consider free entry counts as well
See merge request idf/esp-idf!2240
2018-04-16 10:32:01 +08:00
Ivan Grokhotkov
5029eb4b3b
Merge branch 'feature/nvs_get_count_used_entries' into 'master'
...
NVS: add API to get used entries count
See merge request idf/esp-idf!1982
2018-04-16 10:25:01 +08:00
He Yin Ling
7cfd08deca
test: fix join AP fail during AP power on
2018-04-16 09:27:46 +08:00
Angus Gratton
8b3fda99f5
Merge branch 'feature/uart_add_api_get_cmd_position' into 'master'
...
driver(uart): Add API to get the position of cmd_char
See merge request idf/esp-idf!2177
2018-04-16 08:03:25 +08:00
Ivan Grokhotkov
9c7207ed3c
Merge branch 'bugfix/soc_clk_out_fields' into 'master'
...
soc/io_mux: make CLK_OUT fields compatible with REG_SET/GET_FIELD
See merge request idf/esp-idf!2133
2018-04-13 19:42:20 +08:00
Jitin George
0d0445103b
esp-tls: Fix connection failure when esp-tls config is empty
2018-04-13 16:58:19 +05:30
Jiang Jiang Jian
c17b59ebe1
Merge branch 'feature/mesh' into 'master'
...
mesh: update mesh libs
See merge request idf/esp-idf!2218
2018-04-13 18:55:39 +08:00
Sagar Bijwe
7e79471ece
nvs: Fix page selection algo to consider free entry counts as well
...
Current page selection algorithm selects a page for compaction based on just erased counts
and gives up when it does not find any page with erased count greater than 0. This is
problematic since the current allocation procedure skips the active page if there is not
enough room for the item in that page leaving free chunks on the pages. This change modifies
the algorithm to consider both erased as well as free counts on the candidate pages.
Closes TW<20297>
2018-04-13 14:49:05 +05:30
konstantin
c93626db3f
nvs:Add functions for calculating used/free entries
...
Users needs functions to count the number of free and used entries.
1. `nvs_get_stats()` This function return structure of statistic about the uspace NVS.
(Struct: used_entries, free_entries, total_entries and namespace_count)
2. `nvs_get_used_entry_count()` The second function return amount of entries in the namespace (by handler)
3. Added unit tests.
Closes TW<12282>
2018-04-13 10:34:13 +05:00
Wang Jia Lin
6c44fc70bc
Merge branch 'feature/gpio_add_hold_support' into 'master'
...
driver(gpio): Add api support digital pad hold function
See merge request idf/esp-idf!2186
2018-04-13 12:18:44 +08:00
qiyueixa
92fd4c42e1
mesh: update mesh libs
...
1. fix a bug in initliazing map beacon interval.
2. fix not send MESH_EVENT_ROUTING_TABLE_REMOVE when MESH_NWK_CHILD_DISCONNECTED.
3. fix a bug in returning roots ie len.
2018-04-13 11:52:31 +08:00
Michael (Xiao Xufeng)
45f8bcf3f8
fix(spi): allow using MISO on GPIO34-39
...
Breaking Changes: arguments of ``spicommon_bus_initialize_io`` are changed.
Closes https://github.com/espressif/esp-idf/issues/1736 .
2018-04-12 17:01:38 +08:00
Michael (Xiao Xufeng)
77629129c0
chore(spi): update the return value of spi init functions
2018-04-12 17:01:38 +08:00
Michael (Xiao Xufeng)
dceb3452c7
doc(spi_master): format the documentation of several fields and macros in spi_master.h
2018-04-12 17:01:37 +08:00
Angus Gratton
234723c061
Merge branch 'feature/pcnt_add_isr_manage_apis' into 'master'
...
Driver(pcnt) : Add new feature that each unit can has it's own interrupt handler.
See merge request idf/esp-idf!2086
2018-04-12 09:06:56 +08:00
Angus Gratton
c626a8fe74
Merge branch 'feature/build_out_of_tree_srcs' into 'master'
...
make: Build out of tree component srcs under component build dir
See merge request idf/esp-idf!2190
2018-04-12 08:49:56 +08:00
Jiang Jiang Jian
12dbe4dac5
Merge branch 'feature/btdm_add_set_local_icon_api' into 'master'
...
Component/bt: add set gap icon API
See merge request idf/esp-idf!2129
2018-04-11 20:48:13 +08:00
Jiang Jiang Jian
6b7ad6b707
Merge branch 'bugfix/btdm_do_not_update_conn_params_when_have_key_in_slave' into 'master'
...
Component/bt: do not update connection params when already have keys in slave
See merge request idf/esp-idf!2176
2018-04-11 20:47:27 +08:00
kooho
2236249555
driver(pcnt): Add some APIs to support each unit can have it's own interrupt handler.
2018-04-11 16:15:09 +08:00
Ivan Grokhotkov
bdadd95dd7
Merge branch 'feature/wwrite_string_for_idf' into 'master'
...
Enable -Wwrite-strings when compiling IDF's own C files
See merge request idf/esp-idf!2193
2018-04-11 14:59:08 +08:00
Ivan Grokhotkov
bae9709a79
Merge branch 'feature/sdio_master' into 'master'
...
SDIO master driver
See merge request idf/esp-idf!2008
2018-04-11 12:38:42 +08:00
Ivan Grokhotkov
c6829fa5b8
sdmmc: improve error handling during SPI mode init
...
- In SPI mode, the card will respond to the initial SDIO reset (done
using CMD52) with “invalid command” error. Handle this correctly.
- sdmmc_card_init had a hack where GO_IDLE_STATE (CMD0) command was
sent twice. Add explanation why this is done, and don’t expect
correct response from the card on first CMD0.
- improve logs printed at debug level by adding CMD index
2018-04-11 11:11:17 +08:00
Ivan Grokhotkov
ee600784c5
sdmmc: add SDIO support
...
- Add SDIO support at protocol layer (probing, data transfer, interrupts)
- Add SDIO interrupts support in SDMMC host
- Add test (communicate with ESP32 in SDIO download mode)
2018-04-11 11:07:13 +08:00
Ivan Grokhotkov
5f97e6bebb
sdmmc: fill as many DMA descriptors as possible
2018-04-11 11:06:50 +08:00
Ivan Grokhotkov
20a8c3318a
sdmmc: do expect CMD_DONE interrupt after response timeout
...
Existing code assumed that response timeout is not followed by CMD_DONE,
which was not true, in fact. Host datasheet states that CMD_DONE is sent
after an RTO.
2018-04-11 11:06:50 +08:00
Ivan Grokhotkov
01cd2fce73
sdmmc: print error status only once
2018-04-11 11:06:50 +08:00
Ivan Grokhotkov
5fc6fb58ea
sdmmc: don't whitelist the opcodes when handling response timeout
...
All the commands which do not have a response must have their flags set
accordingly. Therefore the host will not send RTO interrupt if response
is not expected. It is a bug in the code logic if it happens otherwise.
2018-04-11 11:06:50 +08:00
Ivan Grokhotkov
f02cff13cc
sdmmc: set highest possible host clock divider
...
SDMMC host suffers from an issue that it outputs data near the rising
edge of the card clock, which is the edge used by the card to sample
data. If sampling time constraint is not satisfied, card may read data
after the transition.
The phases of output/input data can, in fact, be adjusted. However this
adjustment happens in the clock generation block outside of the host.
So the maximum phase change which can be created this way is equal to
half of the host clock period. So if the host clock is set to the lowest
possible frequency (for the given card frequency), then the phase offset
(and hence the hold time) will be the highest. This change modifies the
logic used to determine clock dividers accordingly.
sdmmc host: set correct dout phase and print correct frequency
2018-04-11 11:06:50 +08:00
Ivan Grokhotkov
84d6793f77
sdmmc: don't set data_expected on SET_BUS_WIDTH command
...
SET_BUS_WIDTH is not a data transfer command. Extensive search in the
host datasheet and SD card spec did not reveal the origin of this hack
or 'feature'. Further testing showed that removing this does not lead to
regressions.
2018-04-11 11:06:50 +08:00
Ivan Grokhotkov
42de5fb76d
sdmmc: send init sequence before CMD0
2018-04-11 11:06:50 +08:00
Ivan Grokhotkov
907fc1167a
gpio: add special GPIO signal values
2018-04-11 11:06:50 +08:00
huchaoru
f409a33653
test: update ci test case
2018-04-10 14:08:10 +00:00
Hrishikesh Dhayagude
9c41c93f5f
components/bt: Correct the enquiry mode name
...
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-04-10 17:58:11 +05:30
Ivan Grokhotkov
2522c1b2f9
Merge branch 'bugfix/rtc_clk_fixes' into 'master'
...
Power management and RTC fixes
See merge request idf/esp-idf!2131
2018-04-10 18:17:02 +08:00
baohongde
52dbcef908
component/bt: Fix exception when there is no device name
2018-04-10 17:55:33 +08:00
Roland Dobai
744c2dcdd9
Resolve problems found by enabling -Wwrite-strings compilation flag
2018-04-10 08:53:43 +02:00
Angus Gratton
f7b7b4ef59
Merge branch 'bugfix/mdns_fixes' into 'master'
...
MDNS: Fix some issues when hostname is not set or services are removed
See merge request idf/esp-idf!2179
2018-04-10 13:43:02 +08:00
Angus Gratton
2914111c8c
Merge branch 'bugfix/heap_fragmentation_on_split_pr1761' into 'master'
...
heap: Try to merge tail with next block when splitting
See merge request idf/esp-idf!2147
2018-04-10 12:14:57 +08:00
Hrishikesh Dhayagude
284f332f06
components/bt: Add NULL value check in bta_gattc_get_service_with_uuid()
...
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-04-10 09:34:03 +05:30
kooho
ccf09c3b39
driver(gpio): Add api support digital pad hold function.
2018-04-10 11:31:59 +08:00
Ing. Jaroslav Safka
801632d68b
bt: Add option to ena/dis BLE service change registration
...
Add option to enable/disable automatic registration of BLE Gattc
service change notify. Which sends in parralel
(with user message flow) commands to BLE server which
sometime leads to GATT_BUSY.
(BLE server is able to handle only one command at time)
Closes https://github.com/espressif/esp-idf/issues/1575
Merges https://github.com/espressif/esp-idf/pull/1673
2018-04-10 12:27:33 +10:00
Angus Gratton
2bfef060ba
Merge branch 'bugfix/small_fixes_from_github' into 'master'
...
Bugfix/small fixes from github
See merge request idf/esp-idf!2200
2018-04-10 09:19:19 +08:00
Angus Gratton
58ed6cc9af
Merge branch 'bugfix/wifi_ps_modem' into 'master'
...
wifi: Add WIFI_PS_MODEM for backwards compatibility with V3.0 API
See merge request idf/esp-idf!2203
2018-04-10 09:18:53 +08:00
baohongde
789edc0b52
component/bt: Add API: get cod & set cod
...
In response to: https://github.com/espressif/esp-idf/issues/1565
2018-04-09 19:25:26 +08:00
Angus Gratton
97a382077f
wifi: Add WIFI_PS_MODEM for backwards compatibility with V3.0 API
2018-04-09 16:55:38 +10:00
me-no-dev
421c6f154b
Fix exception when service is removed while there are pending packets that depend on it
2018-04-09 09:40:08 +03:00
Tian Hao
1bde34c1f1
component/esp32 : remove pm gpio dbg
2018-04-09 14:33:48 +08:00
Ivan Grokhotkov
b11209b070
Merge branch 'feature/esp-tls' into 'master'
...
feature/add simplified TLS socket APIs
See merge request idf/esp-idf!1951
2018-04-09 14:25:21 +08:00
Anton Maklakov
046ff2e628
Make error codes looks like literals in the code of them (easy for searching). Minor fixes, typos
2018-04-09 13:54:18 +10:00
Ing. Jaroslav Šafka
3d89c8ba74
rmt: Fix LoadProhibited on RX END
...
Fixes exceptions LoadProhibited, when rmt tries read variable p_rmt on RX END which can be 0.
It happens after esp_reset() (OTA) and the rmt is not probably stopped by it.
In other words the routine rmt_driver_isr_default was called before second rx channel was registered.
scenario:
register tx channel
register rx channel
reboot
register tx channel
-> exception (because rx channel is accessed)
Merges https://github.com/espressif/esp-idf/pull/1671
2018-04-09 12:29:05 +10:00
Mixerito
9f39411e80
esp32: get_chip_info_esp32() return correct model number
...
out_info->model was zeroed by memset
Merges https://github.com/espressif/esp-idf/pull/1760
2018-04-09 12:28:23 +10:00
Fredrik
97c6a94a03
Bugfix GPIO_DIS_OUTPUT to work with pin 32 and up
...
Merges https://github.com/espressif/esp-idf/pull/1796
2018-04-09 12:28:23 +10:00
Jitin George
b09c3e9878
mbedtls integration in esp-tls
2018-04-06 17:16:27 +05:30
Jitin George
30b50cbfb3
esp-tls header file name change
2018-04-06 17:16:27 +05:30
Jitin George
e29294b49a
Resolved Issues
2018-04-06 17:16:27 +05:30
Jitin George
8a1dcc0765
CA Certificate verification
2018-04-06 17:16:27 +05:30
Kedar Sovani
8211a16207
Use esp-tls in the http2 example
2018-04-06 17:16:27 +05:30
Kedar Sovani
070884fc2e
Include error log in case of error
2018-04-06 17:13:14 +05:30
Kedar Sovani
433bd8c91c
Minor fixes
2018-04-06 17:13:14 +05:30
Kedar Sovani
1c72c8d126
Supports TLS with HTTP2 client
2018-04-06 17:13:14 +05:30
Kedar Sovani
eb051fe72f
Minor fixes
2018-04-06 17:13:14 +05:30
Anuj Deshpande
adbcaf8938
Cast to remove warnings
2018-04-06 17:13:14 +05:30
Kedar Sovani
e45024e088
Don't use 'port' number for DNS query
...
- In some cases where the HTTP URL contains the port number
(http://hostname:334 ), the DNS querier fails to resolve the hostname.
- Hence we have to populate the port number ourselves.
- This can only be done based on whether we get an IPv4 or IPv6
address.
2018-04-06 17:13:14 +05:30
Kedar Sovani
306d59d32c
Make read/write function pointers
...
as per Ivan's feedback
2018-04-06 17:13:14 +05:30
Kedar Sovani
7f35c4ff3e
esp-tls: Basic structure
...
Purpose:
1. TLS calls can be too many, and require a user to know the expected behaviour. A simple TLS socket wrapper that can be used in any higher level protocol.
2. Uses OpenSSL compatibility layer, so applications using esp-tls can be built on the host, and it should just work on ESP
2018-04-06 17:13:14 +05:30
Angus Gratton
5b05a1f822
make: Build out of tree component srcs under component build dir
...
Strips leading ../ when generating object file paths, keeps these in sync with the source files
otherwise.
This prevents object files landing in other directories, including outside the build directory, if
the component_srcdirs start with ../
2018-04-06 13:10:19 +10:00
Xia Xiaotian
e727582180
Fix two WiFi and LWIP typos
...
1. close github issue: https://github.com/espressif/esp-idf/issues/1792
2. close github issue: https://github.com/espressif/esp-idf/issues/1781
2018-04-05 11:46:42 +08:00
qiyueixa
2984cdbbe3
add mesh feature
2018-04-04 22:57:45 +08:00
Jiang Jiang Jian
c842725be0
Merge branch 'bugfix/pm_coex_minor_things' into 'master'
...
Bugfix/pm coex minor things
See merge request idf/esp-idf!2180
2018-04-04 17:54:40 +08:00
Ivan Grokhotkov
1a302cbac1
Merge branch 'bugfix/open_uart_non_blocking' into 'master'
...
Make UART non-blocking when the file descriptor was opened with the O_NONBLOCK flag
See merge request idf/esp-idf!2153
2018-04-04 14:43:31 +08:00
Angus Gratton
53234ef2bc
Merge branch 'refactor/rtc_split_module' into 'master'
...
bugfix(rtc): make sure peripherals (DAC, HALL) are turned off before conversion.
See merge request idf/esp-idf!1848
2018-04-04 09:00:58 +08:00
Tian Hao
58e7464dc0
component/esp32 : clear some minor thingsw about PM and coexistence
2018-04-03 20:13:49 +08:00
Ivan Grokhotkov
595ddfd825
Merge branch 'feature/build_ssc_in_multiple_ci_jobs' into 'master'
...
CI: support build SSC in multiple jobs
See merge request idf/esp-idf!1622
2018-04-03 18:20:38 +08:00
Ivan Grokhotkov
139d49894c
Merge branch 'feature/deactivate_wakeup_trigger' into 'master'
...
esp32: Add deactivation of wake up trigger for different sources
See merge request idf/esp-idf!2079
2018-04-03 15:19:10 +08:00
Angus Gratton
3ccb12530b
heap: Change test_multi_heap_on_host multi-config to bash script not Makefile
...
Hopefully fix some CI building issues with parallel builds.
2018-04-03 16:34:02 +10:00
kooho
305c788c60
driver(uart): Add API to get the position of cmd_char
2018-04-03 12:34:16 +08:00
Deomid Ryabkov
4b7eb1792e
Try to merge tail with next block when splitting
...
When splitting a memory block, check if the next block is free.
If it is, then just extend it upwards instead of creating a new block.
This fixes a bug where when shrinking existing allocations would result in irreversible free space fragmentation.
When testing on the host, test all the poisoning configurations.
2018-04-03 12:30:52 +10:00
Jiang Jiang Jian
393f3da37c
Merge branch 'feature/btdm_add_get_local_used_addr_API' into 'master'
...
Component/bt: add esp_ble_gap_get_local_used_addr() API
See merge request idf/esp-idf!2137
2018-04-02 22:28:00 +08:00
Jiang Jiang Jian
7133e14eee
Merge branch 'feature/wifi_bt_new_coex' into 'master'
...
Feature/wifi bt new coex
See merge request idf/esp-idf!2087
2018-04-02 22:20:31 +08:00
zhiweijian
a6c79cfe0f
Component/bt: do not update connection params when already have keys in slave
2018-04-02 19:44:09 +08:00
He Yin Ling
3b3ad875c4
test: use SSC_BLE_WIFI to test NVS cases
2018-04-02 18:13:52 +08:00
Ivan Grokhotkov
aca0008694
Merge branch 'bugfix/sdspi_init_v1_card' into 'master'
...
sdspi: compatibility fixes for SD v1.0 cards
See merge request idf/esp-idf!1927
2018-04-02 13:48:46 +08:00
island
9b7454de0c
support wifi&bt coexist (v0.9.1)
...
1. refactor wifi modem sleep
2. refactor wifi and bt phy enable/diable coexistence
3. support wifi&bt coexist (v0.9.1)
3. add coex pause resume
4. fix bt library interrupt reaction slowly
5. make a2dp more smooth when coex
6. add coexist preference option
7. Make CI do not check libcoexist.a printf/ets_printf
8. disable Wifi RX AMPDU when software coexistence enable && update wifi lib
9. bluetooth call modem sleep api
2018-04-02 13:44:48 +08:00
Ivan Grokhotkov
d6b1d0bb3d
fatfs/test: enable tests on SD card
2018-04-02 10:57:45 +08:00
Jiang Jiang Jian
8eaae96658
Merge branch 'bugfix/flash_mapp' into 'master'
...
spi_flash: add api to get valid mmu table pages number
See merge request idf/esp-idf!2070
2018-03-30 19:32:35 +08:00
Jiang Jiang Jian
f46ad1fec8
Merge branch 'bugfix/btdm_fix_get_PID_key_error' into 'master'
...
Component/bt: fix get PID key error
See merge request idf/esp-idf!2156
2018-03-30 19:26:31 +08:00
Ivan Grokhotkov
e20e64ace9
fatfs/test: use 16k cluster size to speed up formatting
2018-03-30 18:49:42 +08:00
Ivan Grokhotkov
4a2489b99a
sdspi: fix compatibility issue in multi block read
...
SDSPI driver optimized polling of the response tokens by requesting
two extra bytes on top of the block size (512) and CRC (2), and
checking whether these bytes contained the data response token or
not. In case the token was there, further polling would not need to
happen, thereby reducing latency between two consecutive blocks
transferred. However this caused compatibility issues when these two
extra bytes were sent after reading the final block. When
STOP_TRANSMISSION command was sent, these extra two bytes were
treated as part of the command, causing an invalid command error.
This fixes the logic by only requesting extra two bytes if the block
being read is not the final block. In addition to that, more strict
error checking is implemented for command response tokens.
2018-03-30 18:49:42 +08:00
Ivan Grokhotkov
229f67b816
sdspi: handle delayed R1 responses for data read commands
2018-03-30 18:49:42 +08:00
Ivan Grokhotkov
bbbdec24d9
sdspi: handle error flags for R3/R7 responses
...
Previously error flags were only handled for R1 responses. This change
moves error handling into a separate function and calls it for R1/R3/R7.
2018-03-30 18:49:42 +08:00
zhiweijian
99872beb6a
Component/bt: add set gap icon API
2018-03-30 09:21:53 +00:00
Jiang Jiang Jian
e6d6deebc7
Merge branch 'bugfix/btdm_fix_connect_fail_when_remote_addr_is_random' into 'master'
...
Component/bt: modify open API params
See merge request idf/esp-idf!2116
2018-03-30 17:00:19 +08:00
Jiang Jiang Jian
21099c10f4
Merge branch 'feature/support_enrollee_feature_in_APSTA_mode' into 'master'
...
feature/support WPS enrollee in APSTA mode
See merge request idf/esp-idf!2120
2018-03-30 16:14:43 +08:00
Jiang Jiang Jian
6ffd089c97
Merge branch 'bugfix/btdm_fix_no_set_rand_addr_event_callback' into 'master'
...
Component/bt: fix no set rand add callback
See merge request idf/esp-idf!2140
2018-03-30 16:05:32 +08:00
Jiang Jiang Jian
b26ab188af
Merge branch 'bugfix/btdm_fix_service_change_event_param_error' into 'master'
...
Component/bt: fix service change event params error
See merge request idf/esp-idf!2150
2018-03-30 14:57:13 +08:00
Jiang Jiang Jian
8b9f237cb9
Merge branch 'feature/i2s_add_expand_function' into 'master'
...
add a new i2s feature to expand the original i2s width
See merge request idf/esp-idf!1617
2018-03-30 14:51:23 +08:00
Jiang Jiang Jian
fc5b15173e
Merge branch 'bugfix/btdm_add_some_comment' into 'master'
...
Component/bt: add some comments
See merge request idf/esp-idf!1949
2018-03-30 14:07:30 +08:00
Jiang Jiang Jian
713529e464
Merge branch 'bugfix/btdm_xQueueGenericSend_assertion' into 'master'
...
component/bt: Fix xQueueGenericSend assertion
See merge request idf/esp-idf!2130
2018-03-30 14:02:24 +08:00
zhiweijian
109a93bf8c
Component/bt: fix get PID key error
2018-03-30 11:31:15 +08:00
zhiweijian
e6262375a3
Component/bt: fix connect fail when remote addr type is random
2018-03-29 20:55:31 +08:00
Roland Dobai
c55987a3e9
vfs: consider O_NONBLOCK flag while opening UART FD
2018-03-29 14:20:14 +02:00
zhiweijian
aa236809ad
Component/bt: fix no set rand add callback event
2018-03-29 20:17:14 +08:00
zhiweijian
8a78860b16
Component/bt: add esp_ble_gap_get_local_used_addr() API
2018-03-29 19:47:08 +08:00
He Yin Ling
48e3e3efca
test: change SSC binary path
2018-03-29 19:40:07 +08:00
Tian Zhong Xing
49a236dae0
fix CI failed when flash chip size if 2MBytes
2018-03-29 17:48:59 +08:00
zhiweijian
f5d581421e
Component/bt: fix service change event params error
2018-03-29 16:11:16 +08:00
Alex Lisitsyn
cffab50ac3
esp32: Deactivate wakeup trigger after first wakeup
...
The files updated according to code review discussions.
In the sleep_modes.c removed immidiate disable of ULP mode and leave just trigger deactivation.
The esp_sleep.h is updated to have the same defines for source as esp_sleep_wakeup_cause_t.
Updated documentation in sleep_modes.rst file to include cross references and address esp_sleep_wakeup_cause_t type.
The get_time_ms() is updated to explicitly use fabs(dt) instead of abs(dt) in test_sleep.c.
Some other minor changes in test_sleep.c unit test.
(TW#18952)
Closes https://github.com/espressif/esp-idf/issues/1677
2018-03-29 11:24:59 +05:00
kooho
8e1f930582
driver(gpio): Modified the GPIO_CHECK's return value when ISR service already installed
2018-03-29 09:58:31 +08:00
Angus Gratton
da27816314
Merge branch 'feat/add_efuse_cpu_freq_rating' into 'master'
...
efuse/add cpu freq rating
See merge request idf/esp-idf!1994
2018-03-29 05:59:52 +08:00
Angus Gratton
a17d12d94f
Merge branch 'bugfix/make_error_codes_unique' into 'master'
...
Make error codes globally unique
See merge request idf/esp-idf!1935
2018-03-29 05:57:04 +08:00
Jiang Jiang Jian
6b8ca31bc9
Merge branch 'bugfix/btdm_slow_interrupt_reaction' into 'master'
...
component/bt : fix interrupt slow reaction cause assert(interrupt wdt)
See merge request idf/esp-idf!2143
2018-03-28 21:49:19 +08:00
baohongde
e1b419fb6d
component/bt: Fix xQueueGenericSend assertion
2018-03-28 20:25:57 +08:00
Ivan Grokhotkov
1a157279e0
Merge branch 'doc/adc1_channel_config' into 'master'
...
adc: Add doc details about configure not needed before each read
See merge request idf/esp-idf!2132
2018-03-28 19:11:44 +08:00
Michael (Xiao Xufeng)
cef8baf424
bugfix(rtc): make sure peripherals (DAC, HALL) are turned off before conversion.
...
refactor structure of ``rtc_module.c`` to make it more clearly.
Closes https://github.com/espressif/esp-idf/issues/1517
2018-03-28 17:10:01 +08:00
Tian Hao
3843bff97b
component/bt : fix interrupt slow reaction cause assert(interrupt wdt)
...
Some application lock interrupt(portENTER_CRITICAL) too long time,
it will cause bluetooth cannot react interrupt in time, then t will
cause some assert, assert info following:
1. ld_acl.c 1900
2. ld_fm.c 340
3. other assert reference to this.
2018-03-28 12:04:16 +08:00
Angus Gratton
4507b3fde6
adc: Add doc details about configure not needed before each read
2018-03-28 11:52:41 +11:00
Tian Hao
4b1ef083ee
component/bt : add bluetooth controller library compile version
2018-03-27 16:35:00 +08:00
Ivan Grokhotkov
2935e958fc
Merge branch 'bugfix/adc2_cct' into 'master'
...
fix(adc2): fix cct and xpd configurations to improve precision of ADCs
See merge request idf/esp-idf!2020
2018-03-27 16:23:43 +08:00
Jiang Jiang Jian
3eb43c9ece
Merge branch 'bugfix/no_link_key_notify_on_repairing' into 'master'
...
component/bt: bugfix for no link key notification event on repairing
See merge request idf/esp-idf!2118
2018-03-27 14:51:25 +08:00
Roland Dobai
7c4b3d50f8
Make error codes globally unique
2018-03-27 08:12:54 +02:00
Ivan Grokhotkov
892f3907fa
Merge branch 'bugfix/i2c_ack_error_bug' into 'master'
...
driver(i2c): Fixed i2c interrupt wdt timeout bug
See merge request idf/esp-idf!2049
2018-03-27 12:29:23 +08:00
Ivan Grokhotkov
b007b89b84
soc/io_mux: make CLK_OUT fields compatible with REG_SET/GET_FIELD
2018-03-27 12:10:18 +08:00
Ivan Grokhotkov
2e7613b656
Merge branch 'feature/use_esp_err_to_name' into 'master'
...
Use esp_err_to_name in examples & optionally disable it in Kconfig
See merge request idf/esp-idf!2013
2018-03-27 11:50:21 +08:00
Ivan Grokhotkov
9d69d11067
Merge branch 'feature/spi_dummy_bit' into 'master'
...
feat(spi_master): allow output high speed data when dummy bits are not used.
See merge request idf/esp-idf!2113
2018-03-27 11:28:58 +08:00
wangmengyang
fd8c484b33
component/bt: bugfix for no link key notification event on repairing for initiating side of simple pairing
...
In response to: https://github.com/espressif/esp-idf/issues/1275
2018-03-27 11:22:47 +08:00
Ivan Grokhotkov
db44a719fb
pm: add unit test for configuration changes
2018-03-27 11:20:55 +08:00
Ivan Grokhotkov
94014a9a51
pm: handle the case of 2MHz frequency
...
It is not possible to generate 1 MHz REF_TICK from 2 MHz APB clock
(this is a limitation of REF_TICK divider circuit). Since switching
REF_TICK frequency is something we would like to avoid (to maintain
UART output even with DFS), 2 MHz frequency has been marked as
unsupported.
2018-03-27 11:20:55 +08:00
Ivan Grokhotkov
839c665c92
pm: fix initialisation only done in dual core mode
...
Introduced in 9377d4ac
. Accidentally put the new code block under an
2018-03-27 11:20:54 +08:00
Ivan Grokhotkov
fe5d294f6c
pm: handle changes to the PM_MODE_ACTIVE frequency
...
The issue would manifest itself in cases when switching from PM
configuration like {active=160MHz, idle=80MHz} to {active=80MHz,
idle=80Mhz}. After the configuration was changed, PM logic would
think that current frequency was 80MHz and would not do any further
switching. In fact, frequency was still 160MHz.
2018-03-27 11:20:54 +08:00
Ivan Grokhotkov
1517aeda6c
pm: fix calculation of maximum of two frequencies
...
The old code calculated MAX() of two enum values, but CPU frequency
enum values are not ordered (2MHz goes after 240MHz). This caused
incorrect configuration to be set.
2018-03-27 11:20:53 +08:00
Ivan Grokhotkov
43b5fdd5c9
soc/rtc: fix switching between 80/160 and 240MHz
...
Previous code contained a check for PLL frequency to be 240MHz, while
in fact 240MHz was a CPU frequency; corresponding PLL frequency is
480MHz. Fixed the comparison and replaced integer MHz values with an
enum.
2018-03-27 10:55:59 +08:00
Michael (Xiao Xufeng)
7563510758
feat(spi_master): allow output high speed data when dummy bits are not used.
2018-03-26 21:24:32 +08:00
michael
28e832c37e
fix(adc2): fix cct and xpd configurations to improve precision of ADCs
2018-03-26 12:02:26 +00:00
kooho
37db055cff
driver(i2c): Fixed ack_err interrupt can't exit bug.
2018-03-26 16:31:17 +08:00
Ivan Grokhotkov
4667d9c804
Merge branch 'bugfix/rtc_xtal_unit_test' into 'master'
...
Fix 32k RTC XTAL unit test failures
See merge request idf/esp-idf!2124
2018-03-26 15:41:25 +08:00
Ivan Grokhotkov
af3ffec446
Merge branch 'feat/add_FatFs_encoding_options_in_menuconfig' into 'master'
...
fatfs/add menuconfig options for different encodings
See merge request idf/esp-idf!2112
2018-03-26 14:14:48 +08:00
Tian Zhong Xing
fa68774344
spi_flash:
...
1. add test code for new api
2. resolve some comments
2018-03-26 10:24:42 +08:00
Ivan Grokhotkov
48d55e22e7
soc/rtc: run 32k XTAL startup test only in PSRAM config
...
PSRAM tests run on ESP-WROVER-KIT boards, which have the 32k XTAL
installed.
2018-03-26 10:14:13 +08:00
Deng Xin
6c3bdd45cf
feature/support WPS enrollee in APSTA mode
...
Add the feature WPS enrollee in APSTA mode
close github issue: https://github.com/espressif/esp-idf/issues/1608
2018-03-23 15:41:59 +08:00
Darian Leung
99b8ae34c9
fatfs/add menuconfig options for different encodings
...
This commit adds character encoding configurations in for the fatfs component.
The FF_LFN_UNICODE definition in ffconf.h can now be changed to accept UTF-8 or
UTF-16 encoded filernames. Test cases using UTF-8 encoded file paths and names in
FatFs have also been added.
Closes #1183
2018-03-23 14:06:56 +08:00
Ivan Grokhotkov
27bf18ad6b
Merge branch 'test/wifi_stop_deinit' into 'master'
...
test(wifi): add test for wifi stop and deinit.
See merge request idf/esp-idf!2022
2018-03-23 13:45:20 +08:00
Zhang Zhao Xiang
f48ecb8613
Add a new i2s feature to expand the original i2s width
2018-03-22 18:52:55 +08:00
Jiang Jiang Jian
0a83733d2d
Merge branch 'bugfix/btdm_spp_handle_error' into 'master'
...
component/bt: Fix bug of SPP handle error
See merge request idf/esp-idf!2026
2018-03-22 10:08:47 +08:00
Jiang Jiang Jian
ca3e4ef5ca
Merge branch 'bugfix/btdm_fix_error_when_close_SMP_for_master' into 'master'
...
Component/bt: fix build error when close SMP
See merge request idf/esp-idf!2110
2018-03-22 10:07:57 +08:00
Ivan Grokhotkov
887b6e2925
Merge branch 'bugfix/rtc_clk_32k_bootstrap' into 'master'
...
bugfix/rtc_clk_32k_bootstrap: Fix starting 32k RTC
See merge request idf/esp-idf!2085
2018-03-21 18:38:49 +08:00
Konstantin Kondrashov
f7df532ec0
bugfix/rtc_clk_32k_bootstrap: Fix starting 32k RTC
...
1. External 32kHz crystal is started for too long or it may not start at all. It is often observed at the first start.
2. At the first start, it is possible that the crystal did not start. And the recorded period was recorded as 0. Which led to a division error by zero during the transition to the deep sleep mode (Maybe somewhere else).
3. Added a unit test to test a new method of oscillation an external crystal.
4. Added a new method of oscillating of an external crystal. The legs of the crystal are fed with a 32 kHz frequency.
The new method eliminates these errors.
Added unit test: `\esp-idf\components\soc\esp32\test\test_rtc_clk.c`: `make TEST_COMPONENTS=soc`
- 8 Test starting external RTC crystal. Will pass.
`Bootstrap cycles for external 32kHz crystal` - is specified in the file Kconfig by default 100.
QA tested a new method of oscillation the crystal on 25 boards. The supply of square waves on the crystal showed a 100% result in contrast to the previous method of launching the crystal. After the tests, the old method was deleted.
Closes TW19143
2018-03-21 13:27:56 +05:00
zhiweijian
064c274bd6
Component/bt: fix build error when close SMP
2018-03-21 15:21:30 +08:00
Jiang Jiang Jian
8478823039
Merge branch 'bugfix/dfs_rtc_fixes' into 'master'
...
DFS related fixes
See merge request idf/esp-idf!2102
2018-03-21 12:02:48 +08:00
Jiang Jiang Jian
aa3c77ec60
Merge branch 'bugfix/wifi_lwip_set_ip_post_wrong_event' into 'master'
...
Fix the bug that incorrect event is posted when setting static ip of softap and ethernet
See merge request idf/esp-idf!2095
2018-03-21 11:45:24 +08:00
XiaXiaotian
0470f28055
Fix the bug that incorrect event is posted when setting static ip of softap and ethernet
2018-03-21 11:04:22 +08:00
Ivan Grokhotkov
5bc724d3f9
Merge branch 'feature/configure_pthread_behaviour' into 'master'
...
pthread: Allow configuration of priority and stacksize
See merge request idf/esp-idf!1978
2018-03-21 00:41:20 +08:00
Kedar Sovani
7a0cab0a5b
pthread: Allow configuration of priority and stacksize
...
The expected usage is:
esp_pthread_set_cfg(cfg);
pthread_create()
If the inherit flag is set, then all subsequent threads forked by this
thread will also inherit this configuration. This avoids having to
change/prefix this for each and every pthread_create() call.
2018-03-20 18:06:32 +05:30
Jiang Jiang Jian
c45170cb66
Merge branch 'bugfix/btdm_fix_reconnect_fail_in_smp_v30' into 'release/v3.0'
...
Component/bt: fix reconnect fail in smp for v3.0
See merge request idf/esp-idf!2075
(cherry picked from commit 7f2a9f0359
)
d0e55335
Component/bt: fix reconnect fail in smp
2018-03-20 18:49:22 +08:00
Jiang Jiang Jian
0f6f762be0
Merge branch 'bugfix/btdm_add_char_descr_uuid_error' into 'master'
...
component/bt: Change the char_uuid to descr_uuid in the add descriptor callback params.
See merge request idf/esp-idf!2065
2018-03-20 18:43:42 +08:00
Ivan Grokhotkov
1618dbc9a5
soc/rtc: wait for frequency switch to complete
...
The fast path of CPU frequency switch function, used in DFS, was not
waiting for the frequency switch to complete when switching from XTAL
to PLL. This resulted in incorrect reads from peripherals on APB,
where two consecutive reads could return the same value. For example,
in esp_timer, read of FRC_COUNT_REG would return same value as the
preceding read of FRC_ALARM_REG, causing time to jump by the value of
FRC_ALARM_REG / apb_freq_mhz.
2018-03-20 18:27:32 +08:00
Jiang Jiang Jian
8ab17d7ccf
Merge branch 'bugfix/btdm_avrc_remote_bda_error_when_disconnect' into 'master'
...
component/bt: Fix bug: AVRC remote_bda error when disconnect
See merge request idf/esp-idf!2093
2018-03-20 18:24:01 +08:00
Ivan Grokhotkov
7167ad45ab
pm: improve debug output from esp_pm_dump_locks
...
- separate mode stats from lock stats by an extra comment line
- add CPU frequency column to the mode stats
- don’t print a row for light sleep if light sleep is not enabled
2018-03-20 18:08:19 +08:00
Ivan Grokhotkov
9377d4acd4
pm: fix incorrect configuration at startup
...
s_cpu_freq_by_mode array was statically initialised with 80MHz CPU
frequency in CPU_MAX and APB_MAX modes, but sdkconfig setting for the
CPU frequency could have been different. For the case of 240MHz CPU
frequency, this would cause a frequency switch between 240MHz and
80MHz to happen, even though such switch is not supported in the fast
path switching functions used by the DFS implementation.
This fixes the issue by moving initialisation into esp_pm_impl_init,
which is called at startup before the first mode switch can happen.
Fixes https://github.com/espressif/esp-idf/issues/1729 .
2018-03-20 18:06:58 +08:00
Liu Zhi Fu
21c0b59315
esp32: optimize WiFi TX
...
1. Optimize TX retry counter
2. Optimize TX timeout
2018-03-20 15:24:32 +08:00
Alex Lisitsyn
1e9bb5bb7c
esp32: Deactivate wakeup trigger after first wakeup
...
The files updated according to code review discussions.
In the sleep_modes.c removed immidiate disable of ULP mode and leave just trigger deactivation.
The esp_sleep.h is updated to have the same defines for source as esp_sleep_wakeup_cause_t.
Updated documentation in sleep_modes.rst file to include cross references.
Some minor changes in test_sleep.c unit test.
(TW#18952)
Closes https://github.com/espressif/esp-idf/issues/1677
2018-03-20 12:23:32 +05:00
Jiang Jiang Jian
45eb556ddf
Merge branch 'bugfix/wpa2_assert_when_use_sha256_signature' into 'master'
...
bugfix of wpa2 assert when use sha256 do signature
See merge request idf/esp-idf!2089
2018-03-20 15:19:55 +08:00
Jiang Jiang Jian
f2132238b2
Merge branch 'bugfix/tw19041_esp_wifi_stop_not_return' into 'master'
...
esp32: Fix esp_wifi_stop never returns issue
See merge request idf/esp-idf!2059
2018-03-20 15:18:09 +08:00
baohongde
2531975ca0
component/bt: Fix bug: AVRC remote_bda error when disconnect
2018-03-20 15:12:36 +08:00
Deng Xin
bc97b0f380
bugfix of wpa2 assert when use sha256 do signature
...
The order of wpa2_crypto_funcs_t structure mismatch between IDF and wifi libray
close github issue https://github.com/espressif/esp-idf/issues/1297
2018-03-20 11:08:20 +08:00
Ivan Grokhotkov
7e2028d598
Merge branch 'bugfix/gpio_timer_doc_fixes' into 'master'
...
Minor fixes of GPIO and timer group driver docs
See merge request idf/esp-idf!2081
2018-03-20 10:49:36 +08:00
Ivan Grokhotkov
e56897b7a4
Merge branch 'bugfix/docs_updates_from_github' into 'master'
...
Bugfix/docs updates from github
See merge request idf/esp-idf!2057
2018-03-20 09:50:43 +08:00
Angus Gratton
d3b8f1f927
heap tracing: Fix tracing of newlib internal allocations
...
Newlib internal allocations (from newlib ROM code) were not being included in the heap trace.
Ref https://github.com/espressif/esp-idf/issues/1652
2018-03-20 12:03:46 +11:00
zhiweijian
7c777f40aa
Component/bt: add some comment
2018-03-19 21:19:21 +08:00
Liu Zhi Fu
078cd81f10
esp32: Fix wifi stop never return issue
...
Fix esp_wifi_stop() never return issue
2018-03-19 21:16:29 +08:00
Jiang Jiang Jian
5d4c4b19d4
Merge branch 'bugfix/tw19020_force_1.9V_when_flash_is_80M' into 'master'
...
bootloader: force SDIO 1.9V if flash is 80M
See merge request idf/esp-idf!2083
2018-03-19 18:50:36 +08:00
Jiang Jiang Jian
259220f33d
Merge branch 'bugfix/btdm_spp_invalid_handle_path' into 'master'
...
component/bt: Fix bug of SPP invalid handle path
See merge request idf/esp-idf!2056
2018-03-19 18:40:47 +08:00
Ivan Grokhotkov
e784df60cc
Merge branch 'bugfix/fix_param_name_comments_bt' into 'master'
...
components/bt: Fix parameter name and print statements
See merge request idf/esp-idf!2032
2018-03-19 16:59:09 +08:00
Ivan Grokhotkov
85c9164f50
Merge branch 'bugfix/fix_bt_typos' into 'master'
...
components/bt examples/bluetooth: Fix typographical errors
See merge request idf/esp-idf!1950
2018-03-19 16:58:55 +08:00
Liu Zhi Fu
072b353b45
bootloader: force SDIO 1.9V if flash is 80M
...
If the SPI flash frequency is 80M, the voltage of SDIO is 1.9V,
otherwise, it can configured to 1.8V or 1.9V via menuconfig.
2018-03-19 16:39:54 +08:00
Ivan Grokhotkov
b9a8912659
Merge branch 'bugfix/spi_master_const_dev_config_t' into 'master'
...
spi master: use constant dev_config parameter in spi_bus_add_device
See merge request idf/esp-idf!2082
2018-03-19 16:31:19 +08:00
michael
c2a68ae0d3
test(wifi): add test for wifi stop and deinit.
2018-03-19 08:23:52 +00:00
Jiang Jiang Jian
d6946598f6
Merge branch 'bugfix/btdm_fix_gattc_open_API' into 'master'
...
component/bt: fix gattc open api
See merge request idf/esp-idf!2004
2018-03-19 14:26:41 +08:00
Jonathan Kaufmann
a99d4d5a7f
Modified spi_bus_add_device so that it takes a constant *dev_config parameter.
...
Merges https://github.com/espressif/esp-idf/pull/1690
2018-03-19 12:17:45 +08:00
Stefan Tauner
38daa1e716
docs: fix description of timer_get_alarm_value()
...
Replace c&p text with an actual description.
Merges https://github.com/espressif/esp-idf/pull/1740
2018-03-19 11:56:57 +08:00
Stefan Tauner
86a1d579ff
docs: add warning to gpio_get_level()
...
On most microcontrollers I have worked with one can retrieve the
current state of output GPIO pins. On ESP32 this is not the case
if the pad is not explictly configured to route this information into
the port by configuring it as input or i/o.
Thus add a warning to the API documentation of gpio_get_level().
Merges https://github.com/espressif/esp-idf/pull/1740
2018-03-19 11:56:57 +08:00
baohongde
1c48b4f01e
component/bt: Fix bug of SPP invalid handle path
2018-03-19 02:22:45 +00:00
baohongde
b9ea6a2067
component/bt: Fix bug of a2dp source cleanup bug when connected
2018-03-19 02:21:12 +00:00
Angus Gratton
9a6fcab527
Merge branch 'test/spi_speed_fix' into 'master'
...
test(spi_master): test spi master speed performance by median value.
See merge request idf/esp-idf!2048
2018-03-19 06:16:38 +08:00
Alex Lisitsyn
ce09cfd99b
esp32: Deactivate wakeup trigger after first wakeup
...
Added function esp_sleep_disable_wakeup_source() to deactivate wakeup trigger for selected source.
Updated documentation for this function in sleep_modes.rst file.
Updated unit test to check this functionality for light sleep.
The test_sleep.c unit test is updated to add reliability for unit testing.
(TW#18952)
Closes https://github.com/espressif/esp-idf/issues/1677
2018-03-16 18:49:24 +05:00
Alex Lisitsyn
2d90da0817
esp32: Deactivate wakeup trigger after first wakeup
...
The timer wakeup function once activated cannot be disabled later using existing api. If user wants to use different wakeup sources after first sleep but it does not work. This change disables timer wakeup trigger in configuration that will be set into appropriate RTC registers in esp_light_sleep_start() function.
Added function esp_sleep_disable_wakeup_source() to deactivate wakeup trigger for selected source.
Updated documentation for this function in sleep_modes.rst file to pass make html.
Updated unit test to check this functionality for light sleep.
The test_sleep.c unit test is updated to add reliability for auto unit testing.
(TW#18952)
Closes https://github.com/espressif/esp-idf/issues/1677
2018-03-16 18:22:02 +05:00
zwj
d1405183a5
component/bt: fix gattc open api
2018-03-16 19:17:55 +08:00
Michael (Xiao Xufeng)
15be0829fa
test(spi_master): test spi master speed performance by median value.
...
also increase the boundary of SPI limit by a little.
2018-03-16 16:37:19 +08:00
Darian Leung
f4b03d553c
bugfix/Fix BLK3_RESERVED_FLAG register and other minor bugs
...
This commit fixes an incorrect register definition for BLK3_RESERVED_FLAG.
Other bugs include a missing conditional check, and updated comments
on modifying eFuse checking behavior.
2018-03-16 15:51:36 +08:00
Tian Zhong Xing
7555031553
add api get valid mmu table pages number
2018-03-16 10:40:55 +08:00
Jiang Jiang Jian
7e268adaf5
Merge branch 'bugfix/btdm_mem_leak_of_bt_dynamic_memory' into 'master'
...
component/bt: Fix bug of bt dynamic memory
See merge request idf/esp-idf!2053
2018-03-15 17:01:20 +08:00
Jiang Jiang Jian
dc66940f82
Merge branch 'bugfix/btdm_a2dp_disc_rsn_error_when_as_master' into 'master'
...
component/bt: Fix bug: a2dp disc_rsn error when as master
See merge request idf/esp-idf!1995
2018-03-15 15:28:11 +08:00
Jiang Jiang Jian
488268d58b
Merge branch 'bugfix/btdm_a2dp_sink_cleanup_bug' into 'master'
...
component/bt: Fix bug of a2dp sink cleanup bug when connected
See merge request idf/esp-idf!2041
2018-03-15 15:04:39 +08:00
baohongde
3ee5b49575
component/bt: Fix bug of bt dynamic memory
2018-03-15 14:36:49 +08:00
Yulong
c802ea842d
component/bt: Change the char_uuid to descr_uuid in the add descriptor callback params.
2018-03-15 02:29:11 -04:00
Jiang Jiang Jian
047870fd80
Merge branch 'bugfix/btdm_string_to_bdaddr_error_when_opening_nano' into 'master'
...
component/bt: Fix bug: string_to_bdaddr() error when opening nano
See merge request idf/esp-idf!1981
2018-03-15 14:14:47 +08:00
Liu Zhi Fu
8f61716647
esp32: Fix esp_wifi_stop never returns issue
...
esp_wifi_stop may never return when run esp_wifi_start/stop repeatly.
2018-03-15 11:25:13 +08:00
XuanZe
5a31c1e5b1
fix : cpp:type. Merges https://github.com/espressif/esp-idf/pull/1700
2018-03-14 22:04:47 +01:00
baohongde
c0eadc514f
component/bt: Fix bug of a2dp sink cleanup bug when connected
2018-03-14 06:27:26 +00:00
Ivan Grokhotkov
a58a2b6f6d
Merge branch 'bugfix/wl_encryption_size' into 'master'
...
Bugfix/wl encryption size
See merge request idf/esp-idf!2037
2018-03-14 14:12:29 +08:00
Ivan Grokhotkov
36098f3cac
Merge branch 'bugfix/make_MEMMAP_SMP_config_dependent' into 'master'
...
bugfix/remove MEMMAP_SMP config
See merge request idf/esp-idf!1988
2018-03-14 13:02:55 +08:00
Angus Gratton
bd09a83062
Merge branch 'feature/esptool_v23' into 'master'
...
Update esptool to v2.3.1
See merge request idf/esp-idf!1989
2018-03-14 08:11:59 +08:00
Roland Dobai
f891eac827
ESP32: Optionally disable lookup-tables for esp_err_to_name
2018-03-13 14:26:54 +01:00
Jiang Jiang Jian
12b4e416e6
Merge branch 'bugfix/wpa2_assert_when_suddenly_disconnect' into 'master'
...
Bugfix of wpa2 task assert when suddenly disconnect
See merge request idf/esp-idf!2043
2018-03-13 20:59:39 +08:00
Ivan Grokhotkov
7a1e3265fe
Merge branch 'bugfix/docs_small_corrections' into 'master'
...
Bugfix/docs small corrections
See merge request idf/esp-idf!2025
2018-03-13 17:43:00 +08:00
Xu Chun Guang
973913b151
feat: Adjust log level about UART
...
There are too many log when UART baud is around 2Mbps if not use hard flow control.
2018-03-13 16:01:37 +08:00
Deng Xin
768d6e09ab
Bugfix of wpa2 task assert when suddenly disconnect
2018-03-12 21:41:24 +08:00
Dmitry
5cbb1943ac
Structure size alligned by compiler.
2018-03-12 15:34:16 +03:00
Dmitry
743969f333
Size of structure made latform independent.
2018-03-12 08:34:23 +03:00
Dmitry
560753cfb1
Size updated.
2018-03-12 07:49:50 +03:00
Dmitry
09704fe7ca
Size of structure ware updated.
2018-03-12 07:30:35 +03:00
Hrishikesh Dhayagude
9831eca4b2
components/bt: Fix parameter name and print statement
...
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-03-09 13:53:27 +05:30
Dmitry
816d63211f
Structure size updated to the 16 bytes * N
2018-03-09 09:17:32 +03:00
Dmitry
7f0b00ef9b
Compiler dependency included for tests.
2018-03-09 08:40:24 +03:00
Dmitry
97539334a9
Remove error from tests.
2018-03-09 07:58:01 +03:00
baohongde
d082316507
component/bt: Fix bug of SPP handle error
2018-03-09 11:46:30 +08:00
Jiang Jiang Jian
77eae33a7e
Merge branch 'bugfix/esp_timer_overflow' into 'master'
...
component/esp32: fix esp_timer bug
See merge request idf/esp-idf!1877
2018-03-09 10:05:22 +08:00
Jiang Jiang Jian
1d49c0953e
Merge branch 'bugfix/close_socket_when_tcp_connecting' into 'master'
...
Close socket request will abort tcp write/connect
See merge request idf/esp-idf!1687
2018-03-08 20:34:40 +08:00
Jiang Jiang Jian
a54b413367
Merge branch 'bugfix/btdm_clear_start_stop_adv_callback_when_complete' into 'master'
...
Component/bt: clear start/stop adv callback when complete
See merge request idf/esp-idf!1938
2018-03-08 20:22:10 +08:00
Jiang Jiang Jian
702b46108c
Merge branch 'bugfix/btdm_fix_set_error_channel_map_in_adv_params' into 'master'
...
Component/bt: fix set error params and return callback when start adv
See merge request idf/esp-idf!1943
2018-03-08 20:18:30 +08:00
Jiang Jiang Jian
d3d3a6fc39
Merge branch 'feature/btdm_blufi_add_custom_data_cmd' into 'master'
...
Component/bt: blufi add custom data cmd
See merge request idf/esp-idf!2017
2018-03-08 20:15:27 +08:00
Jiang Jiang Jian
db690e3f85
Merge branch 'bugfix/btdm_add_param_check_in_gap_set_prefer_conn_params' into 'master'
...
Component/bt: add_params_check_in_prefer_conn_params()
See merge request idf/esp-idf!1944
2018-03-08 20:08:33 +08:00
Jiang Jiang Jian
bcfbb6154c
Merge branch 'bugfix/btdm_fix_get_attr_value_error_after_prepare_write' into 'master'
...
Component/bt: fix get attr value error after prepare write
See merge request idf/esp-idf!1976
2018-03-08 20:06:47 +08:00
zhiweijian
b1d8ea84c3
Component/bt: blufi add custom data cmd
2018-03-08 17:38:44 +08:00
XuanZe
573876700b
fix : esp_partition_find missing `
`
...
Signed-off-by: krzychb <krzychb@gazeta.pl>
2018-03-08 09:39:20 +01:00
Darian Leung
8b1277c55f
efuse/add cpu freq rating
...
This commit adds support for CPU max freqeuency rating
bits in CPU. Bootloader will now print an error if attempting
to 160MHz rated ESP32 at 240MHz.
EFUSE_CHIP_VER_RESERVE has been replaced by the
frequency rating bits. Dependancies on EFUSE_CHIP_VER_RESERVE
have been changed to use EFUSE_CHIP_VER_PKG
2018-03-07 12:16:51 +08:00
Jiang Jiang Jian
983e9f854d
Merge branch 'bugfix/btdm_error_log' into 'master'
...
component/bt: remove some error logs which are not error
See merge request idf/esp-idf!1826
2018-03-06 19:37:16 +08:00
Dmitry
7b287c25b1
Bugfix for write size. The write size for encryption have to be rounded to 16 bytes.
...
A wl_config structure size now ounded to 16.
Flash Emulator updated to work with defined minimum size.
Tests are updated.
2018-03-06 10:26:21 +03:00
baohongde
3824f0eb8f
component/bt: Fix spp lock error
2018-03-06 14:57:08 +08:00
baohongde
f1d3f689e8
component/bt: Fix bug: a2dp disc_rsn error when as master
2018-03-06 14:11:28 +08:00
baohongde
569b9d592e
component/bt: remove some error logs which are not error
2018-03-05 19:22:21 +08:00
Jiang Jiang Jian
17e8d49f26
Merge branch 'bugfix/btdm_update_pktLen_have_no_callback' into 'master'
...
component/bt: Fix bug:update pktlen have no callback
See merge request idf/esp-idf!1913
2018-03-05 16:14:48 +08:00
Jiang Jiang Jian
275fa2cc36
Merge branch 'bugfix/btdm_add_lock_for_spp_without_VFS' into 'master'
...
component/bt: Add lock for SPP slot
See merge request idf/esp-idf!2002
2018-03-05 16:06:16 +08:00
baohongde
c4cdb66947
component/bt: Add lock for SPP slot
2018-03-02 18:11:47 +08:00
zhiweijian
1e6f52fb6f
Component/bt: fix build ble server error with BT_BLE_DYNAMIC_ENV_MEMORY option
2018-02-28 16:44:05 +08:00
Tian Hao
127d213b29
component/esp32: fix esp_timer bug
...
1. fix the bug that cause esp_timer_get_time is not accuracy(the max margin may be 106s).
2. fix the bug that causes esp timer come too early.
2018-02-28 10:49:45 +08:00
Angus Gratton
bd306bb519
esptool: Update to v2.3.1
2018-02-28 10:17:14 +11:00
Darian Leung
33aee51727
bugfix/remove MEMMAP_SMP config
...
This commit removes the MEMMAP_SMP config option.
Dependencies on this config will now depend on !FREERTOS_UNICORE
2018-02-27 17:56:44 +08:00
Ivan Grokhotkov
d1559732b0
Merge branch 'feature/ignore_no_psram' into 'master'
...
Add option to continue running (with less ram) if psram is enabled but not detected
See merge request idf/esp-idf!1911
2018-02-26 20:33:28 +08:00
baohongde
54320d5f7b
component/bt: Fix bug: string_to_bdaddr() error when opening nano
2018-02-26 15:09:03 +08:00
Angus Gratton
dbaea72062
Merge branch 'bugfix/revisit_pthread_once' into 'master'
...
pthread: fix pthread_once behavior, if mux (handle) is in external PSRAM
See merge request idf/esp-idf!1972
2018-02-26 08:52:06 +08:00
Angus Gratton
aedb807a02
Merge branch 'bugfix/esp_ping_ms_pr1638' into 'master'
...
esp_ping - Document that timeout units are in milliseconds
See merge request idf/esp-idf!1968
2018-02-26 08:00:44 +08:00
Ivan Grokhotkov
04ad0f79c0
Merge branch 'adc_calibration_update' into 'master'
...
ADC Calibraiton - Support new new calibration methods and eFuse functionality
See merge request idf/esp-idf!1846
2018-02-26 06:15:06 +08:00
Ivan Grokhotkov
c8ba6cf156
Merge branch 'feature/rtc_gpio_isolate' into 'master'
...
Add rtc_gpio_isolate function, use it in deep sleep examples
See merge request idf/esp-idf!1936
2018-02-26 06:09:08 +08:00
Ivan Grokhotkov
a9ae4e2696
Merge branch 'bugfix/config_minor_missing_deps' into 'master'
...
Kconfig: esp32/freertos: add some missing dependencies
See merge request idf/esp-idf!1966
2018-02-26 05:57:27 +08:00
zhiweijian
6a9c99a414
Component/bt: fix get attr value error after prepare write
2018-02-24 16:39:00 +08:00
Jiang Jiang Jian
165e3edd49
Merge branch 'bugfix/btdm_mem_leak_of_bt' into 'master'
...
component/bt: Fix mem leak of bt
See merge request idf/esp-idf!1924
2018-02-24 10:25:13 +08:00
Mahavir Jain
48e8171114
pthread: fix pthread_once behavior, if mux (handle) is in external PSRAM
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-02-23 14:51:05 +05:30
Angus Gratton
2abba13172
Merge branch 'feature/heap_task_tracking_pr1498' into 'master'
...
heap: Add task tracking features (PR 1498)
See merge request idf/esp-idf!1960
2018-02-23 06:12:17 +08:00
Angus Gratton
ab82ce3da4
Merge branch 'bugfix/partition_md5_backward_compatibility' into 'master'
...
partition_table: Optionally disable the MD5 checksum in partition tables
See merge request idf/esp-idf!1958
2018-02-23 06:11:44 +08:00
Angus Gratton
da751cc653
Merge branch 'bugfix/fd_zero' into 'master'
...
FD_ZERO: Fix a compilation warning
See merge request idf/esp-idf!1967
2018-02-23 06:10:40 +08:00
Darian Leung
0c9e2c0fba
esp_adc_cal/Remove lookup table
...
This commit removes the lookup table mode due to inferior performance when compared
to linear mode under attenuation 0, 1 and 2. However small portions of the lookup table
are kept for the higher voltages of atten 3 (above ADC reading 2880). That voltage range
in atten 3 has non linear characteristics making the LUT performan better than linear mode.
2018-02-22 20:01:41 +08:00
Piyush Shah
6dbb040890
FD_ZERO: Fix a compilation warning
...
Definition of memset is not found if string.h is not included anywhere
Signed-off-by: Piyush Shah <piyush@espressif.com>
2018-02-22 14:10:04 +05:30
Roland Dobai
4017cf3516
partition_table: Optionally disable the MD5 checksum in partition tables
2018-02-22 07:46:41 +01:00
Angus Gratton
63ddae5087
Merge branch 'bugfix/i2s_driver' into 'master'
...
i2s: add support fixed_mclk configuration
See merge request idf/esp-idf!1600
2018-02-22 12:03:26 +08:00
Angus Gratton
e99b6ed79c
Merge branch 'bugfix/doc_spi_flash' into 'master'
...
spi_flash: Update docs
See merge request idf/esp-idf!1961
2018-02-22 11:09:17 +08:00
Tuan PM
7cda34c626
i2s: add support fixed_mclk configuration
2018-02-22 09:00:23 +07:00
Angus Gratton
30637c8885
Merge branch 'bugfix/docs_esp_sleep_wakeup_cause_t' into 'master'
...
Fix esp_sleep_wakeup_cause_t docs. Merges https://github.com/espressif/esp-idf/pull/1634
See merge request idf/esp-idf!1965
2018-02-22 07:31:03 +08:00
Angus Gratton
b52b4ea2cc
spi_flash: Update docs
2018-02-22 10:28:26 +11:00
Angus Gratton
68dc422cb5
Merge branch 'bugfix/apptrace_down_buf_handling' into 'master'
...
esp32: Fixes apptrace down buffer management
See merge request idf/esp-idf!1953
2018-02-22 07:27:17 +08:00
Alexey Gerenkov
4e544f82bb
esp32: Fixes apptrace down buffer management
2018-02-21 10:13:25 +03:00
Mahavir Jain
bf31afd2c3
Kconfig: esp32/freertos: add some missing dependencies
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-02-21 12:31:10 +05:30
Daniël van Eeden
bd0b3a7d6b
Fix esp_sleep_wakeup_cause_t docs. Merges https://github.com/espressif/esp-idf/pull/1634
...
value and description didn't match
2018-02-20 20:22:14 +01:00
Ivan Grokhotkov
3ede9f011b
Merge branch 'feature/openssl_cacert' into 'master'
...
OpenSSL API addition
See merge request idf/esp-idf!1932
2018-02-21 02:58:00 +08:00
Jitin George
f0ebf613f4
OpenSSL API addition
2018-02-20 12:32:12 +05:30
Angus Gratton
6cfc7af049
Merge branch 'bugfix/i2s_intr_alloc_flags_pr1589' into 'master'
...
i2s: fix type mismatch of intr_alloc_flags
See merge request idf/esp-idf!1954
2018-02-20 07:33:25 +08:00
Stephen Casner
bc2879a956
heap: Add task tracking option for heap usage monitoring
...
Add back a feature that was available in the old heap implementation
in release/v2.1 and earlier: keep track of which task allocates each
block from the heap. The task handle is conditionally added as
another word in the heap poisoning header under this configuration
option CONFIG_HEAP_TASK_TRACKING.
To allow custom monitoring and debugging code to be added, add helper
functions in multi_heap.c and multi_heap_poisoning.c to provide access
to information in the block headers.
Add esp_heap_debug_dump_totals() to monitor heap usage
esp_heap_debug_dump_totals() dumps into a user-provided data structure
a summary of the amound of heap memory in region type that is used by
each task. Optionally it will also dump into another data structure
the metadata about each allocated block for a given list of tasks or
for all tasks (limited by available space).
Address change requests on PR #1498
This set of changes fixes the files in e3b702c to just add the
CONFIG_HEAP_TASK_TRACKING option without adding the new function
heap_caps_get_per_task_info() in case that is the only portion of the
PR that will be accepted. Part of the change is to remove the new .c
and .h files containing that function and to remove the line to
compile it from components/heap/component.mk since it should not have
been included in e3b702c. One or more additional commits to add the
new function will follow.
The other changes here:
- uint32_t get_all_caps() moves to heap_private.h
- replace "void* foo" with "void *foo"
- add braces around single-line "if" blocks
- replace tab characters with spaces
Address change requests on PR #1498 , part 2
This set of changes fixes the files in cdf32aa to add the new function
heap_caps_get_per_task_info() with its new name and to add the line to
compile it in components/heap/component.mk. This does not address all
the suggested changes because there are some needing further
discussion.
This commit does not include the suggested change to move the
declaration of the new function into esp_heap_caps.h because the new
function references TaskHandle_t so esp_heap_caps.h would have to
include freertos/FreeRTOS.h and freertos/task.h, but FreeRTOS.h
includes esp_heap_caps.h through two other header files which results
in compilation errors because not all of FreeRTOS.h has been read yet.
Change heap_caps_get_per_task_info() to take struct of params
In addition to moving the large number of function parameters into a
struct as the single parameter, the following changes were made:
- Clear out the totals for any prepopulated tasks so the app code
doesn't have to do it.
- Rather than partitioning the per-task totals into a predetermined
set of heap capabilities, take a list of <caps,mask> pairs to
compare the caps to the heap capabilities as masked. This lets the
caller configure the desired partitioning, or none.
- Allow the totals array pointer or the blocks array pointer to be
NULL to indicate not to collect that part of the information.
- In addition to returning the total space allocated by each task,
return the number of blocks allocated by each task.
- Don't need to return the heap capabilities as part of the details
for each block since the heap region (and therefore its
capabilities) can be determined from the block address.
- Renamed heap_task_info.h to esp_heap_task_info.h to fit the naming
convention, and renamed the structs for totals and block details to
better fit the revised function name.
- Provide full Doxygen commenting for the function and parameter
structs.
Add copyright header to new files
Merges https://github.com/espressif/esp-idf/pull/1498
2018-02-20 10:32:06 +11:00
Chris Morgan
86bf8798b2
esp_ping - Document that timeout units are in milliseconds
...
Remove 1000 multiplier from esp_ping_set_target() parameters that define time
2018-02-18 18:47:46 -05:00
Stephen Casner
a76d5a33c9
heap: Correct the sense of a comment
2018-02-19 09:42:40 +11:00
h3ndrik
dcc466a673
i2s: fix type mismatch of intr_alloc_flags
...
Merges https://github.com/espressif/esp-idf/pull/1589
2018-02-16 16:20:12 +11:00
Roland Dobai
4322e31c98
Make it easier to look up error messages
...
tools/gen_esp_err_to_name.py generates
components/esp32/esp_err_to_name.c for lookup of the error codes from
all of the IDF project and easily identify all codes in one place
2018-02-15 14:19:03 +01:00
Angus Gratton
7d13e3fa6a
Merge branch 'bugfix/docs_prs_from_github' into 'master'
...
Small documenation and API fixes from GitHub
See merge request idf/esp-idf!1952
2018-02-14 09:45:09 +08:00
Ivan Grokhotkov
22ae5adb95
Merge branch 'bugfix/ethernet_mdc_mdio_config' into 'master'
...
Ethernet: set direction of SMI pins MDC and MDIO correctly
See merge request idf/esp-idf!1939
2018-02-14 01:16:05 +08:00
Ing. Jaroslav Šafka
475e3cc43e
Fix function name typo. Closes https://github.com/espressif/esp-idf/issue/1572
2018-02-13 15:05:56 +01:00
Darian Leung
73cdfbfe79
esp_adc_cal/Add eFuse functionality
...
This commit updates the esp_adc_cal ocmponent to support new calibration methods
which utilize calibratoin values stored in eFuse. This commit includes LUT mode
2018-02-13 21:22:48 +08:00
Hrishikesh Dhayagude
4a7d445301
components/bt examples/bluetooth: Fix typographical errors
...
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-02-13 13:25:33 +05:30
zhiweijian
b09d681da6
Component/bt: add_params_check_in_prefer_conn_params()
2018-02-12 17:43:38 +08:00
zhiweijian
4056878c69
Component/bt: fix set error params and add callback in adv params
2018-02-12 16:34:30 +08:00
Jeroen Domburg
dc864c4108
Add option to continue running (with less ram) if psram is enabled but not detected
2018-02-12 13:44:11 +08:00
Jiang Jiang Jian
ca3faa6186
Merge branch 'bugfix/btdm_fix_example_log_missing_bug' into 'master'
...
component/bt: Fix BLE printf missing problem
See merge request idf/esp-idf!1912
2018-02-12 12:05:01 +08:00
Ivan Grokhotkov
363c096f2b
Merge branch 'test/adc2_with_wifi_reopen' into 'master'
...
test(adc2): re-enable the adc2 test.
See merge request idf/esp-idf!1926
2018-02-11 22:32:18 +08:00
Ivan Grokhotkov
44c3b0a1ba
Merge branch 'bugfix/console_example_stack_overflow' into 'master'
...
Increase event task stack size to fix console example stack overflow
See merge request idf/esp-idf!1879
2018-02-11 16:45:05 +08:00
Frank Sautter
cb3f09485d
Set direction of SMI pins MDC and MDIO correctly.
...
Merges https://github.com/espressif/esp-idf/pull/1594
2018-02-11 16:11:14 +08:00
zhiweijian
b5c2356528
Component/bt: clear start/stop adv callback when complete
2018-02-11 15:21:51 +08:00
Ivan Grokhotkov
f45622ff17
driver/rtc: add rtc_gpio_isolate helper function to disconnect RTC IO
2018-02-11 13:18:51 +08:00
Ivan Grokhotkov
b3be1b5190
tcpip_adapter: make log output at debug level less noisy
...
At debug log level, tcpip_adapter would print logs for each function
call scheduled onto the tcpip task. These logs contained pointers which
idf_monitor decoded, adding even more noise and useless vertical space
in logs. This change moves these log statements to verbose level.
2018-02-11 13:06:01 +08:00
Ivan Grokhotkov
a5f9563ef7
esp32: increase default event task stack size by 256 bytes
...
At debug log level, default event task stack size was not sufficient,
the stack was overflown by 232 bytes when WiFi connection happened.
2018-02-11 13:06:01 +08:00
Ivan Grokhotkov
bf53c8abb1
fatfs: check allocated workbuf pointer
2018-02-11 13:03:36 +08:00
Ivan Grokhotkov
59859fa53c
fatfs: add configuration of allocation unit size
...
Closes https://github.com/espressif/esp-idf/issues/1382 .
2018-02-11 13:03:36 +08:00
Ivan Grokhotkov
e381c6adde
Merge branch 'bugfix/fix_i2s_adc_mode' into 'master'
...
driver(i2s): fix broken i2s adc mode
See merge request idf/esp-idf!1653
2018-02-11 12:58:58 +08:00
Angus Gratton
a5eb369126
Merge branch 'bugfix/realloc_corruption_bug' into 'master'
...
heap: Fix bug when realloc moves data between heaps
See merge request idf/esp-idf!1931
2018-02-09 19:19:29 +08:00
Angus Gratton
b7fc067c8c
heap: Fix bug when realloc moves data between heaps
...
When realloc-ing to a smaller buffer size which ends up allocated in a different heap, the heap
structure is corrupted. This can only happen:
* If heap checking is Comprehensive (meaning buffers are never shrunk in place) and the heap the buffer was originally allocated in is full.
* Calling heap_caps_realloc() to deliberately move a buffer to a different capabilities type, and shrink it at the same time.
Probable fix for https://github.com/espressif/esp-idf/issues/1582
Probably the same issue:
https://www.esp32.com/viewtopic.php?f=2&t=4583
https://www.esp32.com/viewtopic.php?f=13&t=3717
2018-02-09 16:10:52 +08:00
Ivan Grokhotkov
417ef19084
Merge branch 'feature/tls_support' into 'master'
...
FreeRTOS TLS support
See merge request idf/esp-idf!1902
2018-02-09 12:34:20 +08:00
Ivan Grokhotkov
62f924544d
Merge branch 'test/spi_performance' into 'master'
...
test(spi_master): add performance display for spi master.
See merge request idf/esp-idf!1923
2018-02-08 22:59:40 +08:00
baohongde
0519a73334
component/bt: Fix mem leak of bt
2018-02-08 16:26:12 +08:00
michael
687d6aa2cd
test(adc2): re-enable the adc2 test.
2018-02-08 13:48:25 +08:00
Angus Gratton
16de6bff24
Merge branch 'bugfix/redirect_psram_muxes_to_single_mux' into 'master'
...
Fake S32C1I operation for muxes in PSRAM
See merge request idf/esp-idf!1688
2018-02-08 11:30:43 +08:00
Jiang Jiang Jian
3756e0c37f
Merge branch 'bugfix/tw18291_fix_wifi_deinit_causes_assert' into 'master'
...
esp32: fix esp_wifi_deinit causes assert
See merge request idf/esp-idf!1916
2018-02-08 11:28:24 +08:00
Alexey Gerenkov
f8c42369f1
freertos: Adds C11 TLS support
2018-02-07 18:46:57 +03:00
Jeroen Domburg
35de8d703e
Merge branch 'bugfix/spi_gpio0' into 'master'
...
fix(spi): several fixes about maros (flags) and GPIO0.
See merge request idf/esp-idf!1666
2018-02-07 18:50:13 +08:00
Michael (Xiao Xufeng)
a151767426
test(spi_master): add performance display for spi master.
2018-02-07 17:50:13 +08:00
Wangjialin
451f69cc2e
driver(i2s): fix broken i2s adc mode
...
1. Move i2s reset code from i2s_stop to i2s_start.
2. add RTC API to set sw mode for ADC
3. add description for adc_power_always_on()
4. add lock for i2s dma and RTC ADC functions.
5. add ADC read task in example
reported from bbs: https://esp32.com/viewtopic.php?f=13&t=3490&p=17522#p17522
reported from github: https://github.com/espressif/esp-idf/issues/1333
2018-02-07 17:17:20 +08:00
Angus Gratton
7e870aefdb
Merge branch 'bugfix/sdmmc_line_control' into 'master'
...
bugfix(sdmmc_host): fix some issue with bit width config .
See merge request idf/esp-idf!1900
2018-02-07 16:29:07 +08:00
Angus Gratton
75f564d7b5
Merge branch 'bugfix/ESP_ERR_PING_BASE_collision' into 'master'
...
Change ESP_ERR_PING_BASE because of collision with ESP_ERR_TCPIP_ADAPTER_BASE
See merge request idf/esp-idf!1918
2018-02-07 16:27:09 +08:00
michael
2551a7343d
test(sdmmc_host): add new test to probe over SD (1-bit).
2018-02-07 12:05:05 +08:00
Michael (XIAO Xufeng)
e14e1508cb
fix(sdmmc_host): fix the issue when slot and host flag are not compatible.
2018-02-07 12:05:05 +08:00
Michael (XIAO Xufeng)
8abbb17401
feat(sdmmc_host): force pull-up DAT3 for SD 4-bit mode so that slave will not fall into SPI mode.
2018-02-07 12:05:05 +08:00
Angus Gratton
e2cbcd5bc7
Merge branch 'feature/aws_iot_thing_shadow_settings' into 'master'
...
aws iot: Expose Thing Shadow settings in menuconfig
See merge request idf/esp-idf!1765
2018-02-07 10:52:33 +08:00
Liu Zhi Fu
5497c5ed9a
esp32: fix esp_wifi_deinit causes assert
...
Update wifi lib to fix esp_wifi_deinit causes system assert issue
2018-02-06 13:01:51 +00:00
Roland Dobai
f44cbe9033
Change ESP_ERR_PING_BASE because of collision with ESP_ERR_TCPIP_ADAPTER_BASE
2018-02-06 12:34:12 +01:00
He Yin Ling
532107c958
Merge branch 'test/ut_script' into 'master'
...
test: use the tiny-test-fw to run the unit test in CI
See merge request idf/esp-idf!1558
2018-02-06 18:03:22 +08:00
Jiang Jiang Jian
22dcdce949
Merge branch 'bugfix/btdm_scan_result_of_adv_type_wrong' into 'master'
...
component/bt: Fix bug:scan result of adv type is wrong
See merge request idf/esp-idf!1897
2018-02-06 15:50:29 +08:00
baohongde
acdad3237c
component/bt: Fix bug:update pktlen have no callback
2018-02-06 14:54:05 +08:00
island
4ee6f73a2e
component/bt: Fix BLE printf missing problem
2018-02-06 14:35:39 +08:00
Michael (Xiao Xufeng)
5214a0600c
test(adc2): temporary ignore adc2 unit test (with WiFi) to pass the CI.
...
the issue is introduced in commit 17f01eb718
.
2018-02-06 11:59:40 +08:00
Ivan Grokhotkov
8173d42581
Merge branch 'feature/partition_table_md5' into 'master'
...
Partition table md5 check
See merge request idf/esp-idf!1891
2018-02-05 20:58:52 +08:00
Roland Dobai
cf7a4cc650
Protect partition table by MD5 checksum
2018-02-05 11:36:03 +01:00
Angus Gratton
eaff702df1
aws iot: Expose Thing Shadow settings in menuconfig
...
Closes https://github.com/espressif/esp-idf/issues/1340
Ref TW#16817
2018-02-05 14:38:23 +08:00
Angus Gratton
11bf72aace
Update cJSON to v1.7.1
...
* Fix buffer overflow issue in cJSON 1.6.0
* Change cJSON structure to git submodule
Closes https://github.com/espressif/esp-idf/issues/1577
2018-02-05 14:15:26 +08:00
baohongde
79fd3f4f10
component/bt: Fix bug:scan result of adv type is wrong
2018-02-02 19:17:39 +08:00
Jeroen Domburg
70ab924dbb
Especially when internal memory fills up, some FreeRTOS structures (queues etc) get allocated in psram. These structures also contain a spinlock, which needs an atomic-compare-swap operation to work. The psram hardware, however, does not support this operation. As a workaround, this patch detects these spinlocks and will, instead of S32C1I, use equivalent C-code to simulate the behaviour, with an (internal) mux for atomicity.
2018-02-02 17:11:06 +08:00
wangmengyang
a31d07ba25
move rodata segment of libphy.a to dram
...
1. rodata segment of libphy.a(about 1200B) can be accessed by ISRs, so put it into DRAM
2018-02-02 13:00:11 +08:00
Ivan Grokhotkov
ed1dfe9009
Merge branch 'bugfix/cxx_guards_test_singlecore' into 'master'
...
unit tests: make static init guard test single core compatible
See merge request idf/esp-idf!1615
2018-02-02 10:38:43 +08:00
Jiang Jiang Jian
9ecd718f72
Merge branch 'bugfix/btdm_modify_set_mtu_call_handler' into 'master'
...
Component/bt: modify set mtu call handler
See merge request idf/esp-idf!1850
2018-02-01 20:19:52 +08:00
Jiang Jiang Jian
afe9a5d3ae
Merge branch 'bugfix/btdm_fix_adv_pending_in_smp' into 'master'
...
Component/bt: fix stop adv failed in smp
See merge request idf/esp-idf!1881
2018-02-01 20:17:02 +08:00
Jiang Jiang Jian
dc11c88a57
Merge branch 'bugfix/btdm_ble_mutil_connect_performance_optimiz' into 'master'
...
component/bt: Fixed the bug of ble multi connection not stable issue.
See merge request idf/esp-idf!1868
2018-02-01 20:11:51 +08:00
Ivan Grokhotkov
50892efc5c
Merge branch 'bugfix/spiffs_obj_name_len_check' into 'master'
...
SPIFFS: fix issues with formatting and page size limit
See merge request idf/esp-idf!1866
2018-02-01 12:18:39 +08:00
Ivan Grokhotkov
f51880f8ac
Merge branch 'test/enlarge_https_bin_size_threshold' into 'master'
...
test: enlarge https bin size threshold
See merge request idf/esp-idf!1886
2018-02-01 12:17:24 +08:00
Jiang Jiang Jian
6595d5392e
Merge branch 'bugfix/btdm_alarm_free' into 'master'
...
component/bt: free timer resources after using them
See merge request idf/esp-idf!1863
2018-02-01 11:01:08 +08:00
Jiang Jiang Jian
0f7d9cf7d3
Merge branch 'bugfix/btdm_a2dp_task_stack_size' into 'master'
...
component/bt: make A2DP source and sink task size configurable through menuconfig
See merge request idf/esp-idf!1825
2018-02-01 10:58:40 +08:00
He Yin Ling
63a401057c
test: enlarge https bin size threshold:
...
use performance matrix to tracking bin size is not convenient. bin size
do change for a lot reasons.
we'll implement a new method to track it. before that, set a large
enough threshold, so we can still keep tracking it.
2018-02-01 09:57:00 +08:00
zhiweijian
e64d78dc57
Component/bt: fix stop adv failed in smp
2018-01-31 16:06:22 +08:00
Jiang Jiang Jian
17f01eb718
Merge branch 'feature/wifi_throughput_optimization' into 'master'
...
lwip/esp32/examples: wifi throughput optimization
See merge request idf/esp-idf!1861
2018-01-31 15:44:43 +08:00
Ivan Grokhotkov
1103e1baba
spiffs: fix esp_spiffs_format not working if partition is not mounted
...
Fixes https://github.com/espressif/esp-idf/issues/1547 .
2018-01-31 14:29:13 +08:00
zhiweijian
b06ea40f66
Component/bt: modify set mtu call handler
2018-01-31 11:28:05 +08:00
Ivan Grokhotkov
7b32aaa151
spiffs: reformat Kconfig to 80 character wide lines
...
Some help strings looked odd in mconf.
2018-01-31 11:14:56 +08:00
Ivan Grokhotkov
594d5c1436
spiffs: check if OBJ_NAME_LEN + OBJ_META_LEN is within limits
...
The limit was mentioned in spiffs_config.h but was not checked.
Fixes https://github.com/espressif/esp-idf/issues/1546
2018-01-31 11:14:56 +08:00
Ivan Grokhotkov
507a3a6391
spiffs: add Kconfig option for logical page size
2018-01-31 11:14:56 +08:00
Angus Gratton
d8c80509bc
Merge branch 'feature/io_mux_register_names' into 'master'
...
soc/esp32: Add IO_MUX_GPIOxx register names to match iomux names used in TRM
See merge request idf/esp-idf!1875
2018-01-31 10:50:41 +08:00
Angus Gratton
2e33dbf766
Merge branch 'bugfix/esp_log_level_set_strcmp' into 'master'
...
Fix esp_log_level_set string matching (github PR 1557)
See merge request idf/esp-idf!1872
2018-01-31 09:58:21 +08:00
Angus Gratton
4297c337f9
esp32: Add IO_MUX_GPIOxx register names to match iomux names used in TRM
...
The TRM describes IOMUX registers are IO_MUX_x_REG for x in GPIO0-39.
Until now ESP-IDF describes them as PERIPHS_IO_MUX_(pinname)_U
This commit adds additional IOMUX register names which match the ones used in the TRM.
2018-01-30 17:09:37 +08:00
Liu Zhi Fu
2242bf9b37
lwip/esp32/examples: wifi throughput optimizations
...
1. Put some lwip udp rx/tx relating functions to IRAM
2. Put some wifi rx/tx relating functions to IRAMa
3. Reduce wifi dynamic malloc from 4 to 1 for each ebuf
4. Update iperf example accordingly
5. Update libphy.a to v383
2018-01-30 16:27:49 +08:00
wangmengyang
00db39ee1b
component/bt: make A2DP source and sink task size configurable through menuconfig
...
1. use different set of parameters for A2DP source/sink tasks
2. make the task stack size configurable through menuconfig
2018-01-30 14:26:53 +08:00
michael
be96e1db95
fix(spi): fix typo of LSBFIRST macro.
...
Closes https://github.com/espressif/esp-idf/issues/1480 , Closes https://github.com/espressif/esp-idf/issues/1464
2018-01-29 17:44:37 +08:00
michael
8900200147
fix(spi_master): fix the variable command and address flag issue.
...
Closes https://github.com/espressif/esp-idf/issues/1549
2018-01-29 17:44:36 +08:00
michael
60469c500a
fix(spi): fix pin issue with GPIO0 (other pins than CS).
2018-01-29 17:44:36 +08:00
Ivan Grokhotkov
0f22a53fc2
Merge branch 'bugfix/sysview_timer_1core' into 'master'
...
sysview: fix compilation in 1 core mode, refactor timer choices
See merge request idf/esp-idf!1822
2018-01-29 17:28:59 +08:00
Ivan Grokhotkov
d3d2c077f9
Merge branch 'bugfix/log_invalid_comparison' into 'master'
...
log: fix preprocessor comparison against an enum value
See merge request idf/esp-idf!1865
2018-01-29 17:26:43 +08:00
Wangjialin
3da8f2eda1
bugfix(touch): change the default value for sar_touch_enable register.
...
Reported from github: https://github.com/espressif/esp-idf/issues/1236
All the touch channels are enabled by default in hardware. This would interfere other RTC function on Touch IOs.
Disable touch function in touch_pad_init().
2018-01-29 15:40:21 +08:00
yulong
06dcca0fcd
component/bt: Fixed the bug of ble multi connection not stable issue.
2018-01-29 14:27:03 +08:00
Ivan Grokhotkov
00da9c1cab
Merge branch 'bugfix/esp_console_header_guards' into 'master'
...
console: Add C++ guards to header
See merge request idf/esp-idf!1867
2018-01-29 14:15:12 +08:00
Angus Gratton
1249659931
Merge branch 'bugfix/system_restore_duplicate' into 'master'
...
esp32: remove duplicate definition of system_restore
See merge request idf/esp-idf!1864
2018-01-29 14:02:02 +08:00
Angus Gratton
2536d50d2e
console: Add C++ guards to header
...
As reported on forum https://esp32.com/viewtopic.php?f=2&t=4478&p=19659
2018-01-29 09:22:04 +08:00
David Ashley
750c8c00c8
This is a fix for the esp_log_level_set function. The problem is when this
...
function is called but NOT withe the same 'c' string constant that the LOG*
calls used in each module, the cache check doesn't match, so the cached
entry won't get updated. There's no point in optimizing this function
anyway because it is only called rarely.
2018-01-28 16:47:07 -06:00
Ivan Grokhotkov
527be440f8
log: fix preprocessor comparison against an enum value
...
Fix `#if (LOG_LOCAL_LEVEL >= ESP_LOG_INFO)` which is always false and
produces a warning with -Wundef.
Use same pattern to compare LOG_LOCAL_LEVEL with ESP_LOG_INFO as is used
in definition of `ESP_LOG_BUFFER_HEX_LEVEL` and
`ESP_LOG_BUFFER_CHAR_LEVEL`.
Also reformat existing definitions for better readability.
Closes https://github.com/espressif/esp-idf/issues/1526
2018-01-28 19:45:25 +08:00
Ivan Grokhotkov
1979235df2
esp32: remove duplicate definition of system_restore
...
Fixes https://github.com/espressif/esp-idf/issues/1520 .
2018-01-28 19:26:37 +08:00
wangmengyang
90c9ffa975
component/bt: free timer resources after using them
...
Bluedroid use a set of timer function pairs such as btu_start_timer/btu_stop_timer, btu_sys_start_timer/btu_sys_stop_timer for use, in a lack of timer release functions. Thus the timers may be exhausted after some event sequence such as repetition of connection/reconnection with different devices. The maximum timer number used in bluedroid is given by ALARM_CBS_NUM which is 30 for now. This bugfix borrowed some update from bluedroid in Andoroid 7.0, which add timer release functions which promote the recycle of timer resources.
2018-01-27 19:03:06 +08:00
Jiang Jiang Jian
daa8cfa800
Merge branch 'bugfix/btdm_fix_stop_adv_no_callback_when_adv_has_been_stoped' into 'master'
...
Component/bt: fix stop adv no callback when adv has already stoped
See merge request !1838
2018-01-26 20:37:12 +08:00
Jiang Jiang Jian
4cbc0198a0
Merge branch 'bugfix/btdm_fix_BT_load_boned_in_smp' into 'master'
...
Component/bt: fix bt load boned in smp
See merge request !1854
2018-01-26 20:34:24 +08:00
wangmengyang
95af1c22b5
components/phy: add IRAM_ATTR attribute to the two APIs used in phy calibration
...
1. the two APIs used in phy calibration are called in bluetooth baseband ISR, so locate the them in IRAM
2018-01-26 17:12:59 +08:00
zhiweijian
41f338d23c
Component/bt: fix bt load boned in smp
2018-01-26 14:38:54 +08:00
Jiang Jiang Jian
5b1f869880
Merge branch 'feature/btdm_bluedroid_env_dynomic_malloc_enable' into 'master'
...
This MR added the bluedroid env variable can dynamic malloc and BT variable use psram malloc supported
See merge request !1698
2018-01-26 10:06:43 +08:00
XiaXiaotian
1bc87e972b
Added two functions in PHY API for disable interrupts and add rfcal data checking to PHY
2018-01-25 17:58:14 +08:00
zhiweijian
d54e188e61
Component/bt: fix stop adv no callback when adv has been stoped
2018-01-25 15:31:17 +08:00
Jiang Jiang Jian
c73ea7a804
Merge branch 'bugfix/wifi_fix_sniffer_rx_misc_data_assert' into 'master'
...
Fix the bug that in sniffer mode it asserts when receive misc data at first
See merge request !1837
2018-01-25 14:09:46 +08:00
Jiang Jiang Jian
b98da5da97
Merge branch 'bugfix/btdm_classicbt_pscan_assert' into 'master'
...
component/bt : fix the bug of pscan when interrupt react slowly
See merge request !1816
2018-01-25 13:52:00 +08:00
Jiang Jiang Jian
62fade9970
Merge branch 'bugfix/btdm_fix_bonded_device_list_error_after_reboot' into 'master'
...
component/bt: fix bonded device list error after reboot
See merge request !1750
2018-01-25 12:05:58 +08:00
XiaXiaotian
cdd7a87674
Fix the bug that in sniffer mode it asserts when receive misc data at first
...
close github issue#1037 WiFi Promiscuous filter breaks w/
WIFI_PROMIS_FILTER_MASK_ALL and issue#1404
esp_wifi_set_promiscuous_filter set WIFI_PROMIS_FILTER_MASK_ALL error
2018-01-24 16:06:53 +08:00
Yulong
63e5cbbd66
component/bt: Added the bluedroid environment variable dynomic malloc support & support to malloc the memory to the psram.
...
component/bt: Added the Macro for the classic BT support.
component/bt: added the bluedroid deinit method.
component/bt: allow more classic BT global variables to use dynamic allocation scheme
1. allocate memory for AVDT, AVCT control blocks when dynamic memory is used
2. allow SBC decoder buffer to use dynamic allocation scheme
component/bt: Remove the wrong changes in bt/Kconfig & Added the GATTS_INCLUDED in the gatt_free function when gatt service close.
component/bt: Shorten the abbreviation BT_ALLOCATION_FROM_SPIRAM_FIRST and BT_BLE_DYNAMIC_ENV_MEMORY two macros.
2018-01-24 15:18:02 +08:00
Angus Gratton
6736908eaf
esptool: Update to v2.2.1
...
Fixes a bug with >230400bps flashing on macOS, possibly other platforms.
Full release notes: https://github.com/espressif/esptool/releases/tag/v2.2.1
2018-01-24 17:45:49 +11:00
Angus Gratton
2a10ffce5f
Merge branch 'feature/dma_attr' into 'master'
...
feat(attr): add new macro `DMA_ATTR` and `STATIC_DMA_ATTR` to help dma buffer declaration.
See merge request !1550
2018-01-24 12:04:03 +08:00
michael
fcfcab7678
feat(attr): add new macro DMA_ATTR
and WORD_ALIGNED_ATTR
to help dma buffer declaration.
2018-01-24 11:28:14 +08:00
Angus Gratton
d89542eb2b
Merge branch 'bugfix/uart_pattern_detect' into 'master'
...
bugfix(uart): patten detect function
See merge request !1235
2018-01-24 06:12:48 +08:00
Jiang Jiang Jian
ce2e4cbc4f
Merge branch 'bugfix/log_hex_buffer_pr1519' into 'master'
...
Fix hexdump comment and array size. See issue #1518 .
See merge request !1832
2018-01-23 22:45:41 +08:00
Ivan Grokhotkov
90ad7b423c
unit tests: make static init guard test single core compatible
2018-01-23 07:56:13 +00:00
Ivan Grokhotkov
ffaf145056
Merge branch 'bugfix/xtal_freq_estimation' into 'master'
...
soc/rtc_clk: fix loss of precision in estimation of XTAL frequency
See merge request !1763
2018-01-23 15:37:47 +08:00
Ivan Grokhotkov
02821571dd
Merge branch 'bugfix/xRingbufferSend_timeout_bug' into 'master'
...
bugfix(ringbuffer): Fix ringbuffer_send timeout bug
See merge request !1823
2018-01-23 15:37:13 +08:00
Angus Gratton
ffd4187883
Merge branch 'feature/esptool_v2_2' into 'master'
...
esptool: Update to v2.2
See merge request !1755
2018-01-23 08:36:52 +08:00
Angus Gratton
84741e85e7
Merge branch 'feature/aws-iot-sdk-v2.2.1' into 'master'
...
AWS IoT SDK: Update version from v2.1.1 to v2.2.1
See merge request !1732
2018-01-23 08:33:38 +08:00
me-no-dev
4fa130ae4f
mdns: Fix case where service is NULL and that will cause exception
2018-01-22 13:56:53 +01:00
me-no-dev
51dde19a76
mdns: Fix issue with some mDNS parsers
...
Some mDNS parser have issue with zero terminated TXT lists. This fix targets to overcome this issue. Found and tested with jmdns.
2018-01-22 13:56:34 +01:00
Jiang Jiang Jian
8af04997f3
Merge branch 'bugfix/dump_other_core_when_int_wdt_happens' into 'master'
...
Dump the frame of the other core when interrupt watchdog happens
See merge request !1787
2018-01-22 19:52:05 +08:00
Jiang Jiang Jian
84b92a4ead
Merge branch 'feature/btdm_add_get_error_enent_for_blufi' into 'master'
...
component/bt: add error report event for blufi
See merge request !1702
2018-01-22 19:48:29 +08:00
kooho
a0a2422541
bugfix(ringbuffer): Fix ringbuffer_send timeout bug
2018-01-22 14:17:58 +08:00
Wangjialin
870efdb9d4
bugfix(uart): patten detect function
...
requirement from github(https://github.com/espressif/esp-idf/issues/805 ): to provide the position in the buffer of the pattern detected.
requirement from AT application: in AT app, when no hardware flow control is enabled, in some situation the rx buffer might be full, and the terminator “+++” might be lost, we can use pattern detect interrupt to avoid missing the terminator. When pattern detect interrupt happens, it will not send a data event at the same time.
1. Add API to get position of detected pattern in rx buffer
2. Modify UART event example
3. Add comments for uart_flush, add alias API uart_flush_input to clear the rx buffer
4. Modify the way rx_buffered_len is calculated
2018-01-22 13:33:51 +08:00
David Antliff
19f10c4960
Fix hexdump comment and array size. See issue #1518 .
...
Closes https://github.com/espressif/esp-idf/pull/1518
Merges https://github.com/espressif/esp-idf/pull/1519
2018-01-22 16:25:09 +11:00
Jack
624828ce83
Dump the frame of the other core when interrupt watchdog happens
2018-01-18 23:10:29 +00:00
zhiweijian
1861d6e137
Component/bt: fix bonded device list error after reboot
2018-01-17 19:54:49 +08:00
Piyush Shah
b66d80ed95
ringbuf: Fix warnings seen when CONFIG_FREERTOS_ASSERT_DISABLE=y
...
Signed-off-by: Piyush Shah <piyush@espressif.com>
2018-01-17 16:30:05 +08:00
Ivan Grokhotkov
c3d8215728
sysview: fix compilation in 1 core mode, refactor timer choices
...
Changes related to DFS have broken compilation of sysview code in 1 core
mode. This change fixes this, and moves choice of the timer used for
timestamp into Kconfig. CCOUNT timer is only available as an option if
1 core mode is used. esp_timer is added as a new option, and is the
only available option if DFS is enabled.
2018-01-17 12:23:28 +08:00
Tian Hao
b617118df3
component/bt : fix the bug of pscan when interrupt react slowly
2018-01-17 11:48:23 +08:00
Ivan Grokhotkov
429371c182
Merge branch 'feature/mdns_again' into 'master'
...
New mDNS implementation
See merge request !1683
2018-01-16 18:38:42 +08:00
Jiang Jiang Jian
f0ed404448
Merge branch 'bugfix/btdm_pair_fail_with_random_address' into 'master'
...
component/bt: Fix bug when pair with random address
See merge request !1784
2018-01-16 18:17:45 +08:00
zhiweijian
cf91ad32dc
Component/bt: add get error event for blufi
2018-01-16 17:29:48 +08:00
me-no-dev
4bddbc031c
Import mDNS changes
2018-01-16 10:58:34 +02:00
Jiang Jiang Jian
f2e51bc08a
Merge branch 'bugfix/btdm_discon_when_upd_conn_params_in_smp' into 'master'
...
component/bt: fix disconnect after connection params update in smp
See merge request !1804
2018-01-16 16:41:18 +08:00
Jiang Jiang Jian
ee0af80843
Merge branch 'bugfix/btdm_fix_conn_params_update_failed_in_SMP' into 'master'
...
component/bt: fix conn params update failed in smp
See merge request !1796
2018-01-16 16:38:22 +08:00
baohongde
088dc40e48
component/bt: Fix bug when pair with random address
2018-01-16 08:35:26 +00:00
Jiang Jiang Jian
0ef0db08d5
Merge branch 'feature/btdm_add_get_wifi_list_for_blufi' into 'master'
...
component/bt: add get wifi list cmd for blufi
See merge request !1708
2018-01-16 16:31:55 +08:00
Angus Gratton
f620a3c4f3
Merge branch 'bugfix/int_wdt_in_ocd_mode' into 'master'
...
panic: prevent INT WDT from re-triggering in OCD mode
See merge request !1764
2018-01-16 15:07:26 +08:00
chensheng
c9607e9753
test: fix BLE update conn param test case errors
2018-01-16 13:39:12 +08:00
Wu Jian Gang
c25be19ebf
Merge branch 'bugfix/multi_ping_crash' into 'master'
...
fix(ping): fix crash when multi-ping
See merge request !1768
2018-01-16 09:05:32 +08:00
zhiweijian
4d2c3edc07
Component/bt: add get wifi list cmd for blufi
2018-01-15 12:16:19 +00:00
Jiang Jiang Jian
cd54a95a7f
Merge branch 'feature/btdm_a2dp_src' into 'master'
...
Feature/btdm a2dp src
See merge request !1190
2018-01-15 18:55:01 +08:00
zhiweijian
0891ec35c7
component/bt: fix disconnect after connection params update in smp
2018-01-15 17:03:56 +08:00
zhiweijian
f165927272
Component/bt: fix update connection params error in smp
2018-01-15 15:38:08 +08:00
Chen Wu
ffc2db0a35
fix(ping): fix crash when multi-ping
...
1. "lwip_socket" should close by "lwip_close_r" other than "lwip_close"
2. for generally compatible, fix all lwip interface to normally socket interface
3. call vTaskDelete when new socket failed in case of task crash
close #https://github.com/espressif/esp32-at/issues/58
2018-01-12 15:54:07 +08:00
kooho
492db0591d
Fix uart fifo overflow bug
2018-01-12 14:42:54 +08:00
Ivan Grokhotkov
2ddee72996
Merge branch 'feature/toolchain-80-g6c4433a' into 'master'
...
Toolchain: Update to version 1.22.0-80-g6c4433a
See merge request !1771
2018-01-11 21:44:42 +08:00
Ivan Grokhotkov
914ab07567
Merge branch 'feature/ulp_i2c_reg' into 'master'
...
soc,ulp: add register definitions of RTC_I2C peripheral
See merge request !1762
2018-01-11 12:08:25 +08:00
Angus Gratton
38e15e6241
build: Remove explict -lstdc++-psram-workaround
...
This is now handled internally to the toolchain.
2018-01-11 10:32:02 +11:00
Jiang Jiang Jian
16391c2748
Merge branch 'bugfix/full_calibration_will_not_use_init_data' into 'master'
...
Fix bug that when we do full calibration init data bin is not used
See merge request !1746
2018-01-10 17:01:53 +08:00
Jiang Jiang Jian
675844c4bb
Merge branch 'bugfix/assert_in_PSRAM_WIFI' into 'master'
...
bug fix of assert happen in PSRAM
See merge request !1745
2018-01-10 16:47:40 +08:00
Angus Gratton
e9ca1dc9b0
Merge branch 'feature/rmt_end_transmission_callback' into 'master'
...
rmt: Adds a simple handler that can be called when transmission ends.
See merge request !1726
2018-01-10 04:59:26 +08:00
wangmengyang
f360fe5b3e
component/bt: implement A2DP source
...
1. Modified symbol names of A2DP sink APIs include:
- esp_a2d_data_cb_t --> esp_a2d_sink_data_cb_t
- esp_a2d_register_data_callback --> esp_a2d_sink_register_data_callback
2018-01-09 20:20:52 +08:00
Deng Xin
337f790fd3
bug fix of assert happen in PSRAM
2018-01-09 20:01:06 +08:00
Jiang Jiang Jian
3452845063
Merge branch 'bugfix/btdm_avrc_connect_state_evt' into 'master'
...
Bugfix/btdm avrc connect state evt
See merge request !1717
2018-01-09 19:33:06 +08:00
Jiang Jiang Jian
6daa52d2ca
Merge branch 'bugfix/update_bt_lib_with_updated_toolchain_for_master' into 'master'
...
component/bt: build libbtdm_app.a with updated toolchain
See merge request !1728
2018-01-09 16:55:45 +08:00
wangmengyang
e07b43e924
component/bt: add AVRC event for remote features indication
...
1. remove the feature mask parameter from AVRC connection state event, as the AVCTP connection can be initiated by remote device before service discovery to remote device is performed. \
In this case, AVRCP connection state event may not be reported after connection initated by remote device is established.
2. remove ESP_AVRC_CT_MAX_EVT
3. add more documentations to AVRC APIs
2018-01-09 16:33:48 +08:00
Jack
11c0daef62
Fix bug that when we do full calibration init data bin is not used
2018-01-09 15:31:34 +08:00
Jiang Jiang Jian
ff726b4c79
Merge branch 'bugfix/btdm_fix_cant_remove_boned_device_if_its_connected' into 'master'
...
Component/bt: fix can not remove boned device if it is connected
See merge request !1758
2018-01-09 11:42:45 +08:00
Jiang Jiang Jian
c147d7b03e
Merge branch 'feature/btdm_bt_spp' into 'master'
...
component/bt: Add bt spp profile
See merge request !1593
2018-01-09 10:44:46 +08:00
Ivan Grokhotkov
8e8cb1a139
panic: prevent INT WDT from re-triggering in OCD mode
...
When INT WDT fires, panicHandler is invoked. In OCD mode, panicHandler
sets a breakpoint on the PC from the exception frame and returns.
However in case of INT WDT, interrupt flag is still set in TIMERG1
peripheral, which causes INT WDT to trigger again. This causes an
endless stream of "Core 0 panic'ed (Interrupt wdt timeout on CPU1)"
messages. OpenOCD also gets terribly confused at this point.
Disable watchdogs when exiting panic handler in OCD mode.
Clear TIMERG1 WDT interrupt flag to prevent re-entry into panic handler.
2018-01-09 01:46:24 +08:00
Ivan Grokhotkov
7c584e80b0
soc/rtc_clk: fix loss of precision in estimation of XTAL frequency
...
RTC_FAST_CLK_FREQ_APPROX is defined as 8500000, so 0.5MHz part was lost
when dividing by MHZ. Since cal_val is 64-bit the parens can be removed.
With 40MHz XTAL for a nominal ESP32 chip, this fixes estimated XTAL
frequency from 38 to 40MHz.
2018-01-08 23:31:21 +08:00
Ivan Grokhotkov
dba291416f
soc,ulp: add register definitions of RTC_I2C peripheral
2018-01-08 21:28:14 +08:00
Jiang Jiang Jian
0cd97cecb2
Merge branch 'bugfix/btdm_error_when_add_device_to_whitelist_twice' into 'master'
...
component/bt: Fix bug when add device to whitelist twice
See merge request !1700
2018-01-08 19:16:34 +08:00
zhiweijian
831b2c0441
Component/bt: fix can not remove boned device if it is connected
2018-01-08 17:55:00 +08:00
Ivan Grokhotkov
f61dcf4d1a
Merge branch 'bugfix/freertos_eventgroup_isr_test' into 'master'
...
freertos/Fix Event Group ISR test case
See merge request !1733
2018-01-08 16:51:27 +08:00
Ivan Grokhotkov
ddf3d92a25
Merge branch 'bugfix/esp_log_local_level' into 'master'
...
Log: fix definition of LOG_LOCAL_LEVEL, fix typos
See merge request !1747
2018-01-08 16:41:42 +08:00
Angus Gratton
da1bf60904
esptool: Update to v2.2
2018-01-08 11:45:09 +11:00
Angus Gratton
f9ad17eee4
Merge branch 'bugfix/BLE_SM_Security_Flags_pr1320' into 'master'
...
bt: Fix ble sm security flags (Github PR 1320)
See merge request !1740
2018-01-08 07:35:19 +08:00
Jiang Jiang Jian
a1b59679f9
Merge branch 'bugfix/btdm_standardize_code' into 'master'
...
component/bt: Standardize code
See merge request !1696
2018-01-05 18:56:08 +08:00
baohongde
d2663c866e
component/bt: Add SPP profile
2018-01-05 16:48:29 +08:00
Jiang Jiang Jian
4d4c055a1a
Merge branch 'bugfix/recompile_with_new_psram_toolchain' into 'master'
...
recompile wifi lib with new toolchain 1.22.0-78-g4b87650
See merge request !1730
2018-01-05 16:40:30 +08:00
Ivan Grokhotkov
3a6962b8ec
log: fix typos in header files
2018-01-05 16:10:58 +08:00
Ivan Grokhotkov
6a5c105753
log: define LOG_LOCAL_LEVEL before using it, don't use type cast
...
LOG_LOCAL_LEVEL is now used in a construct like:
#if (LOG_LOCAL_LEVEL >= ESP_LOG_INFO)
Make sure that LOG_LOCAL_LEVEL is defined, and don't use a type cast in
its definition, because preprocessor can not parse that.
2018-01-05 16:10:58 +08:00
Angus Gratton
2227c44254
rmt: Add void * argument for end-of-transmission callback
...
Ref https://github.com/espressif/esp-idf/pull/1174
2018-01-05 17:31:59 +11:00
Krzysztof Bociurko
1066c74b74
rmt: Adds a simple handler that can be called when transmission ends.
...
Merges https://github.com/espressif/esp-idf/pull/1174
2018-01-05 17:14:02 +11:00
Ivan Grokhotkov
30aacb79d5
Merge branch 'bugfix/uart_semaphore_pr1387' into 'master'
...
uart driver: Remove unnecessary xSemaphoreGive()
See merge request !1739
2018-01-05 11:05:05 +08:00
Angus Gratton
eb659e401d
Merge branch 'feature/esp_intr_set_in_iram' into 'master'
...
Add esp_intr_set_in_iram (Github PR)
See merge request !1629
2018-01-04 06:04:05 +08:00
Angus Gratton
6e23ee704b
Merge branch 'refactor/spi_clk_pre_cal' into 'master'
...
bugfix(spi_master): improve spi time cost for each transfer.
See merge request !1670
2018-01-04 06:03:12 +08:00
Tim Cook
2b24177d2b
n btm_sec_save_le_key() set BTM_SEC_LE_LINK_KEY_KNOWN (and BTM_SEC_LE_LINK_KEY_AUTHED if MITM was used) when process a local Long Term Key (key type BTM_LE_KEY_LENC). This is because these flags share bits with the BTM_SEC_FLAG_LKEY_KNOWN (and BTM_SEC_FLAG_LKEY_AUTHED) flag in btm_api.h. Without this code a link that is encrypted via SM pairing where only the local device exchanges the LTK (peer does not send its LTK) will not allow GATT operations that require encryption (request will be incorrectly rejected with insufficient authentication reason, regardless of if MITM is required).
...
Merges https://github.com/espressif/esp-idf/pull/1320
2018-01-03 14:14:24 +11:00
Tim Cook
5b87177831
set ble_rsp_key member of structure bte_appl_cfg in function bta_dm_co_ble_set_rsp_key_req (function incorrectly uses ble_init_key member).
...
Merges https://github.com/espressif/esp-idf/pull/1320
2018-01-03 14:14:24 +11:00
Alexey Morozov
25b8642835
uart driver: Remove unnecessary xSemaphoreGive()
...
avoid unnecessary call of xSemaphoreGive(p_uart_obj[uart_num]->tx_mux);
Merges https://github.com/espressif/esp-idf/pull/1387
2018-01-03 13:44:19 +11:00
baohongde
2530e0aeb9
component/bt: Standardize code
...
Reported from github:
https://github.com/espressif/esp-idf/issues/1402
https://github.com/espressif/esp-idf/issues/1403
2018-01-03 10:31:30 +08:00
JoveToo
6746d31620
fix typo
...
Merges https://github.com/espressif/esp-idf/pull/1430
2018-01-03 10:50:50 +11:00
Per Malmberg
f7f52414ec
Removed logging in RMT driver which skews the timing. Issue #1345
...
Merges https://github.com/espressif/esp-idf/pull/1450
2018-01-03 10:50:03 +11:00
Darian Leung
9df9e2363e
freertos/Fix Event Group ISR test case
...
This commit fixes and reimplements the Event Group ISR test case. The test
case tests xEventGroupSetBitsFromISR() and xEventGroupClearBitsFromISR()
2018-01-02 18:57:28 +08:00
baohongde
e55b5433aa
component/bt: Fix bug when add device to whitelist twice
2018-01-02 17:20:34 +08:00
Jiang Jiang Jian
c401a74bfb
Merge branch 'bugfix/btdm_aes_encrypt_workaround' into 'master'
...
component/bt: disable Secure Connections to workaround AES encryption issue
See merge request !1719
2018-01-02 16:15:39 +08:00
XiaXiaotian
3fd421ab01
recompile wifi lib with new toolchain 1.22.0-78-g4b87650
2018-01-02 14:23:37 +08:00
Angus Gratton
b16e1d84d0
AWS IoT SDK: Update version from v2.1.1 to v2.2.1
...
Closes https://github.com/espressif/esp-idf/issues/1355
2018-01-02 13:46:58 +11:00
Angus Gratton
e798957d16
Merge branch 'bugfix/ci_log_examples' into 'master'
...
Fix a sporadic bug in building of the examples
See merge request !1723
2018-01-02 07:55:26 +08:00
wangmengyang
ba06683834
component/bt: build libbtdm_app.a with updated toolchain
2017-12-29 15:31:11 +08:00
Ivan Grokhotkov
f82048018b
Merge branch 'bugfix/i2c_regression' into 'master'
...
Bugfix/i2c regression (Github PR 1443)
See merge request !1725
2017-12-29 15:19:38 +08:00
Per Malmberg
f2370b2830
Removed logging from pthread conditional variable which completely drowned out any other logging and also had negative effects on the RMT due to sharing the same log system. Related to #1345 / TW#16842
2017-12-28 15:21:00 +01:00
Per Malmberg
5fb16d9b2b
Fix regression in i2c_master_read() which rejected all data lenths.
2017-12-28 14:54:15 +01:00
Anton Maklakov
301751ede0
build system: Fix undefined variables
...
make/project.mk:315: warning: undefined variable `CC'
make/project.mk:316: warning: undefined variable `LD'
make/project.mk:317: warning: undefined variable `AR'
make/project.mk:62: warning: undefined variable `MAKECMDGOALS'
components/partition_table/Makefile.projbuild:24: warning: undefined variable `quote'
components/bootloader/Makefile.projbuild:123: warning: undefined variable 'BOOTLOADER_DIGEST_BIN'
components/bootloader/Makefile.projbuild:123: warning: undefined variable 'SECURE_BOOTLOADER_KEY'
2017-12-28 19:21:34 +08:00
Ivan Grokhotkov
98dff491c8
Merge branch 'bugfix/static_mem_workaround' into 'master'
...
esp32: Change 192KB runtime static limit workaround to a 176KB link time workaround
See merge request !1704
2017-12-28 18:52:47 +08:00
wangmengyang
1bbd67f7d7
component/bt: disable Secure Connections(Host Supported) of classic Bluetooth to workaround AES encryption issue in controller
...
1. ESP32 is found to suffer from AES encryption start/resume failure with specific device. Therefore temporarily disable BR/EDR Secure Connections for a workaround
2. BR/EDR Secure Connections is a feature for BT Classic introduced in Bluetooth 4.1. This change disables the setting of Secure Connections(Host Supported), and will result in the use of legacy authentication instead of secure authentication, and E0 encryption(legacy) instead of AES-CCM encryption. BLE security procedures are not affected.
2017-12-28 14:51:19 +08:00
michael
2552fdccd1
chore(spi): add log to show native pins or not when configure pins.
2017-12-28 12:03:29 +08:00
michael
f4be6ac84d
fix(spi_master): fix the logic in the ISR to prevent re-config registers when device is not changed.
2017-12-28 12:03:29 +08:00
michael
7a7b8fc182
refactor(spi_master): move the clock calculation from ISR to initialization.
2017-12-28 12:03:28 +08:00
Jiang Jiang Jian
7d0d2854d3
Merge branch 'bugfix/btdm_error_when_white_list_is_full' into 'master'
...
component/bt: Fix bug of adding device to white list has no callback when while list is full
See merge request !1689
2017-12-27 18:03:38 +08:00
Jiang Jiang Jian
566fab02df
Merge branch 'bugfix/btdm_disconnect_fail_during_pairing' into 'master'
...
component/bt: Fix bug of disconnected fail during pairing
See merge request !1672
2017-12-27 18:03:13 +08:00
Ivan Grokhotkov
cbfd162ea8
Merge branch 'bugfix/idle_task_deletes_currently_running_task' into 'master'
...
freertos: prvCheckTasksWaitingTermination bugfix
See merge request !1686
2017-12-27 16:44:06 +08:00
Jiang Jiang Jian
8051ac469a
Merge branch 'cherry-pick-4837f939-2' into 'master'
...
esp_timer:fix three bugs about timer get and timer alarm where overflow is not correct
See merge request !1695
2017-12-27 11:43:52 +08:00
Jiang Jiang Jian
d31b654f3f
Merge branch 'bugfix/btdm_fix_memory_leak_for_SMP' into 'master'
...
component/bt: fix memory leak in SMP
See merge request !1690
2017-12-27 11:43:18 +08:00
Angus Gratton
ec7cac5fe8
Merge branch 'feature/docs_update_rmt_api' into 'master'
...
RMT API docs update, new example
See merge request !1564
2017-12-27 09:23:47 +08:00
Angus Gratton
f8580ea98f
esp32: Change 192KB runtime static limit workaround to a 176KB link time workaround
...
Turns out some app memory around 0x3ffdc000 is also used by APP CPU.
This is a workaround until code to remove the 176KB limit is committed.
2017-12-27 11:59:54 +11:00
kooho
d78be97154
add NACK for the last byte to read
2017-12-26 21:50:18 +08:00
Darian Leung
c41c02872f
freertos: prvCheckTasksWaitingTermination bugfix
...
Bugfix to prevent a self deleting no affinity task's memory from being freed by the
idle task of the other core before the self deleting no affinity task is able to context
switch out. prvCheckTasksWaitingTermination now checks if the task is still on
pxCurrentTCB before freeing task memory.
2017-12-26 19:03:49 +08:00
baohongde
1de63e9d90
component/bt: Fix bug of disconnected fail during pairing
2017-12-25 19:24:06 +08:00
baohongde
f5f8dda8a2
component/bt: Fix bug of adding device to white list has no callback when while list is full
2017-12-25 17:45:12 +08:00
Ivan Grokhotkov
6c2562ceb4
Merge branch 'bugfix/spiram_fails_after_esp_restart' into 'master'
...
Make psram function after an esp_restart as well.
See merge request !1694
2017-12-21 13:40:10 +08:00
Jiang Jiang Jian
a567de1576
Merge branch 'feature/btdm_classic_discovery' into 'master'
...
component/bt: implement Classic Bluetooth GAP APIs for device and service discovery
See merge request !1576
2017-12-20 13:30:31 +08:00
zhiweijian
763406b4cc
Component/bt: fix memory leak in SMP
2017-12-20 10:30:31 +08:00
Jiang Jiang Jian
04e1195f41
Merge branch 'bugfix/btdm_send_data_length_req_after_read_feature_complete' into 'master'
...
component/bt: send data length request by host after read feature complete
See merge request !1639
2017-12-19 20:18:50 +08:00
Jack
0a1f81dc01
esp_timer:fix three bugs about timer get and timer alarm where overflow is not correct
2017-12-19 20:05:55 +08:00
Jeroen Domburg
569bfad2e3
Fix the clock subsystem so it doesn't undo the weird condition spiram_psram.c jams the enable/reset bits of SPI3 in when 80MHz mode is selected anymore
2017-12-19 19:12:58 +08:00
Jiang Jiang Jian
709d19f99e
Merge branch 'feature/eth_set_mac_addr' into 'master'
...
emac:add set_eth_mac api
See merge request !1604
2017-12-19 17:40:36 +08:00
Jiang Jiang Jian
9c2db2ea7a
Merge branch 'bugfix/btdm_optimiz_adv_cb_func' into 'master'
...
Bugfix/btdm optimiz adv cb func
See merge request !1619
2017-12-19 17:35:00 +08:00
Jiang Jiang Jian
956133387d
Merge branch 'bugfix/fix_some_wifi_bug' into 'master'
...
Fix some wifi bugs
See merge request !1680
2017-12-19 17:31:44 +08:00
Jiang Jiang Jian
9c5435c14a
Merge branch 'bugfix/btdm_mem_release' into 'master'
...
component/bt : fix btdm mem release cause 0x3ffbbb28-0x3ffbdb28 add to region but should not.
See merge request !1660
2017-12-19 17:31:09 +08:00
XiaXiaotian
32c0d74cc5
Close socket request will abort tcp write/connect
...
When tcp write/connect is running, close socket request will abort
it and continue to delete netconn and close tcp. Do not immediately
return after aborting tcp write/connect. Otherwise, tcp close
requeset will block and tcp write/connect will crash.
2017-12-19 15:20:50 +08:00
Ivan Grokhotkov
f8bda324ec
Merge branch 'bugfix/bootloader_v10_backwards_compat' into 'master'
...
esp32: Fix backwards compatibility for pre-v2.1 bootloaders
See merge request !1673
2017-12-18 17:20:08 +08:00
Jeroen Domburg
361bdcf78c
Merge branch 'feature/ringbuf_improvement' into 'master'
...
Feature/ringbuf improvement
See merge request !1571
2017-12-18 16:52:40 +08:00
Angus Gratton
c69af42b96
esp32: Fix backwards compatibility for pre-v2.1 bootloaders
...
Older bootloaders don't set RTC_XTAL_FREQ_REG or call rtc_clk_init(),
app needs to pick this up.
Reported at
https://esp32.com/viewtopic.php?f=2&t=3939&p=17836
2017-12-18 13:45:57 +11:00
Angus Gratton
496f6d2744
Merge branch 'bugfix/log_tag_variables_static' into 'master'
...
log: Remove non-static TAG variables
See merge request !1674
2017-12-18 07:06:36 +08:00
Angus Gratton
661d584ae7
Merge branch 'bugfix/i2c_fixes_pr1180' into 'master'
...
i2c: rx <-> tx typo's, NULLing free'd variable, consistent CRITICAL sects
See merge request !1551
2017-12-18 06:44:33 +08:00
XiaXiaotian
1e1db75aaa
Fix some wifi bugs
...
1. change first scanning channel to adjust different country code.
2. fix a bug that system crashes when station disconnects from AP.
2017-12-15 18:17:17 +08:00
Yulong
967ff895e7
component/bt: Optimized broadcast callback function, send the callback function to the application after the controller confirms receipt of the broadcast start.
...
1. optimiz the ble stop adv callback function.
2. added the osi_mutex_unlock in the bta_gattc_wait4_service_change_ccc_cback function when the p_timer_param == NULL || p_conn == NULL.
2017-12-15 18:16:23 +08:00
shangke
710e69feca
emac:add set_eth_mac api
2017-12-15 17:15:53 +08:00
Angus Gratton
8f874aaa0f
Merge branch 'bugfix/i2c_use_queue_instead_of_eventbit' into 'master'
...
bugfix(i2c): use queue instead of event group for internal commands
See merge request !1616
2017-12-15 13:54:03 +08:00
Angus Gratton
ea2afa83a8
log: Remove non-static TAG variables
2017-12-15 10:59:48 +11:00
Angus Gratton
17f3230305
Merge branch 'bugfix/heap_alloc_typo' into 'master'
...
fix typo for heap cap free size
See merge request !1669
2017-12-15 06:26:14 +08:00
Ivan Grokhotkov
1b619c0ec8
Merge branch 'bugfix/uart1_console' into 'master'
...
Fixes for console output on UART1
See merge request !1649
2017-12-14 13:36:34 +08:00
Ivan Grokhotkov
68bba96911
Merge branch 'bugfix/sdmmc_vfs_deinit' into 'master'
...
SDSPI bug fixes
See merge request !1647
2017-12-14 13:36:20 +08:00
Kewal
ae8a0bbf56
fix typo for heap cap free size
2017-12-14 10:39:26 +05:30
Ivan Grokhotkov
d2bd9cccd8
Merge branch 'feature/ulp_docs_update' into 'master'
...
ULP docs update
See merge request !1640
2017-12-13 15:36:36 +08:00
Tian Hao
65bdb2d7ff
component/bt : fix btdm mem release cause 0x3ffbbb28-0x3ffbdb28 add to region but should not.
...
1. fix the bug. Modify the condition that esp_bt_controller_mem_release() shoud be only called before esp_bt_controller_init() or after esp_bt_controller_deinit()
2. modify the example to use esp_bt_controller_mem_release()
2017-12-13 11:38:39 +08:00
Ivan Grokhotkov
1c314b34fc
Merge branch 'bugfix/rtc_time' into 'master'
...
Fix compilation issue when using RTC time only, update Kconfig help and source code
See merge request !1650
2017-12-13 11:10:45 +08:00
Ivan Grokhotkov
4839da4d98
Merge branch 'bugfix/fatfs_stat' into 'master'
...
Fix stat behavior for FATFS mount point
See merge request !1652
2017-12-13 11:10:27 +08:00
zhiweijian
6b6e0410f8
Component/bt: send data length request by host after read feature complete
2017-12-12 18:28:59 +08:00
Angus Gratton
ab6b7b4013
Merge branch 'feature/spiffs_mtime' into 'master'
...
Add optional mtime support in SPIFFS
See merge request !1579
2017-12-12 14:43:03 +08:00
Ivan Grokhotkov
a99483a727
docs: add information about execution time of ULP instructions
2017-12-11 14:05:41 +08:00
Angus Gratton
dcf94f2189
Merge branch 'bugfix/minor_fixes_github' into 'master'
...
Minor fixes from github
See merge request !1638
2017-12-11 12:51:41 +08:00
Ivan Grokhotkov
bee1afaf6d
time: rename time source option from FRC to "high-resolution timer"
...
libc time function now rely on esp_timer_get_time as the source of
high-resolution time, rather than FRC1 timer. Internally, on the ESP32
esp_timer implementation uses FRC2 timer.
- Change help text and labels in Kconfig to use "high-resolution timer"
instead of FRC1. Keep existing Kconfig option name to be backwards
compatible.
- Change references to "FRC1" in the source code to "FRC".
2017-12-11 12:37:08 +08:00
Ivan Grokhotkov
ca751648fa
ulp: document the need to wait for RTC to be ready for wakeup
2017-12-11 12:11:46 +08:00
Ivan Grokhotkov
b6a6973b44
ulp: mention that instructions array must be declared in local scope
...
Closes https://github.com/espressif/esp-idf/issues/1327
2017-12-11 12:11:46 +08:00
Angus Gratton
5fe1b2e365
Merge branch 'bugfix/openssl_alpn' into 'master'
...
openssl: add feature check for MBEDTLS_SSL_ALPN
See merge request !1648
2017-12-11 12:03:11 +08:00
Ivan Grokhotkov
dfee6e825a
vfs/fatfs: use structures with bit fields for FAT date/time
...
Replace explicit masks and shifts with bit fields when working with FATFS date and time representations. Also zero-initialize remaining members of struct tm.
Fixes https://github.com/espressif/esp-idf/issues/1369 .
2017-12-11 11:11:48 +08:00
Chuck Todd
d913fff6d7
i2c: rx <-> tx typo's, NULLing free'd variable, consistent CRITICAL sects
...
A couple of typos referencing tx_ring_buf when rx_ring_buf, slv_tx_mux
instead of slv_rx_mux.
Also, I2C_ENTER_CRITICAL()/I2C_EXIT_CRITICAL() usage was not consistent.
Only some of the _set_ functions had them. Most of the _get_ function
had them? It is my understanding that they should be wrapped around
writes, not reads? (I think we still need the lock for reading pairs of consistent values)
Also, the ticks_to_wait timeout handling in i2c_master_cmd_begin() would
not handle integer rollover correctly.
Merges https://github.com/espressif/esp-idf/pull/1180
2017-12-11 11:08:39 +08:00
Ivan Grokhotkov
ed1e6e7224
fatfs: fix double free in bailout path of esp_vfs_fat_sdmmc_mount
...
Fixes https://github.com/espressif/esp-idf/issues/1370
2017-12-11 11:07:08 +08:00
Ivan Grokhotkov
269486ca4d
sdspi: use response timeout passed from upper layer
...
Previously SDSPI host driver would rely on retry count when waiting for
the card to read or write data. This caused different timeout times
depending on CPU frequency and card clock frequency. In practice, card
performance does not depend on these two factors.
This change uses timeout_ms field of sdmmc_command_t introduced
previously for SDMMC host.
Fixes https://esp32.com/viewtopic.php?f=2&t=3440&p=16037 and similar
issues related to SDSPI timeouts.
2017-12-11 11:07:08 +08:00
Ivan Grokhotkov
4170904224
fatfs: fix deinit not called for SDSPI host
...
Closes https://github.com/espressif/esp-idf/issues/1362
2017-12-11 11:07:08 +08:00
Ivan Grokhotkov
a63ace15bd
vfs/fatfs: fix stat call failing when called for mount point
...
FATFS does not support f_stat call for drive root. When handling stat
for drive root, don't call f_stat and just return struct st with S_IFDIR
flag set.
Closes #984
2017-12-08 20:04:27 +08:00
Ivan Grokhotkov
df74211fc3
newlib/time: fix compilation error when only RTC is used as clock source
...
Fixes https://github.com/espressif/esp-idf/issues/1245
2017-12-08 16:17:47 +08:00
Fabiano Kovalski
9075b507b5
driver(i2c): corrected timeout range for i2c_set_timeout.
...
Merges https://github.com/espressif/esp-idf/pull/1353
2017-12-08 14:26:35 +08:00
Ivan Grokhotkov
bd6ee752fc
Merge branch 'feature/btdm_modify_header_file_name' into 'master'
...
component/btdm : change bt.h name to esp_bt.h to form the name prefix
See merge request !1644
2017-12-08 14:03:15 +08:00
Ivan Grokhotkov
bad8d3ce57
bootloader: don't log anything before uart_console_configure is called
2017-12-08 13:15:40 +08:00
Ivan Grokhotkov
a705221492
esp32: fix incorrect clock enable bit name for UART0
...
Closes https://github.com/espressif/esp-idf/issues/1301
2017-12-08 13:14:36 +08:00
Ivan Grokhotkov
022b4f3251
openssl: add feature check for MBEDTLS_SSL_ALPN
...
Fixes https://github.com/espressif/esp-idf/issues/1342
2017-12-08 13:00:11 +08:00
Deomid Ryabkov
e3282a0cac
Add esp_intr_set_in_iram
...
A function to change "in IRAM" status for an existing interrupt handle, without going through free/allocate of the interrupt.
mOS HW timer implementation requires this to make HW timers safe to re-set from an IRAM ISR.
2017-12-08 05:46:34 +03:00
Tian Hao
583dceb69b
component/btdm : change bt.h name to esp_bt.h to form the name prefix
2017-12-08 10:33:50 +08:00
Mahavir Jain
18553c451a
heap_trace: fix bug in realloc for copying trace record
...
Closes https://github.com/espressif/esp-idf/issues/1354
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2017-12-07 18:20:23 +05:30
Piyush Shah
91968ef464
freertos/ringbuf: Added an API xRingbufferCreateNoSplit()
...
This is a wrapper API for creating a Ring Buffer, which ensures that
the ringbuffer can hold the given number of items, each item being of the
same given length.
Signed-off-by: Piyush Shah <piyush@espressif.com>
2017-12-07 17:04:23 +05:30
Piyush Shah
3c199b0de6
freertos/ringbuf: Add an API xRingbufferIsNextItemWrapped()
...
Useful to check if the next item to receive is wrapped or not.
This is valid only if the ring buffer is initialised with type
RINGBUF_TYPE_ALLOWSPLIT.
This is as per the feature request here:
https://github.com/espressif/esp-idf/issues/806
Signed-off-by: Piyush Shah <piyush@espressif.com>
2017-12-07 17:04:18 +05:30
Piyush Shah
cd5fb054c7
freertos/ringbuf: Add an API xRingbufferGetCurFreeSize() to fetch current free size available
...
The earlier available API (xRingbufferGetMaxItemSize())just gives
a static max entry value possible for given ring buffer.
There was a feature request for an API which could provide
a real time available buffer size. See below:
https://github.com/espressif/esp-idf/issues/806
Signed-off-by: Piyush Shah <piyush@espressif.com>
2017-12-07 17:04:12 +05:30
Ivan Grokhotkov
7e3ac34704
Merge branch 'bugfix/fix_i2s_doc' into 'master'
...
docs: fix i2s code snippet for interrupt flags setting
See merge request !1637
2017-12-07 13:50:49 +08:00
Ivan Grokhotkov
cda22d9aaf
docs: add FreeRTOS API docs
...
- Use `code` tags instead of a mix of `<pre></pre>` and
`@verbatim .. @endverbatim`
- Remove manually added function prototypes from comment blocks
- Remove of grouping (`\defgroup`) — some extra work is needed
to make groups compatible with the way we auto-generate API
reference from Doxygen XML files. It's pretty easy to add the
grouping directives back if/when we implement support for
Doxygen groups in the later stages of documentation build
process.
- Hide private APIs under `@cond .. @endcond`
- Convert some comments into Doxygen-compatible ones
- Fix various documentation issues: missing documentation for
some parameters, mismatch between parameter names in comment
block and in function prototype.
- Add doxygen comments for functions which didn't have them
(thread local storage).
- Add [out] param tags where necessary
- Redefine `xTaskCreate` and `xTaskCreateStatic` as inline
functions instead of macros.
2017-12-07 12:01:14 +08:00
Ivan Grokhotkov
2b92119840
Merge branch 'bugfix/freertos_check_task_waiting_termination' into 'master'
...
Freertos Task Deletion backport and FPU documentation
See merge request !1591
2017-12-07 11:55:10 +08:00
Angus Gratton
240f2ce7be
Merge branch 'bugfix/gcc7_compilation' into 'master'
...
Fixes for gcc 7 compilation (Github PR)
See merge request !1628
2017-12-07 07:32:49 +08:00
Paul Reimer
8a47679d04
Add #include guards and __cplusplus guards to esp_debug.h
...
Merges https://github.com/espressif/esp-idf/pull/1358
2017-12-07 10:25:57 +11:00
robotrovsky
6a51a13b70
Bugfix I_DELAY macro
...
When compiling
> const ulp_insn_t program[] = {
> I_DELAY(1)
> };
with the xtensa-esp32-elf-g++ compiler i always got the error:
> sorry, unimplemented: non-trivial designated initializers not supported
>
> };
This was due to the different order in the macro and the struct. The struct has another order of the fields (opcode, unused, cycles) vs (cycles, unused, opcode):
> struct {
> uint32_t cycles : 16; /*!< Number of cycles to sleep */
> uint32_t unused : 12; /*!< Unused */
> uint32_t opcode : 4; /*!< Opcode (OPCODE_DELAY) */
> } delay; /*!< Format of DELAY instruction */
After updating the order in the macro it is possible to compile with the g++ compiler.
Merges https://github.com/espressif/esp-idf/pull/1310
2017-12-07 10:02:45 +11:00
Jeroen Domburg
dceda4ab39
Merge branch 'feature/ledc_compatibility_definitions' into 'master'
...
Feature/ledc compatibility definitions
See merge request !1635
2017-12-06 15:48:06 +08:00
Mahavir Jain
2efef48e3e
docs: fix i2s code snippet for interrupt flags setting
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2017-12-06 12:05:11 +05:30
wangmengyang
c23af0b5bb
component/bt: implement Classic Bluetooth GAP APIs for device and service discovery
2017-12-06 10:52:06 +08:00
Jiang Jiang Jian
f32fa0c1e9
Merge branch 'bugfix/tw13918_netconn_delete_memory_leak' into 'master'
...
memory leak for netconn_delete()
See merge request !1633
2017-12-05 21:20:07 +08:00
Darian Leung
38afa32cfb
freertos/fix SMP bug with Idle task clean up
...
This commit backports vTaskDelete() behavior from FreeRTOS v9.0.0 which
allows for the immediate freeing of task memory if the task being deleted
is not currently running and not pinned to the other core. This commit also
fixes a bug in prvCheckTasksWaitingTermination which prevented the
Idle Task from cleaning up all tasks awaiting deletion. Each iteration of the Idle
Task should traverse the xTasksWaitingTermination list and clean up all tasks
not pinned to the other core. The previous implementation would cause
prvCheckTasksWaitingTermination to return when encountering a task
pinned to the other core whilst traversing the xTasksWaitingTermination list.
The test case for vTaskDelete() has been updated to test for the bugfix and
backported deletion behavior.
2017-12-05 18:13:56 +08:00
zhangyanjiao
210d349fbd
when netconn created directly,netconn_delete() will not call netconn_free(),
...
which will lead to memory leak
Closes https://github.com/espressif/esp-idf/issues/784
2017-12-05 10:42:37 +08:00
Angus Gratton
b9c6175649
Merge branch 'feature/spi_flash_write_verify' into 'master'
...
spi_flash: Add option to verify all writes by reading back data
See merge request !1355
2017-12-05 05:40:24 +08:00
krzychb
421592a8eb
LEDC Driver: Added back original definitions of 'duty_resolution' and 'clock_divider'. This update is to provide backward compatibility with ESP-IDF 2.1.
2017-12-04 21:12:56 +01:00
Roman Valls Guimera
a3da93d834
Update cJSON to 1.6.0
...
* Fixes compilation errors/warnings with gcc 7.2.0
Merges https://github.com/espressif/esp-idf/pull/1163
2017-12-04 10:22:07 +11:00
Roman Valls Guimera
519edc332d
Fix compilation errors when using gcc-7.2.0 for the crosstool-ng toolchain
...
* Change snprintf for strlcat does not complain w/gcc7.2.0 and it is safer, thanks @projectgus
* Use proper quotes for character literals
Merges https://github.com/espressif/esp-idf/pull/1163
2017-12-04 10:18:40 +11:00
Angus Gratton
f7ac41c2da
spi_flash: Add option to log warnings if (spuriously) writing zero bits to ones
...
Won't work for SPIFFS, maybe some other implementations?
2017-12-04 09:55:05 +11:00
Angus Gratton
892b3ff14b
spi_flash: Add option to verify all writes by reading back data
...
Helpful when debugging SPI flash hardware related issues.
TW15203
2017-12-04 09:55:05 +11:00
Jiang Jiang Jian
22489d7021
Merge branch 'bugfix/wdt_periph_enable' into 'master'
...
watchdogs: make sure timer group peripherals are enabled
See merge request !1623
2017-12-01 22:06:43 +08:00
Jiang Jiang Jian
c44487143d
Merge branch 'bugfix/btdm_connect_stable_optimiz' into 'master'
...
component/bt: Optimiz the ble connection performance.
See merge request !1618
2017-12-01 21:35:17 +08:00
Ivan Grokhotkov
08048ff76a
Merge branch 'feature/btdm_avrc_metadata' into 'master'
...
Feature/btdm avrc metadata: implemented AVRCP metadata and notification register commands
See merge request !1624
2017-12-01 20:31:25 +08:00
Ivan Grokhotkov
f58c5b21ec
watchdog: increase default INT WDT interval if SPIRAM is used
...
Running heap_caps_check_integrity for 4MB of PSRAM can take longer than
the default WDT interval, 300ms.
2017-12-01 20:10:26 +08:00
Ivan Grokhotkov
15b6b64c99
watchdog: enable INT WDT unit test
2017-12-01 20:10:26 +08:00
Ivan Grokhotkov
bd1d631134
watchdogs: make sure timer group peripherals are enabled
2017-12-01 20:10:26 +08:00
yulong
96f120c0d4
component/bt: Optimiz the ble connection performance.
2017-12-01 20:02:14 +08:00
Jiang Jiang Jian
85fc06e3bb
Merge branch 'bugfix/flash_1v8_enable_vddsdio_reg' into 'master'
...
bootloader: Only apply VDDSDIO 1.8V->1.9V if regulator is enabled
See merge request !1601
2017-12-01 19:34:45 +08:00
Jiang Jiang Jian
96cd6f8626
Merge branch 'bugfix/update_libstdcxx_psram' into 'master'
...
libstdc++: update the library built with PSRAM workaround
See merge request !1588
2017-12-01 19:34:29 +08:00
Jiang Jiang Jian
c672fc54fd
Merge branch 'feature/ledc_more_meaningful_parameter_names' into 'master'
...
Provided more meaningful parameter names by renaming 'bit_num' to 'duty_resoluti…
See merge request !1440
2017-12-01 19:33:53 +08:00
Jiang Jiang Jian
7702e0f45b
Merge branch 'bugfix/btdm_con_discon_test_crash_#16055' into 'master'
...
component/bt: Fix the bug when write ccc sometimes will lead to repeatedly release the memory.
See merge request !1599
2017-12-01 19:32:39 +08:00
pufstudio
86fa1820b7
component/bt: Add AVRCP medadata attribute support so A2DP can show track title, album, etc.
...
Merges https://github.com/espressif/esp-idf/pull/1078
2017-12-01 19:28:52 +08:00
Jiang Jiang Jian
1f7e42c0b7
Merge branch 'bugfix/fix_some_wifi_bugs' into 'master'
...
Fix some wifi lib bugs
See merge request !1626
2017-12-01 19:22:18 +08:00
Jiang Jiang Jian
aece22f763
Merge branch 'bugfix/tw16581_dhcps_default_behaviour_changed' into 'master'
...
fix the dhcps default behaviour chenged by dns
See merge request !1612
2017-12-01 19:21:26 +08:00
Jiang Jiang Jian
7ec7352534
Merge branch 'bugfix/small_fixes_from_github' into 'master'
...
Small fixes by users from GitHub
See merge request !1620
2017-12-01 19:21:10 +08:00
krzychb
866b84b9f8
Typo fix. Closes https://github.com/espressif/esp-idf/issue/1323
2017-12-01 09:06:08 +01:00
XiaXiaotian
aaa17b8740
Fix some wifi lib bugs
...
1. Add a hide API for station to receive and process probe request
frame.
2. Fix an issue that wifi/bt coexistence crashes in PSRAM version.
3. Fix an issue that the API for clearing vendor ie can not work.
4. Fix an issue that wifi stop and reboot leads watchdog.
2017-12-01 15:00:49 +08:00
Ivan Grokhotkov
af63ca1522
Merge branch 'bugfix/pthread_local_storage_spinlock' into 'master'
...
pthreads: Remove potentially blocking mutex from idle task cleanup path
See merge request !1621
2017-12-01 14:42:29 +08:00
Jiang Jiang Jian
015233d2dc
Merge branch 'bugfix/btdm_mem_leak_lead_to_WDT_#16592' into 'master'
...
compoent/bt: Fix the bug when do the BLE pressure test will lead to memory leak will appear WDT.
See merge request !1610
2017-12-01 12:24:04 +08:00
Angus Gratton
89407a5770
pthread: Use spinlock not semaphore mutex to protect TLS key list
2017-12-01 14:28:07 +11:00
yulong
a0992ad442
component/bt: Remove the p_tle->param reset to 0 when free the p_timer_param pointer.
2017-11-30 16:15:22 +08:00
Yulong
5b243b1d01
component/bt: Added the mutex lock protect the ccc free when disconnect.
2017-11-30 02:45:26 -05:00
Jiang Jiang Jian
582b731c23
Merge branch 'bugfix/active_scan' into 'master'
...
component/bt : fix actvie scan cannot send scan_req in a certain case
See merge request !1608
2017-11-30 15:06:20 +08:00
Ivan Grokhotkov
cc600bd517
Merge branch 'bugfix/fix_lwip_macros' into 'master'
...
lwip: Change socket API macros to static-inline
See merge request !1614
2017-11-30 10:28:20 +08:00
Kedar Sovani
1c0543fb17
lwip: Change socket API macros to static-inline
2017-11-29 11:42:14 +05:30
Wangjialin
bf3c41bb92
bugfix(i2c): use queue instead of event group for internal commands
...
Reported from github:
https://github.com/espressif/esp-idf/issues/1312
https://github.com/espressif/esp-idf/issues/1193
Issues:
1. We used to use event group in the driver, which would cause:
a. longer operation time since the event group are based on FreeRTOS timer.
b. Operation fails if the timer queue is not long enough.
2. There might be some issue with event group, we will still try to provide a small test code in other branch.
modification:
1. use queue instead of event-bit for internal commands
2. use queue overwrite for cmd_done event
2017-11-29 12:33:11 +08:00
Ivan Grokhotkov
f0547d58e4
esp_timer: add documentation, expose profiling option in Kconfig
2017-11-29 11:44:46 +08:00
Ivan Grokhotkov
6e7eb3c776
esp_timer: fix for the case when timer is deleted in callback
...
Timer callback can delete the timer. If CONFIG_ESP_TIMER_PROFILING was
enabled, this caused an access to invalid (freed) memory.
This fix adds a pointer to track the timer while executing the callback.
This is needed so that we can check if callback deletes the timer,
in which case we won't try updating profiling counters for this timer
after the callback is done.
2017-11-29 11:44:46 +08:00
yulong
7353307ca5
component/bt: reset the p_cmd_list pointer after release the mem.
2017-11-29 10:50:03 +08:00
Angus Gratton
1d5389668b
Merge branch 'feature/dhcp_server_options_menuconfig' into 'master'
...
dhcpserver: Option to change lease time multiplier and number of max
See merge request !1595
2017-11-29 07:07:09 +08:00
Tian Hao
59931cd63b
component/bt : fix actvie scan cannot send scan_req in a certain case
2017-11-28 20:11:40 +08:00
zhangyanjiao
e315d7ca08
fix the dhcps default behaviour chenged by dns
...
Closes https://github.com/espressif/esp-idf/issues/1285
2017-11-28 16:39:00 +08:00
yulong
5b9131cc60
compoent/bt: Fix the bug when do the BLE pressure test will lead to memory leak will appear WDT.
2017-11-28 15:43:33 +08:00
Krzysztof Bociurko
626ad5f577
dhcpserver: Option to change lease time multiplier and number of max
...
stations connected to it.
Merges: https://github.com/espressif/esp-idf/pull/1206
2017-11-28 15:58:03 +11:00
Jiang Jiang Jian
0554bc59a2
Merge branch 'bugfix/tw16551_buffer_overflow' into 'master'
...
fix buffer overflow
See merge request !1605
2017-11-27 22:18:58 +08:00
Jiang Jiang Jian
a83fbd3364
Merge branch 'bugfix/tw16287_tcp_send_succeed_after_station_disconnect' into 'master'
...
In STA mode, tcp_send cannot catch err after disconnect station
See merge request !1540
2017-11-27 21:30:46 +08:00
Jiang Jiang Jian
886047fb46
Merge branch 'bugfix/TW16564_tcp_connect/disconnect_crash' into 'master'
...
fix tcp connect/disconnect carsh
See merge request !1598
2017-11-27 21:30:11 +08:00
Jiang Jiang Jian
7980255498
Merge branch 'bugfix/btdm_scan_lead_to_conn_error' into 'master'
...
component/bt: Fixed the bug when stop scan if not set back the scan params will …
See merge request !1590
2017-11-27 21:21:13 +08:00
zhangyanjiao
768bbcd8aa
fix buffer overflow in ipc.c
2017-11-27 18:47:40 +08:00
Ivan Grokhotkov
9e530fd063
Merge branch 'bugfix/allow_external_stack' into 'master'
...
freertos: fix a bug for incorrect check of allow-external-stack
See merge request !1596
2017-11-27 16:31:27 +08:00
zhangyanjiao
0b644ee515
fix tcp connect/disconnect carsh
2017-11-27 10:18:58 +08:00
Angus Gratton
fccc30d2d5
bootloader: Only apply VDDSDIO 1.8V->1.9V if regulator is enabled
...
Fixes bug if regulator is disabled via efuse.
2017-11-27 10:33:41 +11:00
Angus Gratton
75ff6dce15
Merge branch 'docs/esp_ipc' into 'master'
...
docs/ipc documentation
See merge request !1584
2017-11-27 07:24:37 +08:00
Angus Gratton
5e7478a055
Merge branch 'bugfix/ledc_fade_scale' into 'master'
...
driver(LEDC): add scale value check in ledc_set_fade API
See merge request !1583
2017-11-27 07:23:19 +08:00
Yulong
c71318ce88
component/bt: Fix the bug when write ccc sometimes will lead to repeatedly release the memory.
2017-11-25 05:06:14 -05:00
Darian Leung
4c13b2f391
docs/ipc documentation
...
This commit updates doxygen comments in the IPC header files and adds an rst
docs page.
2017-11-24 15:31:28 +08:00
Kedar Sovani
e7743d090d
freertos: fix a bug for incorrect check of allow-external-stack
2017-11-24 09:53:47 +05:30
Angus Gratton
02304ad83e
Merge branch 'feature/freertos_backported_functions' into 'master'
...
freertos/backport and test v9.0.0 functions
See merge request !1515
2017-11-24 08:49:59 +08:00
Jiang Jiang Jian
e5b2c1cf4c
Merge branch 'bugfix/btdm_corret_bt_h_comment' into 'master'
...
component/bt: Correct the ESP_BLE_PWR_TYPE_CONN_HDL0-9 comment in the bt.h file t…
See merge request !1570
2017-11-24 00:14:14 +08:00
Jiang Jiang Jian
082f5716c6
Merge branch 'feature/enable_disable_ampdu_rx_tx_independently' into 'master'
...
Feature/enable disable ampdu rx tx independently
See merge request !1560
2017-11-23 22:22:43 +08:00
Yulong
177c92f15e
component/bt: Change the code format.
2017-11-23 06:42:04 -05:00
Yulong
2458d15d2d
component/bt: recovery the scan parameter to the controller before start scan.
2017-11-23 06:36:00 -05:00
panfeng
b553c925b1
bugfix: while scale equals 0 will cause crash
2017-11-23 17:56:18 +08:00
Yulong
f14699068d
component/bt: Fixed the bug when stop scan if not set back the scan params will lead to connection request sent the empty packet to the peer device.
2017-11-23 03:54:29 -05:00
Ivan Grokhotkov
983ec73413
libstdc++: update the library built with PSRAM workaround
2017-11-23 15:34:23 +08:00
Darian Leung
c1d101dd41
freertos/backport and test v9.0.0 functions
...
This commit backports the following features from FreeRTOS v9.0.0
- uxSemaphoreGetCount()
- vTimerSetTimerId(), xTimerGetPeriod(), xTimerGetExpiryTime()
- xTimerCreateStatic()
- xEventGroupCreateStatic()
- uxSemaphoreGetCount()
Functions backported previously
- xTaskCreateStatic()
- xQueueCreateStatic()
- xSemaphoreCreateBinaryStatic(), xSemaphoreCreateCountingStatic()
- xSemaphoreCreateMutexStatic(), xSemaphoreCreateRecursiveMutexStatic()
- pcQueueGetName()
- vTaskSetThreadLocalStoragePointer()
- pvTaskGetThreadLocalStoragePointer()
Unit tests were also written for the functions above (except for pcQueueGetName
which is tested in a separate Queue Registry MR). The original tlsp and del cb test case
was deleted and integrated into the test cases of this MR.
2017-11-23 14:18:09 +08:00
Ivan Grokhotkov
b669b415e6
Merge branch 'feature/cxx_exceptions_emg_pool' into 'master'
...
esp32: Adds C++ exceptions emergency pool size menuconfig option
See merge request !1561
2017-11-23 13:02:49 +08:00
Amey Inamdar
edb2400742
pthread: Added support for pthread condition variables
...
This is required for std::condition_variable support
Signed-off-by: Amey Inamdar <amey.inamdar@gmail.com>
2017-11-23 11:26:51 +08:00
Alexey Gerenkov
7df96718a2
esp32: Adds C++ exceptions emergency pool size menuconfig option
2017-11-23 06:14:11 +03:00
Liu Zhi Fu
3f6a8f1430
esp32: add options to disable/enable TX/RX AMPDU independently
...
Make menuconfig can disable/enable TX/RX AMPDU independently
2017-11-23 09:42:31 +08:00
Ivan Grokhotkov
597ce3b800
Merge branch 'bugfix/ringbuf_buflen_bugfix' into 'master'
...
Bugfix/ringbuf buflen bugfix
See merge request !1562
2017-11-22 22:30:11 +08:00
Ivan Grokhotkov
c237c5c966
Merge branch 'bugfix/gpio_disable_api' into 'master'
...
driver: GPIO can be disabled by calling gpio_set_direction
See merge request !1575
2017-11-22 22:26:54 +08:00
Ivan Grokhotkov
cf47012111
Merge branch 'feature/prs_from_github' into 'master'
...
PRs from Github
See merge request !1578
2017-11-22 22:26:40 +08:00
Ivan Grokhotkov
5fe91ae7cd
Merge branch 'bugfix/cpp_guards' into 'master'
...
Add C++ guards to freertos/ringbuf.h, heap headers
See merge request !1552
2017-11-22 22:26:26 +08:00
kooho
ada33fe3dd
Add GPIO input and output disable option
2017-11-22 15:00:27 +08:00
Ivan Grokhotkov
08be5213db
Merge branch 'bugfix/uxportcompare_check_addr_range' into 'master'
...
portmacro: add assert to check address validity in uxPortCompareSet
See merge request !1519
2017-11-22 11:44:09 +08:00
Angus Gratton
3607b404c0
Merge branch 'feature/lwip_socket_pcb_num_config' into 'master'
...
lwip: Expose number of active socket limits in menuconfig
See merge request !1433
2017-11-22 11:36:55 +08:00
Angus Gratton
4ce68f6163
lwip: Expose number of active socket limits in menuconfig
2017-11-22 14:10:08 +11:00
Frank Sautter
157371effb
Set GPIO-mode for MDC and MDIO pins
...
Merges #1127
2017-11-22 11:01:43 +08:00
Andrew Dikarev
08ba79cc2b
return old handler from esp_log_set_vprintf()
...
Merges #1286
2017-11-22 11:01:43 +08:00
Vitor Massaru Iha
cf768380b1
soc: Remove redefinition of MCU_SEL_M
...
Signed-off-by: Vitor Massaru Iha <vitor@massaru.org>
Merges #1290
2017-11-22 11:01:42 +08:00
Krzysztof Bociurko
969911b7c2
freertos: enabled use of pxTaskGetStackStart and cleaned up it's implementation
...
Merges #1298
2017-11-22 11:01:42 +08:00
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