]> granicus.if.org Git - esp-idf/log
esp-idf
6 years agoMerge branch 'bugfix/console_cmd_register' into 'master'
Ivan Grokhotkov [Thu, 24 Aug 2017 06:35:29 +0000 (14:35 +0800)]
Merge branch 'bugfix/console_cmd_register' into 'master'

console: initialize buf_size before calling open_memstream

See merge request !1138

6 years agoMerge branch 'bugfix/dport_stall_in_esp32_component' into 'master'
Ivan Grokhotkov [Thu, 24 Aug 2017 06:35:16 +0000 (14:35 +0800)]
Merge branch 'bugfix/dport_stall_in_esp32_component' into 'master'

Also do dport stalling in esp32 component

See merge request !1141

6 years agoMerge branch 'bugfix/menuconfig_phy' into 'master'
Ivan Grokhotkov [Thu, 24 Aug 2017 06:34:56 +0000 (14:34 +0800)]
Merge branch 'bugfix/menuconfig_phy' into 'master'

component/esp32 : move Phy out of Wifi section

See merge request !1145

6 years agoMerge branch 'bugfix/the_esp-wrover-kit_identity' into 'master'
Jeroen Domburg [Thu, 24 Aug 2017 06:33:34 +0000 (14:33 +0800)]
Merge branch 'bugfix/the_esp-wrover-kit_identity' into 'master'

ESP-WROVER-KIT now integrates the ESP32-WROVER module by default.

See merge request !1096

6 years agoMerge branch 'feature/app_trace_to_host_example' into 'master'
Ivan Grokhotkov [Thu, 24 Aug 2017 06:30:28 +0000 (14:30 +0800)]
Merge branch 'feature/app_trace_to_host_example' into 'master'

Example on using application trace and logging to host

See merge request !1082

6 years agoMerge branch 'feature/docs_esp32-wrover_info' into 'master'
Ivan Grokhotkov [Thu, 24 Aug 2017 06:30:06 +0000 (14:30 +0800)]
Merge branch 'feature/docs_esp32-wrover_info' into 'master'

docs: Included information about ESP32-WROVER module

See merge request !1107

6 years agoMerge branch 'bugfix/tw14823_lwip_assert_err' into 'master'
Jiang Jiang Jian [Thu, 24 Aug 2017 03:29:32 +0000 (11:29 +0800)]
Merge branch 'bugfix/tw14823_lwip_assert_err' into 'master'

assert when close a connecting socket

See merge request !1136

6 years agoMerge branch 'bugfix/ampdu_default_wifi_settings' into 'master'
Jiang Jiang Jian [Thu, 24 Aug 2017 03:02:54 +0000 (11:02 +0800)]
Merge branch 'bugfix/ampdu_default_wifi_settings' into 'master'

wifi: Fix compilation error in WIFI_INIT_CONFIG_DEFAULT() if AMPDU disabled

See merge request !1139

6 years agoMerge branch 'bugfix/btdm_config_local_privacy_func' into 'master'
Jiang Jiang Jian [Thu, 24 Aug 2017 02:48:57 +0000 (10:48 +0800)]
Merge branch 'bugfix/btdm_config_local_privacy_func' into 'master'

component/bt: bugfix config local privacy

See merge request !1137

6 years agoMerge branch 'bugfix/btdm_fix_set_rand_addr_func' into 'master'
Jiang Jiang Jian [Thu, 24 Aug 2017 02:48:20 +0000 (10:48 +0800)]
Merge branch 'bugfix/btdm_fix_set_rand_addr_func' into 'master'

component/bt: fixbug_set_rand_addr()

See merge request !1123

6 years agoMerge branch 'bugfix/touch_pad_driver' into 'master'
Wang Jia Lin [Wed, 23 Aug 2017 11:12:39 +0000 (19:12 +0800)]
Merge branch 'bugfix/touch_pad_driver' into 'master'

driver(touch): fix bug and add more features

See merge request !1056

6 years agoMerge branch 'feature/btdm_remove_gki' into 'master'
Ivan Grokhotkov [Wed, 23 Aug 2017 10:01:54 +0000 (18:01 +0800)]
Merge branch 'feature/btdm_remove_gki' into 'master'

component/bt : remove all GKI reference

See merge request !1122

6 years agocomponent/esp32 : move Phy outof Wifi section
Tian Hao [Wed, 23 Aug 2017 09:51:31 +0000 (17:51 +0800)]
component/esp32 : move Phy outof Wifi section

1. move Phy out of Wifi section
2. lowercase the Ethernet and Phy from 2nd letter.

6 years agoComponent/bt: bugifx config local privacy
zhiweijian [Tue, 22 Aug 2017 12:26:21 +0000 (20:26 +0800)]
Component/bt: bugifx config local privacy

6 years agoAlso do dport stalling in esp32 component
Jeroen Domburg [Wed, 23 Aug 2017 08:43:57 +0000 (16:43 +0800)]
Also do dport stalling in esp32 component

6 years agocomponent/bt : remove all GKI reference
Tian Hao [Thu, 17 Aug 2017 13:13:45 +0000 (21:13 +0800)]
component/bt : remove all GKI reference

1. remove GKI(not use osi_free_and_reset)
2. modify mutex/semaphore to individual directory
3. set osi_malloc as malloc(previously use calloc)
4. change osi allocator debug osi_free
5. fix rebase of remove GKI

6 years agowifi: Fix compilation error in WIFI_INIT_CONFIG_DEFAULT() if AMPDU disabled
Angus Gratton [Mon, 21 Aug 2017 04:41:31 +0000 (14:41 +1000)]
wifi: Fix compilation error in WIFI_INIT_CONFIG_DEFAULT() if AMPDU disabled

6 years agodocs: Included information about ESP32-WROVER module
krzychb [Fri, 11 Aug 2017 20:59:34 +0000 (22:59 +0200)]
docs: Included information about ESP32-WROVER module

6 years agoconsole: initialize buf_size before calling open_memstream
Ivan Grokhotkov [Tue, 22 Aug 2017 17:07:03 +0000 (01:07 +0800)]
console: initialize buf_size before calling open_memstream

POSIX open_memstream documentation [1] does not mention that it may use
the  value supplied in buf_size before the call.
newlib implementation of open_memstream does use it as a hint of the
buffer size [2]. To avoid using potential garbage in this variable,
newlib caps the size to 64kB (!).

If the allocation of this initial buffer fails, NULL file pointer is
returned. Previous code did not check returned file pointer and crashed
when it was used.

Initialize size to zero (in which case newlib allocates a 64 byte
buffer), and check the returned file pointer.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/open_memstream.html
[2] https://github.com/espressif/newlib-esp32/blob/23c0f21/newlib/libc/stdio/open_memstream.c#L26-L29
    https://github.com/espressif/newlib-esp32/blob/23c0f21/newlib/libc/stdio/open_memstream.c#L324-L336

6 years agoMerge branch 'bugfix/spi_dma_align' into 'master'
Ivan Grokhotkov [Tue, 22 Aug 2017 15:39:53 +0000 (23:39 +0800)]
Merge branch 'bugfix/spi_dma_align' into 'master'

fix(spi_dma): fix the receive error with RX DMA start with non-aligned address.

See merge request !1112

6 years agodriver(touch): fix bug and add more features
Wangjialin [Tue, 18 Jul 2017 11:57:28 +0000 (19:57 +0800)]
driver(touch): fix bug and add more features

1. add sens_struct.h
2. add definition of RTCCNTL and RTCIO
3. modify touch pad examples
4. update example code.
5. add comments add option in menuconfig
6. fix issue that pad index 8 and 9 are mismatched
7. add touch_pad_read_filtered() api to get value filtered by iir filter
8. modify touch pad isr func
9. Make the items in perihperal.ld in the sequence of address
10. delete Kconfig for touch pad
11. add touchpad filter APIs to adjust the filter
12. add touch_pad into index.rst
13. add touch_pad in Doxyfile
14. add touch_pad.rst

6 years agoassert when close a connecting socket
zhangyanjiao [Mon, 21 Aug 2017 08:32:50 +0000 (16:32 +0800)]
assert when close a connecting socket

6 years agoMerge branch 'bugfix/ci_fix_getting_sources' into 'master'
Ivan Grokhotkov [Tue, 22 Aug 2017 12:03:12 +0000 (20:03 +0800)]
Merge branch 'bugfix/ci_fix_getting_sources' into 'master'

CI: Fix the spell for more reliable getting the sources

See merge request !1127

6 years agoMerge branch 'feature/sdmmc_highspeed_mode' into 'master'
Ivan Grokhotkov [Tue, 22 Aug 2017 11:31:10 +0000 (19:31 +0800)]
Merge branch 'feature/sdmmc_highspeed_mode' into 'master'

SDMMC: add support for high-speed mode

See merge request !1108

6 years agoMerge branch 'feature/esptool-v2.1' into 'master'
Ivan Grokhotkov [Tue, 22 Aug 2017 11:30:48 +0000 (19:30 +0800)]
Merge branch 'feature/esptool-v2.1' into 'master'

esptool: Update to v2.1 final release

See merge request !1131

6 years agoMerge branch 'feature/kconfig_options_doc' into 'master'
Ivan Grokhotkov [Tue, 22 Aug 2017 11:30:31 +0000 (19:30 +0800)]
Merge branch 'feature/kconfig_options_doc' into 'master'

Generate documentation for Kconfig options

See merge request !1128

6 years agoMerge branch 'bugfix/btdm_optimize_gatt_server_demo' into 'master'
Jiang Jiang Jian [Tue, 22 Aug 2017 08:30:08 +0000 (16:30 +0800)]
Merge branch 'bugfix/btdm_optimize_gatt_server_demo' into 'master'

component/bt: optimize gatt server demo

See merge request !1040

6 years agoMerge branch 'bugfix/btdm_modify_gatt_client_demo' into 'master'
Jiang Jiang Jian [Tue, 22 Aug 2017 08:29:48 +0000 (16:29 +0800)]
Merge branch 'bugfix/btdm_modify_gatt_client_demo' into 'master'

component/bt: optimize gatt_client demo

See merge request !1039

6 years agodocs: wifi: use list instead of nested table
Ivan Grokhotkov [Tue, 22 Aug 2017 06:20:19 +0000 (14:20 +0800)]
docs: wifi: use list instead of nested table

Latex backend does not support nested tables, which caused documentation
build to fail on readthedocs.

6 years agombedtls: remove duplicate Kconfig options
Ivan Grokhotkov [Mon, 21 Aug 2017 07:52:00 +0000 (15:52 +0800)]
mbedtls: remove duplicate Kconfig options

6 years agodocs: link to Kconfig options documentation
Ivan Grokhotkov [Sun, 20 Aug 2017 16:23:50 +0000 (00:23 +0800)]
docs: link to Kconfig options documentation

6 years agodocs: generate documentation for Kconfig options
Ivan Grokhotkov [Sun, 20 Aug 2017 16:09:12 +0000 (00:09 +0800)]
docs: generate documentation for Kconfig options

This adds a simple script which parses Kconfig files using Kconfiglib
and emits ReST document with the list of all options. For each option
a link target is generated, to make it possible to link to any Kconfig
option from the rest of the documentation.
Since Kconfiglib is not on PyPI, the latest version (45f87b9d) is
bundled into the docs directory.

6 years agoComponent/bt: optimize gatt server demo
zhiweijian [Thu, 20 Jul 2017 13:33:03 +0000 (21:33 +0800)]
Component/bt: optimize gatt server demo

6 years agoComponent/bt: optimize gatt_client demo
zhiweijian [Fri, 21 Jul 2017 03:03:20 +0000 (11:03 +0800)]
Component/bt: optimize gatt_client demo

6 years agoUpdate several Kconfig files to make help texts compatible with ReST
Ivan Grokhotkov [Sun, 20 Aug 2017 16:01:03 +0000 (00:01 +0800)]
Update several Kconfig files to make help texts compatible with ReST

6 years agoComponent/bt: fixbug_set_rand_addr()
zhiweijian [Sun, 20 Aug 2017 09:52:57 +0000 (17:52 +0800)]
Component/bt: fixbug_set_rand_addr()
- The two most significant bits of the address shall be equal to 1
- All bits of the random part of the address shall not be equal to 1
- All bits of the random part of the address shall not be equal to 0

6 years agoMerge branch 'bugfix/memory_leak_when_run_wpa2' into 'master'
Jiang Jiang Jian [Tue, 22 Aug 2017 06:18:17 +0000 (14:18 +0800)]
Merge branch 'bugfix/memory_leak_when_run_wpa2' into 'master'

wpa2: fix memory leak when run wpa2

See merge request !1126

6 years agoMerge branch 'bugfix/btdm_security_section_remove_bug' into 'master'
Jiang Jiang Jian [Tue, 22 Aug 2017 06:13:29 +0000 (14:13 +0800)]
Merge branch 'bugfix/btdm_security_section_remove_bug' into 'master'

component/bt: Change the remove section error &&  SMP_INCLUDE marco

See merge request !1133

6 years agoMerge branch 'feature/btdm_add_multiple_connections_demo' into 'master'
Jiang Jiang Jian [Tue, 22 Aug 2017 06:12:33 +0000 (14:12 +0800)]
Merge branch 'feature/btdm_add_multiple_connections_demo' into 'master'

component/bt : add gattc multiple connect demo

See merge request !1027

6 years agoMerge branch 'feature/btdm_add_gatt_security_client_demo' into 'master'
Jiang Jiang Jian [Tue, 22 Aug 2017 03:59:42 +0000 (11:59 +0800)]
Merge branch 'feature/btdm_add_gatt_security_client_demo' into 'master'

component/bt: add gatt_security_client demo

See merge request !1049

6 years agoMerge branch 'bugfix/btdm_add_check_value_length_for_gatts_get_attribute_value' into...
Jiang Jiang Jian [Tue, 22 Aug 2017 03:37:56 +0000 (11:37 +0800)]
Merge branch 'bugfix/btdm_add_check_value_length_for_gatts_get_attribute_value' into 'master'

component/bt: add check value and length for esp_ble_gatts_get_attr_value(uint16…

See merge request !1110

6 years agocomponent/bt: Change the remove section error.
Yulong [Tue, 22 Aug 2017 03:28:45 +0000 (23:28 -0400)]
component/bt: Change the remove section error.

6 years agoWPA2:Fix the issue memory leak when run wifi enterprise
Deng Xin [Mon, 21 Aug 2017 02:52:02 +0000 (10:52 +0800)]
WPA2:Fix the issue memory leak when run wifi enterprise

fix the issue memory leak when run wpa2

6 years agoesptool: Update to v2.1 final release
Angus Gratton [Tue, 22 Aug 2017 01:49:07 +0000 (11:49 +1000)]
esptool: Update to v2.1 final release

Replaces v2.1-beta1 release.

Compared to beta, fixes issues with espefuse.py not prompting correctly on Windows (TW11139).

6 years agoMerge branch 'feature/wifi_and_ip_event_process_refactor' into 'master'
Jiang Jiang Jian [Mon, 21 Aug 2017 11:49:30 +0000 (19:49 +0800)]
Merge branch 'feature/wifi_and_ip_event_process_refactor' into 'master'

Feature/wifi and ip event process refactor

See merge request !986

6 years agoMerge branch 'bugfix/btdm_smp_invalid_key_size' into 'master'
Jiang Jiang Jian [Mon, 21 Aug 2017 11:38:15 +0000 (19:38 +0800)]
Merge branch 'bugfix/btdm_smp_invalid_key_size' into 'master'

component/bt: Change the SMP key size analyzing conditions.

See merge request !958

6 years agoMerge branch 'bugfix/btdm_cherry_pick_api_manage_pair_info_#13119' into 'master'
Jiang Jiang Jian [Mon, 21 Aug 2017 11:37:15 +0000 (19:37 +0800)]
Merge branch 'bugfix/btdm_cherry_pick_api_manage_pair_info_#13119' into 'master'

component/bt: cherry-pick the bugfix/btdm_api_manage_pair_info_#13119 to this branch.

See merge request !1095

6 years agocomponent/bt:squash the 2 commits.
Yulong [Wed, 9 Aug 2017 08:46:49 +0000 (04:46 -0400)]
component/bt:squash the 2 commits.

component/bt: cherry-pick the bugfix/btdm_api_manage_pair_info_#13119 to this branch.

component/bt: Change the ble gap API code format & added the status judgment in the btc_storage_load_bonded_ble_devices function.

6 years agocomponent/bt: Change the debug info.
Yulong [Fri, 18 Aug 2017 07:48:57 +0000 (03:48 -0400)]
component/bt: Change the debug info.

6 years agocomponent/bt: Change the btm ble security key size range.
Yulong [Tue, 8 Aug 2017 08:51:18 +0000 (04:51 -0400)]
component/bt: Change the btm ble security key size range.

6 years agocomponent/bt: Change the SMP key size analyzing conditions.
Yulong [Thu, 6 Jul 2017 03:02:54 +0000 (23:02 -0400)]
component/bt: Change the SMP key size analyzing conditions.

6 years agoMerge branch 'feature/console' into 'master'
Ivan Grokhotkov [Mon, 21 Aug 2017 09:33:31 +0000 (17:33 +0800)]
Merge branch 'feature/console' into 'master'

Console component and example

See merge request !1114

6 years agonewlib: implement usleep
Ivan Grokhotkov [Wed, 16 Aug 2017 06:58:30 +0000 (14:58 +0800)]
newlib: implement usleep

6 years agoconsole: add support for terminal probing and dumb terminal mode
Ivan Grokhotkov [Wed, 16 Aug 2017 06:59:28 +0000 (14:59 +0800)]
console: add support for terminal probing and dumb terminal mode

6 years agovfs: implement fcntl via VFS interface
Ivan Grokhotkov [Wed, 16 Aug 2017 06:58:06 +0000 (14:58 +0800)]
vfs: implement fcntl via VFS interface

6 years agoidf_monitor: send CR when ENTER is pressed
Ivan Grokhotkov [Tue, 15 Aug 2017 08:47:55 +0000 (16:47 +0800)]
idf_monitor: send CR when ENTER is pressed

Other terminal emulators (screen, minicom) default to sending CR when
ENTER is pressed on the keyboard. Make behavior of idf_monitor
consistent with them.

6 years agoidf_monitor: use cancellation and Console.getkey from pyserial 3.3.0+
Ivan Grokhotkov [Tue, 15 Aug 2017 08:46:22 +0000 (16:46 +0800)]
idf_monitor: use cancellation and Console.getkey from pyserial 3.3.0+

Between 3.1.0 and 3.3.0, pyserial had thread cancellation implemented
using a select, which blocked on the stdin and an auxiliary pipe. When
thread had to be cancelled, a byte would be sent into the pipe,
unblocking stdin.

Unfortunately, this method suffers from a problem with using select on
a StreamReader (which represents the decoder wrapped around stdin).
In some cases, when the TTY sends an escape sequence in response to
an escape sequence received from serial, this escape sequence will not
be read from stdin until some key is pressed.

In https://github.com/pyserial/pyserial/commit/cab3dab, this method
was replaced with an TIOCSTI ioctl. This change makes sure we use the
new cancellation method even if the script is running with older
pyserial.

6 years agovfs: support for blocking reads, more newline conversion options
Ivan Grokhotkov [Tue, 15 Aug 2017 08:23:23 +0000 (16:23 +0800)]
vfs: support for blocking reads, more newline conversion options

Previously VFS driver for UART could only use simple non-blocking
functions to read from and write to the UART. UART driver provides more
complex blocking and interrupt-driven functions, which can be used
instead.
This commit adds optional support for using UART driver's functions.

Also added is a more flexible mechanism for configuring newline
conversion rules on input and output.

This commit also fixes a bug that all UARTs shared one static variable
used as a character buffer in newline conversion code. This variable is
changed to be per-UART.

6 years agoconsole/argtable3: expose arg_print_formatted function
Ivan Grokhotkov [Tue, 15 Aug 2017 16:21:09 +0000 (00:21 +0800)]
console/argtable3: expose arg_print_formatted function

6 years agoconsole/argtable3: fix usage of char as argument to ctype functions
Ivan Grokhotkov [Tue, 15 Aug 2017 08:22:37 +0000 (16:22 +0800)]
console/argtable3: fix usage of char as argument to ctype functions

6 years agoadd console component and example
Ivan Grokhotkov [Tue, 15 Aug 2017 08:11:19 +0000 (16:11 +0800)]
add console component and example

6 years agoMerge branch 'bugfix/exection_not_init_bt_use_smp_api_#13691' into 'master'
Jiang Jiang Jian [Mon, 21 Aug 2017 06:51:17 +0000 (14:51 +0800)]
Merge branch 'bugfix/exection_not_init_bt_use_smp_api_#13691' into 'master'

component/bt: Added the bluedorid status checkout for the BLE security API.

See merge request !1045

6 years agotcpip_adapter/lwip: optimize wifi/ip event
Liu Zhi Fu [Wed, 19 Jul 2017 01:15:11 +0000 (09:15 +0800)]
tcpip_adapter/lwip: optimize wifi/ip event

6 years agoCI: Fix the spell for more reliable getting the sources
Anton Maklakov [Mon, 21 Aug 2017 03:51:15 +0000 (11:51 +0800)]
CI: Fix the spell for more reliable getting the sources

6 years agoMerge branch 'feature/mbedtls_cipher_config' into 'master'
Angus Gratton [Sun, 20 Aug 2017 23:19:24 +0000 (07:19 +0800)]
Merge branch 'feature/mbedtls_cipher_config' into 'master'

mbedtls: Add compile-time configuration, better default configuration

See merge request !1118

6 years agoComponent/bt: add check value and length for esp_ble_gatts_get_attr_value(uint16_t...
zhiweijian [Mon, 14 Aug 2017 09:39:11 +0000 (17:39 +0800)]
Component/bt: add check value and length for esp_ble_gatts_get_attr_value(uint16_t attr_handle, uint16_t *length, const uint8_t **value);

6 years agoESP-WROVER-KIT now integrates the ESP32-WROVER module by default. But it is still...
krzychb [Wed, 9 Aug 2017 19:06:12 +0000 (21:06 +0200)]
ESP-WROVER-KIT now integrates the ESP32-WROVER module by default. But it is still compatible with both ESP-WROOM-32 and ESP32-WROVER. The latest baseboard is still V3. The original 'ESP-WROVER-KIT' that integrates ESP-WROOM-32 is unlikely to be produced any longer, while the original 'ESP-WROVER-KIT-RVB' is renamed as “ESP-WROVER-KIT” and in mass production.

6 years agoExample on use application trace logging to host
krzychb [Mon, 7 Aug 2017 04:23:58 +0000 (06:23 +0200)]
Example on use application trace logging to host

6 years agoMerge branch 'feature/remove_ethernet_config_option' into 'master'
Ivan Grokhotkov [Fri, 18 Aug 2017 10:45:49 +0000 (18:45 +0800)]
Merge branch 'feature/remove_ethernet_config_option' into 'master'

ethernet: remove CONFIG_ETHERNET

See merge request !1116

6 years agombedtls: Add more config options to disable Elliptic Curve features
Angus Gratton [Fri, 18 Aug 2017 07:44:33 +0000 (17:44 +1000)]
mbedtls: Add more config options to disable Elliptic Curve features

Can save up to an additional 20KB when not using EC in TLS, or disable
unwanted features as needed.

6 years agohttps example: Use correct pattern around mbedtls_ssl_write()
Angus Gratton [Fri, 18 Aug 2017 04:27:36 +0000 (14:27 +1000)]
https example: Use correct pattern around mbedtls_ssl_write()

mbedtls_ssl_write() will always write the request here in one go,
but it's good to have correct patterns in examples.

6 years agohttps example: Clean up output, print cipher suite & request count
Angus Gratton [Thu, 17 Aug 2017 07:25:39 +0000 (17:25 +1000)]
https example: Clean up output, print cipher suite & request count

6 years agombedtls: Expose compile-time config, disable some things by default
Angus Gratton [Thu, 17 Aug 2017 07:15:04 +0000 (17:15 +1000)]
mbedtls: Expose compile-time config, disable some things by default

* Disables 3DES, Camellia, Blowfish, RC4, RIPEMD160, SSLv3, TLS-PSK modes, DTLS by default
* Saves about 40KB from the default TLS client code size
* Defaults no longer get "Bad" howsmyssl.com rating (no more vulnerable 3DES)
  (ping https://github.com/espressif/arduino-esp32/issues/575 )
* Allows up to another 20-30KB code size to be trimmed without security
  implications if using DER formatted certificates, RSA ciphersuites only,
  etc.
* Can save up to another 8KB by setting the TLS Role to Server or Client only.

6 years agoMerge branch 'example/lcd_type' into 'master'
Jeroen Domburg [Fri, 18 Aug 2017 06:21:12 +0000 (14:21 +0800)]
Merge branch 'example/lcd_type' into 'master'

example(spi_master): add menuconfig options allowing users to choose which type of LCD is used.

See merge request !1025

6 years agowifi: refactor code to match ethernet's init function structure
Kedar Sovani [Thu, 17 Aug 2017 04:11:34 +0000 (09:41 +0530)]
wifi: refactor code to match ethernet's init function structure

6 years agoethernet: remove CONFIG_ETHERNET
Kedar Sovani [Wed, 16 Aug 2017 06:33:37 +0000 (12:03 +0530)]
ethernet: remove CONFIG_ETHERNET

1. Hello World application shows no footprint difference before and
after this change
2. examples/ethernet/ethernet application compiles properly (can't
test with my board)

6 years agoexample(spi_master): add menuconfig options allowing users to choose which type of...
michael [Tue, 18 Jul 2017 09:02:07 +0000 (17:02 +0800)]
example(spi_master): add menuconfig options allowing users to choose which type of LCD is used.

also some modification in the example file, replacing "ili_*" to "lcd_*".

6 years agofix(spi_dma): fix the receive error with RX DMA start with non-aligned address.
michael [Tue, 15 Aug 2017 04:46:21 +0000 (12:46 +0800)]
fix(spi_dma): fix the receive error with RX DMA start with non-aligned address.

6 years agoMerge branch 'bugfix/docs_app_trace_lib' into 'master'
Ivan Grokhotkov [Wed, 16 Aug 2017 11:12:51 +0000 (19:12 +0800)]
Merge branch 'bugfix/docs_app_trace_lib' into 'master'

Update of "Application Level Tracing library" documentation to reflect "esp32" target

See merge request !1081

6 years agoMerge branch 'feature/set_static_ip_to_zero' into 'master'
Ivan Grokhotkov [Wed, 16 Aug 2017 11:12:01 +0000 (19:12 +0800)]
Merge branch 'feature/set_static_ip_to_zero' into 'master'

Zero static IP address can also be set

See merge request !1101

6 years agoMerge branch 'bugfix/docs_datasheet_link_fix' into 'master'
Ivan Grokhotkov [Wed, 16 Aug 2017 11:11:43 +0000 (19:11 +0800)]
Merge branch 'bugfix/docs_datasheet_link_fix' into 'master'

Fix the wrong link of the datasheet

See merge request !1100

6 years agosdmmc: add more comments about card initialization steps
Ivan Grokhotkov [Wed, 12 Jul 2017 13:17:51 +0000 (21:17 +0800)]
sdmmc: add more comments about card initialization steps

6 years agosdmmc: add support for high speed (HS) mode
Ivan Grokhotkov [Wed, 12 Jul 2017 13:17:28 +0000 (21:17 +0800)]
sdmmc: add support for high speed (HS) mode

By default SD cards are initialized in default speed (DS) mode. Enabling
HS mode requires SWITCH_FUNC command to be sent twice: first time to
query if the card supports switching to HS mode, second time to perform
the switch.

This change implements SWITCH_FUNC command and adds the procedure to
switch to HS mode.

6 years agosdmmc: implement deselecting a card
Ivan Grokhotkov [Wed, 12 Jul 2017 13:11:47 +0000 (21:11 +0800)]
sdmmc: implement deselecting a card

In some cases the card needs to be returned to standby mode from data
transfer mode. This is done using CMD7 command, which does not receive
any response in this case.

6 years agosdmmc: introduce is_app_cmd flag, check it along with opcode
Ivan Grokhotkov [Wed, 12 Jul 2017 13:04:54 +0000 (21:04 +0800)]
sdmmc: introduce is_app_cmd flag, check it along with opcode

‘make_hw_cmd’ function checks opcodes in a few cases. Comparing opcode
does not tell the whole story, because for some SD commands there is are
APP commands with the same opcodes. This change introduces a flag which
indicates whether the next command is going to be an APP command.
The check for APP_SET_BUS_WIDTH command is updated to use this flag.
This fixes a bug with an unexpected STOP_TRANSMISSION command sent after
SWITCH_FUNC command, which has opcode 6, same as APP_SET_BUS_WIDTH.

6 years agosdmmc: don’t flip word order in MMC_RSP_BITS
Ivan Grokhotkov [Wed, 12 Jul 2017 11:44:17 +0000 (19:44 +0800)]
sdmmc: don’t flip word order in MMC_RSP_BITS

MMC_RSP_BITS helper function had a hack that it flipped word order in
the response, assuming that response size is 4 words. This hack does not
work for responses which are not 4 words long (such as the SWITCH_FUNC
response, which is 64 words long).

This change removes the hack and the matching word order reversal code
in sdmmc driver.

6 years agoMerge branch 'bugfix/spi_dma' into 'master'
Ivan Grokhotkov [Wed, 16 Aug 2017 10:55:25 +0000 (18:55 +0800)]
Merge branch 'bugfix/spi_dma' into 'master'

bugfix(spi_master): fix several issues when using RX DMA

See merge request !1006

6 years agoMerge branch 'feature/remove_wifi_config_option' into 'master'
Ivan Grokhotkov [Wed, 16 Aug 2017 10:43:56 +0000 (18:43 +0800)]
Merge branch 'feature/remove_wifi_config_option' into 'master'

Remove wifi config option

Remove Wi-Fi enable/disable option from Kconfig. This can be detected by the presence of esp_wifi_init() function in the application. Minimum footprint impact after the change.

See merge request !1098

6 years agosdkconfig: Remove rest of the references to WIFI_ENABLED
Kedar Sovani [Tue, 15 Aug 2017 09:17:53 +0000 (14:47 +0530)]
sdkconfig: Remove rest of the references to WIFI_ENABLED

6 years agokconfig: Add an option for skipping binary blobs
Kedar Sovani [Thu, 10 Aug 2017 05:16:36 +0000 (10:46 +0530)]
kconfig: Add an option for skipping binary blobs

6 years agokconfig: Remove Wi-Fi on/off as a menuconfig option
Kedar Sovani [Tue, 8 Aug 2017 04:53:52 +0000 (10:23 +0530)]
kconfig: Remove Wi-Fi on/off as a menuconfig option

This is no longer required since the functions automatically get
pulled in based on the usage. A quick summary of footprint
comparisions before and after these set of patches is shown below:

Hello-World: (simplified for readability)
 old Total image size:~ 104902 bytes (.bin may be padded larger)
 old Total image size:~ 105254 bytes (.bin may be padded larger)
 Per-archive contributions to ELF file:
             Archive File DRAM .data & .bss   IRAM Flash code & rodata   Total
 old              libesp32.a       1973    177   4445       3939     2267   12801
 new              libesp32.a       1973    185   4473       3939     2267   12837

 new             libnvs_flash.a          0     92      0        274        8     374
 new             libstdc++.a          0      0      0         24        0      24

For some reason, nvs_flash.a (~400bytes) gets pulled in (particularly
the nvs_flash_init() function).

Power-Save: (simplified for readability)
 old Total image size:~ 421347 bytes (.bin may be padded larger)
 old Total image size:~ 421235 bytes (.bin may be padded larger)

 old      libtcpip_adapter.a          0     81      0       1947      115       2143
 new      libtcpip_adapter.a          0     69      0       1897      115       2081

The size actually shrinks a bit, since the AP interface function
doesn't get pulled in.

6 years agotcpip_adapter: Decompose tcpip_adapter_start() into interface specification options
Kedar Sovani [Tue, 8 Aug 2017 04:48:14 +0000 (10:18 +0530)]
tcpip_adapter: Decompose tcpip_adapter_start() into interface specification options

Since only the used interface's start function gets called, it pulls
in only the functions that are required in the current application,
thereby saving footprint.

6 years agoesp32: Make 'restart' function independent of Wi-Fi
Kedar Sovani [Mon, 7 Aug 2017 10:30:46 +0000 (16:00 +0530)]
esp32: Make 'restart' function independent of Wi-Fi

Restart being a lower-layer system-level function, needn't depend on
the higher level Wi-Fi libraries.

This also enables us to get rid of one more WIFI_ENABLED ifdef check

6 years agoesp32: Register event handlers on the esp_wifi_init() call
Kedar Sovani [Mon, 7 Aug 2017 10:27:58 +0000 (15:57 +0530)]
esp32: Register event handlers on the esp_wifi_init() call

6 years agowifi: Map esp_wifi_init() to esp_wifi_init_internal()
Kedar Sovani [Mon, 7 Aug 2017 05:05:36 +0000 (10:35 +0530)]
wifi: Map esp_wifi_init() to esp_wifi_init_internal()

Follow-on patches will include additional functionality in
esp_wifi_init()

6 years agowifi_lib: Update to the change in the wifi_lib repository
Kedar Sovani [Tue, 15 Aug 2017 08:40:57 +0000 (14:10 +0530)]
wifi_lib: Update to the change in the wifi_lib repository

6 years agoMerge branch 'bugfix/spi_address' into 'master'
Ivan Grokhotkov [Wed, 16 Aug 2017 02:25:21 +0000 (10:25 +0800)]
Merge branch 'bugfix/spi_address' into 'master'

fix(spi_master): make the address field more intuitive to use.

See merge request !1074

6 years agofix(spi_master): make the address field more intuitive to use.
michael [Tue, 1 Aug 2017 08:00:58 +0000 (16:00 +0800)]
fix(spi_master): make the address field more intuitive to use.

The address field should be placed at the highest bits of address and slv_wr_status registers. Instead of breaking the address into two parts and fill in each register, move the address to the highest bits and write to the registers respectively.

Breaking change: if you fill-in the SPI address filed in a previous version in some way and it works correctly, you still have to rewrite the address, in a more intuitive way.

6 years agoMerge branch 'bugfix/ota_failsafe' into 'master'
Angus Gratton [Tue, 15 Aug 2017 00:11:38 +0000 (08:11 +0800)]
Merge branch 'bugfix/ota_failsafe' into 'master'

bootloader: Fallback if OTA data is invalid

See merge request !1033

6 years agoMerge branch 'bugfix/docs_get_started_introduction' into 'master'
Angus Gratton [Mon, 14 Aug 2017 23:52:54 +0000 (07:52 +0800)]
Merge branch 'bugfix/docs_get_started_introduction' into 'master'

Included 'Introduction' from original 'Get Started' PDF

See merge request !1065