]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agocomponent/bt: cleanup phy/rtc/pp libs
Tian Hao [Sun, 16 Oct 2016 08:50:02 +0000 (16:50 +0800)]
component/bt: cleanup phy/rtc/pp libs

7 years agocomponent/bt : advertising no random address
Tian Hao [Mon, 10 Oct 2016 11:21:12 +0000 (19:21 +0800)]
component/bt : advertising no random address

1. advertising with public bdaddr
2. increase queue size avoid for exception because of the log is a lot

7 years agocomponent/bt : add bluf that use bluetooth config wifi connection demos
Tian Hao [Fri, 7 Oct 2016 03:16:13 +0000 (11:16 +0800)]
component/bt : add bluf that use bluetooth config wifi connection demos

1. add libphy.a librtc.a, but store in bt submodule, if someone use them, please copy to esp32/lib/ instead the origin one
2. add 07_blufi demo
3. change esp32/Kconfig to allow bt/wifi coexist

7 years agocomponent/bt : modify some files adapt to new master
Tian Hao [Fri, 7 Oct 2016 02:47:25 +0000 (10:47 +0800)]
component/bt : modify some files adapt to new master

1. fix some header files include
2. modify demo

7 years agoMerge branch 'master' into feature/btdm_bluedroid
Tian Hao [Fri, 7 Oct 2016 02:31:37 +0000 (10:31 +0800)]
Merge branch 'master' into feature/btdm_bluedroid

feature/btdm_bluedroid use newest master

# Conflicts:
# components/bt/component.mk

7 years agoMerge branch 'bugfix/syscall_write' into 'master'
Angus Gratton [Thu, 6 Oct 2016 07:58:34 +0000 (15:58 +0800)]
Merge branch 'bugfix/syscall_write' into 'master'

syscall write: Should return number of bytes written

Fixes bug where sometimes output truncates after a newline, or large
chunks of large output buffers are lost.

Closes #44

See merge request !133

7 years agosyscall write: Should return number of bytes written
Angus Gratton [Wed, 5 Oct 2016 22:51:51 +0000 (09:51 +1100)]
syscall write: Should return number of bytes written

Fixes bug where sometimes output truncates after a newline, or large
chunks of large output buffers are lost.

7 years agoAlso push relevant tags over
Jeroen Domburg [Fri, 30 Sep 2016 10:06:41 +0000 (18:06 +0800)]
Also push relevant tags over

7 years agoesp32: add libsmartconfig.a to link libs v0.9
Wu Jian Gang [Fri, 30 Sep 2016 07:40:08 +0000 (15:40 +0800)]
esp32: add libsmartconfig.a to link libs

7 years agoMerge branch 'feature/wifi_lib_update' into 'master'
Wu Jian Gang [Fri, 30 Sep 2016 06:18:40 +0000 (14:18 +0800)]
Merge branch 'feature/wifi_lib_update' into 'master'

wifi lib update

1. update smartconfig 2.6.2;
2. add watch dog;
3. remove libwpa2.a/libwps.a;

See merge request !129

7 years agoesp32: not link wps
Wu Jian Gang [Fri, 30 Sep 2016 06:04:03 +0000 (14:04 +0800)]
esp32: not link wps

7 years agoesp32/lib: update wifi lib to a1e5f8b9
Wu Jian Gang [Fri, 30 Sep 2016 05:50:11 +0000 (13:50 +0800)]
esp32/lib: update wifi lib to a1e5f8b9

1. update smartconfig 2.6.2;
2. add watch dog
3. remove libwpa2.a/libwps.a

7 years agoesp32: remove esp_wps.h
Wu Jian Gang [Fri, 30 Sep 2016 05:48:37 +0000 (13:48 +0800)]
esp32: remove esp_wps.h

not support now

7 years agoMerge branch 'driver_merge_tmp/merge_smartconfig' into 'master'
Jeroen Domburg [Fri, 30 Sep 2016 01:36:13 +0000 (09:36 +0800)]
Merge branch 'driver_merge_tmp/merge_smartconfig' into 'master'

add smartconfig header files(merge this after updating libsmartconfig.a version v2.6.2)

1. change the API names.
2. return esp_err_t
3. merge this after updating libsmartconfig.a version v2.6.2

See merge request !127

7 years agoadd smartconfig header files(merge this after updating libsmartconfig.a version v2...
Wangjialin [Thu, 29 Sep 2016 18:31:14 +0000 (02:31 +0800)]
add smartconfig header files(merge this after updating libsmartconfig.a version v2.6.2)

1. change the original API names.
2. return esp_err_t
3. merge this after updating libsmartconfig.a version v2.6.2

7 years agoMerge branch 'bugfix/fix_rxbuf_leak_issue' into 'master'
Wu Jian Gang [Thu, 29 Sep 2016 10:37:32 +0000 (18:37 +0800)]
Merge branch 'bugfix/fix_rxbuf_leak_issue' into 'master'

component/esp32: udpate wifi lib

1. cb274d8b - add debug api for debugging rx buffer leak issue
2. f86b0510 - fix rx buffer leak issue

See merge request !126

7 years agoesp32/lib: update wifi lib to 3853d7ae
Wu Jian Gang [Thu, 29 Sep 2016 10:19:38 +0000 (18:19 +0800)]
esp32/lib: update wifi lib to 3853d7ae

1. add debug api for debugging rx buffer leak issue
2. fix rx buffer leak issue

7 years agoMerge branch 'feature/deep_sleep_wake_stub' into 'master'
Wu Jian Gang [Thu, 29 Sep 2016 10:07:16 +0000 (18:07 +0800)]
Merge branch 'feature/deep_sleep_wake_stub' into 'master'

esp32: Bootloader wake deep sleep stub

App can contain a stub program resident in RTC fast memory. Bootloader
will load the stub on initial boot. If the device wakes from deep sleep,
the stub is run immediately (before any other data is loaded, etc.)

To implement a custom wake stub, implement a function in your program:

```
void RTC_IRAM_ATTR esp_wake_deep_sleep(void)
{
  esp_default_wake_deep_sleep();
  // other wake logic
}
```

... and it will replace the default implementation.

See merge request !78

7 years agoAdd Comments
jack [Thu, 29 Sep 2016 08:29:13 +0000 (16:29 +0800)]
Add Comments

We reserve 4KB Slow RTC memory to save RF calibation result and BT NVS data.
If not all these Slow RTC momory Blocks are used, we will open the other parts.

7 years agoMerge branch 'feature/tcpip_adapter_comments' into 'master'
Wu Jian Gang [Thu, 29 Sep 2016 04:16:49 +0000 (12:16 +0800)]
Merge branch 'feature/tcpip_adapter_comments' into 'master'

add comments for tcpip_adapter

See merge request !123

7 years agoMerge branch 'driver_merge_tmp/merge_ledc' into 'master'
Jeroen Domburg [Thu, 29 Sep 2016 03:57:52 +0000 (11:57 +0800)]
Merge branch 'driver_merge_tmp/merge_ledc' into 'master'

add ledc driver code

See merge request !110

7 years agoModify spinlock error in periph_ctrl.c
Wangjialin [Thu, 29 Sep 2016 03:50:25 +0000 (11:50 +0800)]
Modify spinlock error in periph_ctrl.c

7 years agoMerge branch 'workaround/pin_noaffinity_task_to_core_when_fpu_used' into 'master'
Jeroen Domburg [Thu, 29 Sep 2016 03:16:41 +0000 (11:16 +0800)]
Merge branch 'workaround/pin_noaffinity_task_to_core_when_fpu_used' into 'master'

Workaround: Automatically pin no-cpu-affinity task to a core when FPU is used

FPU status at the moment does not migrate cleanly between cores, so tasks without affinity that happen to migrate across FPUs will run into problems. As a workaround, this modification will automatically pin the task to the current CPU when FPU activity is detected. If anything, it's better than getting all kinds of weird and wonderful FPU corruption issues...

See merge request !124

7 years agoDefine xcoreid offset, add warning in tcb struct wrt the need to also change that...
Jeroen Domburg [Thu, 29 Sep 2016 03:07:18 +0000 (11:07 +0800)]
Define xcoreid offset, add warning in tcb struct wrt the need to also change that define when struct changes

7 years agoMerge branch 'bugfix/tw6513_fix_memory_leak_issue' into 'master'
Wu Jian Gang [Thu, 29 Sep 2016 02:58:34 +0000 (10:58 +0800)]
Merge branch 'bugfix/tw6513_fix_memory_leak_issue' into 'master'

components/lib: update wifi lib

fe8baaca - tw6513 fix a memory leak issue

See merge request !125

7 years agocomponents/tcpip_adapter: add some comments
Wu Jian Gang [Thu, 29 Sep 2016 02:55:52 +0000 (10:55 +0800)]
components/tcpip_adapter: add some comments

7 years agoMerge branch 'feature/instruct_nghttp_xml' into 'master'
Jeroen Domburg [Thu, 29 Sep 2016 01:58:03 +0000 (09:58 +0800)]
Merge branch 'feature/instruct_nghttp_xml' into 'master'

Feature/instruct nghttp xml

add expat and nghttp library description, instruct the XML parse and HTTP/2 protocol.

See merge request !119

7 years agoMerge branch 'feature/freertos_untested_feature_assert' into 'master'
Jeroen Domburg [Thu, 29 Sep 2016 01:55:06 +0000 (09:55 +0800)]
Merge branch 'feature/freertos_untested_feature_assert' into 'master'

Assert on untested FreeRTOS features

When I SMP-enabled, I went through all the functions and made the necessary modifiucations. I however only managed to test the most used functions thoroughly. While we should test all FreeRTOS functions eventually, this MR will mark the ones we have not tested yet with a macro call that will, if enabled in MenuConfig (default enabled) assert() when the untested function is called.

Also removes some superfluous mux initializion code in EventGroups code.

See merge request !120

7 years agoModify LEDC driver
Wangjialin [Wed, 28 Sep 2016 15:20:34 +0000 (23:20 +0800)]
Modify LEDC driver

1. configure LEDC timer saparately
2. add peripher_crtl.c/.h
    To enable the peripheral modules, we have to set/clear the control register in dport_reg.h.
    These bits are disabled by default and they are all in a same register, so we need to add a lock on that.
3. add include esp_err.h in gpio.h

7 years agoMerge branch 'master' into feature/freertos_untested_feature_assert
Jeroen Domburg [Wed, 28 Sep 2016 14:15:05 +0000 (22:15 +0800)]
Merge branch 'master' into feature/freertos_untested_feature_assert

7 years agocomponents/lib: update wifi lib
liuzhifu [Wed, 28 Sep 2016 13:35:49 +0000 (21:35 +0800)]
components/lib: update wifi lib

fe8baaca - tw6513 fix a memory leak issue

7 years agoAutomatically pin no-cpu-affinity task to a core when FPU is used
Jeroen Domburg [Wed, 28 Sep 2016 09:02:44 +0000 (17:02 +0800)]
Automatically pin no-cpu-affinity task to a core when FPU is used

7 years agocomponents/expat: just change format of expat.rst
Wu Jian Gang [Wed, 28 Sep 2016 05:53:38 +0000 (13:53 +0800)]
components/expat: just change format of expat.rst

preview will be better.

7 years agocomponents/nghttp: just change format of nghttp.rst
Wu Jian Gang [Wed, 28 Sep 2016 05:50:34 +0000 (13:50 +0800)]
components/nghttp: just change format of nghttp.rst

preview will be better.

7 years agocomponents/nghttp: a few grammar fixes
liuhan [Wed, 28 Sep 2016 02:18:15 +0000 (10:18 +0800)]
components/nghttp: a few grammar fixes

modify a few grammar, see nghttp.rst file.

7 years agocomponents/expat: a few grammar fixes
liuhan [Wed, 28 Sep 2016 02:10:36 +0000 (10:10 +0800)]
components/expat: a few grammar fixes

modify a few grammar, see expat.rst file.

7 years agocomponents/nghttp: add nghttp library description
liuhan [Mon, 26 Sep 2016 12:49:06 +0000 (20:49 +0800)]
components/nghttp: add nghttp library description

add HTTP/2 instruction, see nghttp file.

7 years agocomponents/expat: add expat library description
liuhan [Mon, 26 Sep 2016 12:44:42 +0000 (20:44 +0800)]
components/expat: add expat library description

add XML instruction, see expat file.

7 years agocomponents/tcpip_adapter: add comments for tcpip_adapter
Wu Jian Gang [Wed, 28 Sep 2016 08:21:24 +0000 (16:21 +0800)]
components/tcpip_adapter: add comments for tcpip_adapter

7 years agoMerge branch 'master' into driver_merge_tmp/merge_ledc
Wangjialin [Wed, 28 Sep 2016 05:27:58 +0000 (13:27 +0800)]
Merge branch 'master' into driver_merge_tmp/merge_ledc

Merge master branch to pass building.

7 years agoKconfig: use 4 spaces to instead 1 tab
Wu Jian Gang [Wed, 28 Sep 2016 05:24:58 +0000 (13:24 +0800)]
Kconfig: use 4 spaces to instead 1 tab

In some Kconfig file, both 4 spaces and 1 tab are used mix, let's just
use 4 space, it will be clean in some editor.

7 years agoMerge branch 'feature/btdm_lib_update' into 'master'
Wu Jian Gang [Wed, 28 Sep 2016 05:24:07 +0000 (13:24 +0800)]
Merge branch 'feature/btdm_lib_update' into 'master'

component/bt: update libbtdm_app.a

1. update the lib to version 010102 because the branch feature/btdm_controller missed the lib

See merge request !122

7 years agoAdd ringbuf.c. This works like a FreeRTOS queue, but allows for variable-length items...
Jeroen Domburg [Wed, 28 Sep 2016 04:43:35 +0000 (12:43 +0800)]
Add ringbuf.c. This works like a FreeRTOS queue, but allows for variable-length items which in some cases is more memory efficient than a queue.

7 years agocomponent/bt: update libbtdm_app.a
wangmengyang [Wed, 28 Sep 2016 04:30:44 +0000 (12:30 +0800)]
component/bt: update libbtdm_app.a

1. update the lib to version 010102 because the branch feature/btdm_controller missed the lib

7 years agoesp32: add TRACEMEM_RESERVE_DRAM config
Wu Jian Gang [Wed, 28 Sep 2016 04:27:25 +0000 (12:27 +0800)]
esp32: add TRACEMEM_RESERVE_DRAM config

this configaration is missed when rebase

7 years agoMinor modification
Wangjialin [Wed, 28 Sep 2016 04:04:15 +0000 (12:04 +0800)]
Minor modification

1. add new line between typedefs
2. for param check functions, return bool if they are true/false

7 years ago1. Change the deep sleep stub code to fix wake bug.
xiaxiaotian [Wed, 28 Sep 2016 03:52:39 +0000 (11:52 +0800)]
1. Change the deep sleep stub code to fix wake bug.

7 years agoesp32: Allow RTC slow memory to be reserved for ULP coprocessor
Angus Gratton [Wed, 21 Sep 2016 01:24:02 +0000 (11:24 +1000)]
esp32: Allow RTC slow memory to be reserved for ULP coprocessor

7 years agoesp32: Pass memory layout linker script through C preprocessor
Angus Gratton [Wed, 21 Sep 2016 01:04:16 +0000 (11:04 +1000)]
esp32: Pass memory layout linker script through C preprocessor

C preprocessor is a bit icky, but with ULP we will have 3 possible
variables influencing the memory layout and 9 linker scripts is too
many!

7 years agoesp32: Add esp_deepsleep.h to esp_system.h to keep backwards compatibility with syste...
Angus Gratton [Wed, 14 Sep 2016 00:58:38 +0000 (10:58 +1000)]
esp32: Add esp_deepsleep.h to esp_system.h to keep backwards compatibility with system_deep_sleep()

7 years agoesp32: Bootloader wake deep sleep stub
Angus Gratton [Mon, 12 Sep 2016 07:23:15 +0000 (17:23 +1000)]
esp32: Bootloader wake deep sleep stub

App can contain a stub program resident in RTC fast memory. Bootloader
will load the stub on initial boot. If the device wakes from deep sleep,
the stub is run immediately (before any other data is loaded, etc.)

To implement a custom wake stub, implement a function in your program:

```
void RTC_IRAM_ATTR esp_wake_deep_sleep(void)
{
  esp_default_wake_deep_sleep();
  // other wake logic
}
```

... and it will replace the default implementation.

7 years agoMerge branch 'feature/btdm_controller' into 'master'
Ivan Grokhotkov [Tue, 27 Sep 2016 14:20:37 +0000 (22:20 +0800)]
Merge branch 'feature/btdm_controller' into 'master'

bluetooth controller update

1. add mutex to VHCI APIs
2. remove bss/data log print during initialization;
3. add bss/data symbols in esp32.rom.ld
4. add & modify BTDM OSI functions

See merge request !117

7 years agoMerge branch 'master' into feature/btdm_controller
Ivan Grokhotkov [Tue, 27 Sep 2016 14:08:27 +0000 (22:08 +0800)]
Merge branch 'master' into feature/btdm_controller

* master:
  app_main: Return type to void
  wifi: move type definitions into separate header file
  wifi: use default esp_event_send handler in WIFI_INIT_CONFIG_DEFAULT
  nvs: Remove flash layout arguments from nvs_init()
  Add contributor agreement, update CONTRIBUTING file
  Update http_request & https_request examples for new startup flow
  Add very simple "hello world" & "blink" examples
  Build examples out-of-tree as part of CI process
  Examples: Use event groups for waiting until WiFi is associated & ESP has IP
  BT example: Enable BT stack in config by default
  BT: Relink component on new BT library, auto-initialise submodule if missing
  Documentation: Add contributor guide, expand README & add an examples README
  Update gitignore for examples
  examples: Add https_request example
  mbedtls: Add some initial menuconfig options
  examples: HTTP request example
  component/esp32: udpate wifi lib
  component/esp32: modify bool argument name from enable to en
  component/esp32: adjust some APIs
  esptool: Bump upstream revision

7 years agocomponent/bt : adjust the bluedroid architecture
Tian Hao [Tue, 27 Sep 2016 13:38:07 +0000 (21:38 +0800)]
component/bt : adjust the bluedroid architecture

1. move the app demo code to example
2. move the header files to correct path
3. move profile to profiles directory and seperate esp&std
4. some other codes
5. needs continue to cleanup the code

7 years agoMerge branch 'feature/initial_examples' into 'master'
Ivan Grokhotkov [Tue, 27 Sep 2016 11:17:43 +0000 (19:17 +0800)]
Merge branch 'feature/initial_examples' into 'master'

Basic examples

Basic examples, contributor information & README clarifications.

See merge request !102

7 years agoMerge branch 'feature/esptool_bump' into 'master'
Angus Gratton [Tue, 27 Sep 2016 09:54:28 +0000 (17:54 +0800)]
Merge branch 'feature/esptool_bump' into 'master'

esptool: Bump upstream revision

Fixes github #14 (unexpected errors writing to DIO flash)

Also speed boost when writing compressed data (can now go via stub)

See merge request !103

7 years agoMerge remote-tracking branch 'origin/bugfix/modify_some_wifi_apis' into feature/initi...
Angus Gratton [Tue, 27 Sep 2016 09:31:49 +0000 (19:31 +1000)]
Merge remote-tracking branch 'origin/bugfix/modify_some_wifi_apis' into feature/initial_examples

7 years agoapp_main: Return type to void
Angus Gratton [Tue, 27 Sep 2016 09:30:43 +0000 (19:30 +1000)]
app_main: Return type to void

Result is not checked

7 years agoMerge branch 'master' into feature/btdm_controller
Ivan Grokhotkov [Tue, 27 Sep 2016 04:40:56 +0000 (12:40 +0800)]
Merge branch 'master' into feature/btdm_controller

* master: (32 commits)
  components/nghttp: rename Makefile to component.mk
  components/nghttp: add HTTP2.0 protocol feature
  compoenents/esp32: don't alias start_cpu1 to start_cpu0_default
  components/freertos: fix a bug with an uninitialised return value
  Change application entry point name back to app_main
  gitlab-ci: build SSC with matching branch name, if available
  components/spi_flash: remove stray level of indentation
  components/nvs: fix broken sentences in comment blocks
  components/esp32: fix renaming of esp_event_set_cb, minor clean up
  components/esp32: remove "_user" part from entry points, weaken start_cpu0/1
  Fix a spelling mistake in panic message, add carriage return to stack canary message
  components/lwip,esp32: fixes for C++
  components/bt: fix compilation, remove ./ from makefile
  components/esp32: clarify type of queue in wifi_init_config_t, add default init macro
  components/esp32: add ESP_ERROR_CHECK
  Event handling refactoring
  clean up warnings
  components/esp32,bt: fix typos in comments
  Startup flow refactoring
  Roll back submodule version
  ...

7 years agoFix UNTESTED_FUNCTION includes, remove unnecessary mux initialization in event groups
Jeroen Domburg [Tue, 27 Sep 2016 03:50:46 +0000 (11:50 +0800)]
Fix UNTESTED_FUNCTION includes, remove unnecessary mux initialization in event groups

7 years agowifi: move type definitions into separate header file
Ivan Grokhotkov [Tue, 27 Sep 2016 03:47:47 +0000 (11:47 +0800)]
wifi: move type definitions into separate header file

While this may reduce esp_wifi.h file readability for people who don't have a "go to definition" function in their editors, this is needed to decouple esp_wifi and esp_event headers, and possibly other headers which may use wifi types in the future.

7 years agoAdd UNTESTED_FUNCTION() call to untested functions, make Kconfig option to enable...
Jeroen Domburg [Tue, 27 Sep 2016 03:36:30 +0000 (11:36 +0800)]
Add UNTESTED_FUNCTION() call to untested functions, make Kconfig option to enable that to map to assert()

7 years agowifi: use default esp_event_send handler in WIFI_INIT_CONFIG_DEFAULT
Ivan Grokhotkov [Tue, 27 Sep 2016 03:33:19 +0000 (11:33 +0800)]
wifi: use default esp_event_send handler in WIFI_INIT_CONFIG_DEFAULT

7 years agonvs: Remove flash layout arguments from nvs_init()
Angus Gratton [Tue, 27 Sep 2016 02:45:06 +0000 (12:45 +1000)]
nvs: Remove flash layout arguments from nvs_init()

Add notes that current NVS layout defaults are a Work In Progress and
not yet integrated with the partition table.

7 years agoAdd contributor agreement, update CONTRIBUTING file
Angus Gratton [Tue, 27 Sep 2016 02:03:08 +0000 (12:03 +1000)]
Add contributor agreement, update CONTRIBUTING file

7 years agoUpdate http_request & https_request examples for new startup flow
Angus Gratton [Tue, 27 Sep 2016 01:16:40 +0000 (11:16 +1000)]
Update http_request & https_request examples for new startup flow

7 years agoAdd very simple "hello world" & "blink" examples
Angus Gratton [Tue, 27 Sep 2016 00:30:07 +0000 (10:30 +1000)]
Add very simple "hello world" & "blink" examples

7 years agoBuild examples out-of-tree as part of CI process
Angus Gratton [Mon, 26 Sep 2016 07:13:32 +0000 (17:13 +1000)]
Build examples out-of-tree as part of CI process

7 years agoExamples: Use event groups for waiting until WiFi is associated & ESP has IP
Angus Gratton [Mon, 26 Sep 2016 05:48:36 +0000 (15:48 +1000)]
Examples: Use event groups for waiting until WiFi is associated & ESP has IP

7 years agoBT example: Enable BT stack in config by default
Angus Gratton [Mon, 26 Sep 2016 06:00:00 +0000 (16:00 +1000)]
BT example: Enable BT stack in config by default

7 years agoBT: Relink component on new BT library, auto-initialise submodule if missing
Angus Gratton [Mon, 26 Sep 2016 05:59:39 +0000 (15:59 +1000)]
BT: Relink component on new BT library, auto-initialise submodule if missing

7 years agoDocumentation: Add contributor guide, expand README & add an examples README
Angus Gratton [Wed, 21 Sep 2016 07:25:36 +0000 (17:25 +1000)]
Documentation: Add contributor guide, expand README & add an examples README

7 years agoUpdate gitignore for examples
Angus Gratton [Wed, 21 Sep 2016 06:46:39 +0000 (16:46 +1000)]
Update gitignore for examples

7 years agoexamples: Add https_request example
Angus Gratton [Wed, 21 Sep 2016 06:44:27 +0000 (16:44 +1000)]
examples: Add https_request example

7 years agombedtls: Add some initial menuconfig options
Angus Gratton [Wed, 21 Sep 2016 06:36:30 +0000 (16:36 +1000)]
mbedtls: Add some initial menuconfig options

7 years agoexamples: HTTP request example
Angus Gratton [Wed, 21 Sep 2016 04:57:02 +0000 (14:57 +1000)]
examples: HTTP request example

7 years agocomponent/bt: add bluedroid 1st version
Tian Hao [Mon, 26 Sep 2016 13:37:39 +0000 (21:37 +0800)]
component/bt: add bluedroid 1st version

1. add bluedroid 1st version
2. alarm adapter
3. task semaphore lock
4. other bugs resolved

7 years agocomponent/esp32: udpate wifi lib
liuzhifu [Mon, 26 Sep 2016 12:43:19 +0000 (20:43 +0800)]
component/esp32: udpate wifi lib

1. 1a01e34f - adjust esp_wifi_set/get_promiscuous' arguments from uint8/uint8*
               to bool/bool*
2. 3611e699 - register event handler instead of event Q in esp_wifi_init

7 years agocomponent/esp32: modify bool argument name from enable to en
liuzhifu [Mon, 26 Sep 2016 12:15:16 +0000 (20:15 +0800)]
component/esp32: modify bool argument name from enable to en

1. Modify WIFI_INIT_CONFIG_DEFAULT
2. Modify bool argument name from enable to en

7 years agoMerge branch 'feature/nghttp' into 'master'
Wu Jian Gang [Mon, 26 Sep 2016 12:14:06 +0000 (20:14 +0800)]
Merge branch 'feature/nghttp' into 'master'

components/nghttp: add HTTP2.0 protocol feature

nghttp only support HTTP2.0 parse function, it has nothing to do with other modules. when Communicate with the server, suggest that you use it on the TLS layer.

See merge request !60

7 years agocomponent/esp32: adjust some APIs
liuzhifu [Mon, 26 Sep 2016 11:45:36 +0000 (19:45 +0800)]
component/esp32: adjust some APIs

1. Modify wifi_init_config_t to:
   typedef struct {
      wifi_event_handler_t event_handler;  /**< WiFi event handler */
   } wifi_init_config_t;
2. Modify argument of esp_wifi_set/get_promiscuous from uint8_t/uint8_t* to bool/bool*

7 years agocomponents/nghttp: rename Makefile to component.mk
Wu Jian Gang [Mon, 26 Sep 2016 11:21:55 +0000 (19:21 +0800)]
components/nghttp: rename Makefile to component.mk

7 years agocomponents/nghttp: add HTTP2.0 protocol feature
liuhan [Tue, 6 Sep 2016 09:24:10 +0000 (17:24 +0800)]
components/nghttp: add HTTP2.0 protocol feature

Develop and Issue HTTP2.0 protocol parse function, see nghttp file.

7 years agocomponent/bt: add VHCI mutex protetion
wangmengyang [Mon, 26 Sep 2016 10:52:15 +0000 (18:52 +0800)]
component/bt: add VHCI mutex protetion

1. add mutex to VHCI APIs
2. remove bss/data log print during initialization;
3. add bss/data symbols in esp32.rom.ld
4. add & modify BTDM OSI functions

7 years agoMerge branch 'feature/init_refactoring' into 'master'
Ivan Grokhotkov [Mon, 26 Sep 2016 09:06:12 +0000 (17:06 +0800)]
Merge branch 'feature/init_refactoring' into 'master'

Startup flow refactoring

This set of commits changes the startup code in a way that lets the application choose if/when to initialize WiFi/BT.

Application entry point is now a more familiar `main()` function. This function is executed in its own task. Application may choose to do some initialization from main function, create some tasks and then return from `main`. Simple applications may choose to do all their work from `main`.

Additionally this MR splits event handling code into two parts.

- One part is a set of standard handlers for WiFi and DHCP events. Most applications will use this set of handlers, and it is made available via new `esp_event_process_default` function.
- Another part is the default implementation of event handling loop. Some applications may choose to use default event loop through `esp_event_loop_` set of APIs, which start an event handling task and call user-provided event callback from this task. Other applications may create an event queue and implement event loop themselves. In this case application has to provide `esp_event_send` function. In this case the implementation provided by `esp_event_loop_` module is unused.

esp-idf-template has been updated to match this set of changes: https://github.com/espressif/esp-idf-template/tree/feature/init_refactoring
BT example has also been updated.

We need to provide examples of both event handling approaches. This will be done in a separate follow-up MR.

See merge request !112

7 years agocompoenents/esp32: don't alias start_cpu1 to start_cpu0_default
Ivan Grokhotkov [Mon, 26 Sep 2016 07:58:58 +0000 (15:58 +0800)]
compoenents/esp32: don't alias start_cpu1 to start_cpu0_default

7 years agocomponents/freertos: fix a bug with an uninitialised return value
Ivan Grokhotkov [Mon, 26 Sep 2016 07:57:54 +0000 (15:57 +0800)]
components/freertos: fix a bug with an uninitialised return value

introduced in d63dac0

7 years agoMerge branch 'bugfix/spelling_and_crlf_fix_in_panic' into 'master'
Angus Gratton [Mon, 26 Sep 2016 07:53:05 +0000 (15:53 +0800)]
Merge branch 'bugfix/spelling_and_crlf_fix_in_panic' into 'master'

Fix a spelling mistake in panic message, add carriage return to stack canary message

Probably the most trivial mr ever, but the spelling error was reported as a bug and the missing \r bugged me ever since I saw it.

See merge request !113

7 years agoesptool: Bump upstream revision
Angus Gratton [Wed, 21 Sep 2016 07:59:16 +0000 (17:59 +1000)]
esptool: Bump upstream revision

Fixes github #14 (unexpected errors writing to DIO flash)

Also speed boost when writing compressed data (can now go via stub)

7 years agoChange application entry point name back to app_main
Ivan Grokhotkov [Mon, 26 Sep 2016 06:48:41 +0000 (14:48 +0800)]
Change application entry point name back to app_main

7 years agoMerge branch 'master' into feature/init_refactoring
Ivan Grokhotkov [Mon, 26 Sep 2016 06:35:09 +0000 (14:35 +0800)]
Merge branch 'master' into feature/init_refactoring

* master:
  components/spi_flash: remove stray level of indentation
  components/nvs: fix broken sentences in comment blocks
  Roll back submodule version
  Spinlocks already come initialized. Remove the code that would essentially re-initialize them at runtime
  Remove all references to prvLockQueue / prvUnlockQueue
  components/esp32: clean up unused function warnings in single core mode
  clean up warnings
  components/nvs: fix build, use log library instead of printf
  components/spi_flash: add flash operation counters option to Kconfig
  components/nvs: add erase function
  components/nvs: fix formatting
  components/nvs: batch writes when possible
  components/spi_flash: add performance counters
  components/nvs: maintain item hash list at page level
  components/nvs: avoid reading just-erased page

# Conflicts:
# components/esp32/cpu_start.c
# components/esp32/event_default_handlers.c

7 years agogitlab-ci: build SSC with matching branch name, if available
Ivan Grokhotkov [Mon, 26 Sep 2016 06:17:31 +0000 (14:17 +0800)]
gitlab-ci: build SSC with matching branch name, if available

7 years agoMerge branch 'feature/nvs_speed_improvement' into 'master'
Ivan Grokhotkov [Mon, 26 Sep 2016 04:51:01 +0000 (12:51 +0800)]
Merge branch 'feature/nvs_speed_improvement' into 'master'

nvs: speed improvement and erase APIs

NVS initialization speed issue raised in https://ezredmine.espressif.com/issues/6881 has been addressed for single core mode through optimization of `spi_flash_*` routines. This MR addresses same issue for dual core mode.

- An index table is added at Page level, it allows doing fast search of item index based on key name and namespace. This heavily reduces the number of flash reads.
- Write operations are batched when writing/erasing long variable-length values (str and blob). This gives a 33% reduction in the number of writes for a 64-byte value, 50% reduction for a 96-byte value.
- Add optional (configurable via menuconfig) perfomance counters for spi_flash APIs

With these changes, total init time for NVS goes down from 2 seconds to 140 ms.
Additional RAM usage is 128-640 bytes per page, depending on content. Typical RAM usage for current use case (storing wifi configuration parameters) is 256 bytes.

This change also exposes APIs to erase single key or the whole namespaces, needed for https://ezredmine.espressif.com/issues/6769.

See merge request !105

7 years agocomponents/spi_flash: remove stray level of indentation
Ivan Grokhotkov [Mon, 26 Sep 2016 04:47:17 +0000 (12:47 +0800)]
components/spi_flash: remove stray level of indentation

7 years agocomponents/nvs: fix broken sentences in comment blocks
Ivan Grokhotkov [Mon, 26 Sep 2016 04:41:04 +0000 (12:41 +0800)]
components/nvs: fix broken sentences in comment blocks

7 years agocomponents/esp32: fix renaming of esp_event_set_cb, minor clean up
Ivan Grokhotkov [Mon, 26 Sep 2016 04:35:09 +0000 (12:35 +0800)]
components/esp32: fix renaming of esp_event_set_cb, minor clean up

7 years agocomponents/esp32: remove "_user" part from entry points, weaken start_cpu0/1
Ivan Grokhotkov [Mon, 26 Sep 2016 04:29:00 +0000 (12:29 +0800)]
components/esp32: remove "_user" part from entry points, weaken start_cpu0/1

With this change applications can override very early part of startup procedure by implementing "start_cpu0" and "start_cpu1" functions.

7 years agoFix a spelling mistake in panic message, add carriage return to stack canary message
Jeroen Domburg [Mon, 26 Sep 2016 03:18:43 +0000 (11:18 +0800)]
Fix a spelling mistake in panic message, add carriage return to stack canary message

7 years agocomponents/driver: modify LEDC driver
Wangjialin [Mon, 26 Sep 2016 01:56:03 +0000 (09:56 +0800)]
components/driver: modify LEDC driver

1. modify ledc struct header: combine high speed and low speed channel
2. modify ledc init function
3. add timer control api
4. modify typo in ledc.h

7 years agoMerge branch 'bugfix/clean_up_warnings' into 'master'
Angus Gratton [Mon, 26 Sep 2016 00:16:31 +0000 (08:16 +0800)]
Merge branch 'bugfix/clean_up_warnings' into 'master'

Clean up warnings and remove unused parts of FreeRTOS

For third party components (lwip and expat), compilation flags are adjusted to silence existing warnings (i have manually checked that all warnings are benign).
In components/esp32, replaced use of WIFI_DEBUG with ESP_LOG functions.

Additionally prvLockQueue/prvUnlockQueue have been removed, dragging some other bits of FreeRTOS along.

Original issue: https://github.com/espressif/esp-idf/issues/18

See merge request !111