]> granicus.if.org Git - esp-idf/log
esp-idf
8 years agobuild system: use -Og instead of -O0 for debug builds, expand help text in menuconfig
Ivan Grokhotkov [Thu, 20 Oct 2016 08:10:51 +0000 (16:10 +0800)]
build system: use -Og instead of -O0 for debug builds, expand help text in menuconfig

8 years agobuild system: fix typo, move -ggdb to OPTIMIZATION_FLAGS
Ivan Grokhotkov [Mon, 17 Oct 2016 05:47:13 +0000 (13:47 +0800)]
build system: fix typo, move -ggdb to OPTIMIZATION_FLAGS

8 years agoAdd test for compiling in release mode, fix warnings and errors which appeared
Ivan Grokhotkov [Mon, 17 Oct 2016 04:45:42 +0000 (12:45 +0800)]
Add test for compiling in release mode, fix warnings and errors which appeared

8 years agobuild system: add menuconfig choice for optimization level, reorganize C*FLAGS
Ivan Grokhotkov [Mon, 17 Oct 2016 04:38:17 +0000 (12:38 +0800)]
build system: add menuconfig choice for optimization level, reorganize C*FLAGS

This change adds two options (Debug/Release) for optimization level.
Debug enables -O0, release enables -Os and adds -DNDEBUG (which removes all assert() statements).
Debugging symbols are kept in both cases, although we may add an option to strip output file if necessary.
Also we used to define all common compiler flags in CPPFLAGS, and then appended them to CFLAGS/CXXFLAGS.
It makes it impossible to add preprocessor macros to CPPFLAGS at component level (one has to use CFLAGS/CXXFLAGS instead).
Some third party libraries are not compatible with this approach. Changed to the more common way of using these variables.

8 years agoMerge branch 'feature/test_auto_config' into 'master'
Ivan Grokhotkov [Thu, 13 Oct 2016 07:01:23 +0000 (15:01 +0800)]
Merge branch 'feature/test_auto_config' into 'master'

Feature/test auto config

See merge request !114

8 years agoMerge branch 'bugfix/small_fixes_jd' into 'master'
Jeroen Domburg [Wed, 12 Oct 2016 13:13:34 +0000 (21:13 +0800)]
Merge branch 'bugfix/small_fixes_jd' into 'master'

Some small fixes

- Kill unused uxReturn in task.c,  https://github.com/espressif/esp-idf/issues/48
- Line end conversion in gpio.c
- Move heap_alloc_caps.h so components can also use it

See merge request !135

8 years agoremove debug command "ls" in test report job
Yinling [Wed, 12 Oct 2016 03:48:24 +0000 (11:48 +0800)]
remove debug command "ls" in test report job

8 years agoshould set TEST_CASE_FILE_PATH before CONFIG_FILE use it
Yinling [Wed, 12 Oct 2016 03:44:54 +0000 (11:44 +0800)]
should set TEST_CASE_FILE_PATH before CONFIG_FILE use it

8 years agorename components/test to idf_test:
Yinling [Wed, 12 Oct 2016 03:17:56 +0000 (11:17 +0800)]
rename components/test to idf_test:

1. test will be categorized by test level
2. add test level as attribute to test cases
3. will select TestCaseScript by the test cases added to CI (currently no test case uses test case script)
4. adding test level to test jobs
5. update .gitlab-ci.yml, each job need to set its test case file path
6. update .gitlab-ci.yml, test case path for test report is changed to idf_test

8 years agoReinstate build_examples gitlab CI case
Angus Gratton [Tue, 11 Oct 2016 05:41:05 +0000 (16:41 +1100)]
Reinstate build_examples gitlab CI case

Had been removed in 42e31116

8 years agofix issue on test report job:
Yinling [Fri, 30 Sep 2016 08:11:24 +0000 (16:11 +0800)]
fix issue on test report job:

1. test report job should be put to deploy stage, otherwise it can't get logs from test stage
2. allow test fail so that test report job will be executed for failed test

8 years agocan not put test report to deploy stage, otherwise if test fails it won't generate...
He Yin Ling [Fri, 30 Sep 2016 07:34:17 +0000 (15:34 +0800)]
can not put test report to deploy stage, otherwise if test fails it won't generate test report.

8 years agoadd job to generate test report
Yinling [Fri, 30 Sep 2016 05:58:02 +0000 (13:58 +0800)]
add job to generate test report

8 years agomove content from readme to wiki
Yinling [Thu, 29 Sep 2016 12:47:31 +0000 (20:47 +0800)]
move content from readme to wiki

8 years agoadd some missing cases caused by autogen bug
Yinling [Thu, 29 Sep 2016 12:22:33 +0000 (20:22 +0800)]
add some missing cases caused by autogen bug

8 years agonight jobs should exit succeed if no need to run
Yinling [Thu, 29 Sep 2016 12:21:33 +0000 (20:21 +0800)]
night jobs should exit succeed if no need to run

8 years agoupdate current known issue for ESP32 IDF test
Yinling [Thu, 29 Sep 2016 12:20:40 +0000 (20:20 +0800)]
update current known issue for ESP32 IDF test

8 years agoTest cases use libpcap or libnet are not CI ready now:
Yinling [Thu, 29 Sep 2016 06:14:19 +0000 (14:14 +0800)]
Test cases use libpcap or libnet are not CI ready now:

1. It need rebuild native lib
2. require root permission

8 years agoadd gitlab key in test template job
Yinling [Thu, 29 Sep 2016 05:38:29 +0000 (13:38 +0800)]
add gitlab key in test template job

8 years agobuild SSC should also use variable for server name
He Yin Ling [Wed, 28 Sep 2016 12:11:42 +0000 (20:11 +0800)]
build SSC should also use variable for server name

8 years agosync test config from test bench:
Yinling [Thu, 29 Sep 2016 04:07:35 +0000 (12:07 +0800)]
sync test config from test bench:

1. night jobs should exit without error if not triggered
2. remove get wifi connect status cases from IDF
3. use Env tag to check if test environment is special

8 years agoupdate job configs for allow case fail feature
Yinling [Wed, 28 Sep 2016 11:54:43 +0000 (19:54 +0800)]
update job configs for allow case fail feature

8 years agoadd note that test folder is for internal use.
Yinling [Wed, 28 Sep 2016 11:52:04 +0000 (19:52 +0800)]
add note that test folder is for internal use.
Will move data in readme to wiki except first two notes.

8 years agosync several changes from auto_test_script:
Yinling [Wed, 28 Sep 2016 11:48:38 +0000 (19:48 +0800)]
sync several changes from auto_test_script:

1. use variable for gitlab server
2. add LOCAL_ENV_CONFIG_PATH to template
2. update jobs with feature "allow fail"

8 years agoadd KnownIssues file to test:
Yinling [Wed, 28 Sep 2016 11:43:45 +0000 (19:43 +0800)]
add KnownIssues file to test:

add known issues to this file so that they will be exculded in CI results

8 years agofix bugs in config files:
Yinling [Tue, 27 Sep 2016 08:22:51 +0000 (16:22 +0800)]
fix bugs in config files:

1. filter name is "Add" not "ADD"
2. SSC_T1_APC is special environment
3. remove "debug mode" from config as it will implemented with other ways

8 years agoauto_test_script will be cloned from gitlab
Yinling [Tue, 27 Sep 2016 08:22:18 +0000 (16:22 +0800)]
auto_test_script will be cloned from gitlab

8 years agomodify document to add how to run test locally
Yinling [Mon, 26 Sep 2016 11:26:53 +0000 (19:26 +0800)]
modify document to add how to run test locally

8 years agorevise .gitlab-ci.yml:
Yinling [Mon, 26 Sep 2016 11:24:51 +0000 (19:24 +0800)]
revise .gitlab-ci.yml:
1. remove duplicated code
2. fix path error for config file

8 years agoupdate CI config file:
Yinling [Mon, 26 Sep 2016 06:32:58 +0000 (14:32 +0800)]
update CI config file:
1. add night job define (need to set variable in trigger to run night jobs)
2. move auto generated part to the end of file
3. add auto generated CI jobs

8 years agoadd auto generated test folder to components:
Yinling [Mon, 26 Sep 2016 06:27:57 +0000 (14:27 +0800)]
add auto generated test folder to components:
1. add test cases and related scripts
2. add CI config files
read README.md for detail

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 agoRename include, use spaces instead of tabs
Jeroen Domburg [Sun, 9 Oct 2016 07:32:08 +0000 (15:32 +0800)]
Rename include, use spaces instead of tabs

8 years agoConvert Windows -> Unix line ends in gpio.c
Jeroen Domburg [Sat, 8 Oct 2016 06:12:55 +0000 (14:12 +0800)]
Convert Windows -> Unix line ends in gpio.c

8 years agoMove heap_alloc_caps.h to a location where it can be included by components
Jeroen Domburg [Sat, 8 Oct 2016 06:11:34 +0000 (14:11 +0800)]
Move heap_alloc_caps.h to a location where it can be included by components

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.