]> granicus.if.org Git - esp-idf/log
esp-idf
6 years agofreertos: enabled use of pxTaskGetStackStart and cleaned up it's implementation
Krzysztof Bociurko [Fri, 17 Nov 2017 12:05:54 +0000 (13:05 +0100)]
freertos: enabled use of pxTaskGetStackStart and cleaned up it's implementation

Merges #1298

6 years agoMerge branch 'bugfix/cxx-exceptions-missing-stubs' into 'master'
Angus Gratton [Wed, 22 Nov 2017 01:26:24 +0000 (09:26 +0800)]
Merge branch 'bugfix/cxx-exceptions-missing-stubs' into 'master'

cxx_exceptions: Add missing stubs for cxx exceptions with exceptions disabled

See merge request !1574

6 years agoheap: Add C++ header guards to heap headers
Angus Gratton [Thu, 16 Nov 2017 23:16:46 +0000 (10:16 +1100)]
heap: Add C++ header guards to heap headers

Closes https://github.com/espressif/esp-idf/issues/1195

6 years agoringbuf.h: Add anti name-mangling definition
Adrián Paníček [Thu, 9 Nov 2017 21:46:38 +0000 (22:46 +0100)]
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)

6 years agotest_ringbuf: Add tests for arbitrary length ring buffer
Piyush Shah [Fri, 17 Nov 2017 11:53:43 +0000 (17:23 +0530)]
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>
6 years agoringbuf: Fixes to header files for better understanding
Piyush Shah [Fri, 17 Nov 2017 10:20:49 +0000 (15:50 +0530)]
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>
6 years agoringbuf: Bugfixes for managing arbitrary sizes of ring buffer
Piyush Shah [Fri, 17 Nov 2017 09:54:17 +0000 (15:24 +0530)]
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>
6 years agotoolchain: update to 1.22.0-75-gbaf03c2
Ivan Grokhotkov [Tue, 21 Nov 2017 11:30:52 +0000 (19:30 +0800)]
toolchain: update to 1.22.0-75-gbaf03c2

- enable condition variable support in gthread
- add provisions to allow emergency exception pool size to be configured

6 years agoMerge branch 'feature/bot' into 'master'
Ivan Grokhotkov [Tue, 21 Nov 2017 10:43:56 +0000 (18:43 +0800)]
Merge branch 'feature/bot' into 'master'

CI: support customize test with @bot

See merge request !1502

6 years agocxx_exceptions: Add missing stubs for cxx exceptions with exceptions
Amey Inamdar [Tue, 21 Nov 2017 07:11:49 +0000 (12:41 +0530)]
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>
6 years agoMerge branch 'bugfix/rtc_apll_disable' into 'master'
Ivan Grokhotkov [Tue, 21 Nov 2017 04:13:07 +0000 (12:13 +0800)]
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

6 years agoMerge branch 'bugfix/ut_startup_time' into 'master'
Ivan Grokhotkov [Tue, 21 Nov 2017 04:12:46 +0000 (12:12 +0800)]
Merge branch 'bugfix/ut_startup_time' into 'master'

By default, don't print test menu in unit-test-app

See merge request !1565

6 years agoota example: Send a valid HTTP/1.0 request
Angus Gratton [Mon, 20 Nov 2017 06:21:50 +0000 (17:21 +1100)]
ota example: Send a valid HTTP/1.0 request

Was sending an invalid HTTP/1.1 request which many web servers rejected.

Thanks @chegawara for pointing this out on IRC.

Ref:
https://github.com/espressif/esp-idf/issues/231#issuecomment-300287523

6 years agoMerge branch 'bugfix/update_BOD_voltages' into 'master'
Angus Gratton [Mon, 20 Nov 2017 21:37:55 +0000 (05:37 +0800)]
Merge branch 'bugfix/update_BOD_voltages' into 'master'

esp32/Update brownout voltages

See merge request !1520

6 years agocomponent/bt: Correct the SP_BLE_PWR_TYPE_CONN_HDL0-9 comment in the bt.h file to...
Yulong [Mon, 20 Nov 2017 13:05:35 +0000 (08:05 -0500)]
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

6 years agounit-test-app: reduce startup delay, clean up
Ivan Grokhotkov [Thu, 9 Nov 2017 09:26:43 +0000 (17:26 +0800)]
unit-test-app: reduce startup delay, clean up

6 years agotest: change initial condition of unit test:
He Yin Ling [Mon, 20 Nov 2017 05:32:01 +0000 (13:32 +0800)]
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.

6 years agounit-test-app: don't print the list of tests by default
Ivan Grokhotkov [Thu, 9 Nov 2017 06:45:08 +0000 (14:45 +0800)]
unit-test-app: don't print the list of tests by default

This reduces unit-test-app startup time when there are a lot of tests
included, speeding up unit tests in CI.

6 years agoMerge branch 'feature/openssl_cn_hostname_verification' into 'master'
Ivan Grokhotkov [Mon, 20 Nov 2017 07:59:15 +0000 (15:59 +0800)]
Merge branch 'feature/openssl_cn_hostname_verification' into 'master'

openssl: Add CN hostname verification

See merge request !1554

6 years agoMerge branch 'bugfix/pthread_test_mem_leaks' into 'master'
Ivan Grokhotkov [Mon, 20 Nov 2017 07:58:53 +0000 (15:58 +0800)]
Merge branch 'bugfix/pthread_test_mem_leaks' into 'master'

pthread: Fixes memory leaks and stack overflow in tests

See merge request !1563

6 years agoMerge branch 'bugfix/minor_fixes_github' into 'master'
Ivan Grokhotkov [Mon, 20 Nov 2017 07:58:34 +0000 (15:58 +0800)]
Merge branch 'bugfix/minor_fixes_github' into 'master'

Minor fixes from github

See merge request !1555

6 years agosoc/rtc: don't power down BIAS_I2C along with APLL if other PLL is used
Ivan Grokhotkov [Mon, 20 Nov 2017 07:27:16 +0000 (15:27 +0800)]
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.

6 years agoIn STA mode, tcp_send cannot catch err after disconnect station
zhangyanjiao [Wed, 15 Nov 2017 09:52:34 +0000 (17:52 +0800)]
In STA mode, tcp_send cannot catch err after disconnect station

6 years agomonitor: Fix Windows 10 crash since Fall Creators Update
Angus Gratton [Mon, 20 Nov 2017 06:41:45 +0000 (17:41 +1100)]
monitor: Fix Windows 10 crash since Fall Creators Update

Closes https://github.com/espressif/esp-idf/issues/1136

6 years agoopenssl wrapper: introduce X509_VERIFY_PARAM_set/clear_hostflags
Andy Green [Sun, 10 Sep 2017 00:05:09 +0000 (08:05 +0800)]
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

6 years agoMerge branch 'feature/spi_flash_lock_recursive' into 'master'
Angus Gratton [Mon, 20 Nov 2017 05:24:41 +0000 (13:24 +0800)]
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

6 years agoopenssl wrapper: introduce X509_VERIFY_PARAM_set1_host
Andy Green [Sun, 10 Sep 2017 00:01:38 +0000 (08:01 +0800)]
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

6 years agoopenssl wrapper: introduce SSL_get0_param
Andy Green [Sun, 10 Sep 2017 00:00:27 +0000 (08:00 +0800)]
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

6 years agodoc: Unify the two sections about the "dialout" group on Linux
Angus Gratton [Mon, 20 Nov 2017 05:10:38 +0000 (16:10 +1100)]
doc: Unify the two sections about the "dialout" group on Linux

An addition to https://github.com/espressif/esp-idf/pull/1158

6 years agoudp_perf/tcp_perf examples: Erase NVS if no more free pages
Angus Gratton [Mon, 20 Nov 2017 05:07:52 +0000 (16:07 +1100)]
udp_perf/tcp_perf examples: Erase NVS if no more free pages

Follows same pattern as other examples.

Amendment to https://github.com/espressif/esp-idf/pull/1279

6 years agofixed broken udp_perf example by adding nvs_flash
petermccloud [Thu, 16 Nov 2017 03:52:55 +0000 (19:52 -0800)]
fixed broken udp_perf example by adding nvs_flash

Merges https://github.com/espressif/esp-idf/pull/1279

6 years agofixed broken tcp_perf example by adding nvs_flash
petermccloud [Thu, 16 Nov 2017 03:44:25 +0000 (19:44 -0800)]
fixed broken tcp_perf example by adding nvs_flash

6 years agospi: Add ESP_ERR_NO_MEM to spi_device_queue_trans() documentation
Angus Gratton [Thu, 16 Nov 2017 23:52:21 +0000 (10:52 +1100)]
spi: Add ESP_ERR_NO_MEM to spi_device_queue_trans() documentation

Ref https://github.com/espressif/esp-idf/pull/1243#issuecomment-343103414

6 years agospi_flash: Expose an accessor the current SPI flash guard functions
Angus Gratton [Fri, 17 Nov 2017 04:00:51 +0000 (15:00 +1100)]
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.

6 years agospi_flash: Make spi_flash op_lock/op_unlock recursive
Angus Gratton [Fri, 17 Nov 2017 04:00:16 +0000 (15:00 +1100)]
spi_flash: Make spi_flash op_lock/op_unlock recursive

Allows chaining of multiple flash operations as an atomic operation.

6 years agoesp32/Update brownout voltages
Darian Leung [Mon, 13 Nov 2017 10:25:11 +0000 (18:25 +0800)]
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.

6 years agoMerge branch 'feature/fatfs_r013a' into 'master'
Ivan Grokhotkov [Mon, 20 Nov 2017 02:16:39 +0000 (10:16 +0800)]
Merge branch 'feature/fatfs_r013a' into 'master'

fatfs: update to R0.13a

See merge request !1524

6 years agoMerge branch 'feature/esp32_stack_protector' into 'master'
Ivan Grokhotkov [Mon, 20 Nov 2017 02:16:15 +0000 (10:16 +0800)]
Merge branch 'feature/esp32_stack_protector' into 'master'

esp32: Adds Stack Smashing Protection Feature

See merge request !1537

6 years agoMerge branch 'bugfix/spi_master_cs' into 'master'
Ivan Grokhotkov [Mon, 20 Nov 2017 02:15:44 +0000 (10:15 +0800)]
Merge branch 'bugfix/spi_master_cs' into 'master'

fix(spi_master): fix the CS pin issue with GPIO 0.

See merge request !1536

6 years agopthread: Fixes memory leaks and stack overflow in tests
Alexey Gerenkov [Tue, 14 Nov 2017 08:43:32 +0000 (11:43 +0300)]
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

6 years agoesp32: Adds Stack Smashing Protection Feature
Alexey Gerenkov [Wed, 15 Nov 2017 08:09:54 +0000 (11:09 +0300)]
esp32: Adds Stack Smashing Protection Feature

These changes add posibility to enable GCC stack protector via menuconfig
for all source files in project.

6 years agofix(spi_master): release temporary memory when queue new trans timeout.
michael [Fri, 17 Nov 2017 03:25:44 +0000 (11:25 +0800)]
fix(spi_master): release temporary memory when queue new trans timeout.

6 years agotest(spi): internal connection test master with slave for address and command field.
michael [Sat, 30 Sep 2017 06:36:31 +0000 (14:36 +0800)]
test(spi): internal connection test master with slave for address and command field.

6 years agofix(spi_master): fix the CS pin issue with GPIO 0.
michael [Wed, 15 Nov 2017 07:31:22 +0000 (15:31 +0800)]
fix(spi_master): fix the CS pin issue with GPIO 0.

Closes #909

6 years agofix(spi_slave): add interrupt free into bus free process.
michael [Sat, 30 Sep 2017 10:26:55 +0000 (18:26 +0800)]
fix(spi_slave): add interrupt free into bus free process.

6 years agoSPI: Document TIMEOUT return values
Raphael Luba [Wed, 8 Nov 2017 12:36:37 +0000 (13:36 +0100)]
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

6 years agoUpdate spp_client_demo.c
Dominik Palo [Sun, 5 Nov 2017 11:32:54 +0000 (12:32 +0100)]
Update spp_client_demo.c

Merges https://github.com/espressif/esp-idf/pull/1229

6 years agofreertos: minor issue in documentation snippet of queue.
Krzysztof Bociurko [Sun, 29 Oct 2017 21:49:41 +0000 (22:49 +0100)]
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

6 years agodocs: Improved documentation for /dev/ttyUSB0 issues
Simon Werner [Wed, 25 Oct 2017 04:44:08 +0000 (17:44 +1300)]
docs: Improved documentation for /dev/ttyUSB0 issues

Improved documentation for /dev/ttyUSB0 issues.  This occurred in Ubuntu, but I'm sure is applies to most distributions.

Merges https://github.com/espressif/esp-idf/pull/1158

6 years agotest: collect performance for esp-timer / spinlock
He Yin Ling [Mon, 13 Nov 2017 08:58:46 +0000 (16:58 +0800)]
test: collect performance for esp-timer / spinlock

6 years agotest: collect example https_request binary size
He Yin Ling [Sat, 11 Nov 2017 07:17:00 +0000 (15:17 +0800)]
test: collect example https_request binary size

6 years agotest: check and collect performance via CI
He Yin Ling [Wed, 8 Nov 2017 04:27:57 +0000 (12:27 +0800)]
test: check and collect performance via CI

6 years agoMerge branch 'bugfix/newlib_strptime' into 'master'
Ivan Grokhotkov [Thu, 16 Nov 2017 09:40:27 +0000 (17:40 +0800)]
Merge branch 'bugfix/newlib_strptime' into 'master'

newlib: Add strptime(), qsort_r(), nanf() to libc & libc_nano

See merge request !1547

6 years agoMerge branch 'bugfix/btdm_delete_gattc_cache_write' into 'master'
Jiang Jiang Jian [Thu, 16 Nov 2017 09:39:22 +0000 (17:39 +0800)]
Merge branch 'bugfix/btdm_delete_gattc_cache_write' into 'master'

component/bt: delete gattc cache write operation

See merge request !1543

6 years agoMerge branch 'bugfix/rebind_pcb_when_ip_changed' into 'master'
Jiang Jiang Jian [Thu, 16 Nov 2017 09:28:06 +0000 (17:28 +0800)]
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

6 years agoMerge branch 'bugfix/fix_airkiss_macro_typo' into 'master'
Jiang Jiang Jian [Thu, 16 Nov 2017 09:25:45 +0000 (17:25 +0800)]
Merge branch 'bugfix/fix_airkiss_macro_typo' into 'master'

Fix an airkiss macro error

See merge request !1532

6 years agocomponent/bt: delete api bta_gattc_cache_write
island [Thu, 16 Nov 2017 08:40:18 +0000 (16:40 +0800)]
component/bt: delete api bta_gattc_cache_write

6 years agonewlib: Remove out of date libc_discard.list
Angus Gratton [Thu, 16 Nov 2017 06:43:05 +0000 (17:43 +1100)]
newlib: Remove out of date libc_discard.list

6 years agonewlib: Add strptime(), qsort_r(), nanf() to libc & libc_nano
Angus Gratton [Thu, 16 Nov 2017 06:27:37 +0000 (17:27 +1100)]
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).

6 years agoMerge branch 'bugfix/heap_region_add' into 'master'
Jiang Jiang Jian [Thu, 16 Nov 2017 05:45:10 +0000 (13:45 +0800)]
Merge branch 'bugfix/heap_region_add' into 'master'

component/heap : fix heap_region_add check bug

See merge request !1523

6 years agocomponent/bt: delete gattc cache write operation
island [Thu, 16 Nov 2017 03:18:17 +0000 (11:18 +0800)]
component/bt: delete gattc cache write operation

6 years agocomponent/heap : fix heap_region_add check bug
Tian Hao [Tue, 14 Nov 2017 03:52:12 +0000 (11:52 +0800)]
component/heap : fix heap_region_add check bug

6 years agoFix an airkiss macro error
XiaXiaotian [Wed, 15 Nov 2017 06:02:22 +0000 (14:02 +0800)]
Fix an airkiss macro error

6 years agoMerge branch 'bugfix/scan_example_cosmetic_fixes' into 'master'
Jiang Jiang Jian [Wed, 15 Nov 2017 13:19:24 +0000 (21:19 +0800)]
Merge branch 'bugfix/scan_example_cosmetic_fixes' into 'master'

Bugfix/Wi-Fi scan example cosmetic fixes

See merge request !1539

6 years agowifi_scan_example: Comments improved for readability
Piyush Shah [Wed, 15 Nov 2017 09:29:13 +0000 (14:59 +0530)]
wifi_scan_example: Comments improved for readability

Rephrased the example's description to make it easier to understand
and made other grammatical fixes.

Signed-off-by: Piyush Shah <piyush@espressif.com>
6 years agowifi_scan_example: Indentation Fixes
Piyush Shah [Wed, 15 Nov 2017 07:34:21 +0000 (13:04 +0530)]
wifi_scan_example: Indentation Fixes

- Trailing white spaces removed
- Re-formatted switch-case

Basic indentation fixes were done using tools/format.sh and switch-case
formatting was done manually (to identify different levels for "switch"
and "case")

Signed-off-by: Piyush Shah <piyush@espressif.com>
6 years agolwip: rebind UDP/TCP pcb to valid ip address when ip is changed
Liu Zhi Fu [Wed, 15 Nov 2017 08:15:24 +0000 (16:15 +0800)]
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

6 years agoComponent/bt: optimize gatt_server_service_table demo
zhiweijian [Wed, 1 Nov 2017 08:46:21 +0000 (16:46 +0800)]
Component/bt: optimize gatt_server_service_table demo

6 years agoProvided more meaningful parameter names by renaming 'bit_num' to 'duty_resolution...
krzychb [Mon, 23 Oct 2017 03:32:47 +0000 (05:32 +0200)]
Provided more meaningful parameter names by renaming 'bit_num' to 'duty_resolution' and 'div_num' to 'clock_divider'

6 years agoMerge branch 'doc/esp_wifi_types' into 'master'
Angus Gratton [Wed, 15 Nov 2017 07:03:02 +0000 (15:03 +0800)]
Merge branch 'doc/esp_wifi_types' into 'master'

docs: Add esp_wifi_types.h items to wifi API reference

See merge request !1320

6 years agoMerge branch 'bugfix/touch_pad_register_mismatch' into 'master'
Ivan Grokhotkov [Wed, 15 Nov 2017 06:52:13 +0000 (14:52 +0800)]
Merge branch 'bugfix/touch_pad_register_mismatch' into 'master'

Bugfix/touch pad register mismatch

See merge request !1469

6 years agoMerge branch 'features/http2_demo' into 'master'
Ivan Grokhotkov [Wed, 15 Nov 2017 06:51:51 +0000 (14:51 +0800)]
Merge branch 'features/http2_demo' into 'master'

HTTP2 Client Demo

See merge request !1475

6 years agoMerge branch 'bugfix/tw16355' into 'master'
Ivan Grokhotkov [Wed, 15 Nov 2017 06:51:41 +0000 (14:51 +0800)]
Merge branch 'bugfix/tw16355' into 'master'

fix(tw16355): examples/protocols/coap_client(server)

See merge request !1531

6 years agoMerge branch 'bugfix/emac_rx_process' into 'master'
Ivan Grokhotkov [Wed, 15 Nov 2017 06:51:33 +0000 (14:51 +0800)]
Merge branch 'bugfix/emac_rx_process' into 'master'

component/emac: fix process rx err

See merge request !1529

6 years agoMerge branch 'bugfix/queue_registry_test' into 'master'
Ivan Grokhotkov [Wed, 15 Nov 2017 06:51:18 +0000 (14:51 +0800)]
Merge branch 'bugfix/queue_registry_test' into 'master'

unit tests: fix queue registry test

See merge request !1528

6 years agodocs: Remove internal header esp_wifi_crypto_types.h from documentation
Angus Gratton [Wed, 27 Sep 2017 01:17:32 +0000 (11:17 +1000)]
docs: Remove internal header esp_wifi_crypto_types.h from documentation

6 years agodocs: Add introduction section for WiFi, replace boilerplate
Angus Gratton [Wed, 27 Sep 2017 01:13:20 +0000 (11:13 +1000)]
docs: Add introduction section for WiFi, replace boilerplate

6 years agodocs: Add esp_wifi_types.h descriptions
Angus Gratton [Wed, 27 Sep 2017 01:09:21 +0000 (11:09 +1000)]
docs: Add esp_wifi_types.h descriptions

6 years agoMerge branch 'bugfix/component_depends' into 'master'
Angus Gratton [Wed, 15 Nov 2017 05:53:26 +0000 (13:53 +0800)]
Merge branch 'bugfix/component_depends' into 'master'

build system: Fix COMPONENT_DEPENDS

See merge request !1530

6 years agofreertos: port: add check for portMUX address validity
Mahavir Jain [Wed, 15 Nov 2017 05:45:31 +0000 (11:15 +0530)]
freertos: port: add check for portMUX address validity

Signed-off-by: Mahavir Jain <mahavir@espressif.com>
6 years agofix(tw16355): examples/protocols/coap_client(server)
zhangjunhao [Wed, 15 Nov 2017 03:58:19 +0000 (11:58 +0800)]
fix(tw16355): examples/protocols/coap_client(server)

fix coap example can not work properly

6 years agocomponent/emac: fix process rx err
shangke [Wed, 15 Nov 2017 03:04:32 +0000 (11:04 +0800)]
component/emac: fix process rx err

6 years agoMerge branch 'bugfix/btdm_gattc_command_queue_fix' into 'master'
Jiang Jiang Jian [Wed, 15 Nov 2017 02:54:02 +0000 (10:54 +0800)]
Merge branch 'bugfix/btdm_gattc_command_queue_fix' into 'master'

Bugfix/btdm gattc command queue fix

See merge request !1317

6 years agoMerge branch 'bugfix/update_wifi_lib_for_some_fixes' into 'master'
Jiang Jiang Jian [Wed, 15 Nov 2017 02:12:39 +0000 (10:12 +0800)]
Merge branch 'bugfix/update_wifi_lib_for_some_fixes' into 'master'

esp32: update wifi lib to fix some wifi bugs

See merge request !1525

6 years agounit tests: fix queue registry test
Ivan Grokhotkov [Tue, 14 Nov 2017 12:35:16 +0000 (20:35 +0800)]
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.

6 years agoMerge branch 'bugfix/btdm_modify_logs' into 'master'
Jiang Jiang Jian [Tue, 14 Nov 2017 13:13:00 +0000 (21:13 +0800)]
Merge branch 'bugfix/btdm_modify_logs' into 'master'

component/bt: modify some log

See merge request !1485

6 years agoMerge branch 'bugfix/btdm_remove_redundant_open_evt_for_same_app' into 'master'
Jiang Jiang Jian [Tue, 14 Nov 2017 13:12:05 +0000 (21:12 +0800)]
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

6 years agoMerge branch 'bugfix/btdm_no_ind_ack_for_server_only' into 'master'
Jiang Jiang Jian [Tue, 14 Nov 2017 13:09:26 +0000 (21:09 +0800)]
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

6 years agoesp32: update wifi lib to fix some wifi bugs
Liu Zhi Fu [Tue, 14 Nov 2017 08:39:39 +0000 (16:39 +0800)]
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

6 years agoMerge branch 'bugfix/tw15564_fix_socket_close_crash' into 'master'
Jiang Jiang Jian [Tue, 14 Nov 2017 12:40:39 +0000 (20:40 +0800)]
Merge branch 'bugfix/tw15564_fix_socket_close_crash' into 'master'

Bugfix/tw15564 fix socket close crash

See merge request !1496

6 years agocomponent/bt: Change the gattc prepare write callback params.
Yulong [Tue, 14 Nov 2017 12:00:45 +0000 (07:00 -0500)]
component/bt: Change the gattc prepare write callback params.

6 years agoMerge branch 'feature/freeRTOS_make_debug_functions_configurable' into 'master'
Ivan Grokhotkov [Tue, 14 Nov 2017 11:41:50 +0000 (19:41 +0800)]
Merge branch 'feature/freeRTOS_make_debug_functions_configurable' into 'master'

FreeRTOS/make Queue Registry and Run Time Stats configurable

See merge request !1480

6 years agobugfix(touch): registers of touchpad 8 and 9 are mismatched
Wangjialin [Mon, 30 Oct 2017 06:23:51 +0000 (14:23 +0800)]
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.

6 years agocomponent/bt: remove redundant open evt while calling gattc_open twice in the same...
island [Tue, 14 Nov 2017 09:11:34 +0000 (17:11 +0800)]
component/bt: remove redundant open evt while calling gattc_open twice in the same app_id

6 years agoFreeRTOS/make Queue Registry and Run Time Stats configurable
Darian Leung [Mon, 30 Oct 2017 08:03:56 +0000 (16:03 +0800)]
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

6 years agofatfs: update to R0.13a
Ivan Grokhotkov [Tue, 14 Nov 2017 04:57:55 +0000 (12:57 +0800)]
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.

6 years agocomponent/bt: Added the queue event when the gattc command is full.
Yulong [Tue, 14 Nov 2017 03:44:27 +0000 (22:44 -0500)]
component/bt: Added the queue event when the gattc command is full.

6 years agocomponent/bt: fix not send indication confirm in case of server only
island [Tue, 14 Nov 2017 03:43:57 +0000 (11:43 +0800)]
component/bt: fix not send indication confirm in case of server only

6 years agoMerge branch 'feature/spi_variable_len' into 'master'
Ivan Grokhotkov [Mon, 13 Nov 2017 16:08:50 +0000 (00:08 +0800)]
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

6 years agoMerge branch 'feature/emac_apll' into 'master'
Ivan Grokhotkov [Mon, 13 Nov 2017 16:07:35 +0000 (00:07 +0800)]
Merge branch 'feature/emac_apll' into 'master'

feat(emac): add support for emac to use internal (APLL) clock outputs.

See merge request !1518