]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agoMerge branch 'bugfix/spi_inconsistencies' into 'master'
Jeroen Domburg [Wed, 11 Jan 2017 09:11:45 +0000 (17:11 +0800)]
Merge branch 'bugfix/spi_inconsistencies' into 'master'

SPI: Some fixes to docs and flag naming

Kolban noticed the flags for a transaction are not named like the documentation states. The flags as mentioned in the docs are more consistent, so this MR renames them to that. Also some additions to the docs wrt the SPI signals

Ref http://www.esp32.com/viewtopic.php?f=13&t=919&p=3976#p3976 and http://www.esp32.com/viewtopic.php?f=13&t=921&p=3975#p3975

See merge request !398

7 years agoAdd test for spi clock, fix corner cases)
Jeroen Domburg [Wed, 11 Jan 2017 08:13:33 +0000 (16:13 +0800)]
Add test for spi clock, fix corner cases)

7 years agoMerge branch 'bugfix/id9562_unregistered_callback' into 'master'
Jiang Jiang Jian [Wed, 11 Jan 2017 07:57:03 +0000 (15:57 +0800)]
Merge branch 'bugfix/id9562_unregistered_callback' into 'master'

component/bt: check for registration status of callback function before using it

Add checking of NULL function pointers when calling bluetooth callbacks, especially before the callback functions are registered

See merge request !406

7 years agoMerge branch 'feature/add_wpa2_set_id_api' into 'master'
Jiang Jiang Jian [Wed, 11 Jan 2017 07:13:47 +0000 (15:13 +0800)]
Merge branch 'feature/add_wpa2_set_id_api' into 'master'

add wpa2 set id api and modify null data tx description

1. wpa2: add wpa2 set id api

2. low rate: modify null data tx description

See merge request !402

7 years agoMerge branch 'feature/ethernet_support_flow_control' into 'master'
Jiang Jiang Jian [Wed, 11 Jan 2017 06:51:43 +0000 (14:51 +0800)]
Merge branch 'feature/ethernet_support_flow_control' into 'master'

ethernet: support flow control

(1) Only fullduplex mode support flow ctrl .

(2) Fix reboot exception which caused by not-reset EMAC hardware (such as DMA) when reset CPU.

See merge request !392

7 years agoMerge branch 'bugfix/id9561_bt_status_check' into 'master'
Jiang Jiang Jian [Wed, 11 Jan 2017 06:38:43 +0000 (14:38 +0800)]
Merge branch 'bugfix/id9561_bt_status_check' into 'master'

component/bt: bug fix of lack of checking bluetooth stack status inside API functions

Add an API function for checking bluetooth stack status: whether it is uninitialized, initialized or enabled.
The function is intended to be used by users to check the bluetooth stack status, also, it is used inside bluetooth API functions to ensure the stack is in valid state.

See merge request !405

7 years agon, h and l actually are 6-bit; they go from 1 to 64.
Jeroen Domburg [Wed, 11 Jan 2017 06:13:37 +0000 (14:13 +0800)]
n, h and l actually are 6-bit; they go from 1 to 64.

7 years agocomponent/bt: change MACRO to inline function when invoking callbacks
wangmengyang [Wed, 11 Jan 2017 06:08:16 +0000 (14:08 +0800)]
component/bt: change MACRO to inline function when invoking callbacks

7 years agocomponent/bt: fix typos in "if" condition espressions
wangmengyang [Wed, 11 Jan 2017 05:36:48 +0000 (13:36 +0800)]
component/bt: fix typos in "if" condition espressions

7 years agoFix clock divider calculation
Jeroen Domburg [Wed, 11 Jan 2017 05:01:48 +0000 (13:01 +0800)]
Fix clock divider calculation

7 years agoadd wpa2 set id api and modify null data tx description
XiaXiaotian [Tue, 10 Jan 2017 09:50:32 +0000 (17:50 +0800)]
add wpa2 set id api and modify null data tx description

1. wpa2: add wpa2 set id api

2. low rate: modify null data tx description

7 years agoMerge branch 'bugfix/crosscore_int_iram' into 'master'
Ivan Grokhotkov [Wed, 11 Jan 2017 04:07:43 +0000 (12:07 +0800)]
Merge branch 'bugfix/crosscore_int_iram' into 'master'

Place cross-core interrupt into IRAM, sanity check handler address passed into esp_intr_alloc

Cross-core interrupt handler was not marked with IRAM_ATTR.

The reason why this caused an exception is probably due to some tasks running at highest priority (these are not blocked by spi_flash_disable_caches_interrupts_and_other_cpu mechanism).

This change puts the interrupt handler into IRAM and adds a sanity check into `esp_intr_alloc`.

Reported on Github: https://github.com/espressif/esp-idf/issues/211

See merge request !404

7 years agoAlso update documentation to new conventions
Jeroen Domburg [Wed, 11 Jan 2017 03:55:23 +0000 (11:55 +0800)]
Also update documentation to new conventions

7 years agoesp32: sanity check ISR handler address passed into esp_intr_alloc
Ivan Grokhotkov [Tue, 10 Jan 2017 17:14:18 +0000 (01:14 +0800)]
esp32: sanity check ISR handler address passed into esp_intr_alloc

Return ESP_ERR_INVALID_ARG if the handler is not in IRAM (or RTC fast memory)

7 years agoMerge branch 'feature/idf_version' into 'master'
Ivan Grokhotkov [Wed, 11 Jan 2017 03:34:28 +0000 (11:34 +0800)]
Merge branch 'feature/idf_version' into 'master'

build system: add IDF_VER environment variable and preprocessor define

This adds an `IDF_VER` preprocessor define which is obtained from `git describe`.

Looks like `v1.0-275-g0efaa4f` for non-release version or `v2.0` for a tagged (release) version.

See merge request !403

7 years agocomponent/bt: check for registration status of callback function before using it
wangmengyang [Wed, 11 Jan 2017 03:31:35 +0000 (11:31 +0800)]
component/bt: check for registration status of callback function before using it

7 years agoRename SPI Master IO pins to more common terminology, add better explanation to queue...
Jeroen Domburg [Wed, 11 Jan 2017 03:25:56 +0000 (11:25 +0800)]
Rename SPI Master IO pins to more common terminology, add better explanation to queue_length initialization value

7 years agoMerge branch 'feature/ping_function' into 'master'
Wu Jian Gang [Wed, 11 Jan 2017 03:25:32 +0000 (11:25 +0800)]
Merge branch 'feature/ping_function' into 'master'

Add ping function

Add ping function, It's need enable LWIP_RAW.

See merge request !285

7 years agocomponent/bt: bug fix of lack of checking bluetooth stack status inside API functions
wangmengyang [Wed, 11 Jan 2017 03:04:41 +0000 (11:04 +0800)]
component/bt: bug fix of lack of checking bluetooth stack status inside API functions

7 years agocomponents/lwip: Set the ping target info
Liu Han [Wed, 7 Dec 2016 09:34:26 +0000 (17:34 +0800)]
components/lwip: Set the ping target info

Add API for set the ping target info and get the ping result

7 years agoesp32: place cross-core interrupt handler into IRAM
Ivan Grokhotkov [Tue, 10 Jan 2017 16:52:45 +0000 (00:52 +0800)]
esp32: place cross-core interrupt handler into IRAM

esp_intr_alloc is called with ESP_INTR_FLAG_IRAM, so the ISR should be in IRAM.

7 years agobuild system: add IDF_VER environment variable and preprocessor define
Ivan Grokhotkov [Tue, 10 Jan 2017 16:24:50 +0000 (00:24 +0800)]
build system: add IDF_VER environment variable and preprocessor define

7 years agodhcp: fix dhcp err when wifi and ethernet coexist
shangke [Tue, 10 Jan 2017 13:54:53 +0000 (21:54 +0800)]
dhcp: fix dhcp err when wifi and ethernet coexist

7 years agoethernet: support flow control
shangke [Fri, 6 Jan 2017 05:49:42 +0000 (13:49 +0800)]
ethernet: support flow control

7 years agoSPI master: rename transaction flags from SPI_* to SPI_TRANS_*, like the documentatio...
Jeroen Domburg [Tue, 10 Jan 2017 06:41:12 +0000 (14:41 +0800)]
SPI master: rename transaction flags from SPI_* to SPI_TRANS_*, like the documentation says. Also add some explanation about the SPI signals in the documentation

7 years agoMerge branch 'feature/watchpoint_on_stack_canary' into 'master'
Jeroen Domburg [Tue, 10 Jan 2017 06:01:07 +0000 (14:01 +0800)]
Merge branch 'feature/watchpoint_on_stack_canary' into 'master'

Add option to automatically set a watchpoint at the end of the swapped-in task

This should make stack overflows easier to debug because it triggers a debug exception as soon as the stack is overwritten, not later when a context switch happens. Marked as a FreeRTOS debug feature because it doesn't give a nice error message and uses up a watchpoint.

See merge request !389

7 years agoMerge branch 'bugfix/tcpip_adapter_set_hostname' into 'master'
Wu Jian Gang [Tue, 10 Jan 2017 05:59:22 +0000 (13:59 +0800)]
Merge branch 'bugfix/tcpip_adapter_set_hostname' into 'master'

Fix tcpip_adapter_set_hostname issue

\bThe default hostname for each interface is "espressif", users can call this API to change each interface's hostname.

See merge request !284

7 years agoAdd documentation to panic handler functions, move watchpoint stuff from tasks.c...
Jeroen Domburg [Tue, 10 Jan 2017 05:05:19 +0000 (13:05 +0800)]
Add documentation to panic handler functions, move watchpoint stuff from tasks.c to port.c, account for non-32-bytes-aligned stacks when setting watchpoint, add debug reason explanation to panic handler

7 years agoMerge branch 'feature/JSON_Float' into 'master'
Ivan Grokhotkov [Tue, 10 Jan 2017 05:01:43 +0000 (13:01 +0800)]
Merge branch 'feature/JSON_Float' into 'master'

Add float format process

Add float format process

See merge request !390

7 years agocomponents/tcpip_adapter: Allow to set different hostname for each interface
Liu Han [Wed, 7 Dec 2016 07:37:59 +0000 (15:37 +0800)]
components/tcpip_adapter: Allow to set different hostname for each interface

7 years agoMerge branch 'feature/openssl' into 'master'
Wu Jian Gang [Tue, 10 Jan 2017 04:01:40 +0000 (12:01 +0800)]
Merge branch 'feature/openssl' into 'master'

examples/10_openssl_server: fixup SSL server with method of specific version

1. add method of any version supporting at OpenSSL and add API in header file
2. change OpenSSL server context method to be method of any version

Fixes http://esp32.com/viewtopic.php?f=14&t=696.

See merge request !369

7 years agoMerge branch 'feature/low_rate_change_ie' into 'master'
Jiang Jiang Jian [Mon, 9 Jan 2017 13:14:40 +0000 (21:14 +0800)]
Merge branch 'feature/low_rate_change_ie' into 'master'

esp32:update wifi libs

1. low_rate: change low rate ie
2. modem sleep

See merge request !391

7 years agoMerge branch 'bugfix/autoip_enable_issue' into 'master'
Wu Jian Gang [Mon, 9 Jan 2017 10:57:03 +0000 (18:57 +0800)]
Merge branch 'bugfix/autoip_enable_issue' into 'master'

lwip: fix compile issue when autoip option enabled

See merge request !383

7 years agoupdate wifi libs
qiyueixa [Mon, 9 Jan 2017 10:44:27 +0000 (18:44 +0800)]
update wifi libs

7 years agocJSON:Add float format process
Liu Han [Mon, 9 Jan 2017 09:51:48 +0000 (17:51 +0800)]
cJSON:Add float format process

7 years agoAdd option to automatically set a watchpoint at the end of the swapped-in task
Jeroen Domburg [Mon, 9 Jan 2017 08:42:45 +0000 (16:42 +0800)]
Add option to automatically set a watchpoint at the end of the swapped-in task

7 years agoMerge branch 'bugfix/detect_ocd_when_panic' into 'master'
Jiang Jiang Jian [Mon, 9 Jan 2017 05:25:45 +0000 (13:25 +0800)]
Merge branch 'bugfix/detect_ocd_when_panic' into 'master'

Fix OpenOCD detection code

In the current master, detection of an attached OCD is broken. This fixes it.

I also snuck in two unrelated checks in intr_alloc which return from a function that is asserted earlier in the code. This makes the code behave better when they are called erroneously in a production build.

See merge request !377

7 years agoMerge branch 'bugfix/sdkconfig_defaults' into 'master'
Angus Gratton [Mon, 9 Jan 2017 04:51:20 +0000 (12:51 +0800)]
Merge branch 'bugfix/sdkconfig_defaults' into 'master'

build system: Fix sdkconfig.defaults file preventing menuconfig changes

'make defconfig' now behaves similarly whether sdkconfig.defaults
is present or not, and 'make menuconfig' doesn't trigger a defconfig.

See merge request !385

7 years agobuild system: Fix sdkconfig.defaults file preventing menuconfig changes
Angus Gratton [Sun, 8 Jan 2017 23:09:05 +0000 (10:09 +1100)]
build system: Fix sdkconfig.defaults file preventing menuconfig changes

'make defconfig' now behaves similarly whether sdkconfig.defaults
is present or not, and 'make menuconfig' doesn't trigger a defconfig.

7 years agoCalling esp_intr_noniram_[en|dis]able twice is an error, so abort instead of doing...
Jeroen Domburg [Mon, 9 Jan 2017 04:04:21 +0000 (12:04 +0800)]
Calling esp_intr_noniram_[en|dis]able twice is an error, so abort instead of doing an assert which disappears in non-debug mode

7 years agoMerge branch 'feature/btdm_common_api' into 'master'
Jiang Jiang Jian [Mon, 9 Jan 2017 03:33:57 +0000 (11:33 +0800)]
Merge branch 'feature/btdm_common_api' into 'master'

component/bt : add bt device api

1. add get bd_addr function

later, will add other functions reference with bluetooth device.

See merge request !380

7 years agoMerge branch 'bugfix/tw9515_fix_wifi_timer_thread_safe_issue' into 'master'
Wu Jian Gang [Mon, 9 Jan 2017 02:54:00 +0000 (10:54 +0800)]
Merge branch 'bugfix/tw9515_fix_wifi_timer_thread_safe_issue' into 'master'

esp32: fix wifi timer thread-safe issue

Update wifi lib to fix a wifi timer thread-safe issue

See merge request !388

7 years agolwip: fix compile issue when autoip option enabled
Wu Jian Gang [Sat, 7 Jan 2017 13:20:39 +0000 (21:20 +0800)]
lwip: fix compile issue when autoip option enabled

7 years agoesp32: fix wifi timer thread-safe issue
Liu Zhi Fu [Mon, 9 Jan 2017 02:09:10 +0000 (10:09 +0800)]
esp32: fix wifi timer thread-safe issue

Update wifi lib to fix a wifi timer thread-safe issue

7 years agoMerge branch 'bugfix/bootloader_ets_cpu_update_freq' into 'master'
Ivan Grokhotkov [Mon, 9 Jan 2017 02:14:00 +0000 (10:14 +0800)]
Merge branch 'bugfix/bootloader_ets_cpu_update_freq' into 'master'

bootloader: export ets_update_cpu_frequency

MR !363 added linking librtc into bootloader. At the same time, MR !373 removed ets_update_cpu_frequency from ROM exports ld script, and replaced it with a dual CPU aware version. Combining these two MRs caused linker error in bootloader due to the unresolved `ets_update_cpu_frequency`.

One option to fix this is to move the definition of ets_update_cpu_frequency into bootloader_support component. This does however look a bit odd because this function is not something that is specifically needed for bootloader support.

Another option is to export the ROM version of ets_update_cpu_frequency for the bootloader only. This means that when bootloader changes CPU frequency, it only updates the tick period variable for PRO CPU. This isn't an issue though, because app startup code still calls the dual CPU aware version of ets_update_cpu_frequency early on, before any non-trivial code can run on the APP cpu.

This MR uses the second approach. Looking forward, we may move this definition of ets_update_cpu_frequency into the rtc_clk component, which will be used both by the bootloader and the app, and placing ets_update_cpu_frequency there would be logical.

See merge request !384

7 years agoMerge branch 'feature/sd_driver_new' into 'master'
Ivan Grokhotkov [Sun, 8 Jan 2017 22:48:25 +0000 (06:48 +0800)]
Merge branch 'feature/sd_driver_new' into 'master'

SDMMC peripheral driver, SD protocol driver, FATFS library, VFS integration

This MR contains:
- SDMMC host peripheral driver
- SD protocol driver in sdmmc component (can be extended to support MMC/eMMC and SPI based hosts)
- ChaN's FATFS library v0.12b
- VFS integration
- FAT access via VFS is thread-safe (unless same file is read/written/unlinked/renamed from different tasks)
- Support for POSIX directory-related functions in VFS (and in vfs_fatfs.c)
- unit test for the above
- Example
- API documentation

Will be done in other MRs:
- Support for spi_flash IO driver for FatFs
- SPI host driver and support for SPI mode commands in sdmmc component
- MMC/eMMC support in sdmmc component
- Support for slightly higher 53/26.6MHz clocks (currently I'm using 20MHz for DS and 40MHz for HS, instead of 25MHz/50MHz per standard), and arbitrary low clocks (e.g. 4MHz).

See merge request !353

7 years agodocs: add sdmmc and fatfs docs
Ivan Grokhotkov [Sun, 8 Jan 2017 20:09:09 +0000 (04:09 +0800)]
docs: add sdmmc and fatfs docs

7 years agofatfs: add vfs support
Ivan Grokhotkov [Sun, 8 Jan 2017 21:54:04 +0000 (05:54 +0800)]
fatfs: add vfs support

7 years agofatfs: rename DIR to FF_DIR to avoid conflict with dirent.h
Ivan Grokhotkov [Mon, 2 Jan 2017 19:45:11 +0000 (03:45 +0800)]
fatfs: rename DIR to FF_DIR to avoid conflict with dirent.h

7 years agofatfs: add pluggable diskio layer, sdmmc implementation
Ivan Grokhotkov [Thu, 29 Dec 2016 09:33:38 +0000 (17:33 +0800)]
fatfs: add pluggable diskio layer, sdmmc implementation

7 years agofatfs: import version 0.12b
Ivan Grokhotkov [Thu, 29 Dec 2016 09:28:39 +0000 (17:28 +0800)]
fatfs: import version 0.12b

7 years agovfs: add directory APIs
Ivan Grokhotkov [Mon, 2 Jan 2017 19:26:25 +0000 (03:26 +0800)]
vfs: add directory APIs

7 years agovfs: implement vfs_unregister
Ivan Grokhotkov [Thu, 29 Dec 2016 14:21:29 +0000 (22:21 +0800)]
vfs: implement vfs_unregister

7 years agosdmmc: add peripheral driver and protocol layer
Ivan Grokhotkov [Mon, 19 Dec 2016 14:19:47 +0000 (22:19 +0800)]
sdmmc: add peripheral driver and protocol layer

7 years agobootloader: export ets_update_cpu_frequency
Ivan Grokhotkov [Sun, 8 Jan 2017 19:08:24 +0000 (03:08 +0800)]
bootloader: export ets_update_cpu_frequency

7 years agoMerge branch 'bugfix/fix_wifi_auth_fail_issue' into 'master'
Wu Jian Gang [Sat, 7 Jan 2017 13:12:45 +0000 (21:12 +0800)]
Merge branch 'bugfix/fix_wifi_auth_fail_issue' into 'master'

esp32: fix wifi auth issue

Fix wifi auth failed issue by default phy mode to 11N

See merge request !382

7 years agoMerge branch 'feature/cplusplus' into 'master'
Ivan Grokhotkov [Sat, 7 Jan 2017 10:50:12 +0000 (18:50 +0800)]
Merge branch 'feature/cplusplus' into 'master'

C++ support

This change adds necessary support for compiling C++ programs:
- linking against libstdc++
- implementation of static initialization guards using FreeRTOS primitives: since we don't have condition variables at our disposal, and we don't want to allocate a synchronization primitive for every guard variable generated by the compiler, we imitate condition variables using a combination of a mutex, counting semaphore, and a counter (based on [Microsoft Research paper](https://www.microsoft.com/en-us/research/wp-content/uploads/2004/12/ImplementingCVs.pdf), albeit because we don't need *arbitrary* code to use these CVs, implementation gets simpler).

Note that libstdc++ also contains an implementation of `__cxa_guard_{acquire,release,abort}` functions. These implementations come from an `#ifndef GXX_THREADS` branch, i.e. are not aware of multthreading. There are three ways of replacing these libstdc++ functions with our implementation:

1. Move our code into gcc. Pros: cleanest solution. Cons: Such changes are unlikely to be merged by any upstream, so we end up maintaining our own forks of {gcc,crosstool-ng}.
2. Use library as it is built by crosstool, use `ar` to delete one object file (`guards.o`), add this library to ESP-IDF. Pros: easy to implement. Cons: libstdc++ is a 15MB binary :hushed:
3. Keep using libstdc++ from crosstool, force our implementation to be linked using a `-u` linker flag. Pros: no impact on repo size, easy to implement. Cons: somewhat less clean than 1 (and about as hacky as 2).

For the reasons mentioned, option (3) looks like the best tradeoff.

Ref. TW6702

See merge request !364

7 years agoMerge branch 'test/update_known_issues' into 'master'
Ivan Grokhotkov [Sat, 7 Jan 2017 10:47:17 +0000 (18:47 +0800)]
Merge branch 'test/update_known_issues' into 'master'

CI: update know issue list for idf

See merge request !360

7 years agoMerge branch 'feature/bootloader_rng' into 'master'
Ivan Grokhotkov [Sat, 7 Jan 2017 10:46:10 +0000 (18:46 +0800)]
Merge branch 'feature/bootloader_rng' into 'master'

Enable bootloader entropy source for RNG

Enables an entropy source when bootloader starts up, which both seeds the RNG for use before WiFi/BT stack is enabled and provides an adequate RNG for secure boot & flash encryption key generation.

A prerequisite was enabling 80MHz operation, so the CPU is now set to 80MHz as soon as second stage bootloader starts running.

See merge request !363

7 years agoMerge branch 'feature/lwip-rcvbuf-option' into 'master'
Ivan Grokhotkov [Sat, 7 Jan 2017 10:45:37 +0000 (18:45 +0800)]
Merge branch 'feature/lwip-rcvbuf-option' into 'master'

add menuconfig option to enable SO_RCVBUF

This option is required by Arduino and enables netconn connection to be queried for amount of data available in the rx buffer.

See merge request !372

7 years agoMerge branch 'bugfix/ets_delay_on_app_cpu' into 'master'
Ivan Grokhotkov [Sat, 7 Jan 2017 10:45:14 +0000 (18:45 +0800)]
Merge branch 'bugfix/ets_delay_on_app_cpu' into 'master'

esp32: ets_update_cpu_frequency should set tick scale for both CPUs

ets_update_cpu_frequency ROM function updates g_ticks_per_us, which is has two copies, one for each CPU.
The APP CPU copy of g_ticks_per_us never got updated, resulting in shorter delays produced by ets_delay_us on the APP CPU.

This MR replaces ROM ets_update_cpu_frequency with a copy in IRAM which updates scaling factors on both of the CPUs.

So now we get expected delays (in microseconds):
```
ets_delay_us core=0 expected=50000 actual=50014
ets_delay_us core=1 expected=50000 actual=50015
vTaskDelay core=0 expected=50000 actual=49428
vTaskDelay core=1 expected=50000 actual=50000
```

Reported on the forum: http://esp32.com/viewtopic.php?f=2&t=713#p3722

See merge request !373

7 years agoAdd sdkconfig include to cpu_util.h so CONFIG_ESP32_DEBUG_OCDAWARE actually resolves
Jeroen Domburg [Fri, 6 Jan 2017 09:19:09 +0000 (17:19 +0800)]
Add sdkconfig include to cpu_util.h so CONFIG_ESP32_DEBUG_OCDAWARE actually resolves

7 years agoMerge branch 'bugfix/fix_a_crash_issue' into 'master'
Ivan Grokhotkov [Sat, 7 Jan 2017 10:26:20 +0000 (18:26 +0800)]
Merge branch 'bugfix/fix_a_crash_issue' into 'master'

esp32: modify ld file to fix a crash issue

This MR is to fix a crash issue in latest idf

See merge request !379

7 years agoesp32: fix wifi auth issue
Liu Zhi Fu [Sat, 7 Jan 2017 08:32:03 +0000 (16:32 +0800)]
esp32: fix wifi auth issue

Fix wifi auth failed issue by default phy mode to 11N

7 years agoesp32: modify ld file to fix a crash issue
Liu Zhi Fu [Fri, 6 Jan 2017 11:35:22 +0000 (19:35 +0800)]
esp32: modify ld file to fix a crash issue

7 years agoMerge branch 'bugfix/fix_ci_error' into 'master'
Wu Jian Gang [Sat, 7 Jan 2017 07:59:29 +0000 (15:59 +0800)]
Merge branch 'bugfix/fix_ci_error' into 'master'

Fix CI error of some examples

Include coap_client/coap_server/ota.

See merge request !381

7 years agoexample: Reindex ota demo
Wu Jian Gang [Fri, 6 Jan 2017 13:39:32 +0000 (21:39 +0800)]
example: Reindex ota demo

7 years agoexample: fix CI error of ota demo
Wu Jian Gang [Fri, 6 Jan 2017 10:52:58 +0000 (18:52 +0800)]
example: fix CI error of ota demo

7 years agoexample: fix CI error of coap server demo
Wu Jian Gang [Fri, 6 Jan 2017 10:42:46 +0000 (18:42 +0800)]
example: fix CI error of coap server demo

7 years agoexample: fix CI error of coap client demo
Wu Jian Gang [Fri, 6 Jan 2017 10:36:11 +0000 (18:36 +0800)]
example: fix CI error of coap client demo

7 years agocomponent/bt : add bt device api
Tian Hao [Fri, 6 Jan 2017 13:19:58 +0000 (21:19 +0800)]
component/bt : add bt device api

1. add get bd_addr function

7 years agoMerge branch 'feature/btdm_blufi_version' into 'master'
Jiang Jiang Jian [Fri, 6 Jan 2017 10:55:05 +0000 (18:55 +0800)]
Merge branch 'feature/btdm_blufi_version' into 'master'

component/bt : blufi add version

blufi add version and the android APK add version check, too.

See merge request !378

7 years agocomponent/bt : blufi add version
Tian Hao [Fri, 6 Jan 2017 09:40:46 +0000 (17:40 +0800)]
component/bt : blufi add version

7 years agoMerge branch 'driver/spi' into 'master'
Jeroen Domburg [Fri, 6 Jan 2017 08:28:52 +0000 (16:28 +0800)]
Merge branch 'driver/spi' into 'master'

SPI master driver

This merge requests adds an SPI Master driver. This driver is (of course) multithread capable, has device abstraction, has command queueing, DMA support and all other sorts of nice things you'd expect from a SPI driver.

See merge request !332

7 years agoMerge branch 'bugfix/ethernet_init' into 'master'
Wu Jian Gang [Fri, 6 Jan 2017 08:26:40 +0000 (16:26 +0800)]
Merge branch 'bugfix/ethernet_init' into 'master'

ethernet : fix sometimes ethernet init fail bug

See merge request !376

7 years agoMerge branch 'feature/Add_OTA_Demo' into 'master'
Wu Jian Gang [Fri, 6 Jan 2017 08:15:14 +0000 (16:15 +0800)]
Merge branch 'feature/Add_OTA_Demo' into 'master'

esp32 examples: Add OTA Demo

this demo would show you an OTA workflow and how to make it run.

See merge request !324

7 years agocxx: implement static initialization guards
Ivan Grokhotkov [Wed, 4 Jan 2017 16:25:55 +0000 (00:25 +0800)]
cxx: implement static initialization guards

7 years agoMerge branch 'bugfix/tw9540_workaround_appdata_overwrite_bootdata' into 'master'
Ivan Grokhotkov [Fri, 6 Jan 2017 07:59:22 +0000 (15:59 +0800)]
Merge branch 'bugfix/tw9540_workaround_appdata_overwrite_bootdata' into 'master'

modify bootloader dram start address, swap app bss and data segments

Modify bootloader dram_seg from address 0x3ffc0000 to 0x3fff0000, len from 0x20000 to 0x10000.
Also put app .data before .bss, to reduce the chance .data collides with ROM bootloader stack.

See merge request !375

7 years agoMerge branch 'feature/CoAP' into 'master'
Wu Jian Gang [Fri, 6 Jan 2017 07:37:09 +0000 (15:37 +0800)]
Merge branch 'feature/CoAP' into 'master'

Add CoAP feature

Add CoAP protocol, support client and server test demo.

See merge request !303

7 years agoesp32: ets_update_cpu_frequency should set tick scale for both CPUs
Ivan Grokhotkov [Thu, 5 Jan 2017 14:55:38 +0000 (22:55 +0800)]
esp32: ets_update_cpu_frequency should set tick scale for both CPUs

7 years agounity: fix testcase initializer for compiling with C++
Ivan Grokhotkov [Wed, 4 Jan 2017 16:37:56 +0000 (00:37 +0800)]
unity: fix testcase initializer for compiling with C++

7 years agocxx: link against libstdc++, remove abi.cpp
Ivan Grokhotkov [Wed, 4 Jan 2017 16:27:59 +0000 (00:27 +0800)]
cxx: link against libstdc++, remove abi.cpp

7 years agoAdd SPI Master driver, example, test and docs
Jeroen Domburg [Fri, 6 Jan 2017 06:20:32 +0000 (14:20 +0800)]
Add SPI Master driver, example, test and docs

7 years agoethernet: update docs
shangke [Fri, 6 Jan 2017 06:16:34 +0000 (14:16 +0800)]
ethernet: update docs

7 years agoethernet : fix sometimes ethernet init fail bug
shangke [Fri, 6 Jan 2017 05:49:42 +0000 (13:49 +0800)]
ethernet : fix sometimes ethernet init fail bug

7 years agobootloader: update ld script comment
Ivan Grokhotkov [Fri, 6 Jan 2017 05:47:53 +0000 (13:47 +0800)]
bootloader: update ld script comment

7 years agoesp32: put .data before .bss
Ivan Grokhotkov [Fri, 6 Jan 2017 05:03:07 +0000 (13:03 +0800)]
esp32: put .data before .bss

This change reduces chances that a large .bss segment will push .data all the way into
0x3ffe1320 — 0x3ffe5320 range where the bootloader stack is, creating a problem when
bootloader will be loading application into memory.
With this change, .data would need to be at least 200k big to cause problems.

7 years agobootloader: modify bootloader dram start address to 0x3fff0000
Liu Zhi Fu [Fri, 6 Jan 2017 04:23:11 +0000 (12:23 +0800)]
bootloader: modify bootloader dram start address to 0x3fff0000

Modify bootloader dram_seg from address 0x3ffc0000 to 0x3fff0000, len from
0x20000 to 0x10000. Please be notified that this is just a workaround for
fixing app data overwrite bootloader data issue!

7 years agoMerge branch 'feature/wifi_deinit' into 'master'
Wu Jian Gang [Fri, 6 Jan 2017 05:32:25 +0000 (13:32 +0800)]
Merge branch 'feature/wifi_deinit' into 'master'

wifi: add wifi rx buffer number config in menuconfig

See merge request !370

7 years agoMerge branch 'bugfix/btdm_blufi' into 'master'
Jiang Jiang Jian [Fri, 6 Jan 2017 05:18:08 +0000 (13:18 +0800)]
Merge branch 'bugfix/btdm_blufi' into 'master'

component/bt : blufi fix security init bug

fix a memset bug.

See merge request !374

7 years agocomponent/bt : blufi fix security init bug
Tian Hao [Fri, 6 Jan 2017 04:24:37 +0000 (12:24 +0800)]
component/bt : blufi fix security init bug

7 years agowifi: add wifi rx buffer number config in menuconfig
XiaXiaotian [Thu, 5 Jan 2017 09:57:41 +0000 (17:57 +0800)]
wifi: add wifi rx buffer number config in menuconfig

7 years agoMerge branch 'feature/btdm_blufi' into 'master'
Ivan Grokhotkov [Thu, 5 Jan 2017 13:54:45 +0000 (21:54 +0800)]
Merge branch 'feature/btdm_blufi' into 'master'

Feature/btdm blufi

This is new BLUFI for config wifi connection through bluetooth.

See merge request !359

7 years agocomponent/bt : use new lib, optimize BT power
Tian Hao [Thu, 5 Jan 2017 12:41:15 +0000 (20:41 +0800)]
component/bt : use new lib, optimize BT power

7 years agoMerge branch 'feature/low_rate' into 'master'
Wu Jian Gang [Thu, 5 Jan 2017 12:34:50 +0000 (20:34 +0800)]
Merge branch 'feature/low_rate' into 'master'

add WiFi low rate feature

See merge request !358

7 years agocomponent/bt : new blufi
Tian Hao [Wed, 28 Dec 2016 04:02:43 +0000 (12:02 +0800)]
component/bt : new blufi

1. new blufi protocol
2. new blufi demo
3. support security
4. support sta/ap/sta_ap
5. support wpa-enterprise

7 years agoMerge branch 'feature/ledc' into 'master'
Wang Jia Lin [Thu, 5 Jan 2017 12:05:13 +0000 (20:05 +0800)]
Merge branch 'feature/ledc' into 'master'

driver: ledc update

1. add fading functions.
2. clear up ledc.h
3. update api doc.
4. add ledc example

See merge request !347

7 years agocomponent/bt: modify bluetooth API
wangmengyang [Tue, 3 Jan 2017 07:53:06 +0000 (15:53 +0800)]
component/bt: modify bluetooth API

1. VHCI api and doxygen
2. Controller api and doxygen
3. bluedroid init/enable api and doxygen
4. cleanup demo codes

7 years agoadd menuconfig option to enable SO_RCVBUF
me-no-dev [Thu, 5 Jan 2017 11:17:52 +0000 (13:17 +0200)]
add menuconfig option to enable SO_RCVBUF

7 years agoesp32: update wifi libs
qiyueixa [Thu, 5 Jan 2017 10:43:09 +0000 (18:43 +0800)]
esp32: update wifi libs

1. add wifi low rate feature