]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agoesp32: update wifi lib to contain bt/wifi coexist code
Liu Zhi Fu [Thu, 24 Nov 2016 13:37:46 +0000 (21:37 +0800)]
esp32: update wifi lib to contain bt/wifi coexist code

7 years agowpa2 enterprise: update wifi lib in master branch
Xia Xiaotian [Thu, 24 Nov 2016 12:41:44 +0000 (20:41 +0800)]
wpa2 enterprise: update wifi lib in master branch

7 years agowpa2 enterprise: add wifi lib
Xia Xiaotian [Thu, 24 Nov 2016 11:46:37 +0000 (19:46 +0800)]
wpa2 enterprise: add wifi lib

7 years agoMerge branch 'master' into feature/wpa2_enterprise
Xia Xiaotian [Thu, 24 Nov 2016 10:35:56 +0000 (18:35 +0800)]
Merge branch 'master' into feature/wpa2_enterprise

add lib

7 years agoMerge branch 'bugfix/unit_test_run' into 'master'
Ivan Grokhotkov [Thu, 24 Nov 2016 10:29:32 +0000 (18:29 +0800)]
Merge branch 'bugfix/unit_test_run' into 'master'

7 years agoMerge branch 'feature/system_apis' into 'master'
Ivan Grokhotkov [Thu, 24 Nov 2016 10:22:50 +0000 (18:22 +0800)]
Merge branch 'feature/system_apis' into 'master'

system_* APIs cleanup

This changeset is mostly about cleaning up `system_*` APIs and moving them from libcore. It has dragged a few more changes along, however.

- `system_deep_sleep` deprecated, new name is `esp_deep_sleep`
- `system_efuse_read_mac` deprecated, new name is `esp_efuse_read_mac`
- `system_read/write_rtc_mem` removed (reason: we use linker to place code/data into RTC memory now)
- `system_get_sdk_version` deprecated. Returns "master" for now. Support for compile-time and runtime version detection will be done in a separate MR.
- `system_get_time` and variations have been deprecated. `gettimeofday` should be used instead.
- `system_restart` deprecated, new name is `esp_restart`. Rewritten code to work correctly from any of the cores.
- `system_restore` deprecated, `esp_wifi_restore` should be used instead.
- `system_get_rst_info` removed (it wasn't in a header file)
- RTC library has been updated to latest version
- Logging output from `libfoo.a` goes through `foo_printf` function now, where `foo ` is any of the library names. For libraries other than rtc and phy, this is a temporary measure, until we finish switching to esp_log library and clean up all uses of printf/ets_printf.
- ESP-IDF build will fail if any of the libraries have printf/ets_printf reference.
-  Added `esp_random` function which gets values from HW RNG. I have added code which makes sure the value is not polled too often (allows at least 16 APB cycles). Also added a header file for HW RNG (just one register).
- Moved random number generation functions used by wpa library into wpa_supplicant component.

See merge request !234

7 years agosystem_apis: update wifi lib and librtc.a
Xia Xiaotian [Thu, 24 Nov 2016 09:30:33 +0000 (17:30 +0800)]
system_apis: update wifi lib and librtc.a

1. some refractor to debug info in wifi lib(da6280b3)

2. fix bug of hung at phy_int in librtc.a(1bb9ce1d)

7 years agoMerge branch 'bugfix/uart_isr_rodata' into 'master'
Angus Gratton [Thu, 24 Nov 2016 04:09:46 +0000 (12:09 +0800)]
Merge branch 'bugfix/uart_isr_rodata' into 'master'

UART driver: Fix crash in ISR due to "UART" static array moved to flash

Ref: http://esp32.com/viewtopic.php?f=13&t=546&sid=76ff371ae2b259441a2cf355e96d74b9#p2275

This is a really subtle bug, gcc noticed the UART array elements are read-only so
implicitly moved the elements to .rodata as if it was const. However
this array is accessed from the UART ISR, so has to be in IRAM or DRAM.

See merge request !245

7 years agoMerge branch 'bugfix/rmt_includes' into 'master'
Angus Gratton [Thu, 24 Nov 2016 04:09:19 +0000 (12:09 +0800)]
Merge branch 'bugfix/rmt_includes' into 'master'

Fix inclusion of stdlib.h

Refs:
http://esp32.com/viewtopic.php?f=13&t=550
http://esp32.com/viewtopic.php?f=13&t=551

rmt.c should include stdlib.h for malloc, esp_bignum,c & https_request_main.c should include it for abort().

FreeRTOSConfig.h is only including stdlib if CONFIG_FREERTOS_ASSERT_ON_UNTESTED_FUNCTION is set. However, it is included for abort() so needs to be included whenever CONFIG_FREERTOS_ASSERT_FAIL_ABORT is set.

This change includes it unconditionally in FreeRTOSConfig.h. This is to avoid this kind of bug where compiler errors are dependent on config. I suggest we don't change this to be more selective until we have 'make randomconfig' style tests in CI.

See merge request !244

7 years agoFixes for stdlib.h inclusion
Angus Gratton [Wed, 23 Nov 2016 21:08:09 +0000 (08:08 +1100)]
Fixes for stdlib.h inclusion

Refs:
http://esp32.com/viewtopic.php?f=13&t=550
http://esp32.com/viewtopic.php?f=13&t=551

rmt.c should include stdlib.h for malloc, esp_bignum,c &
https_request_main.c for abort().

FreeRTOSConfig.h is only including stdlib if
CONFIG_FREERTOS_ASSERT_ON_UNTESTED_FUNCTION is set. However, it is
included for abort() so needs to be included whenever
CONFIG_FREERTOS_ASSERT_FAIL_ABORT is set.

This change includes unconditionally in FreeRTOSConfig.h. This is to
avoid this kind of bug where compiler errors are dependent on config. I
suggest we don't change this to be more selective until we have 'make
randomconfig' style tests in CI.

7 years agoMerge branch 'master' into feature/wpa2_enterprise
Xia Xiaotian [Wed, 23 Nov 2016 08:34:01 +0000 (16:34 +0800)]
Merge branch 'master' into feature/wpa2_enterprise

7 years agoremove unexisting tests in unit test CIConfig
antti [Wed, 23 Nov 2016 08:22:51 +0000 (16:22 +0800)]
remove unexisting tests in unit test CIConfig

7 years agoremove fp unit test Kconfig
antti [Wed, 23 Nov 2016 08:22:34 +0000 (16:22 +0800)]
remove fp unit test Kconfig

7 years agoCI: fix unit test artifact path
Ivan Grokhotkov [Wed, 23 Nov 2016 06:22:49 +0000 (14:22 +0800)]
CI: fix unit test artifact path

7 years agowpa2 enterprise: update wpa2 enterprise APIs
Xia Xiaotian [Wed, 23 Nov 2016 07:29:01 +0000 (15:29 +0800)]
wpa2 enterprise: update wpa2 enterprise APIs

7 years agoesp32: add some implementation comments
Ivan Grokhotkov [Wed, 23 Nov 2016 04:55:49 +0000 (12:55 +0800)]
esp32: add some implementation comments

7 years agoMerge branch 'feature/integrate_unit_tests' into 'master'
Ivan Grokhotkov [Wed, 23 Nov 2016 04:13:39 +0000 (12:13 +0800)]
Merge branch 'feature/integrate_unit_tests' into 'master'

Integrate unit tests into build system

This MR moves unit tests from esp-idf-tests repository into 'test' subdirectories of respective components.

Tests are run using a runner app in tools/unit-test-app.

This needs a bit of cleanup:

1. remove extra newlines added to makefiles,
2. re-format unit tests code which has tabs
3. write a document on using this test app
4. maybe some refactoring in project.mk

I think 1&2&4 need to be done in this MR, while 3 may be done in a follow-up one.

See merge request !221

7 years agoMerge branch 'bugfix/freertos_staticqueue_size' into 'master'
Ivan Grokhotkov [Wed, 23 Nov 2016 04:04:53 +0000 (12:04 +0800)]
Merge branch 'bugfix/freertos_staticqueue_size' into 'master'

StaticQueue_t needs to have the same size as xQUEUE.

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

Without this change, building FreeRTOS with static allocation enabled succeeds, but trying to create a queue from a static buffer causes an assert because the size of static and dynamic queues differ.

See merge request !236

7 years agoadd build all unit tests in project.mk and update doc
antti [Wed, 23 Nov 2016 03:42:12 +0000 (11:42 +0800)]
add build all unit tests in project.mk and update doc

7 years agoMerge branch 'bugfix/build_system_secure_boot_embed' into 'master'
Angus Gratton [Wed, 23 Nov 2016 03:35:22 +0000 (11:35 +0800)]
Merge branch 'bugfix/build_system_secure_boot_embed' into 'master'

Build system: Fix a bug with embedding binaries in object files

Sometimes paths were generated absolute, need to keep those as-is

See merge request !228

7 years agoadd updated nvs flash test
antti [Wed, 23 Nov 2016 03:29:36 +0000 (11:29 +0800)]
add updated nvs flash test

7 years agoMerge branch 'bugfix/embed_text_files' into 'master'
Angus Gratton [Wed, 23 Nov 2016 03:26:08 +0000 (11:26 +0800)]
Merge branch 'bugfix/embed_text_files' into 'master'

build system: Fix null-terminating of text files for embedding on OS X

Ref github #112

`/bin/echo -ne` echoes literal `-ne` on OS X.

See merge request !238

7 years agoUART driver: Fix crash in ISR due to "UART" static array moved to flash
Angus Gratton [Tue, 22 Nov 2016 23:47:40 +0000 (10:47 +1100)]
UART driver: Fix crash in ISR due to "UART" static array moved to flash

Ref: http://esp32.com/viewtopic.php?f=13&t=546&sid=76ff371ae2b259441a2cf355e96d74b9#p2275

This is a really subtle bug, gcc noticed the UART array elements are read-only so
implicitly moved the elements to .rodata as if it was const. However
this array is accessed from the UART ISR, so has to be in IRAM or DRAM.

7 years agoFreeRTOS: Use C11 _Static_assert to verify static "dummy" structs at compile time
Angus Gratton [Tue, 22 Nov 2016 22:42:35 +0000 (09:42 +1100)]
FreeRTOS: Use C11 _Static_assert to verify static "dummy" structs at compile time

Includes a tweak to make Static_task_t equal size to TCB_t when using
MPU_WRAPPERS . Matches tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE macro
in tasks.c. This isn't actually a bug (if static task allocation is off,
there is no use for Static_task_t), but it allows us to make consistent
compile-time checks that Static_task_t == TCB_t.

7 years agobuild system: Fix null-terminating of text files for embedding on OS X
Angus Gratton [Tue, 22 Nov 2016 21:49:15 +0000 (08:49 +1100)]
build system: Fix null-terminating of text files for embedding on OS X

Ref github #112

7 years agoStaticQueue_t needs to have the same size as xQUEUE.
Daniel Campora [Mon, 14 Nov 2016 23:46:53 +0000 (00:46 +0100)]
StaticQueue_t needs to have the same size as xQUEUE.

Without this change, building FreeRTOS with static allocation enabled succeeds, but trying to create a queue from a static buffer causes an assert because the size of static and dynamic queues differ.

7 years agoimplement esp_deep_sleep, fix build issues
Ivan Grokhotkov [Mon, 21 Nov 2016 15:05:23 +0000 (23:05 +0800)]
implement esp_deep_sleep, fix build issues

7 years agoAdd API for random number generator
Ivan Grokhotkov [Mon, 21 Nov 2016 14:59:46 +0000 (22:59 +0800)]
Add API for random number generator

7 years agocatch log output from WiFi libs
Ivan Grokhotkov [Mon, 21 Nov 2016 14:56:11 +0000 (22:56 +0800)]
catch log output from WiFi libs

7 years agoImplement system_* APIs in IDF
Ivan Grokhotkov [Mon, 21 Nov 2016 09:15:37 +0000 (17:15 +0800)]
Implement system_* APIs in IDF

7 years agoremove legacy definitions from esp_types.h
Ivan Grokhotkov [Mon, 21 Nov 2016 09:13:55 +0000 (17:13 +0800)]
remove legacy definitions from esp_types.h

7 years agoMerge branch 'bugfix/tw8727_pc_send_random_pkt_cause_esp32_watchdog' into 'master'
Wu Jian Gang [Tue, 22 Nov 2016 11:19:10 +0000 (19:19 +0800)]
Merge branch 'bugfix/tw8727_pc_send_random_pkt_cause_esp32_watchdog' into 'master'

esp32: fix random pkt cause esp32 watchdog

This change fixes the ESP32 watchdog issue. When the MPDU of AMPDU is longer than 1600B,
esp32 will check whether the last 4B is DEADBEEF, if it's not DEADBEEF, it will assert
and the assert will cause esp32 watchdog. The solution is to init the last 4B to DEADBEEF
when malloc new ebuf for the packet longer than 1600B.

See merge request !233

7 years agoadd unit tests to esp-idf
antti [Thu, 17 Nov 2016 08:36:10 +0000 (16:36 +0800)]
add unit tests to esp-idf

rename nvs host test folder, modify .gitlab-ci.yml

remove unit-test-app build

re-format unit test files

remove extra newlines in project.mk

some refactoring for unit test part in project.mk

add build files of unit-test-app in gitignore

add README.md for unit test app

correct headings in README.md

remove files and make minor tweaks in unit test app

update .gitlab-ci.yml to use unit test app

delete unused lines in component_wrapper.mk

delete periph_i2s.h and lcd test

add text floating point in components/esp32/test/Kconfig

correct idf test build paths in .gitlab-ci.yml

7 years agoMerge branch 'bugfix/arp_queue_failed' into 'master'
Wu Jian Gang [Tue, 22 Nov 2016 06:45:44 +0000 (14:45 +0800)]
Merge branch 'bugfix/arp_queue_failed' into 'master'

report the arp queue fail result

See merge request !227

7 years agoMerge branch 'doc/pr103_cleanup' into 'master'
Ivan Grokhotkov [Tue, 22 Nov 2016 05:26:56 +0000 (13:26 +0800)]
Merge branch 'doc/pr103_cleanup' into 'master'

Documentation cleanup

From @kryzchb, github pull request #103

See merge request !214

7 years agoMerge branch 'bugfix/gpio_config_pullup' into 'master'
Jeroen Domburg [Tue, 22 Nov 2016 04:12:31 +0000 (12:12 +0800)]
Merge branch 'bugfix/gpio_config_pullup' into 'master'

Fix pullups is not configured by gpio_config

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

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

See merge request !226

7 years agoMerge branch 'feature/tw8799_low_level_output_optimize' into 'master'
Wu Jian Gang [Tue, 22 Nov 2016 03:56:35 +0000 (11:56 +0800)]
Merge branch 'feature/tw8799_low_level_output_optimize' into 'master'

Feature/tw8799 low level output optimize

Fix a potential memory crash error in low_level_output

See merge request !224

7 years agoesp32: fix random pkt cause esp32 watchdog
Liu Zhi Fu [Tue, 22 Nov 2016 03:46:10 +0000 (11:46 +0800)]
esp32: fix random pkt cause esp32 watchdog

This change fixes the ESP32 watchdog issue. When the MPDU of AMPDU is longer than 1600B,
esp32 will check whether the last 4B is DEADBEEF, if it's not DEADBEEF, it will assert
and the assert will cause esp32 watchdog. The solution is to init the last 4B to DEADBEEF
when malloc new ebuf for the packet longer than 1600B.

7 years agocomponents/lwip/arp: change the arp dropping packet function
tianzhongxing [Mon, 21 Nov 2016 06:09:52 +0000 (14:09 +0800)]
components/lwip/arp: change the arp dropping packet function

LWIP will drop the oldest package at the arp packet cache queue and return "ERR_OK"
We change it that ARP level will drop the current packet and return "ERR_MEM" to tell user that you should send the packet again latter.

7 years agoMerge branch 'driver_merge_tmp/merge_rmt' into 'master'
Ivan Grokhotkov [Mon, 21 Nov 2016 17:57:01 +0000 (01:57 +0800)]
Merge branch 'driver_merge_tmp/merge_rmt' into 'master'

RMT driver code and example

* add RMT simple driver code.
* add RMT module in periph_ctrl.c/.h
* add infrared RMT example. Will add readme later.

See merge request !190

7 years agormt: add documentation
Wangjialin [Mon, 21 Nov 2016 17:31:56 +0000 (01:31 +0800)]
rmt: add documentation

7 years agoadd RMT driver and example
Wangjialin [Thu, 10 Nov 2016 03:23:40 +0000 (11:23 +0800)]
add RMT driver and example

7 years agoMerge branch 'feature/ipv6_api' into 'master'
Wu Jian Gang [Mon, 21 Nov 2016 11:43:51 +0000 (19:43 +0800)]
Merge branch 'feature/ipv6_api' into 'master'

Ipv6 interface:add branch for ipv6 interface

See merge request !199

7 years agoMerge branch 'master' into feature/wpa2_enterprise
Xia Xiaotian [Mon, 21 Nov 2016 10:09:13 +0000 (18:09 +0800)]
Merge branch 'master' into feature/wpa2_enterprise

Conflicts:
components/esp32/component.mk
components/wpa_supplicant/component.mk

7 years agoMerge branch 'feature/bignum_rsa' into 'master'
Angus Gratton [Mon, 21 Nov 2016 09:46:21 +0000 (17:46 +0800)]
Merge branch 'feature/bignum_rsa' into 'master'

hwcryto bignum support for RSA operations

Supporting RSA with hardware bignum directives.

Configurable via menuconfig to enable/disable, and to choose between busywaiting and interrupt driven completion.

May still be some performance tweaks possible.

TW7111

See merge request !92

7 years agolwip: remove useless printf info
Liu Zhi Fu [Mon, 21 Nov 2016 08:08:39 +0000 (16:08 +0800)]
lwip: remove useless printf info

7 years agombedtls hardware bignum: Use memcpy instead of REG_WRITE/REG_READ in a loop
Angus Gratton [Mon, 21 Nov 2016 07:08:22 +0000 (18:08 +1100)]
mbedtls hardware bignum: Use memcpy instead of REG_WRITE/REG_READ in a loop

Removes memory barriers for better performance, thanks Ivan for pointing
this out.

Manually unrolling the loop further seemed like diminishing returns.

7 years agoBuild system: Fix a bug with embedding binaries in object files
Angus Gratton [Mon, 21 Nov 2016 06:45:28 +0000 (17:45 +1100)]
Build system: Fix a bug with embedding binaries in object files

Sometimes paths were generated absolute, need to keep those as-is

7 years agowpa2: change "station to sta" in wpa2 API
Xia Xiao Tian [Mon, 21 Nov 2016 06:17:52 +0000 (14:17 +0800)]
wpa2: change "station to sta" in wpa2 API

7 years agoPullup is not configured by gpio_config #110
Gabe [Sat, 19 Nov 2016 18:03:15 +0000 (10:03 -0800)]
Pullup is not configured by gpio_config #110

7 years agoipv6 interface: add branch for ipv6 interface
tzx [Thu, 10 Nov 2016 03:24:31 +0000 (11:24 +0800)]
ipv6 interface: add branch for ipv6 interface

7 years agoMerge branch 'feature/support_build_multiple_bin' into 'master'
Ivan Grokhotkov [Mon, 21 Nov 2016 02:58:58 +0000 (10:58 +0800)]
Merge branch 'feature/support_build_multiple_bin' into 'master'

support build multiple bin for SSC

We need to build multiple SSC bin with different feature configs to do test.

For example, we need different SSC bins to test socket API blocking/non-blocking usage with same test cases.

SSC has a same branch to support build all pre-configured bins using `./gen_misc_ng.sh`. It will copy all bins to `./SSC/ssc_bin/`.

This MR will change the artifacts path for `build_ssc` job and the `BIN_PATH` for test jobs using SSC.

See merge request !219

7 years agoDoxygen configuration clean up
Krzysztof [Wed, 16 Nov 2016 19:27:55 +0000 (20:27 +0100)]
Doxygen configuration clean up

7 years agodoc: Index clean up
Krzysztof [Wed, 16 Nov 2016 19:17:44 +0000 (20:17 +0100)]
doc: Index clean up

7 years agodoc: Formating clean up
Krzysztof [Wed, 16 Nov 2016 19:16:47 +0000 (20:16 +0100)]
doc: Formating clean up

7 years agodoc: API Reference - examples & fixes
Krzysztof [Wed, 16 Nov 2016 19:14:48 +0000 (20:14 +0100)]
doc: API Reference - examples & fixes

7 years agodoc: Documenting Code clean up
Krzysztof [Wed, 16 Nov 2016 19:13:18 +0000 (20:13 +0100)]
doc: Documenting Code clean up

7 years agodocs: Hyperlinks to guides
Krzysztof [Wed, 16 Nov 2016 19:11:32 +0000 (20:11 +0100)]
docs: Hyperlinks to guides

7 years agoMerge branch 'feature/tw8798_add_phy_printf_into_libcore' into 'master'
Wu Jian Gang [Mon, 21 Nov 2016 01:30:09 +0000 (09:30 +0800)]
Merge branch 'feature/tw8798_add_phy_printf_into_libcore' into 'master'

esp32: add phy_printf

1. add phy_printf into libcore
2. update libphy.a which has important optimization for ht40 traffic

See merge request !222

7 years agolwip: rework for low_level_output
Liu Zhi Fu [Sun, 20 Nov 2016 09:05:44 +0000 (17:05 +0800)]
lwip: rework for low_level_output

7 years agolwip: optimize low_level_output
Liu Zhi Fu [Sat, 19 Nov 2016 14:25:30 +0000 (22:25 +0800)]
lwip: optimize low_level_output

When the parameter pbuf for low_level_output is a list, malloc a new pbuf of
which the length equals to the total length of pbuf and send the new pbuf to L2

7 years agoesp32: add phy_printf
Liu Zhi Fu [Fri, 18 Nov 2016 13:11:54 +0000 (21:11 +0800)]
esp32: add phy_printf

1. add phy_printf into libcore
2. update libphy.a which has important optimization for ht40 traffic

7 years agoMerge branch 'feature/save_logs_to_test_report' into 'master'
Ivan Grokhotkov [Fri, 18 Nov 2016 12:56:54 +0000 (20:56 +0800)]
Merge branch 'feature/save_logs_to_test_report' into 'master'

save logs as test_report artifacts

save all logs as test report artifacts.

Testers only need to download artifacts for test report to analysis test result.

See merge request !217

7 years agoMerge branch 'feature/phy_init' into 'master'
Ivan Grokhotkov [Fri, 18 Nov 2016 12:46:03 +0000 (20:46 +0800)]
Merge branch 'feature/phy_init' into 'master'

PHY init support

This change set adds PHY init support and fixes NVS initialization.

Some configuration options for PHY init process are added to menuconfig.

See merge request !206

7 years agodocs: update partition tables documentation
Ivan Grokhotkov [Fri, 18 Nov 2016 12:34:54 +0000 (20:34 +0800)]
docs: update partition tables documentation

7 years agonvs, spi_flash: handle case when source data is in DROM
Ivan Grokhotkov [Fri, 18 Nov 2016 11:17:13 +0000 (19:17 +0800)]
nvs, spi_flash: handle case when source data is in DROM

7 years agophy_init: reduce the amount of hardwired logic, add coexist init
Ivan Grokhotkov [Thu, 17 Nov 2016 17:18:39 +0000 (01:18 +0800)]
phy_init: reduce the amount of hardwired logic, add coexist init

7 years agophy init data: Read PHY init data partition offset from menuconfig
Angus Gratton [Wed, 16 Nov 2016 01:22:32 +0000 (12:22 +1100)]
phy init data: Read PHY init data partition offset from menuconfig

7 years agoadd PHY init support
Ivan Grokhotkov [Tue, 15 Nov 2016 10:36:18 +0000 (18:36 +0800)]
add PHY init support

7 years agopartition_table: update layouts, remove unused subtypes, sync with header file
Ivan Grokhotkov [Tue, 15 Nov 2016 10:35:10 +0000 (18:35 +0800)]
partition_table: update layouts, remove unused subtypes, sync with header file

7 years agonvs: allow nvs_flash_init to be called more than once
Ivan Grokhotkov [Tue, 15 Nov 2016 10:24:56 +0000 (18:24 +0800)]
nvs: allow nvs_flash_init to be called more than once

Also don’t assert in nvs_* functions if nvs_flash_init wasn’t called,
and make nvs_flash_init_custom an internal API for unit tests.

7 years agonvs: initialize using layout from partition table
Ivan Grokhotkov [Tue, 15 Nov 2016 10:23:29 +0000 (18:23 +0800)]
nvs: initialize using layout from partition table

7 years agoMerge branch 'feature/openssl' into 'master'
Wu Jian Gang [Fri, 18 Nov 2016 07:50:50 +0000 (15:50 +0800)]
Merge branch 'feature/openssl' into 'master'

OpenSSL API examples

add openssl demo

See merge request !198

7 years agombedtls hardware bignum: Expose ESP-only bignum API in wrapper mbedtls/bignum.h
Angus Gratton [Fri, 18 Nov 2016 05:38:22 +0000 (16:38 +1100)]
mbedtls hardware bignum: Expose ESP-only bignum API in wrapper mbedtls/bignum.h

7 years agombedtls hardware bignum: Support "RSA" interrupt for end of operation
Angus Gratton [Fri, 18 Nov 2016 04:53:00 +0000 (15:53 +1100)]
mbedtls hardware bignum: Support "RSA" interrupt for end of operation

Allows CPU to do other things which bignum operation is in
progress.

7 years agombedtls hardware RSA: Put into menuconfig, squash warnings
Angus Gratton [Fri, 18 Nov 2016 03:26:02 +0000 (14:26 +1100)]
mbedtls hardware RSA: Put into menuconfig, squash warnings

All combinations of enabling/disabling hardware acceleration no longer
show unused warnings.

7 years agombedtls hardware RSA: Combine methods for calculating M' & r inverse
Angus Gratton [Fri, 18 Nov 2016 02:44:37 +0000 (13:44 +1100)]
mbedtls hardware RSA: Combine methods for calculating M' & r inverse

Remove redundant gcd calculation, use consistent terminology.
Also remove leftover debugging code

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 agocomponents/openssl_demo: remove the apache license header and add cc license head
Dong Heng [Fri, 18 Nov 2016 02:07:34 +0000 (10:07 +0800)]
components/openssl_demo: remove the apache license header and add cc license head

7 years agoMerge branch 'bugfix/taskwdt' into 'master'
Wu Jian Gang [Thu, 17 Nov 2016 13:03:45 +0000 (21:03 +0800)]
Merge branch 'bugfix/taskwdt' into 'master'

taskwdt fixes: better handling of empty/emptying wdt task list, lock task struct while feeding

As in description.

See merge request !212

7 years agoMerge with master; merge Doxygen config
Jeroen Domburg [Thu, 17 Nov 2016 12:21:12 +0000 (20:21 +0800)]
Merge with master; merge Doxygen config

7 years agoMerge branch 'feature/docs_general_notes' into 'master'
Ivan Grokhotkov [Thu, 17 Nov 2016 11:00:03 +0000 (19:00 +0800)]
Merge branch 'feature/docs_general_notes' into 'master'

Docs: new documentation and warnings cleanup

This change set

- adds a high-level description of application startup flow. Some parts are missing, but hopefully we can use this description as a base to expand on.
- adds a few notes about memory regions and their use in ESP-IDF.
- add SPI flash and partition APIs page
- fixes all Doxygen warnings in header files
- enables build failures on new Doxygen warnings

See merge request !201

7 years agoMake sure task wdt also does the right thing when triggered when flash is disabled
Jeroen Domburg [Thu, 17 Nov 2016 10:05:47 +0000 (18:05 +0800)]
Make sure task wdt also does the right thing when triggered when flash is disabled

7 years agoMerge branch 'bugfix/secure_boot_fixes' into 'master'
Angus Gratton [Thu, 17 Nov 2016 09:42:03 +0000 (17:42 +0800)]
Merge branch 'bugfix/secure_boot_fixes' into 'master'

Secure boot related fixes

Fix some issues (mostly build system) from the secure boot implementation

Also refactor the way submodule checks are applied to make them more reliable.

See merge request !207

7 years agosupport build multiple bin for SSC
Yinling [Thu, 17 Nov 2016 06:02:46 +0000 (14:02 +0800)]
support build multiple bin for SSC

7 years agosave logs as test_report artifacts
Yinling [Thu, 17 Nov 2016 05:45:53 +0000 (13:45 +0800)]
save logs as test_report artifacts

7 years agoMerge branch 'bugfix/tw8706_softap_join_ap_return_wrong' into 'master'
Wu Jian Gang [Thu, 17 Nov 2016 04:46:48 +0000 (12:46 +0800)]
Merge branch 'bugfix/tw8706_softap_join_ap_return_wrong' into 'master'

esp32: tw8706 softap join ap return wrong code

In softap/null mode, esp_wifi_connect will return ESP_ERR_WIFI_MODE

See merge request !216

7 years agoAdd docs build artifacts to gitignore
Jeroen Domburg [Thu, 17 Nov 2016 04:33:31 +0000 (12:33 +0800)]
Add docs build artifacts to gitignore

7 years agoAdd documentation
Jeroen Domburg [Thu, 17 Nov 2016 04:09:08 +0000 (12:09 +0800)]
Add documentation

7 years agoesp32: tw8706 softap join ap return wrong code
Liu Zhi Fu [Thu, 17 Nov 2016 03:56:22 +0000 (11:56 +0800)]
esp32: tw8706 softap join ap return wrong code

In softap/null mode, esp_wifi_connect will return ESP_ERR_WIFI_MODE

7 years agoMerge branch 'bugfix/tw8746_restore_cause_load_fail' into 'master'
Wu Jian Gang [Thu, 17 Nov 2016 03:53:41 +0000 (11:53 +0800)]
Merge branch 'bugfix/tw8746_restore_cause_load_fail' into 'master'

nvs_flash: adjust the nvs_flash start sector number

Modify the nvs flash start sector from 6 to 9 because the partition table bin burn address is modified from 0x4000 to 0x8000

See merge request !215

7 years agoMerge branch 'feature/tw8743_menuconfig_add_L2toL3_copy_option' into 'master'
Wu Jian Gang [Thu, 17 Nov 2016 03:52:39 +0000 (11:52 +0800)]
Merge branch 'feature/tw8743_menuconfig_add_L2toL3_copy_option' into 'master'

lwip: add option to memcopy packet from L2 to L3

Menuconfig add an option to copy the packet from layer2 (WIFI driver) to layer3 (LWIP), default not copy

See merge request !211

7 years agodocs/nvs_flash: update the nvs flash offset comment according review
Liu Zhi Fu [Thu, 17 Nov 2016 03:44:39 +0000 (11:44 +0800)]
docs/nvs_flash: update the nvs flash offset comment according review

7 years agoMerge branch 'doc/pr65_openocd_clone' into 'master'
Angus Gratton [Thu, 17 Nov 2016 03:35:06 +0000 (11:35 +0800)]
Merge branch 'doc/pr65_openocd_clone' into 'master'

Simplified "Installing OpenOCD" with git clone --recursive

Github pull request #65

See merge request !213

7 years agobuild system: Use correct objcopy arguments for object format
Angus Gratton [Wed, 16 Nov 2016 07:03:55 +0000 (18:03 +1100)]
build system: Use correct objcopy arguments for object format

Avoid ambiguous argument error on some platforms

Ref internal discussion !198

squash! build system: Use correct objcopy --input-target argument not --input

7 years agonvs_flash: adjust the nvs_flash start sector number
Liu Zhi Fu [Thu, 17 Nov 2016 03:22:20 +0000 (11:22 +0800)]
nvs_flash: adjust the nvs_flash start sector number

Modify the nvs flash start sector from 6 to 9

7 years agolwip: default ESP_L2_TO_L3_COPY to 0
Liu Zhi Fu [Thu, 17 Nov 2016 02:53:00 +0000 (10:53 +0800)]
lwip: default ESP_L2_TO_L3_COPY to 0

7 years agolwip:refractor to the description about this menuconfig option
Liu Zhi Fu [Thu, 17 Nov 2016 02:22:20 +0000 (10:22 +0800)]
lwip:refractor to the description about this menuconfig option

7 years agoSimplified "Installing OpenOCD" with git clone --recursive
Benjamin Vernoux [Fri, 28 Oct 2016 20:25:14 +0000 (22:25 +0200)]
Simplified "Installing OpenOCD" with git clone --recursive

7 years agobuild system: When embedding binary files, fix re-generating on partial builds
Angus Gratton [Wed, 16 Nov 2016 00:45:39 +0000 (11:45 +1100)]
build system: When embedding binary files, fix re-generating on partial builds

When embedding a generated file (ie secure boot public key data), the
file was being re-generated each time.