]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agocomponents/openssl: add client and server demo
Dong Heng [Mon, 14 Nov 2016 07:11:22 +0000 (15:11 +0800)]
components/openssl: add client and server demo

7 years agocomponents/openssl: sync the code form esp8266 sdk
Dong Heng [Mon, 14 Nov 2016 01:40:12 +0000 (09:40 +0800)]
components/openssl: sync the code form esp8266 sdk

7 years agoMerge branch 'feature/per_cpu_interrupt_handlers' into 'master'
Jeroen Domburg [Fri, 11 Nov 2016 06:50:29 +0000 (14:50 +0800)]
Merge branch 'feature/per_cpu_interrupt_handlers' into 'master'

Per-CPU interrupt handlers and args

Up to now, the interrupt handlers and args were shared between CPUs, that is, if you set an interrupt handler on CPU0, CPU1 would invoke the same interrupt handler on that interrupt. This code gives every CPU its own space for interrupt handlers.

See merge request !192

7 years agoMerge branch 'feature/nvs_examples' into 'master'
Ivan Grokhotkov [Fri, 11 Nov 2016 06:25:27 +0000 (14:25 +0800)]
Merge branch 'feature/nvs_examples' into 'master'

NVS examples

Add two examples for working with NVS.

One is reading and writing an integer value, another is reading and writing a blob.

See merge request !194

7 years agoComment fix
Jeroen Domburg [Fri, 11 Nov 2016 04:26:42 +0000 (12:26 +0800)]
Comment fix

7 years agoexamples: minor tweaks to comments
Ivan Grokhotkov [Fri, 11 Nov 2016 04:16:54 +0000 (12:16 +0800)]
examples: minor tweaks to comments

7 years agoMerge branch 'feature/tw8619_merge_amsdu' into 'master'
Wu Jian Gang [Fri, 11 Nov 2016 02:12:00 +0000 (10:12 +0800)]
Merge branch 'feature/tw8619_merge_amsdu' into 'master'

esp32: merge amsdu

esp32 now can support AMSDU

See merge request !193

8 years agoesp32: merge amsdu
Liu Zhi Fu [Thu, 10 Nov 2016 13:12:22 +0000 (21:12 +0800)]
esp32: merge amsdu

esp32 now can support AMSDU

8 years agoMerge branch 'driver_merge_tmp/merge_uart' into 'master'
Jeroen Domburg [Thu, 10 Nov 2016 10:11:21 +0000 (18:11 +0800)]
Merge branch 'driver_merge_tmp/merge_uart' into 'master'

Add UART driver

1. add uart.h and uart.c
2. add ESP_ERR_TIMEOUT in esp_err.h
3. add UART AHB FIFO address in uart_reg.h
4. modify xRingbufferSendFromISR return value in ringbuffer.c
5. add #include "soc/gpio_sig_map.h" in gpio.h

See merge request !146

8 years agoAdd core info to xt interrupt api
Jeroen Domburg [Thu, 10 Nov 2016 10:04:23 +0000 (18:04 +0800)]
Add core info to xt interrupt api

8 years agoPer-CPU interrupt handlers and args
Jeroen Domburg [Thu, 10 Nov 2016 09:59:46 +0000 (17:59 +0800)]
Per-CPU interrupt handlers and args

8 years agoFix uart tx bug, data pass(with flow control) through test ok.
Wangjialin [Thu, 10 Nov 2016 09:01:39 +0000 (17:01 +0800)]
Fix uart tx bug, data pass(with flow control) through test ok.

8 years agoMerge branch 'bugfix/nvs_lookup_failure' into 'master'
Ivan Grokhotkov [Thu, 10 Nov 2016 08:58:39 +0000 (16:58 +0800)]
Merge branch 'bugfix/nvs_lookup_failure' into 'master'

nvs: fix Page::findItem and Storage::findItem regression

When read caching was added, Page::findItem started modifying itemIndex reference argument even if item wasn't found.
Incidentally, Storage::findItem reused itemIndex when starting search at next page.
So,
- if the first page had a cached index (findItem was called for that page), and it pointed to a non-zero index,
- first page has a few empty items at the end (but is marked full),
- next search looked up the item on the second page,
- index of the item on the second page was less than the cached index on the first page,

then the search would fail because cached starting index was reused.

This change fixes both sides of the problem:
- Page::findItem shouldn't modify itemIndex argument if item is not found
- Storage::findItem should not reuse itemIndex between pages

Two tests have been added.

ref. TW8406

See merge request !171

8 years agoMerge branch 'feature/docs_update' into 'master'
Ivan Grokhotkov [Thu, 10 Nov 2016 08:58:27 +0000 (16:58 +0800)]
Merge branch 'feature/docs_update' into 'master'

Feature/docs update

https://github.com/espressif/esp-idf/pull/77
Update to the API documentation, links fix, instructions for writing documentation.
Replaces !173.

See merge request !180

8 years agoOptimsed code
Krzysztof [Thu, 10 Nov 2016 06:37:16 +0000 (07:37 +0100)]
Optimsed code

Following note in review by @igrr :+1:

8 years agoNVS Examples update
Krzysztof [Wed, 9 Nov 2016 19:26:28 +0000 (20:26 +0100)]
NVS Examples update

Updated previusly submitted example, saved it as "07_nvs_rw_value" and
added a new one.

Overview of examples:
* 07_nvs_rw_value - simple read and write a single value
* 08_nvs_rw_blob - read and write a blob that is extened with new data
on each restart of ESP32

Removed LICENSE files

8 years agoMerge branch 'master' into driver_merge_tmp/merge_uart
Wangjialin [Thu, 10 Nov 2016 03:57:19 +0000 (11:57 +0800)]
Merge branch 'master' into driver_merge_tmp/merge_uart

# Conflicts:
# components/esp32/include/esp_err.h

8 years agoMerge branch 'bugfix/github_issues' into 'master'
Ivan Grokhotkov [Wed, 9 Nov 2016 02:12:25 +0000 (10:12 +0800)]
Merge branch 'bugfix/github_issues' into 'master'

Fixes for github issues

This MR contains a bunch of small fixes for issues raised on Github and esp32.com forum:

- vfs doesn't check error code returned by open syscall
- spi_flash doesn't work when built in release mode
- duplicate definition of O_NONBLOCK when combining LwIP socket.h with sys/fcntl.h
- wrong order of creation of standard streams
- `_times_r` returning incorrect values, causing `clock`to return double of the actual time
- driver/gpio.h: comment fix
- wifi event handlers: fix incorrect MAC address printed by logging statements
- move some functions out of IRAM when compiling for bootloader

Please check commit descriptions for links to issues/forum posts and more details.

See merge request !183

8 years agoMerge branch 'bugfix/compile_with_no_timers' into 'master'
Angus Gratton [Wed, 9 Nov 2016 01:21:23 +0000 (09:21 +0800)]
Merge branch 'bugfix/compile_with_no_timers' into 'master'

newlib: fix compilation error when no timers are enabled in menuconfig

I have checked that three options (RTC/RTC+FRC1/FRC1) work, but didn't check "None" option.
This adds some missing ifdef blocks to remove "unused function/variable" warnings and fixes the use of `__errno_r` in a non-reentrant function.

See merge request !174

8 years agowpa_supplicant: clean up unused variable warning
Ivan Grokhotkov [Tue, 8 Nov 2016 12:26:12 +0000 (20:26 +0800)]
wpa_supplicant: clean up unused variable warning

8 years agobuild system: Fix bootloader-flash target
Angus Gratton [Tue, 8 Nov 2016 01:00:38 +0000 (12:00 +1100)]
build system: Fix bootloader-flash target

ESP32 forum thread: http://esp32.com/viewtopic.php?f=2&t=407&p=1902#p1902

8 years agobootloader: move some functions out of IRAM when building in bootloader mode
Ivan Grokhotkov [Tue, 8 Nov 2016 03:25:40 +0000 (11:25 +0800)]
bootloader: move some functions out of IRAM when building in bootloader mode

Fixes https://github.com/espressif/esp-idf/issues/80

8 years agowifi: use MACSTR and MAC2STR in logging statements
Ivan Grokhotkov [Tue, 8 Nov 2016 03:24:44 +0000 (11:24 +0800)]
wifi: use MACSTR and MAC2STR in logging statements

Fixes https://github.com/espressif/esp-idf/issues/49

8 years agodriver/gpio: fix interrupt type names in comment block
Ivan Grokhotkov [Tue, 8 Nov 2016 02:35:46 +0000 (10:35 +0800)]
driver/gpio: fix interrupt type names in comment block

https://github.com/espressif/esp-idf/issues/56

8 years agonewlib: fix `_times_r` syscall implementation
Ivan Grokhotkov [Tue, 8 Nov 2016 02:33:21 +0000 (10:33 +0800)]
newlib: fix `_times_r` syscall implementation

tms_cstime should only take system time in child processes into account, so has to be zero.
https://github.com/espressif/esp-idf/issues/81

8 years agofix order of creation of standard streams
Ivan Grokhotkov [Tue, 8 Nov 2016 01:08:23 +0000 (09:08 +0800)]
fix order of creation of standard streams

With existing order, file descriptors assigned to stdin, stdout, stderr didn't match standard assignment.
https://github.com/espressif/esp-idf/issues/67

8 years agolwip: fix duplicate definition of O_NONBLOCK
Ivan Grokhotkov [Tue, 8 Nov 2016 01:05:05 +0000 (09:05 +0800)]
lwip: fix duplicate definition of O_NONBLOCK

LwIP will define O_NONBLOCK in sockets.h if it isn't defined yet.
If sys/fcntl.h is included after socket.h, there will be duplicate definition.
Work around by including sys/fcntl.h into lwipopts.h.

https://github.com/espressif/esp-idf/issues/75

8 years agospi_flash: add missing volatile qualifier for lock flags
Ivan Grokhotkov [Tue, 8 Nov 2016 01:02:30 +0000 (09:02 +0800)]
spi_flash: add missing volatile qualifier for lock flags

http://esp32.com/viewtopic.php?f=14&t=419&p=1901

8 years agovfs: check error code returned by FS driver open function
Ivan Grokhotkov [Mon, 7 Nov 2016 06:26:21 +0000 (14:26 +0800)]
vfs: check error code returned by FS driver open function

Fixes https://github.com/espressif/esp-idf/issues/78

8 years agoMerge branch 'feature/tw8193_add_wifi_api_detail_return_code' into 'master'
Wu Jian Gang [Tue, 8 Nov 2016 11:48:11 +0000 (19:48 +0800)]
Merge branch 'feature/tw8193_add_wifi_api_detail_return_code' into 'master'

esp32/make: add detailed return error code for wifi APIs

1. Add detailed return error code for wifi APIs
2. Add description about error code in esp_wifi.h
3. Modify esp_wifi_reg_rxcb to esp_wifi_internal_reg_rxcb
4. Modify esp_wifi_set_sta_ip to esp_wifi_internal_set_sta_ip
5. Mark system_init as deprecated API

See merge request !187

8 years agoesp32: modify the code according to review comments
Liu Zhi Fu [Tue, 8 Nov 2016 11:19:28 +0000 (19:19 +0800)]
esp32: modify the code according to review comments

1. Adjust error code definition
2. Refractor the comments for esp_wifi_internal_tx

8 years agoMerge branch 'revert-faad2923' into 'master'
Ivan Grokhotkov [Tue, 8 Nov 2016 10:48:11 +0000 (18:48 +0800)]
Merge branch 'revert-faad2923' into 'master'

Revert feature/ci_checkout_same_branch_for_submodule

This reverts merge request !178

See merge request !184

8 years agoMerge branch 'bugfix/rmt_mem_struct' into 'master'
Ivan Grokhotkov [Tue, 8 Nov 2016 10:47:53 +0000 (18:47 +0800)]
Merge branch 'bugfix/rmt_mem_struct' into 'master'

Only fix rmt_mem_t struct definition error.

Modify the struct definition according to technical_reference_manual.
Tested.

```
typedef volatile struct {
    struct {
        union {
            struct {
                uint32_t duration0:    15;
                uint32_t level0:       1;
                uint32_t duration1:    15;
                uint32_t level1:       1;
            };
            uint32_t val;
        } data[64];
    } chan[8];
} rmt_mem_t;
```

See merge request !186

8 years agoesp32/make: add detailed return error code for wifi APIs
Liu Zhi Fu [Tue, 8 Nov 2016 09:34:46 +0000 (17:34 +0800)]
esp32/make: add detailed return error code for wifi APIs

1. Add detailed return error code for wifi APIs
2. Add description about error code in esp_wifi.h
3. Modify esp_wifi_reg_rxcb to esp_wifi_internal_reg_rxcb
4. Modify esp_wifi_set_sta_ip to esp_wifi_internal_set_sta_ip
5. Mark system_init as deprecated API

8 years agoMerge branch 'feature/tw8387_merge_bt_wifi_coexist_code' into 'master'
Wu Jian Gang [Tue, 8 Nov 2016 09:18:57 +0000 (17:18 +0800)]
Merge branch 'feature/tw8387_merge_bt_wifi_coexist_code' into 'master'

esp32: merge bt/wifi coexist code

1. Modify makefile to add coexist lib
2. Update bt/wifi coexist lib

See merge request !185

8 years agoesp32: remove libcrypto according to review comments
Liu Zhi Fu [Tue, 8 Nov 2016 07:28:20 +0000 (15:28 +0800)]
esp32: remove libcrypto according to review comments

8 years agoOnly fix rmt_mem_t struct definition error.
Wangjialin [Tue, 8 Nov 2016 06:19:31 +0000 (14:19 +0800)]
Only fix rmt_mem_t struct definition error.

8 years agoesp32: merge bt/wifi coexist code
Liu Zhi Fu [Tue, 8 Nov 2016 05:30:35 +0000 (13:30 +0800)]
esp32: merge bt/wifi coexist code

1. Modify makefile to add coexist lib
2. Update bt/wifi coexist lib

8 years agoRevert "Merge branch 'feature/ci_checkout_same_branch_for_submodule' into 'master'"
Ivan Grokhotkov [Tue, 8 Nov 2016 03:55:48 +0000 (11:55 +0800)]
Revert "Merge branch 'feature/ci_checkout_same_branch_for_submodule' into 'master'"

This reverts merge request !178

8 years agoMerge branch 'feature/integrate_unit_test_to_ci' into 'master'
Ivan Grokhotkov [Mon, 7 Nov 2016 13:17:08 +0000 (21:17 +0800)]
Merge branch 'feature/integrate_unit_test_to_ci' into 'master'

integrate unit test to CI

See merge request !167

8 years agoMerge branch 'feature/wpa_supplicant_libcrypto_source' into 'master'
Ivan Grokhotkov [Mon, 7 Nov 2016 13:15:49 +0000 (21:15 +0800)]
Merge branch 'feature/wpa_supplicant_libcrypto_source' into 'master'

wpa_supplicant: replace pre-built crypto library with source code

This change replaces libcrypto.a pre-built library with source code from wpa_supplicant.
For now i've decided to keep the modified layout of source and header files which is used in the esp32_rtos_sdk_core project. This will make it easier to move other parts of wpa_supplicant from esp32_rtos_sdk_core into esp-idf. Once we move everything, we can rearrange the files and upgrade wpa_supplicant to latest version.

See merge request !177

8 years agoMinor changes for driver
Wangjialin [Mon, 7 Nov 2016 06:16:52 +0000 (14:16 +0800)]
Minor changes for driver

1. remove "\n" when calling ESP_LOGX APIs.
2. modify uart_event_t for uart rx data.
3. use MICRO for uart inverse value
4. add uart_tx_data_t for internal tx function.

8 years agoMerge branch 'bugfix/osx_menuconfig_build' into 'master'
Ivan Grokhotkov [Mon, 7 Nov 2016 04:55:47 +0000 (12:55 +0800)]
Merge branch 'bugfix/osx_menuconfig_build' into 'master'

Allow OS X to build without libintl

https://github.com/espressif/esp-idf/pull/42

I have tested this with the following configurations:
- OS X with Xcode command line tools, no macports, no homebrew
- OS X with Xcode command line tools and homebrew
- OS X with Xcode IDE and macports

All three work with this change, without it the first two had issues.

See merge request !172

8 years agoFix build with macports/pkgconfig, silence format string warnings on OS X
Ivan Grokhotkov [Mon, 7 Nov 2016 04:27:53 +0000 (12:27 +0800)]
Fix build with macports/pkgconfig, silence format string warnings on OS X

Extra space is needed in echo -n "-lncurses ", otherwise if pkg-config outputs a directory after that, it will result in "-lncurses-L/opt/local/lib" (without space).
-Wno-format-security flag is needed on macOS to silence warnings about printf(gettext("message")) constructs.

8 years agoMerge branch 'feature/style_guide' into 'master'
Ivan Grokhotkov [Mon, 7 Nov 2016 04:26:15 +0000 (12:26 +0800)]
Merge branch 'feature/style_guide' into 'master'

docs: add style guide

This adds initial code style guide. Only section on code formatting is written, other sections to be added later.
Also adds scripts to format code using astyle.

See merge request !46

8 years agoMerge branch 'bugfix/bootloader_iram_overlap' into 'master'
Ivan Grokhotkov [Mon, 7 Nov 2016 04:12:31 +0000 (12:12 +0800)]
Merge branch 'bugfix/bootloader_iram_overlap' into 'master'

fix overlap between bootloader and application IRAM ranges

This change moves the action of enabling APP CPU cache into the application startup code.
Therefore we don't need to use IRAM for the final stage of bootloader, and application can use all 0x20000 of IRAM.
This fixes crashes which happened when application used enough of IRAM to overlap with bootloader functions.

See merge request !176

8 years agoMerge branch 'feature/ci_checkout_same_branch_for_submodule' into 'master'
Ivan Grokhotkov [Mon, 7 Nov 2016 04:12:13 +0000 (12:12 +0800)]
Merge branch 'feature/ci_checkout_same_branch_for_submodule' into 'master'

Feature/ci checkout same branch for submodule

esp-idf have several submodules like wifi-lib, bt-lib.

esp-idf branches may need to use specific branches in submodules to get build pass and do test.

This feature will first try to checkout the branch with same name for all submodules for jobs which uses global `before_script`

See merge request !178

8 years agoNon-Volatile Storage (NVS) example
Krzysztof [Sun, 6 Nov 2016 16:41:08 +0000 (17:41 +0100)]
Non-Volatile Storage (NVS) example
Demonstrates how to read and write a value using NVS.
The value tracks number of ESP32 module restarts.
Example also shows how to use basic diagnostics if read / write
operation was successful.

8 years agoremove unnecessary "git fetch" and add echo submodule path
Yinling [Sun, 6 Nov 2016 14:58:31 +0000 (22:58 +0800)]
remove unnecessary "git fetch" and add echo submodule path

8 years agoNo need to deinit submodules as use clean clone by config
Yinling [Sun, 6 Nov 2016 14:53:23 +0000 (22:53 +0800)]
No need to deinit submodules as use clean clone by config

8 years agotry to checkout same branch for submodule in CI jobs
Yinling [Sun, 6 Nov 2016 14:43:12 +0000 (22:43 +0800)]
try to checkout same branch for submodule in CI jobs

8 years agoInstructions to prepare documentation
Krzysztof [Sat, 5 Nov 2016 16:19:31 +0000 (17:19 +0100)]
Instructions to prepare documentation

8 years agoAll API Reference docs updated to match header files
Krzysztof [Sat, 5 Nov 2016 16:18:25 +0000 (17:18 +0100)]
All API Reference docs updated to match header files

1. Wi-Fi <api/esp_wifi>
2. Bluetooth <api/bt>
2. GPIO <api/gpio>
4. LED
Control <api/ledc>
5. Logging <api/log>
6. Non-Volatile Storage
<api/nvs_flash>
7. Virtual Filesystem <api/vfs>

8 years agodeep-sleep-stub added + TOC outline
Krzysztof [Sat, 5 Nov 2016 16:13:44 +0000 (17:13 +0100)]
deep-sleep-stub added + TOC outline

TOC outline to show overal planned structure

8 years agoResolved issue with version / release on Read the Docs
Krzysztof [Sat, 5 Nov 2016 16:11:40 +0000 (17:11 +0100)]
Resolved issue with version / release on Read the Docs

Read the Docs is building documentation referencing to specific releases
on GitHub.
Changing version / release  in this script is breaking menu in bottom
left corner
Now version / release should change only for local builds and not for
builds on Read the Docs

8 years agoFixed section header style
Krzysztof [Sat, 5 Nov 2016 16:06:55 +0000 (17:06 +0100)]
Fixed section header style

Please follow https://docs.python.org/devguide/documenting.html#sections

8 years agoFixed broken links
Krzysztof [Sat, 5 Nov 2016 16:04:35 +0000 (17:04 +0100)]
Fixed broken links

8 years agobuild fix
Ivan Grokhotkov [Fri, 4 Nov 2016 07:52:45 +0000 (15:52 +0800)]
build fix

8 years agowpa_supplicant: replace pre-built crypto library with source code
Ivan Grokhotkov [Fri, 4 Nov 2016 06:12:21 +0000 (14:12 +0800)]
wpa_supplicant: replace pre-built crypto library with source code

8 years agoModify as Angus's suggestion:
Wangjialin [Fri, 4 Nov 2016 04:52:34 +0000 (12:52 +0800)]
Modify as Angus's suggestion:

1. Set XXX_TAG static, remove extern XXX_TAG in uart.h/ledc.h/gpio.h
2. I removed uart_set/get_print_port() functions, these functions are not well tested, I removed them for now.
3. Modify some function names for uart_read/write_bytes
4. Modify uart_write_bytes and uart_write_bytes_with_break.

8 years agold scripts: fix overlap between bootloader and application IRAM ranges
Ivan Grokhotkov [Fri, 4 Nov 2016 04:18:57 +0000 (12:18 +0800)]
ld scripts: fix overlap between bootloader and application IRAM ranges

8 years agonewlib: fix compilation error when no timers are enabled in menuconfig
Ivan Grokhotkov [Fri, 4 Nov 2016 02:55:25 +0000 (10:55 +0800)]
newlib: fix compilation error when no timers are enabled in menuconfig

8 years agoMerge branch 'master' into driver_merge_tmp/merge_uart
Wangjialin [Thu, 3 Nov 2016 18:56:41 +0000 (02:56 +0800)]
Merge branch 'master' into driver_merge_tmp/merge_uart

8 years agoUpdate UART driver
Wangjialin [Thu, 3 Nov 2016 18:48:25 +0000 (02:48 +0800)]
Update UART driver

1. fix bug in ringbuffer.c:
    When return an dummy item, free_ptr might exceed rd_ptr, so the write_ptr would overwrite rd_ptr in this case.
2. Delete UART tx task in buffer mode. UART ISR will copy the data from tx buffer to fifo.

8 years agofix ringbuffer bug.
Wangjialin [Thu, 3 Nov 2016 15:30:54 +0000 (23:30 +0800)]
fix ringbuffer bug.

8 years agoAllow OS X to build without libintl
Sandeep Mistry [Tue, 4 Oct 2016 20:07:06 +0000 (16:07 -0400)]
Allow OS X to build without libintl

8 years agonvs: fix Page::findItem and Storage::findItem regression
Ivan Grokhotkov [Thu, 3 Nov 2016 12:18:30 +0000 (20:18 +0800)]
nvs: fix Page::findItem and Storage::findItem regression

When read caching was added, Page::findItem started modifying itemIndex reference argument even if item wasn't found.
Incidentally, Storage::findItem reused itemIndex when starting search at next page.
So,
- if the first page had a cached index (findItem was called for that page), and it pointed to a non-zero index,
- first page has a few empty items at the end (but is marked full),
- next search looked up the item on the second page,
- index of the item on the second page was less than the cached index on the first page,
then the search would fail because cached starting index was reused.

This change fixes both sides of the problem:
- Page::findItem shouldn't modify itemIndex argument if item is not found
- Storage::findItem should not reuse itemIndex between pages

Two tests have been added.

8 years agodocs: update style guide
Ivan Grokhotkov [Thu, 3 Nov 2016 11:07:41 +0000 (19:07 +0800)]
docs: update style guide

8 years agotools: add code formatter rules for Eclipse
Ivan Grokhotkov [Wed, 7 Sep 2016 04:45:08 +0000 (12:45 +0800)]
tools: add code formatter rules for Eclipse

Generated with Eclipse Neon, should work in earlier versions as well.

This file can be imported
- into the workspace via Preferences > C++ > Code Style > Formatter > Import
- or into the project via Project Preferences > C++ General > Formatter > Import

Configuration options in Eclipse are not exactly the same as in astyle.
There may be some discrepancy between the format astyle and Eclipse will produce.
If anyone notices that, please let me know.

8 years agodocs: add style guide
Ivan Grokhotkov [Thu, 1 Sep 2016 04:32:05 +0000 (12:32 +0800)]
docs: add style guide

This adds initial code style guide. Only section on code formatting is written, other sections to be added later.
Also adds scripts to format code using astyle.

8 years agodebug ring buffer error.
Wangjialin [Thu, 3 Nov 2016 10:28:36 +0000 (18:28 +0800)]
debug ring buffer error.

8 years agoMerge branch 'feature/time_syscalls' into 'master'
Ivan Grokhotkov [Thu, 3 Nov 2016 10:02:58 +0000 (18:02 +0800)]
Merge branch 'feature/time_syscalls' into 'master'

implement time syscalls

This change adds optional support for libc time functions.
New menuconfig option allows selecting FRC1,  RTC, both, or none to be used for timekeeping.

- If only FRC1 timer is used, gettimeofday will provide time at
  microsecond resolution. Time will not be preserved when going
  into deep sleep mode.
- If both FRC1 and RTC timers are used, timekeeping will
  continue in deep sleep. Time will be reported at 1 microsecond
  resolution.
- If only RTC timer is used, timekeeping will continue in
  deep sleep, but time will be measured at 6.(6) microsecond
  resolution. Also the gettimeofday function itself may take
  longer to run.
- If no timers are used, gettimeofday function will return -1 and
  set errno to ENOSYS.

`times` function returns time derived from FreeRTOS ticks. It reports all as 'system' time, 'user' time is reported as zero.

`settimeofday` function may be used to set current time.

LwIP SNTP module is hooked up into the system through `settimeofday`/`gettimeofday`.

Example demonstrating this functionality is also added.

ref. TW6415

See merge request !168

8 years agoconver tabs to spaces in frc_timer_reg.h
Ivan Grokhotkov [Thu, 3 Nov 2016 09:44:23 +0000 (17:44 +0800)]
conver tabs to spaces in frc_timer_reg.h

8 years agoesp32: add choice for RTC clock source
Ivan Grokhotkov [Thu, 3 Nov 2016 06:49:05 +0000 (14:49 +0800)]
esp32: add choice for RTC clock source

For now only one option is supported: internal RC oscillator

8 years agoMerge branch 'feature/openssl' into 'master'
Ivan Grokhotkov [Thu, 3 Nov 2016 07:37:28 +0000 (15:37 +0800)]
Merge branch 'feature/openssl' into 'master'

Feature/openssl

The first openssl interface version based on mbedtls and some of these interface just have the function , not effectively.

See merge request !100

8 years agonewlib: implement settimeofday, integrate LwIP SNTP, add SNTP example
Ivan Grokhotkov [Thu, 3 Nov 2016 04:46:46 +0000 (12:46 +0800)]
newlib: implement settimeofday, integrate LwIP SNTP, add SNTP example

8 years agoSet result "Succeed" for passed cases
He Yin Ling [Wed, 2 Nov 2016 12:54:22 +0000 (20:54 +0800)]
Set result "Succeed" for passed cases

8 years agoincorrect "/", should be "\"
He Yin Ling [Wed, 2 Nov 2016 12:21:46 +0000 (20:21 +0800)]
incorrect "/", should be "\"

8 years agoadd case select by name mark " before case name
He Yin Ling [Wed, 2 Nov 2016 12:12:43 +0000 (20:12 +0800)]
add case select by name mark " before case name

8 years agoforget to break when test succeed
Yinling [Wed, 2 Nov 2016 11:41:33 +0000 (19:41 +0800)]
forget to break when test succeed

8 years agorun unit test case by case name
Yinling [Wed, 2 Nov 2016 11:08:55 +0000 (19:08 +0800)]
run unit test case by case name

8 years agonewlib: implement time syscalls
Ivan Grokhotkov [Wed, 2 Nov 2016 09:17:28 +0000 (17:17 +0800)]
newlib: implement time syscalls

8 years agoMerge branch 'master' into feature/openssl
Dong Heng [Wed, 2 Nov 2016 07:46:52 +0000 (15:46 +0800)]
Merge branch 'master' into feature/openssl

8 years agoMerge branch 'bugfix/small_fixes' into 'master'
Jeroen Domburg [Wed, 2 Nov 2016 02:27:26 +0000 (10:27 +0800)]
Merge branch 'bugfix/small_fixes' into 'master'

OpenOCD doc fix, fix gdbstub

- Fixes a few typos in the OpenOCD docs
- Fix compiling with gdbstub as panic handler

See merge request !165

8 years agoLanguage tweaking
Jeroen Domburg [Wed, 2 Nov 2016 02:26:02 +0000 (10:26 +0800)]
Language tweaking

8 years agoMerge branch 'driver_merge_tmp/modify_gpio_ledc_h' into 'master'
Ivan Grokhotkov [Tue, 1 Nov 2016 14:46:29 +0000 (22:46 +0800)]
Merge branch 'driver_merge_tmp/modify_gpio_ledc_h' into 'master'

Fix header docs for GPIO and LEDC drivers

Modify gpio.h and ledc.h according to documenting-code.rst

See merge request !166

8 years agoModify gpio.h and ledc.h
Wangjialin [Tue, 1 Nov 2016 03:48:32 +0000 (11:48 +0800)]
Modify gpio.h and ledc.h

8 years agoMerge branch 'bugfix/only_deploy_when_test_pass' into 'master'
Ivan Grokhotkov [Tue, 1 Nov 2016 14:27:37 +0000 (22:27 +0800)]
Merge branch 'bugfix/only_deploy_when_test_pass' into 'master'

fix bug that deploy when test failed:

test report will be a single stage. The result of test report will be calculated from the result of all test jobs in test stage. So it will only deploy when all test job passed.

See merge request !140

8 years agoMerge branch 'feature/deepsleep_stub_linker' into 'master'
Ivan Grokhotkov [Tue, 1 Nov 2016 14:27:13 +0000 (22:27 +0800)]
Merge branch 'feature/deepsleep_stub_linker' into 'master'

Deep sleep: Any source named rtc_wake_stub* is linked as RTC wake stub code

Also move esp_deepsleep.h documentation out to docs/deep-sleep-stub.rst

See merge request !142

8 years agoMerge branch 'bugfix/nvs_write_failure' into 'master'
Ivan Grokhotkov [Tue, 1 Nov 2016 14:26:37 +0000 (22:26 +0800)]
Merge branch 'bugfix/nvs_write_failure' into 'master'

Fix spi_flash_write regression and nvs error recovery

In the previous set of changes related to spi_flash, new alignment checks were added. One of these checks, word alignment of `src` buffer in `nvs_flas_write`, was unnecessary.  ROM `SPIWrite` function can handle unaligned source buffers.

This change caused an error to be returned to nvs for some legitimate write operations. Due to a bug in nvs, further write operations were possible, while the internal state of `Page` instance was broken. In WiFi functional tests, this inflicted havoc on the nvs partition, creating multiple duplicate items in the affected page. Because multiple duplicate items per page were never supposed to be handled during page load, duplicates were not removed. Thankfully this caused an assert at a later point in the loading process, otherwise this bug would be very difficult to detect.

This change set fixes the original spi_flash regression, handling of `INVALID` state of `nvs::Page`, and handling of duplicate items.

See merge request !161

8 years agoMerge branch 'feature/tw8155_optimize_tx_flow_control' into 'master'
Ivan Grokhotkov [Tue, 1 Nov 2016 14:26:15 +0000 (22:26 +0800)]
Merge branch 'feature/tw8155_optimize_tx_flow_control' into 'master'

Feature/tw8155 optimize tx flow control

1. Remove TX flow control in LWIP
2. Make the return value of esp_wifi_internal_tx consistent with LWIP error code

See merge request !164

8 years agoMerge branch 'feature/api_doc' into 'master'
Ivan Grokhotkov [Tue, 1 Nov 2016 14:25:20 +0000 (22:25 +0800)]
Merge branch 'feature/api_doc' into 'master'

API reference, first batch

This includes fixes to documentation formats in header files, some standalone doc fixes, necessary files for readthedocs, and instructions for documenting the code.

See merge request !162

8 years agodocs: deploy built docs
Ivan Grokhotkov [Tue, 1 Nov 2016 12:58:47 +0000 (20:58 +0800)]
docs: deploy built docs

8 years agouse correct template for unit test jobs
Yinling [Tue, 1 Nov 2016 12:33:23 +0000 (20:33 +0800)]
use correct template for unit test jobs

8 years agodocs: fix typos, build docs with gitlab CI
Ivan Grokhotkov [Tue, 1 Nov 2016 12:08:29 +0000 (20:08 +0800)]
docs: fix typos, build docs with gitlab CI

8 years agointegrate unit test to CI
Yinling [Tue, 1 Nov 2016 11:30:42 +0000 (19:30 +0800)]
integrate unit test to CI

8 years agoOpenOCD doc fix, fix gdbstub
Jeroen Domburg [Tue, 1 Nov 2016 07:41:10 +0000 (15:41 +0800)]
OpenOCD doc fix, fix gdbstub

8 years agoesp32: update wifi lib
Liu Zhi Fu [Tue, 1 Nov 2016 07:34:30 +0000 (15:34 +0800)]
esp32: update wifi lib

146f5962 - Make the return value of esp_wifi_internal_tx consistent with LWIP error code so that
the up-layer can detect the out-of-memory error and take action accordingly, such do flow control.

8 years agolwip: remove tx flow control code
Liu Zhi Fu [Tue, 1 Nov 2016 07:25:46 +0000 (15:25 +0800)]
lwip: remove tx flow control code

8 years agocomponents/openssl: add more debug stream output function
Dong Heng [Tue, 1 Nov 2016 07:16:14 +0000 (15:16 +0800)]
components/openssl: add more debug stream output function