]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agobuild system: Fix sdkconfig.defaults file preventing menuconfig changes
Angus Gratton [Sun, 8 Jan 2017 23:09:05 +0000 (10:09 +1100)]
build system: Fix sdkconfig.defaults file preventing menuconfig changes

'make defconfig' now behaves similarly whether sdkconfig.defaults
is present or not, and 'make menuconfig' doesn't trigger a defconfig.

7 years agoMerge branch 'bugfix/tw9515_fix_wifi_timer_thread_safe_issue' into 'master'
Wu Jian Gang [Mon, 9 Jan 2017 02:54:00 +0000 (10:54 +0800)]
Merge branch 'bugfix/tw9515_fix_wifi_timer_thread_safe_issue' into 'master'

esp32: fix wifi timer thread-safe issue

Update wifi lib to fix a wifi timer thread-safe issue

See merge request !388

7 years agoesp32: fix wifi timer thread-safe issue
Liu Zhi Fu [Mon, 9 Jan 2017 02:09:10 +0000 (10:09 +0800)]
esp32: fix wifi timer thread-safe issue

Update wifi lib to fix a wifi timer thread-safe issue

7 years agoMerge branch 'bugfix/bootloader_ets_cpu_update_freq' into 'master'
Ivan Grokhotkov [Mon, 9 Jan 2017 02:14:00 +0000 (10:14 +0800)]
Merge branch 'bugfix/bootloader_ets_cpu_update_freq' into 'master'

bootloader: export ets_update_cpu_frequency

MR !363 added linking librtc into bootloader. At the same time, MR !373 removed ets_update_cpu_frequency from ROM exports ld script, and replaced it with a dual CPU aware version. Combining these two MRs caused linker error in bootloader due to the unresolved `ets_update_cpu_frequency`.

One option to fix this is to move the definition of ets_update_cpu_frequency into bootloader_support component. This does however look a bit odd because this function is not something that is specifically needed for bootloader support.

Another option is to export the ROM version of ets_update_cpu_frequency for the bootloader only. This means that when bootloader changes CPU frequency, it only updates the tick period variable for PRO CPU. This isn't an issue though, because app startup code still calls the dual CPU aware version of ets_update_cpu_frequency early on, before any non-trivial code can run on the APP cpu.

This MR uses the second approach. Looking forward, we may move this definition of ets_update_cpu_frequency into the rtc_clk component, which will be used both by the bootloader and the app, and placing ets_update_cpu_frequency there would be logical.

See merge request !384

7 years agoMerge branch 'feature/sd_driver_new' into 'master'
Ivan Grokhotkov [Sun, 8 Jan 2017 22:48:25 +0000 (06:48 +0800)]
Merge branch 'feature/sd_driver_new' into 'master'

SDMMC peripheral driver, SD protocol driver, FATFS library, VFS integration

This MR contains:
- SDMMC host peripheral driver
- SD protocol driver in sdmmc component (can be extended to support MMC/eMMC and SPI based hosts)
- ChaN's FATFS library v0.12b
- VFS integration
- FAT access via VFS is thread-safe (unless same file is read/written/unlinked/renamed from different tasks)
- Support for POSIX directory-related functions in VFS (and in vfs_fatfs.c)
- unit test for the above
- Example
- API documentation

Will be done in other MRs:
- Support for spi_flash IO driver for FatFs
- SPI host driver and support for SPI mode commands in sdmmc component
- MMC/eMMC support in sdmmc component
- Support for slightly higher 53/26.6MHz clocks (currently I'm using 20MHz for DS and 40MHz for HS, instead of 25MHz/50MHz per standard), and arbitrary low clocks (e.g. 4MHz).

See merge request !353

7 years agodocs: add sdmmc and fatfs docs
Ivan Grokhotkov [Sun, 8 Jan 2017 20:09:09 +0000 (04:09 +0800)]
docs: add sdmmc and fatfs docs

7 years agofatfs: add vfs support
Ivan Grokhotkov [Sun, 8 Jan 2017 21:54:04 +0000 (05:54 +0800)]
fatfs: add vfs support

7 years agofatfs: rename DIR to FF_DIR to avoid conflict with dirent.h
Ivan Grokhotkov [Mon, 2 Jan 2017 19:45:11 +0000 (03:45 +0800)]
fatfs: rename DIR to FF_DIR to avoid conflict with dirent.h

7 years agofatfs: add pluggable diskio layer, sdmmc implementation
Ivan Grokhotkov [Thu, 29 Dec 2016 09:33:38 +0000 (17:33 +0800)]
fatfs: add pluggable diskio layer, sdmmc implementation

7 years agofatfs: import version 0.12b
Ivan Grokhotkov [Thu, 29 Dec 2016 09:28:39 +0000 (17:28 +0800)]
fatfs: import version 0.12b

7 years agovfs: add directory APIs
Ivan Grokhotkov [Mon, 2 Jan 2017 19:26:25 +0000 (03:26 +0800)]
vfs: add directory APIs

7 years agovfs: implement vfs_unregister
Ivan Grokhotkov [Thu, 29 Dec 2016 14:21:29 +0000 (22:21 +0800)]
vfs: implement vfs_unregister

7 years agosdmmc: add peripheral driver and protocol layer
Ivan Grokhotkov [Mon, 19 Dec 2016 14:19:47 +0000 (22:19 +0800)]
sdmmc: add peripheral driver and protocol layer

7 years agobootloader: export ets_update_cpu_frequency
Ivan Grokhotkov [Sun, 8 Jan 2017 19:08:24 +0000 (03:08 +0800)]
bootloader: export ets_update_cpu_frequency

7 years agoMerge branch 'bugfix/fix_wifi_auth_fail_issue' into 'master'
Wu Jian Gang [Sat, 7 Jan 2017 13:12:45 +0000 (21:12 +0800)]
Merge branch 'bugfix/fix_wifi_auth_fail_issue' into 'master'

esp32: fix wifi auth issue

Fix wifi auth failed issue by default phy mode to 11N

See merge request !382

7 years agoMerge branch 'feature/cplusplus' into 'master'
Ivan Grokhotkov [Sat, 7 Jan 2017 10:50:12 +0000 (18:50 +0800)]
Merge branch 'feature/cplusplus' into 'master'

C++ support

This change adds necessary support for compiling C++ programs:
- linking against libstdc++
- implementation of static initialization guards using FreeRTOS primitives: since we don't have condition variables at our disposal, and we don't want to allocate a synchronization primitive for every guard variable generated by the compiler, we imitate condition variables using a combination of a mutex, counting semaphore, and a counter (based on [Microsoft Research paper](https://www.microsoft.com/en-us/research/wp-content/uploads/2004/12/ImplementingCVs.pdf), albeit because we don't need *arbitrary* code to use these CVs, implementation gets simpler).

Note that libstdc++ also contains an implementation of `__cxa_guard_{acquire,release,abort}` functions. These implementations come from an `#ifndef GXX_THREADS` branch, i.e. are not aware of multthreading. There are three ways of replacing these libstdc++ functions with our implementation:

1. Move our code into gcc. Pros: cleanest solution. Cons: Such changes are unlikely to be merged by any upstream, so we end up maintaining our own forks of {gcc,crosstool-ng}.
2. Use library as it is built by crosstool, use `ar` to delete one object file (`guards.o`), add this library to ESP-IDF. Pros: easy to implement. Cons: libstdc++ is a 15MB binary :hushed:
3. Keep using libstdc++ from crosstool, force our implementation to be linked using a `-u` linker flag. Pros: no impact on repo size, easy to implement. Cons: somewhat less clean than 1 (and about as hacky as 2).

For the reasons mentioned, option (3) looks like the best tradeoff.

Ref. TW6702

See merge request !364

7 years agoMerge branch 'test/update_known_issues' into 'master'
Ivan Grokhotkov [Sat, 7 Jan 2017 10:47:17 +0000 (18:47 +0800)]
Merge branch 'test/update_known_issues' into 'master'

CI: update know issue list for idf

See merge request !360

7 years agoMerge branch 'feature/bootloader_rng' into 'master'
Ivan Grokhotkov [Sat, 7 Jan 2017 10:46:10 +0000 (18:46 +0800)]
Merge branch 'feature/bootloader_rng' into 'master'

Enable bootloader entropy source for RNG

Enables an entropy source when bootloader starts up, which both seeds the RNG for use before WiFi/BT stack is enabled and provides an adequate RNG for secure boot & flash encryption key generation.

A prerequisite was enabling 80MHz operation, so the CPU is now set to 80MHz as soon as second stage bootloader starts running.

See merge request !363

7 years agoMerge branch 'feature/lwip-rcvbuf-option' into 'master'
Ivan Grokhotkov [Sat, 7 Jan 2017 10:45:37 +0000 (18:45 +0800)]
Merge branch 'feature/lwip-rcvbuf-option' into 'master'

add menuconfig option to enable SO_RCVBUF

This option is required by Arduino and enables netconn connection to be queried for amount of data available in the rx buffer.

See merge request !372

7 years agoMerge branch 'bugfix/ets_delay_on_app_cpu' into 'master'
Ivan Grokhotkov [Sat, 7 Jan 2017 10:45:14 +0000 (18:45 +0800)]
Merge branch 'bugfix/ets_delay_on_app_cpu' into 'master'

esp32: ets_update_cpu_frequency should set tick scale for both CPUs

ets_update_cpu_frequency ROM function updates g_ticks_per_us, which is has two copies, one for each CPU.
The APP CPU copy of g_ticks_per_us never got updated, resulting in shorter delays produced by ets_delay_us on the APP CPU.

This MR replaces ROM ets_update_cpu_frequency with a copy in IRAM which updates scaling factors on both of the CPUs.

So now we get expected delays (in microseconds):
```
ets_delay_us core=0 expected=50000 actual=50014
ets_delay_us core=1 expected=50000 actual=50015
vTaskDelay core=0 expected=50000 actual=49428
vTaskDelay core=1 expected=50000 actual=50000
```

Reported on the forum: http://esp32.com/viewtopic.php?f=2&t=713#p3722

See merge request !373

7 years agoMerge branch 'bugfix/fix_a_crash_issue' into 'master'
Ivan Grokhotkov [Sat, 7 Jan 2017 10:26:20 +0000 (18:26 +0800)]
Merge branch 'bugfix/fix_a_crash_issue' into 'master'

esp32: modify ld file to fix a crash issue

This MR is to fix a crash issue in latest idf

See merge request !379

7 years agoesp32: fix wifi auth issue
Liu Zhi Fu [Sat, 7 Jan 2017 08:32:03 +0000 (16:32 +0800)]
esp32: fix wifi auth issue

Fix wifi auth failed issue by default phy mode to 11N

7 years agoesp32: modify ld file to fix a crash issue
Liu Zhi Fu [Fri, 6 Jan 2017 11:35:22 +0000 (19:35 +0800)]
esp32: modify ld file to fix a crash issue

7 years agoMerge branch 'bugfix/fix_ci_error' into 'master'
Wu Jian Gang [Sat, 7 Jan 2017 07:59:29 +0000 (15:59 +0800)]
Merge branch 'bugfix/fix_ci_error' into 'master'

Fix CI error of some examples

Include coap_client/coap_server/ota.

See merge request !381

7 years agoexample: Reindex ota demo
Wu Jian Gang [Fri, 6 Jan 2017 13:39:32 +0000 (21:39 +0800)]
example: Reindex ota demo

7 years agoexample: fix CI error of ota demo
Wu Jian Gang [Fri, 6 Jan 2017 10:52:58 +0000 (18:52 +0800)]
example: fix CI error of ota demo

7 years agoexample: fix CI error of coap server demo
Wu Jian Gang [Fri, 6 Jan 2017 10:42:46 +0000 (18:42 +0800)]
example: fix CI error of coap server demo

7 years agoexample: fix CI error of coap client demo
Wu Jian Gang [Fri, 6 Jan 2017 10:36:11 +0000 (18:36 +0800)]
example: fix CI error of coap client demo

7 years agoMerge branch 'feature/btdm_blufi_version' into 'master'
Jiang Jiang Jian [Fri, 6 Jan 2017 10:55:05 +0000 (18:55 +0800)]
Merge branch 'feature/btdm_blufi_version' into 'master'

component/bt : blufi add version

blufi add version and the android APK add version check, too.

See merge request !378

7 years agocomponent/bt : blufi add version
Tian Hao [Fri, 6 Jan 2017 09:40:46 +0000 (17:40 +0800)]
component/bt : blufi add version

7 years agoMerge branch 'driver/spi' into 'master'
Jeroen Domburg [Fri, 6 Jan 2017 08:28:52 +0000 (16:28 +0800)]
Merge branch 'driver/spi' into 'master'

SPI master driver

This merge requests adds an SPI Master driver. This driver is (of course) multithread capable, has device abstraction, has command queueing, DMA support and all other sorts of nice things you'd expect from a SPI driver.

See merge request !332

7 years agoMerge branch 'bugfix/ethernet_init' into 'master'
Wu Jian Gang [Fri, 6 Jan 2017 08:26:40 +0000 (16:26 +0800)]
Merge branch 'bugfix/ethernet_init' into 'master'

ethernet : fix sometimes ethernet init fail bug

See merge request !376

7 years agoMerge branch 'feature/Add_OTA_Demo' into 'master'
Wu Jian Gang [Fri, 6 Jan 2017 08:15:14 +0000 (16:15 +0800)]
Merge branch 'feature/Add_OTA_Demo' into 'master'

esp32 examples: Add OTA Demo

this demo would show you an OTA workflow and how to make it run.

See merge request !324

7 years agocxx: implement static initialization guards
Ivan Grokhotkov [Wed, 4 Jan 2017 16:25:55 +0000 (00:25 +0800)]
cxx: implement static initialization guards

7 years agoMerge branch 'bugfix/tw9540_workaround_appdata_overwrite_bootdata' into 'master'
Ivan Grokhotkov [Fri, 6 Jan 2017 07:59:22 +0000 (15:59 +0800)]
Merge branch 'bugfix/tw9540_workaround_appdata_overwrite_bootdata' into 'master'

modify bootloader dram start address, swap app bss and data segments

Modify bootloader dram_seg from address 0x3ffc0000 to 0x3fff0000, len from 0x20000 to 0x10000.
Also put app .data before .bss, to reduce the chance .data collides with ROM bootloader stack.

See merge request !375

7 years agoMerge branch 'feature/CoAP' into 'master'
Wu Jian Gang [Fri, 6 Jan 2017 07:37:09 +0000 (15:37 +0800)]
Merge branch 'feature/CoAP' into 'master'

Add CoAP feature

Add CoAP protocol, support client and server test demo.

See merge request !303

7 years agoesp32: ets_update_cpu_frequency should set tick scale for both CPUs
Ivan Grokhotkov [Thu, 5 Jan 2017 14:55:38 +0000 (22:55 +0800)]
esp32: ets_update_cpu_frequency should set tick scale for both CPUs

7 years agounity: fix testcase initializer for compiling with C++
Ivan Grokhotkov [Wed, 4 Jan 2017 16:37:56 +0000 (00:37 +0800)]
unity: fix testcase initializer for compiling with C++

7 years agocxx: link against libstdc++, remove abi.cpp
Ivan Grokhotkov [Wed, 4 Jan 2017 16:27:59 +0000 (00:27 +0800)]
cxx: link against libstdc++, remove abi.cpp

7 years agoAdd SPI Master driver, example, test and docs
Jeroen Domburg [Fri, 6 Jan 2017 06:20:32 +0000 (14:20 +0800)]
Add SPI Master driver, example, test and docs

7 years agoethernet: update docs
shangke [Fri, 6 Jan 2017 06:16:34 +0000 (14:16 +0800)]
ethernet: update docs

7 years agoethernet : fix sometimes ethernet init fail bug
shangke [Fri, 6 Jan 2017 05:49:42 +0000 (13:49 +0800)]
ethernet : fix sometimes ethernet init fail bug

7 years agobootloader: update ld script comment
Ivan Grokhotkov [Fri, 6 Jan 2017 05:47:53 +0000 (13:47 +0800)]
bootloader: update ld script comment

7 years agoesp32: put .data before .bss
Ivan Grokhotkov [Fri, 6 Jan 2017 05:03:07 +0000 (13:03 +0800)]
esp32: put .data before .bss

This change reduces chances that a large .bss segment will push .data all the way into
0x3ffe1320 — 0x3ffe5320 range where the bootloader stack is, creating a problem when
bootloader will be loading application into memory.
With this change, .data would need to be at least 200k big to cause problems.

7 years agobootloader: modify bootloader dram start address to 0x3fff0000
Liu Zhi Fu [Fri, 6 Jan 2017 04:23:11 +0000 (12:23 +0800)]
bootloader: modify bootloader dram start address to 0x3fff0000

Modify bootloader dram_seg from address 0x3ffc0000 to 0x3fff0000, len from
0x20000 to 0x10000. Please be notified that this is just a workaround for
fixing app data overwrite bootloader data issue!

7 years agoMerge branch 'feature/wifi_deinit' into 'master'
Wu Jian Gang [Fri, 6 Jan 2017 05:32:25 +0000 (13:32 +0800)]
Merge branch 'feature/wifi_deinit' into 'master'

wifi: add wifi rx buffer number config in menuconfig

See merge request !370

7 years agoMerge branch 'bugfix/btdm_blufi' into 'master'
Jiang Jiang Jian [Fri, 6 Jan 2017 05:18:08 +0000 (13:18 +0800)]
Merge branch 'bugfix/btdm_blufi' into 'master'

component/bt : blufi fix security init bug

fix a memset bug.

See merge request !374

7 years agocomponent/bt : blufi fix security init bug
Tian Hao [Fri, 6 Jan 2017 04:24:37 +0000 (12:24 +0800)]
component/bt : blufi fix security init bug

7 years agowifi: add wifi rx buffer number config in menuconfig
XiaXiaotian [Thu, 5 Jan 2017 09:57:41 +0000 (17:57 +0800)]
wifi: add wifi rx buffer number config in menuconfig

7 years agoMerge branch 'feature/btdm_blufi' into 'master'
Ivan Grokhotkov [Thu, 5 Jan 2017 13:54:45 +0000 (21:54 +0800)]
Merge branch 'feature/btdm_blufi' into 'master'

Feature/btdm blufi

This is new BLUFI for config wifi connection through bluetooth.

See merge request !359

7 years agocomponent/bt : use new lib, optimize BT power
Tian Hao [Thu, 5 Jan 2017 12:41:15 +0000 (20:41 +0800)]
component/bt : use new lib, optimize BT power

7 years agoMerge branch 'feature/low_rate' into 'master'
Wu Jian Gang [Thu, 5 Jan 2017 12:34:50 +0000 (20:34 +0800)]
Merge branch 'feature/low_rate' into 'master'

add WiFi low rate feature

See merge request !358

7 years agocomponent/bt : new blufi
Tian Hao [Wed, 28 Dec 2016 04:02:43 +0000 (12:02 +0800)]
component/bt : new blufi

1. new blufi protocol
2. new blufi demo
3. support security
4. support sta/ap/sta_ap
5. support wpa-enterprise

7 years agoMerge branch 'feature/ledc' into 'master'
Wang Jia Lin [Thu, 5 Jan 2017 12:05:13 +0000 (20:05 +0800)]
Merge branch 'feature/ledc' into 'master'

driver: ledc update

1. add fading functions.
2. clear up ledc.h
3. update api doc.
4. add ledc example

See merge request !347

7 years agocomponent/bt: modify bluetooth API
wangmengyang [Tue, 3 Jan 2017 07:53:06 +0000 (15:53 +0800)]
component/bt: modify bluetooth API

1. VHCI api and doxygen
2. Controller api and doxygen
3. bluedroid init/enable api and doxygen
4. cleanup demo codes

7 years agoadd menuconfig option to enable SO_RCVBUF
me-no-dev [Thu, 5 Jan 2017 11:17:52 +0000 (13:17 +0200)]
add menuconfig option to enable SO_RCVBUF

7 years agoesp32: update wifi libs
qiyueixa [Thu, 5 Jan 2017 10:43:09 +0000 (18:43 +0800)]
esp32: update wifi libs

1. add wifi low rate feature

7 years agoesp32: add wifi low rate feature
qiyueixa [Fri, 30 Dec 2016 13:22:06 +0000 (21:22 +0800)]
esp32: add wifi low rate feature

1. add low_rate_enable flag to scan results to identify if AP low rate is enabled.
2. add WIFI_PROTOCOL_LR for users to enable low rate feature.

7 years agodriver: ledc - update fading functions, add example and doc
Wangjialin [Sun, 25 Dec 2016 15:11:24 +0000 (23:11 +0800)]
driver: ledc - update fading functions, add example and doc

1. add fading functions.
2. clear up ledc.c and ledc.h
3. update api doc.
4. add ledc example
5. edit ledc.rst and add readme for example code.
6. add s_ prefix for static global values.
7. add mutex for fade functions
8. minor changes according to the comments.

7 years agocomponent/bt : add macro for adv_data_flag
Tian Hao [Thu, 5 Jan 2017 07:24:09 +0000 (15:24 +0800)]
component/bt : add macro for adv_data_flag

1. add macro for adv data flag
2. add docs for doxygen

7 years agocomponent/bt : fix advertising bug
Tian Hao [Fri, 23 Dec 2016 07:57:44 +0000 (15:57 +0800)]
component/bt : fix advertising bug

1. adv data flag
2. default adv data not BR/EDR in demo

7 years agoMerge branch 'feature/btdm_gatt_api' into 'master'
Ivan Grokhotkov [Thu, 5 Jan 2017 08:43:01 +0000 (16:43 +0800)]
Merge branch 'feature/btdm_gatt_api' into 'master'

Feature/btdm gatt api

GATT upstream api changed.
Actually, feature/btdm_blufi based on this branch.

See merge request !366

7 years agoexamples: Add CoAP client demo
Liu Han [Sat, 10 Dec 2016 06:34:50 +0000 (14:34 +0800)]
examples: Add CoAP client demo

Test CoAP protocol client

7 years agoexamples: Add CoAP server demo
Liu Han [Sat, 10 Dec 2016 05:48:38 +0000 (13:48 +0800)]
examples: Add CoAP server demo

Test CoAP protocol server

7 years agoMerge branch 'master' into feature/btdm_gatt_api
Tian Hao [Thu, 5 Jan 2017 07:25:03 +0000 (15:25 +0800)]
Merge branch 'master' into feature/btdm_gatt_api

7 years agocomponent/bt : update bluetooth api doxygen ref
Tian Hao [Thu, 5 Jan 2017 06:56:16 +0000 (14:56 +0800)]
component/bt : update bluetooth api doxygen ref

7 years agoMerge branch 'feature/throughput_optimization_phrase_1' into 'master'
Wu Jian Gang [Thu, 5 Jan 2017 06:09:23 +0000 (14:09 +0800)]
Merge branch 'feature/throughput_optimization_phrase_1' into 'master'

lwip/freertos/esp32: add throughput optimization related code

1. Update wifi lib which contains ampdu and other optimizations
2. Add throughput code debug code
3. Add code to support sending multiple packet per socket call for udp
4. Other misc modification about throughput optimization

See merge request !361

7 years agolwip: rework according review comments
Liu Zhi Fu [Thu, 5 Jan 2017 04:22:49 +0000 (12:22 +0800)]
lwip: rework according review comments

7 years agoMerge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf into feature...
Liu Zhi Fu [Thu, 5 Jan 2017 03:37:56 +0000 (11:37 +0800)]
Merge branch 'master' of ssh://gitlab.espressif.cn:27227/idf/esp-idf into feature/throughput_optimization_phrase_1

7 years agolwip/freertos/esp32: add throughput optimization related code
Liu Zhi Fu [Mon, 2 Jan 2017 12:03:10 +0000 (20:03 +0800)]
lwip/freertos/esp32: add throughput optimization related code

1. Update wifi lib which contains ampdu and other optimizations
2. Add throughput code debug code
3. Other misc modification about throughput optimization

7 years agoexamples: Rename 18_ota to 26_ota
Chen Wu [Wed, 4 Jan 2017 09:39:08 +0000 (17:39 +0800)]
examples: Rename 18_ota to 26_ota

example numbers should accord with our internal definition.

7 years agoMerge branch 'bugfix/ci_build_example_failures' into 'master'
Ivan Grokhotkov [Wed, 4 Jan 2017 16:48:27 +0000 (00:48 +0800)]
Merge branch 'bugfix/ci_build_example_failures' into 'master'

Fix CI build example not failing on errors

See merge request !357

7 years agoCI: update known issues
Yinling [Mon, 2 Jan 2017 11:28:01 +0000 (19:28 +0800)]
CI: update known issues

7 years agoesp_random: XOR the RNG register value several times before returning it
Angus Gratton [Wed, 4 Jan 2017 05:30:07 +0000 (16:30 +1100)]
esp_random: XOR the RNG register value several times before returning it

Probably unnecessary, but avoids returning internal RNG state as-is.

7 years agobootloader: Enable early boot RNG entropy source
Angus Gratton [Wed, 4 Jan 2017 04:36:04 +0000 (15:36 +1100)]
bootloader: Enable early boot RNG entropy source

This reverts commit ceb85669702f01f3e30ddfcdd841dfe64e1a597c.

7 years agobootloader: Allow custom baud rate on UART 0
Angus Gratton [Wed, 4 Jan 2017 05:16:41 +0000 (16:16 +1100)]
bootloader: Allow custom baud rate on UART 0

7 years agobootloader: Boost bootloader CPU to 80MHz
Angus Gratton [Wed, 4 Jan 2017 04:36:40 +0000 (15:36 +1100)]
bootloader: Boost bootloader CPU to 80MHz

Partially needed to use RNG, also useful to improve boot performance.

7 years agoMerge branch 'driver_merge_tmp/merge_i2c' into 'master'
Wang Jia Lin [Tue, 3 Jan 2017 08:44:08 +0000 (16:44 +0800)]
Merge branch 'driver_merge_tmp/merge_i2c' into 'master'

driver: i2c code

1. add i2c master code
2. add i2c slave code
3. add i2c example code

See merge request !318

7 years agoCI: fix bug that test report job failed
Yinling [Mon, 2 Jan 2017 08:25:26 +0000 (16:25 +0800)]
CI: fix bug that test report job failed

7 years agoCI: update known issues
Yinling [Mon, 2 Jan 2017 05:15:10 +0000 (13:15 +0800)]
CI: update known issues

7 years agoCI: fix bug that restore initial condition fail:
Yinling [Mon, 2 Jan 2017 05:12:30 +0000 (13:12 +0800)]
CI: fix bug that restore initial condition fail:

in STA+AP mode, when STA is reconnecting to external AP, its AP
interface is not connectable. do disconnect on STA interface first

7 years agoMerge branch 'feature/print_halt_abort' into 'master'
Angus Gratton [Tue, 3 Jan 2017 05:44:34 +0000 (13:44 +0800)]
Merge branch 'feature/print_halt_abort' into 'master'

panic handlers: Print the PC address where abort() was called, don't dump registers

See merge request !338

7 years agoMerge branch 'feature/make_monitor' into 'master'
Angus Gratton [Tue, 3 Jan 2017 00:43:49 +0000 (08:43 +0800)]
Merge branch 'feature/make_monitor' into 'master'

Add 'make monitor' target as used in arduino-esp32

See merge request !355

7 years agoMerge branch 'bugfix/remove_keep_ram_sections' into 'master'
Angus Gratton [Tue, 3 Jan 2017 00:38:56 +0000 (08:38 +0800)]
Merge branch 'bugfix/remove_keep_ram_sections' into 'master'

linker script: Remove KEEP from RAM-resident sections

Reduce RAM usage when not all data/bss sections in source files were used.

See merge request !354

7 years agolinker script: Remove KEEP from RAM-resident sections
Angus Gratton [Thu, 29 Dec 2016 23:38:21 +0000 (10:38 +1100)]
linker script: Remove KEEP from RAM-resident sections

Reduce RAM usage when not all data/bss sections in source files were used.

7 years agoREADME: Add a note about parallel builds
Angus Gratton [Fri, 30 Dec 2016 01:19:39 +0000 (12:19 +1100)]
README: Add a note about parallel builds

7 years agobuild system: Add 'make monitor' target from arduino-esp32
Angus Gratton [Fri, 30 Dec 2016 01:19:02 +0000 (12:19 +1100)]
build system: Add 'make monitor' target from arduino-esp32

Originally added to arduino-esp32 by @me-no-dev. It's so useful, we
want it in esp-idf as well! :)

7 years agoMerge branch 'feature/esptool_reset_options' into 'master'
Angus Gratton [Mon, 2 Jan 2017 23:48:10 +0000 (07:48 +0800)]
Merge branch 'feature/esptool_reset_options' into 'master'

esptool: Add new options to reset before/after, detect flash size

Also fixes bugs with reading MAC, chip id.

See merge request !331

7 years ago1. modify i2c_set_pin function
Wangjialin [Fri, 16 Dec 2016 15:41:04 +0000 (23:41 +0800)]
1. modify i2c_set_pin function
2. update example comments and other minor changes
3. rename API:  i2c_cmd_link_create/i2c_cmd_link_delete (+4 squashed commits)

Squashed commits:
[2e0ac3e] 1. coding style: add one space after condition key words.
2. modify i2c.h, use gpio_num_t instead of int, improve comments of return values
3. add i2c index in index.rst
4. add readme for i2c example
[4991d92] update i2c.doc
[88b672e] driver: i2c

1. add mux and spin lock to run in a thread-safe way.
2. modify example code
[4eb15fe] driver: i2c code

1. add i2c master code
2. add i2c slave code
3. add i2c example code
4. add DRAM_ATTR for I2C array

7 years agocomponents/coap: Add libcoap port for ESP32 platform
liuhan [Sat, 24 Dec 2016 06:43:53 +0000 (14:43 +0800)]
components/coap: Add libcoap port for ESP32 platform

7 years agocomponents/coap: Add libcoap library as submodule
liuhan [Sat, 24 Dec 2016 04:58:37 +0000 (12:58 +0800)]
components/coap: Add libcoap library as submodule

7 years agoCI build_examples: Don't stop on first failed example, print failure summary
Angus Gratton [Fri, 30 Dec 2016 05:13:07 +0000 (16:13 +1100)]
CI build_examples: Don't stop on first failed example, print failure summary

7 years agoexamples: Fix build errors that weren't being caught by CI
Angus Gratton [Fri, 30 Dec 2016 05:12:48 +0000 (16:12 +1100)]
examples: Fix build errors that weren't being caught by CI

7 years agoCI build_examples: Correctly detect example build failures
Angus Gratton [Fri, 30 Dec 2016 04:20:49 +0000 (15:20 +1100)]
CI build_examples: Correctly detect example build failures

"pipefail" regression when fail-on-warnings was added...

7 years agoMerge branch 'driver/i2s' into 'master'
Ivan Grokhotkov [Fri, 30 Dec 2016 03:39:49 +0000 (11:39 +0800)]
Merge branch 'driver/i2s' into 'master'

Add i2s driver

Lasted version of I2S driver

See merge request !351

7 years agobootloader: Check all partitions fit inside configured flash size
Angus Gratton [Fri, 30 Dec 2016 02:16:22 +0000 (13:16 +1100)]
bootloader: Check all partitions fit inside configured flash size

7 years agobootloader: Call esp_partition_table_basic_verify() as part of standard boot
Angus Gratton [Fri, 30 Dec 2016 02:15:01 +0000 (13:15 +1100)]
bootloader: Call esp_partition_table_basic_verify() as part of standard boot

Was previously only verified during flash encryption.

7 years agoesptool: Add new options to reset before/after, detect flash size
Angus Gratton [Tue, 20 Dec 2016 07:02:47 +0000 (18:02 +1100)]
esptool: Add new options to reset before/after, detect flash size

7 years agoexamples: Move sdkconfig.defaults support into build system
Angus Gratton [Wed, 21 Dec 2016 01:46:24 +0000 (12:46 +1100)]
examples: Move sdkconfig.defaults support into build system

Is used fairly widely, and a little bit buggy in the form
where it was in each Makefile (didn't always get copied in place).

7 years agoexamples: Add OTA demo
Chen Wu [Mon, 19 Dec 2016 07:40:21 +0000 (15:40 +0800)]
examples: Add OTA demo