]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agombedtls hardware RSA: Fix "mbedtls_mpi_exp_mod" hardware calculations
Dong Heng [Wed, 16 Nov 2016 12:37:51 +0000 (20:37 +0800)]
mbedtls hardware RSA: Fix "mbedtls_mpi_exp_mod" hardware calculations

7 years agoMerge branch 'master' into feature/bignum_rsa
Dong Heng [Tue, 15 Nov 2016 08:39:29 +0000 (16:39 +0800)]
Merge branch 'master' into feature/bignum_rsa

7 years agoMerge branch 'feature/better_idle_tick_hook_mechanism' into 'master'
Jeroen Domburg [Tue, 15 Nov 2016 06:07:04 +0000 (14:07 +0800)]
Merge branch 'feature/better_idle_tick_hook_mechanism' into 'master'

Add more scalable  tick/idle hook handlers.

Like it says in the title. Also adds WAITI to the idle loop, which suspends the CPU until an interrupt comes in. Seems we did not have that yet... :x

See merge request !196

7 years agoMerge remote-tracking branch 'origin/master' into feature/better_idle_tick_hook_mechanism
Jeroen Domburg [Tue, 15 Nov 2016 04:36:15 +0000 (12:36 +0800)]
Merge remote-tracking branch 'origin/master' into feature/better_idle_tick_hook_mechanism

7 years agoMerge branch 'feature/change_default_hostname' into 'master'
Ivan Grokhotkov [Tue, 15 Nov 2016 04:28:39 +0000 (12:28 +0800)]
Merge branch 'feature/change_default_hostname' into 'master'

tcpip_adapter: add set hostname interface

Add the function for change the network interface's hostname

See merge request !170

7 years agoMerge branch 'bugfix/workaround_gpio_pullupdown_bug' into 'master'
Jeroen Domburg [Tue, 15 Nov 2016 04:27:23 +0000 (12:27 +0800)]
Merge branch 'bugfix/workaround_gpio_pullupdown_bug' into 'master'

Work around the GPIO pullup/pulldown SoC bug

Some GPIO pins need to have their pullups/pulldowns set in the RTC peripheral instead of in the GPIO peripheral because of a silicon bug.

This merge:
- Declares PIN_PULLUP_EN and friends as deprecated; they can't really be changed to work around the issue because they get passed an iomux register instead of an io pin number
- Adds gpio_pullup_en and friends to the GPIO driver. These functions do have the workaround (as well as all the other functions in the gpio driver) and are meant to easily replace the PIN_PULLUP_EN routines
- Fixes some comments in the gpio headers

See merge request !200

7 years agoAdd comments/headers according to merge request comments
Jeroen Domburg [Tue, 15 Nov 2016 04:10:02 +0000 (12:10 +0800)]
Add comments/headers according to merge request comments

7 years agoMerge remote-tracking branch 'origin/master' into bugfix/workaround_gpio_pullupdown_bug
Jeroen Domburg [Tue, 15 Nov 2016 03:57:01 +0000 (11:57 +0800)]
Merge remote-tracking branch 'origin/master' into bugfix/workaround_gpio_pullupdown_bug

7 years agotcpip_adapter: add set hostname interface
liuhan [Thu, 3 Nov 2016 05:30:32 +0000 (13:30 +0800)]
tcpip_adapter: add set hostname interface

7 years agoMerge branch 'feature/wps' into 'master'
Ivan Grokhotkov [Tue, 15 Nov 2016 03:40:27 +0000 (11:40 +0800)]
Merge branch 'feature/wps' into 'master'

Add wps API

See merge request !181

7 years agowps: update wifi lib -- add wps lib
Xia Xiao Tian [Tue, 15 Nov 2016 03:19:15 +0000 (11:19 +0800)]
wps: update wifi lib -- add wps lib

7 years agoAmend gpio driver to work around SoC bug with some pullups/pulldowns in the GPIO...
Jeroen Domburg [Tue, 15 Nov 2016 02:29:52 +0000 (10:29 +0800)]
Amend gpio driver to work around SoC bug with some pullups/pulldowns in the GPIO peripheral; mark existing function that does not always work as deprecated

7 years agoMerge branch 'feature/cleanup_examples' into 'master'
Angus Gratton [Mon, 14 Nov 2016 23:08:33 +0000 (07:08 +0800)]
Merge branch 'feature/cleanup_examples' into 'master'

Minor example cleanup

Remove deprecated system_init, fix app_main prototype

See merge request !197

7 years agoMerge branch 'master' into feature/wps
Xia Xiao Tian [Mon, 14 Nov 2016 07:24:12 +0000 (15:24 +0800)]
Merge branch 'master' into feature/wps

7 years agoadd comments for system_event_sta_wps_er_pin_t
Xia Xiao Tian [Mon, 14 Nov 2016 06:34:09 +0000 (14:34 +0800)]
add comments for system_event_sta_wps_er_pin_t

7 years agoble_adv example: Remove int return value from app_main()
Angus Gratton [Mon, 14 Nov 2016 04:55:26 +0000 (15:55 +1100)]
ble_adv example: Remove int return value from app_main()

7 years agoExamples: Remove deprecated system_init() call
Angus Gratton [Mon, 14 Nov 2016 04:54:33 +0000 (15:54 +1100)]
Examples: Remove deprecated system_init() call

7 years agoMerge branch 'feature/build_component_project_vars' into 'master'
Angus Gratton [Mon, 14 Nov 2016 04:42:44 +0000 (12:42 +0800)]
Merge branch 'feature/build_component_project_vars' into 'master'

build system: General refactoring

The original goal here was to support setting different COMPONENT_INCLUDEDIRS/COMPONENT_LDFLAGS based on sdkconfig. It's turned into a general refactor.

* The `get_variable` target & associated macros have been replaced with a target that generates a makefile snippet for each component (inside the build directory), and includes these in the project make pass. This improves build speed ( "no-op" `make all` on my system is down from 1.43s  (wall) / 0.55s (CPU) to 0.49s (wall) / 0.23s (CPU) due to not forking as many processes) and also makes the builds more debuggable, as you can go and look at the component_project_vars.mk files in the build directory to see what paths are being added where.
* Including component_common.mk from component.mk is no longer necessary (and prints a deprecation warning). Instead, component.mk is included from inside a wrapper makefile. This allows default variables and project configuration to be loaded before component.mk begins, and removes the need to split makefile statements arbitrarily between "before including component_common" and "after including component_common", with which goes where depending on internals of the build system. Part-fix for TW#8017.
* Rewrote build system docs to reflect these details and also clarify some other points, add more ReST structure. Fixes other issues raised in TW#8017.
* Should be backwards compatible with existing components. The only difference I know is the deprecation warning when including component_common.mk.

Adds one new failure case: because some paths are encoded in the generated component_project_vars.mk files then reorganising the component directory structure (but not modifying any other files or menuconfig) may cause a partial build to fail and require a `make clean`. Moving the whole project directory, whole build directory, or whole ESP-IDF directory will not trigger this. This failure case should only ever cause a build error, not incorrect build output.

See merge request !188

7 years agobuild examples: Only build verbose on failure, save on log output
Angus Gratton [Mon, 14 Nov 2016 04:29:27 +0000 (15:29 +1100)]
build examples: Only build verbose on failure, save on log output

7 years agoMerge branch 'master' into feature/build_component_project_vars
Angus Gratton [Mon, 14 Nov 2016 03:48:10 +0000 (14:48 +1100)]
Merge branch 'master' into feature/build_component_project_vars

7 years agoMerge branch 'feature/esptool_secure_boot' into 'master'
Angus Gratton [Mon, 14 Nov 2016 03:32:04 +0000 (11:32 +0800)]
Merge branch 'feature/esptool_secure_boot' into 'master'

Secure boot support

Also includes a lot of esptool.py changes (two new command line tools, espefuse.py and espsecure.py)
https://github.com/themadinventor/esptool/compare/feature/esp32_v20_refactor...feature/esp32_secure_boot?expand=1

See merge request !163

7 years agobootloader: Fix unused variable errors when secure boot is disabled
Angus Gratton [Fri, 11 Nov 2016 04:47:38 +0000 (15:47 +1100)]
bootloader: Fix unused variable errors when secure boot is disabled

7 years agosecure boot: Add warnings this feature is not finished yet
Angus Gratton [Fri, 11 Nov 2016 04:40:58 +0000 (15:40 +1100)]
secure boot: Add warnings this feature is not finished yet

7 years agoSecure boot: Documentation tweaks
Angus Gratton [Fri, 11 Nov 2016 04:40:29 +0000 (15:40 +1100)]
Secure boot: Documentation tweaks

7 years agoFix wdt idle hook
Jeroen Domburg [Mon, 14 Nov 2016 02:20:49 +0000 (10:20 +0800)]
Fix wdt idle hook

7 years agoMerge branch 'feature/doc_update' into 'master'
Ivan Grokhotkov [Mon, 14 Nov 2016 02:06:33 +0000 (10:06 +0800)]
Merge branch 'feature/doc_update' into 'master'

ReadTheDocs documentation update

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

See merge request !195

7 years agosecure boot: Rename efuse option for UART bootloader to option for ROM interpreter
Angus Gratton [Fri, 11 Nov 2016 04:14:13 +0000 (15:14 +1100)]
secure boot: Rename efuse option for UART bootloader to option for ROM interpreter

7 years agoBuild system: Don't shell-quote SEPARATOR variable or it evaluates as a bunch of...
Angus Gratton [Fri, 11 Nov 2016 03:44:10 +0000 (14:44 +1100)]
Build system: Don't shell-quote SEPARATOR variable or it evaluates as a bunch of wildcards!

7 years agoBump esptool revision (espefuse.py fixes)
Angus Gratton [Wed, 9 Nov 2016 00:55:09 +0000 (11:55 +1100)]
Bump esptool revision (espefuse.py fixes)

7 years agosecure boot: Functional partition table & app signature verification
Angus Gratton [Mon, 7 Nov 2016 04:45:57 +0000 (15:45 +1100)]
secure boot: Functional partition table & app signature verification

7 years agosecure boot: Enable based on sdkconfig, remove "secure boot flag" from binary image
Angus Gratton [Mon, 7 Nov 2016 04:45:26 +0000 (15:45 +1100)]
secure boot: Enable based on sdkconfig, remove "secure boot flag" from binary image

7 years agopartition_table: Pad generated table to 0xC00 length, for easier signing
Angus Gratton [Mon, 7 Nov 2016 04:32:21 +0000 (15:32 +1100)]
partition_table: Pad generated table to 0xC00 length, for easier signing

7 years agopartition_table: Move from 0x4000 to 0x8000
Angus Gratton [Mon, 7 Nov 2016 03:35:23 +0000 (14:35 +1100)]
partition_table: Move from 0x4000 to 0x8000

Also fix a bug with correctly padding bootloader image when length is
already a multiple of 16.

7 years agosecure boot: Derive secure bootloader key from private key
Angus Gratton [Fri, 4 Nov 2016 05:05:00 +0000 (16:05 +1100)]
secure boot: Derive secure bootloader key from private key

Means only one key needs to be managed.

7 years agoSecure boot: initial image signature support
Angus Gratton [Thu, 3 Nov 2016 06:33:30 +0000 (17:33 +1100)]
Secure boot: initial image signature support

7 years agoBuild system: Change deprecation message to include component path, easier to fix
Angus Gratton [Sun, 13 Nov 2016 23:57:45 +0000 (10:57 +1100)]
Build system: Change deprecation message to include component path, easier to fix

7 years agobuild system: Remove make 3.81 "component_project_vars.mk: No such file or directory...
Angus Gratton [Sun, 13 Nov 2016 23:51:53 +0000 (10:51 +1100)]
build system: Remove make 3.81 "component_project_vars.mk: No such file or directory" messages

Also add an explicit make version check & warning.

7 years agoAdd a more scalable mechanism for the FreeRTOS tick- and idle hooks; idle handler...
Jeroen Domburg [Fri, 11 Nov 2016 11:20:54 +0000 (19:20 +0800)]
Add a more scalable mechanism for the FreeRTOS tick- and idle hooks; idle handler now uses WAITI to reduce power

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 agowps: add blocking param for API esp_wifi_wps_start()
Xia Xiao Tian [Fri, 11 Nov 2016 02:51:33 +0000 (10:51 +0800)]
wps: add blocking param for API esp_wifi_wps_start()

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

7 years agobuild system: Remove need for $(Q) macro in recipes, use --silent in MAKEFLAGS instead
Angus Gratton [Fri, 11 Nov 2016 01:29:38 +0000 (12:29 +1100)]
build system: Remove need for $(Q) macro in recipes, use --silent in MAKEFLAGS instead

7 years agoRevised api files
Krzysztof [Thu, 10 Nov 2016 21:50:55 +0000 (22:50 +0100)]
Revised api files

- Included UART API
- Addedd "Header Files"
- Improved template
- deleted redundat nvs.rst

7 years agoNew items to documentation TOC
Krzysztof [Thu, 10 Nov 2016 21:47:29 +0000 (22:47 +0100)]
New items to documentation TOC

- Style Guide
- UART API

7 years agoFixed link so it can render by Sphinx
Krzysztof [Thu, 10 Nov 2016 21:44:59 +0000 (22:44 +0100)]
Fixed link so it can render by Sphinx

7 years agoConform Style Guide
Krzysztof [Thu, 10 Nov 2016 21:44:09 +0000 (22:44 +0100)]
Conform Style Guide

7 years agoMerge remote-tracking branch 'refs/remotes/espressif/master'
Krzysztof [Thu, 10 Nov 2016 18:44:05 +0000 (19:44 +0100)]
Merge remote-tracking branch 'refs/remotes/espressif/master'

7 years agoMerge remote-tracking branch 'refs/remotes/espressif/master'
Krzysztof [Thu, 10 Nov 2016 18:43:17 +0000 (19:43 +0100)]
Merge remote-tracking branch 'refs/remotes/espressif/master'

7 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

7 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

7 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

7 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

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

7 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

7 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

7 years agoBuild system: Use ifndef X in makefiles instead of ifeq("$(X)","")
Angus Gratton [Thu, 10 Nov 2016 05:19:59 +0000 (16:19 +1100)]
Build system: Use ifndef X in makefiles instead of ifeq("$(X)","")

7 years agodocs: Rewrite build system docs to address new system, plus general editing
Angus Gratton [Thu, 10 Nov 2016 04:52:47 +0000 (15:52 +1100)]
docs: Rewrite build system docs to address new system, plus general editing

Fixes TW#8017

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

Following note in review by @igrr :+1:

7 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

7 years agobuild system: Refactor component.mk to not need component_common.mk
Angus Gratton [Thu, 10 Nov 2016 02:20:55 +0000 (13:20 +1100)]
build system: Refactor component.mk to not need component_common.mk

New makefile component_wrapper.mk allows some variables to be set
before component.mk is evaluated. This properly fixes problems with
sdkconfig being hard to access in all phases of the build.

Including component_common.mk is no longer necessary and will print a
deprecation warning for components which use it.

7 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

7 years agobuild system: Generated makefiles should contain environment-variable-relative paths...
Angus Gratton [Wed, 9 Nov 2016 23:29:42 +0000 (10:29 +1100)]
build system: Generated makefiles should contain environment-variable-relative paths where possible

Means that moving directories around then partial building should
succeed when possible.

7 years agochange pin code value type and wps API comments.
Xia Xiao Tian [Wed, 9 Nov 2016 10:15:10 +0000 (18:15 +0800)]
change pin code value type and wps API comments.

7 years agobuild system: Fix defconfig vs menuconfig regression in 155f9124
Angus Gratton [Wed, 9 Nov 2016 09:38:16 +0000 (20:38 +1100)]
build system: Fix defconfig vs menuconfig regression in 155f9124

7 years ago1. Add wps event processing.
Xia Xiao Tian [Wed, 9 Nov 2016 09:27:12 +0000 (17:27 +0800)]
1. Add wps event processing.

2. Change wps API return type and value.

7 years agobuild system: Refactor the three component-target-related macros into one
Angus Gratton [Wed, 9 Nov 2016 06:25:57 +0000 (17:25 +1100)]
build system: Refactor the three component-target-related macros into one

7 years agobuild system: Don't build an sdkconfig for bootloader, share the top-level one
Angus Gratton [Wed, 9 Nov 2016 03:26:50 +0000 (14:26 +1100)]
build system: Don't build an sdkconfig for bootloader, share the top-level one

This works because all CONFIG variables are exported into child make processes.

7 years agobuild system: Replace get_variable target w/ component_project_vars.mk generated...
Angus Gratton [Wed, 9 Nov 2016 01:51:55 +0000 (12:51 +1100)]
build system: Replace get_variable target w/ component_project_vars.mk generated makefiles

Reduces number of make invocations, allows variables exported in project
to be seen in all component make processes, not just the main ones.

Also makes a no-op build about 3x faster than it was.

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 years agoAdd wps API
Xia Xiao Tian [Mon, 7 Nov 2016 06:59:35 +0000 (14:59 +0800)]
Add wps API

7 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

7 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

7 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

7 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

7 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

7 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

7 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

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

7 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

7 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

7 years agobuild system: Add support for embedded arbitrary binary or text files in .rodata
Angus Gratton [Thu, 6 Oct 2016 01:51:47 +0000 (12:51 +1100)]
build system: Add support for embedded arbitrary binary or text files in .rodata

Simplifies examples of embedding a certificate file or a root cert.

This is a much cruder mechanism than the full flash filesystem we want
eventually, but still sometimes useful.

7 years agobootloader_support: Move secure boot code to bootloader_support
Angus Gratton [Wed, 2 Nov 2016 06:54:47 +0000 (17:54 +1100)]
bootloader_support: Move secure boot code to bootloader_support

7 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

7 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

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

7 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