]> granicus.if.org Git - esp-idf/log
esp-idf
8 years agoRSA Accelerator: Add mod_exp, refactor to avoid memory allocation & copying
Angus Gratton [Tue, 20 Sep 2016 11:24:58 +0000 (21:24 +1000)]
RSA Accelerator: Add mod_exp, refactor to avoid memory allocation & copying

Not fully working at the moment, mod_exp has a bug.

8 years agohwcrypto bignum: Implement multiplication modulo
Angus Gratton [Tue, 20 Sep 2016 11:02:07 +0000 (21:02 +1000)]
hwcrypto bignum: Implement multiplication modulo

Fixes case where hardware bignum multiplication fails due to either
operand >2048 bits.

8 years agohwcrypto bignum: Use mbedtls_mpi data structures for all bignum data
Angus Gratton [Mon, 19 Sep 2016 08:00:03 +0000 (18:00 +1000)]
hwcrypto bignum: Use mbedtls_mpi data structures for all bignum data

Still doesn't solve the problem of multiplying two numbers where one is
>2048 bits, needed for RSA support.

8 years agoMerge branch 'bugfix/fixes_from_github' into 'master'
Angus Gratton [Mon, 10 Oct 2016 21:00:27 +0000 (05:00 +0800)]
Merge branch 'bugfix/fixes_from_github' into 'master'

Minor fixes/improvements (github-related)

Fixes for some issues reported on github or otherwise related.

See merge request !131

8 years agobuild system: Add -fno-rtti when compiling C++ code
Angus Gratton [Mon, 10 Oct 2016 06:19:13 +0000 (17:19 +1100)]
build system: Add -fno-rtti when compiling C++ code

8 years agoFreeRTOS KConfig: Limit tick rate to 1000Hz
Angus Gratton [Wed, 5 Oct 2016 23:06:01 +0000 (10:06 +1100)]
FreeRTOS KConfig: Limit tick rate to 1000Hz

>1000Hz breaks portTICK_PERIOD_MS (see gitlab 4)

A working >1000Hz tick rate is possible with some changes, but beyond a
certain point it's dimishing returns to preempt tasks this often.

8 years agobootloader: Fix accidental tabs introduced in !78
Angus Gratton [Wed, 5 Oct 2016 22:55:43 +0000 (09:55 +1100)]
bootloader: Fix accidental tabs introduced in !78

8 years agobuild system: Print a WARNING if any submodule is out of date
Angus Gratton [Tue, 4 Oct 2016 05:33:18 +0000 (16:33 +1100)]
build system: Print a WARNING if any submodule is out of date

Inspired by Github #27 and related "gotchas" with keeping submodules up to date.

8 years agoFix stack overflow message format
rudi ;-) [Sun, 2 Oct 2016 00:04:09 +0000 (02:04 +0200)]
Fix stack overflow message format

Poorly formatted message for stack overflow for task. Closes #36

8 years ago'make flash' targets: Print serial port when flashing
Angus Gratton [Mon, 3 Oct 2016 23:12:17 +0000 (10:12 +1100)]
'make flash' targets: Print serial port when flashing

Inspired by github #30 and related mentions where selected serial port
is not clear from the make output.

8 years agoMerge branch 'feature/support_iperf' into 'master'
Angus Gratton [Mon, 10 Oct 2016 20:52:34 +0000 (04:52 +0800)]
Merge branch 'feature/support_iperf' into 'master'

lwip/esp32: support iperf

1. Add _exit() definition in syscalls.c
2. Fix a bug in sockets.c on which iperf depends

I'm now investigating performance of esp32, need iperf to be merged in to master branch for convience

See merge request !136

8 years agoMerge branch 'feature/rmt_add_struct_for_memory' into 'master'
Jeroen Domburg [Mon, 10 Oct 2016 14:44:36 +0000 (22:44 +0800)]
Merge branch 'feature/rmt_add_struct_for_memory' into 'master'

Add data memory for RMT peripheral

As described in the title.

See merge request !134

8 years agolwip/esp32: support iperf
liuzhifu [Sun, 9 Oct 2016 07:45:25 +0000 (15:45 +0800)]
lwip/esp32: support iperf

1. Add _exit() definition in syscalls.c
2. Fix a bug in sockets.c on which iperf depends

8 years agoAdd data memory for RMT peripheral
Jeroen Domburg [Sat, 8 Oct 2016 05:15:06 +0000 (13:15 +0800)]
Add data memory for RMT peripheral

8 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

8 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.

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

8 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

8 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

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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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.

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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

8 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.

8 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.

8 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

8 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.

8 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

8 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

8 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

8 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.

8 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

8 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!

8 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()

8 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.

8 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

8 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

8 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

8 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

8 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

8 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

8 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
  ...

8 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

8 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.

8 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()

8 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

8 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.

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

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

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

8 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

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

8 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

8 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

8 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

8 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*

8 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

8 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.

8 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

8 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

8 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

8 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

8 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

8 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)

8 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

8 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

8 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

8 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