]> granicus.if.org Git - esp-idf/log
esp-idf
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 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 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 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 agoAdd i2s driver
Tuan PM [Thu, 29 Dec 2016 09:29:14 +0000 (17:29 +0800)]
Add i2s driver

7 years agoMerge branch 'buffix/uart_frm_err_parity_err_mismatch' into 'master'
Wang Jia Lin [Thu, 29 Dec 2016 05:15:48 +0000 (13:15 +0800)]
Merge branch 'buffix/uart_frm_err_parity_err_mismatch' into 'master'

bugfix: uart event mismatch

Fix bug of uart frame error and parity error interrupt mismatch in driver code, which will cause the corresponding interrupt can not be cleared correctly, and will finally cause a interrupt watch dog.

See merge request !335

7 years agoMerge branch 'feature/osx_brew_reqs' into 'master'
Ivan Grokhotkov [Thu, 29 Dec 2016 04:36:30 +0000 (12:36 +0800)]
Merge branch 'feature/osx_brew_reqs' into 'master'

docs: provide list of packages for homebrew

Github PR #20: https://github.com/espressif/esp-idf/pull/20

See merge request !340

7 years agoMerge branch 'feature/gpio_intr_function' into 'master'
Ivan Grokhotkov [Thu, 29 Dec 2016 04:36:04 +0000 (12:36 +0800)]
Merge branch 'feature/gpio_intr_function' into 'master'

GPIO driver: add per-pin interrupt handlers

1. add ISR handler apis so that users of different layers can hook their own isr handler on different GPIO.
    Audio project has different software layers, they need different gpio isr handler for layer instead of processing all GPIO interrupts in one handler.
    If this kind of calling a handler from isr is not proper, please kindly point out.
2. add gpio example code.
3. update gpio doc.

See merge request !345

7 years agoMerge branch 'bugfix/doc_template' into 'master'
Ivan Grokhotkov [Thu, 29 Dec 2016 04:33:51 +0000 (12:33 +0800)]
Merge branch 'bugfix/doc_template' into 'master'

Clarification on documenting examples

Improve documentation of examples with two basic actions:
- include README.md in each example project
- add a link with synopsis in API documentation

This was not clear reading original API documentation template.

See merge request !349

7 years agoMerge branch 'feature/add_ip_frag_option' into 'master'
Wu Jian Gang [Thu, 29 Dec 2016 03:26:06 +0000 (11:26 +0800)]
Merge branch 'feature/add_ip_frag_option' into 'master'

lwip: add ip frag and reassembly option in menuconfig

add ip frag and reassembly option in menuconfig

See merge request !348

7 years agogpio_driver: add per-pin interrupt handlers
Wangjialin [Sat, 24 Dec 2016 12:45:57 +0000 (20:45 +0800)]
gpio_driver: add per-pin interrupt handlers

1. add ISR handler apis so that users of different layers can hook their own isr handler on different GPIO.
    Audio project has different software layers, they need different gpio isr handler for layer instead of processing all GPIO interrupts in one handler.
    If this kind of calling a handler from isr is not proper, please kindly point out.
2. add gpio example code.
3. improve gpio.rst
4. add readme for gpio example

Squashed commits:
[278e50f] update: GPIO
1. coding style, add a space between conditional or loop keyword and an opening paren.
2. modify some return value and doc
3. use printf in example code
Squashed commits:
[efb23bb] minor change of comment

7 years agoMerge branch 'bugfix/uart_intr_config' into 'master'
Angus Gratton [Wed, 28 Dec 2016 21:36:26 +0000 (05:36 +0800)]
Merge branch 'bugfix/uart_intr_config' into 'master'

uart_intr_config should return ESP_OK on success

Github PR #170 https://github.com/espressif/esp-idf/pull/170

See merge request !339

7 years agoMerge branch 'bugfix/minor_issues' into 'master'
Angus Gratton [Wed, 28 Dec 2016 05:18:34 +0000 (13:18 +0800)]
Merge branch 'bugfix/minor_issues' into 'master'

Bugfixes from Github

Many small fixes for open github issues.

See merge request !334

7 years agoMerge branch 'bugfix/freertos_tick_period' into 'master'
Angus Gratton [Wed, 28 Dec 2016 00:28:04 +0000 (08:28 +0800)]
Merge branch 'bugfix/freertos_tick_period' into 'master'

Replace backwards-compatible portTICK_RATE_MS with FreeRTOS v8+ portTICK_PERIOD_MS

Closes github #51 https://github.com/espressif/esp-idf/issues/51

See merge request !336

7 years agoReplace backwards-compatible portTICK_RATE_MS with FreeRTOS v8+ portTICK_PERIOD_MS
Angus Gratton [Thu, 22 Dec 2016 01:42:21 +0000 (12:42 +1100)]
Replace backwards-compatible portTICK_RATE_MS with FreeRTOS v8+ portTICK_PERIOD_MS

Closes github #51 https://github.com/espressif/esp-idf/issues/51

7 years agoFreeRTOS: Default to canary byte stack overflow checking
Angus Gratton [Thu, 22 Dec 2016 03:47:14 +0000 (14:47 +1100)]
FreeRTOS: Default to canary byte stack overflow checking

Was mistakenly "none" due to name change not being propagated.

Closes github issue #181: https://github.com/espressif/esp-idf/issues/181

7 years agolinux docs: Add note about precompiled gdb on Arch
Angus Gratton [Thu, 22 Dec 2016 03:20:00 +0000 (14:20 +1100)]
linux docs: Add note about precompiled gdb on Arch

Closes github #150: https://github.com/espressif/esp-idf/issues/150

7 years agoRMT driver: Rename rmt_set_evt_intr_en to rmt_set_tx_thr_intr_en
Angus Gratton [Thu, 22 Dec 2016 02:54:42 +0000 (13:54 +1100)]
RMT driver: Rename rmt_set_evt_intr_en to rmt_set_tx_thr_intr_en

Closes github #115: https://github.com/espressif/esp-idf/issues/115

7 years agouart driver: Remove invalid UART_BITRATE_115200 enum from example
Angus Gratton [Thu, 22 Dec 2016 02:44:50 +0000 (13:44 +1100)]
uart driver: Remove invalid UART_BITRATE_115200 enum from example

Closes github #92 https://github.com/espressif/esp-idf/issues/92

7 years agouart driver: Set type of uart_driver_install queue param
Angus Gratton [Thu, 22 Dec 2016 02:43:42 +0000 (13:43 +1100)]
uart driver: Set type of uart_driver_install queue param

Closes github #91 https://github.com/espressif/esp-idf/issues/91

7 years agoLEDC driver: Use ledc_channel_t for all channel arguments
Angus Gratton [Thu, 22 Dec 2016 02:30:24 +0000 (13:30 +1100)]
LEDC driver: Use ledc_channel_t for all channel arguments

Closes github #54: https://github.com/espressif/esp-idf/issues/54

7 years agoRMT: Don't require carrier_freq_hz to be non-zero if carrier_en unset
Angus Gratton [Thu, 22 Dec 2016 02:21:11 +0000 (13:21 +1100)]
RMT: Don't require carrier_freq_hz to be non-zero if carrier_en unset

Closes github #123 https://github.com/espressif/esp-idf/issues/123

7 years agogpio driver: Fix gpio_set_level validation of gpio_num argument
Angus Gratton [Thu, 22 Dec 2016 02:05:19 +0000 (13:05 +1100)]
gpio driver: Fix gpio_set_level validation of gpio_num argument

Closes #125 https://github.com/espressif/esp-idf/issues/125

7 years agoesp_wifi_init: Update comment about init event_q
Angus Gratton [Thu, 22 Dec 2016 01:37:03 +0000 (12:37 +1100)]
esp_wifi_init: Update comment about init event_q

Closes github #28 https://github.com/espressif/esp-idf/issues/28

7 years agoWiFi interface: SSID and password fields should be uint8_t in all cases
Angus Gratton [Thu, 22 Dec 2016 01:34:11 +0000 (12:34 +1100)]
WiFi interface: SSID and password fields should be uint8_t in all cases

Closes github #40 https://github.com/espressif/esp-idf/issues/40

7 years agopanic handlers: Print the PC address where abort() was called, don't dump registers
Angus Gratton [Wed, 7 Dec 2016 00:33:24 +0000 (16:33 -0800)]
panic handlers: Print the PC address where abort() was called, don't dump registers

7 years agoMerge branch 'bugfix/tw9313_dual_core_issue' into 'master'
Jiang Jiang Jian [Tue, 27 Dec 2016 14:06:55 +0000 (22:06 +0800)]
Merge branch 'bugfix/tw9313_dual_core_issue' into 'master'

freertos: fix dual core issue

This commit try to fix dual issue tw9313 raised by QA
1. Put per-core data into critical session or interrupt disabled/enabled session
2. Idle task may have problem when it terminate the task in both core

See merge request !333

7 years agoClarification on documenting examples
Krzysztof [Tue, 27 Dec 2016 11:32:40 +0000 (12:32 +0100)]
Clarification on documenting examples

7 years agoMerge branch 'feature/save_and_commit_CI_test_result' into 'master'
Ivan Grokhotkov [Tue, 27 Dec 2016 04:23:38 +0000 (12:23 +0800)]
Merge branch 'feature/save_and_commit_CI_test_result' into 'master'

Feature/save and commit ci test result

See merge request !255

7 years agofreertos: rework code based on review
Liu Zhi Fu [Tue, 27 Dec 2016 04:11:07 +0000 (12:11 +0800)]
freertos: rework code based on review

7 years agoadd more protection for per-core data
Liu Zhi Fu [Mon, 26 Dec 2016 11:04:41 +0000 (19:04 +0800)]
add more protection for per-core data

7 years agoMerge branch 'feature/ethernet_driver' into 'master'
Wu Jian Gang [Mon, 26 Dec 2016 07:50:21 +0000 (15:50 +0800)]
Merge branch 'feature/ethernet_driver' into 'master'

feature/ethernet_driver: update ethernet driver

See merge request !319

7 years agolwip: add ip frag and reassembly option in menuconfig
XiaXiaotian [Mon, 26 Dec 2016 07:47:20 +0000 (15:47 +0800)]
lwip: add ip frag and reassembly option in menuconfig

7 years agofeature/ethernet_driver: update ethernet driver
shangke [Sun, 18 Dec 2016 13:18:37 +0000 (21:18 +0800)]
feature/ethernet_driver: update ethernet driver

1. The transmitting mode of the packets from LWIP to MAC is changed from synchronous to asynchronous.
2. The receive buf mode : support pointer mode and copy mode.
3. Add get phy status func used to config mac register.

7 years agoMerge branch 'bugfix/make_erase_flash' into 'master'
Ivan Grokhotkov [Sun, 25 Dec 2016 01:13:58 +0000 (09:13 +0800)]
Merge branch 'bugfix/make_erase_flash' into 'master'

build system: Fix bug where erase_flash was always invoked for flash

Order-only prerequisites do not work for phony targets!

See merge request !337

7 years agoMerge branch 'bugfix/ci_use_gitlab_for_bt_lib_on_non_master_branch' into 'master'
Ivan Grokhotkov [Fri, 23 Dec 2016 18:32:11 +0000 (02:32 +0800)]
Merge branch 'bugfix/ci_use_gitlab_for_bt_lib_on_non_master_branch' into 'master'

CI: use gitlab repo for bt lib on non master barnch

same as wifi lib, some bt lib might not be pushed to github yet for developping branches

See merge request !342

7 years agouse gitlab repo for bt lib on non master barnch
Yinling [Fri, 23 Dec 2016 07:16:29 +0000 (15:16 +0800)]
use gitlab repo for bt lib on non master barnch

same as wifi lib, some bt lib might not be pushed to github yet for
developping branches

replace gitlab server address with variable

7 years agoprovide list of packages for homebrew
Malte Janduda [Wed, 21 Sep 2016 23:50:53 +0000 (01:50 +0200)]
provide list of packages for homebrew

7 years agobugfix: uart event mismatch
Wangjialin [Thu, 22 Dec 2016 04:08:15 +0000 (12:08 +0800)]
bugfix: uart event mismatch

1. Fix bug of uart frame error and parity error interrupt mismatch in driver code, which will cause the corresponding interrupt can not be cleared correctly, and will finally cause a interrupt watch dog.
2. Add gpio pull-up for rx pin and cts pin.

7 years agobuild system: Fix bug where erase_flash was always invoked for flash
Angus Gratton [Thu, 22 Dec 2016 05:32:19 +0000 (16:32 +1100)]
build system: Fix bug where erase_flash was always invoked for flash

Order-only prerequisites do not work for phony targets!

7 years agofreertos: enable dual core by default
Liu Zhi Fu [Thu, 22 Dec 2016 05:37:07 +0000 (13:37 +0800)]
freertos: enable dual core by default

7 years agoMerge branch 'bugfix/bootloader_stack' into 'master'
Angus Gratton [Thu, 22 Dec 2016 04:15:18 +0000 (12:15 +0800)]
Merge branch 'bugfix/bootloader_stack' into 'master'

bootloader: Check if DRAM segments are going to collide with stack

See merge request !330

7 years agoMerge branch 'bugfix/build_system_tilde' into 'master'
Angus Gratton [Thu, 22 Dec 2016 04:14:16 +0000 (12:14 +0800)]
Merge branch 'bugfix/build_system_tilde' into 'master'

Build system: Allow IDF_PATH to contain ~ or C:/

See github issues
* https://github.com/espressif/esp-idf/issues/118
* https://github.com/espressif/esp-idf/issues/166

(This is easier to work around in the build system than to document.)

See merge request !315

7 years agospi_flash: Standardise argument types & names used for flash offsets
Angus Gratton [Thu, 22 Dec 2016 01:28:08 +0000 (12:28 +1100)]
spi_flash: Standardise argument types & names used for flash offsets

Closes github #88: https://github.com/espressif/esp-idf/issues/88

7 years agoExamples: Add READMEs for examples which did not have them
Angus Gratton [Thu, 22 Dec 2016 01:18:15 +0000 (12:18 +1100)]
Examples: Add READMEs for examples which did not have them

Closes github #128 https://github.com/espressif/esp-idf/issues/128

7 years agofreertos: minor change according to review comments
Liu Zhi Fu [Thu, 22 Dec 2016 02:51:40 +0000 (10:51 +0800)]
freertos: minor change according to review comments

7 years agogenerate test result and commit to CI-test-result:
Yinling [Thu, 24 Nov 2016 03:46:58 +0000 (11:46 +0800)]
generate test result and commit to CI-test-result:

1. config git user name before commit
2. continue committing test result for failed jobs
3. update test result repository path
4. change escape key word in branch name, use '___' to escape key word '/' in report file name

7 years agofreertos: fix dual core issue
Liu Zhi Fu [Thu, 22 Dec 2016 02:17:39 +0000 (10:17 +0800)]
freertos: fix dual core issue

This commit fixes:
1. xTaskGetCurrentTaskHandle may return wrong TCB when current task switch to a different core
2. Idle task may have problem when it terminate the task in both core

7 years agoMerge branch 'feature/erase_flash' into 'master'
Ivan Grokhotkov [Thu, 22 Dec 2016 01:53:25 +0000 (09:53 +0800)]
Merge branch 'feature/erase_flash' into 'master'

Build system: Add `make erase_flash` target

See merge request !328

7 years agobuild system: Fix Windows case when IDF_PATH contains colons (ie C:/)
Angus Gratton [Wed, 21 Dec 2016 23:31:20 +0000 (10:31 +1100)]
build system: Fix Windows case when IDF_PATH contains colons (ie C:/)

Closes github #166 https://github.com/espressif/esp-idf/issues/166

7 years agoMerge branch 'feature/uart' into 'master'
Wang Jia Lin [Wed, 21 Dec 2016 06:10:37 +0000 (14:10 +0800)]
Merge branch 'feature/uart' into 'master'

driver: uart

1. add uart rx buffer data length API
2. add uart pattern detect event
3. add uart example code
4. modify uart_isr_register API
5. modify uart.rst
6. fix parity err event and frame err event.

See merge request !321

7 years agodriver: uart
Wangjialin [Mon, 19 Dec 2016 04:52:10 +0000 (12:52 +0800)]
driver: uart

1. add uart rx buffer data length API
2. add uart pattern detect event
3. add uart example code
4. modify uart_isr_register
5. modify uart.rst
6. fix parity err event and frame err event.

7 years agoMerge branch 'bugfix/ringbuffer_receive_upto_api' into 'master'
Angus Gratton [Wed, 21 Dec 2016 02:01:13 +0000 (10:01 +0800)]
Merge branch 'bugfix/ringbuffer_receive_upto_api' into 'master'

bugfix: ring buffer

Fix API xRingbufferReceiveUpToFromISR

See merge request !327

7 years agoMerge branch 'bugfix/minor_fixes' into 'master'
Angus Gratton [Tue, 20 Dec 2016 22:54:33 +0000 (06:54 +0800)]
Merge branch 'bugfix/minor_fixes' into 'master'

Minor fixes from various sources

- Fix memory debugging code. Noticed by Tuan.
- intr_enable/disable should be in IRAM. Noticed by rojer
- Still old timer code in examples in doxygen comments. Noticed on the forum by jumjum123
- Timer example was broken. Noticed on the forum by jumjum123

See merge request !325

7 years agoMerge branch 'bugfix/ota_select_info_point_fix' into 'master'
Angus Gratton [Tue, 20 Dec 2016 22:54:21 +0000 (06:54 +0800)]
Merge branch 'bugfix/ota_select_info_point_fix' into 'master'

bootloader: fix error pointer to ota select info

bbs issue: http://www.esp32.com/viewtopic.php?f=14&t=615,
ota select info should be in different sector

See merge request !316

7 years agobootloader: Check if DRAM segments are going to collide with stack
Angus Gratton [Tue, 20 Dec 2016 05:04:15 +0000 (16:04 +1100)]
bootloader: Check if DRAM segments are going to collide with stack

7 years agoMerge branch 'bugfix/tcpip_adapter_set_ip_info' into 'master'
Wu Jian Gang [Tue, 20 Dec 2016 03:18:17 +0000 (11:18 +0800)]
Merge branch 'bugfix/tcpip_adapter_set_ip_info' into 'master'

Fix set static IP address issue

Set static IP address, clear current DNS servers default.

See merge request !310

7 years agoMerge branch 'feature/phy_init_data_update' into 'master'
Ivan Grokhotkov [Tue, 20 Dec 2016 02:26:16 +0000 (10:26 +0800)]
Merge branch 'feature/phy_init_data_update' into 'master'

phy init data update

This changes 54M target power from 16 dBm to 15 dBm, and bumps init_data version from 0 to 1.

See merge request !322

7 years agoMerge branch 'feature/ulp' into 'master'
Ivan Grokhotkov [Tue, 20 Dec 2016 02:25:55 +0000 (10:25 +0800)]
Merge branch 'feature/ulp' into 'master'

ULP: add new instructions, fix bugs, add tests

This adds peripheral register read and write instructions, an instruction to wake the SoC from deep sleep, and some tests.

Also fixes two bugs: ANDI instruction definition, and running the ULP when in deep sleep mode.

See merge request !317

7 years agoMerge branch 'bugfix/exception_handling' into 'master'
Jeroen Domburg [Tue, 20 Dec 2016 01:22:41 +0000 (09:22 +0800)]
Merge branch 'bugfix/exception_handling' into 'master'

Fix exception handler to jump to correct vector instead of crashing to the double exception vector.

One-character fix... basically, this caused the exception handler to crash into the double-exception handler instead of nicy panic'ing.

See merge request !323

7 years agoMerge branch 'feature/secure_boot_remote_sign' into 'master'
Angus Gratton [Mon, 19 Dec 2016 23:04:31 +0000 (07:04 +0800)]
Merge branch 'feature/secure_boot_remote_sign' into 'master'

Secure boot: Option for app & partition table signing to happen outside build system

Allows for a remote signing server, private signing key does not need to be on the build system.

See merge request !320

7 years agoBuild system: Add `make erase_flash` target
Angus Gratton [Mon, 19 Dec 2016 23:00:04 +0000 (10:00 +1100)]
Build system: Add `make erase_flash` target

7 years agoMerge branch 'feature/dhcpserver_null_gw' into 'master'
Angus Gratton [Mon, 19 Dec 2016 22:14:44 +0000 (06:14 +0800)]
Merge branch 'feature/dhcpserver_null_gw' into 'master'

Allow gw to be null

Github Pull Request 163: https://github.com/espressif/esp-idf/pull/163

Allow interfaces to be configured without a default gateway, for
local-only communication.

In case of the AP interface, if gw is not set, do not offer it.

See merge request !312

7 years agobugfix: ring buffer, fix api xRingbufferReceiveUpToFromISR
Wangjialin [Mon, 19 Dec 2016 17:13:03 +0000 (01:13 +0800)]
bugfix: ring buffer, fix api xRingbufferReceiveUpToFromISR

7 years agoAdd IRAM_ATTR to esp_intr_{enable,disable}
Deomid Ryabkov [Mon, 19 Dec 2016 06:28:28 +0000 (06:28 +0000)]
Add IRAM_ATTR to esp_intr_{enable,disable}

So it's safe to invoke from ISR

Signed-off-by: Jeroen Domburg <jeroen@espressif.com>
7 years agoFix timer example; it had too little stack resulting in a stack overflow
Jeroen Domburg [Mon, 19 Dec 2016 10:17:54 +0000 (18:17 +0800)]
Fix timer example; it had too little stack resulting in a stack overflow

7 years agoFix memory debugging code
Jeroen Domburg [Mon, 19 Dec 2016 10:13:36 +0000 (18:13 +0800)]
Fix memory debugging code

7 years agoGet rid of old interrupt example code
Jeroen Domburg [Mon, 19 Dec 2016 08:39:55 +0000 (16:39 +0800)]
Get rid of old interrupt example code

7 years agoFix exception handler to jump to correct vector instead of crashing to the double...
Jeroen Domburg [Mon, 19 Dec 2016 08:01:21 +0000 (16:01 +0800)]
Fix exception handler to jump to correct vector instead of crashing to the double exception vector.

7 years agophy init data update
Ivan Grokhotkov [Mon, 19 Dec 2016 06:23:39 +0000 (14:23 +0800)]
phy init data update

This changes 54M target power from 16 dBm to 15 dBm, and bumps init_data version from 0 to 1.

7 years agoMerge branch 'driver_merge_tmp/merge_sigmadelta' into 'master'
Wang Jia Lin [Mon, 19 Dec 2016 04:29:32 +0000 (12:29 +0800)]
Merge branch 'driver_merge_tmp/merge_sigmadelta' into 'master'

driver: sigma-delta

1. add sigma-delta code and example.
2. add gpio output signal in io matrix.

See merge request !241

7 years agoSecure boot: Option for app & partition table signing to happen outside build system
Angus Gratton [Mon, 19 Dec 2016 02:06:21 +0000 (13:06 +1100)]
Secure boot: Option for app & partition table signing to happen outside build system

7 years agodriver: sigma-delta
Wangjialin [Wed, 23 Nov 2016 08:28:16 +0000 (16:28 +0800)]
driver: sigma-delta

1. add sigma-delta code and example.
2. add gpio output signal in io matrix.

Squashed commits:
[a25e7d4] minor changes for doc
[6a03a1e] minor changes on comments and doc.
[97dd9e4] Add doc.
update index.rst
change example index

7 years agouart_intr_config should return ESP_OK on success
Deomid Ryabkov [Fri, 16 Dec 2016 22:27:45 +0000 (22:27 +0000)]
uart_intr_config should return ESP_OK on success

7 years agoulp: document peripherals accessible using RD_REG and WR_REG
Ivan Grokhotkov [Fri, 16 Dec 2016 12:32:34 +0000 (20:32 +0800)]
ulp: document peripherals accessible using RD_REG and WR_REG

7 years agoulp: use timer to start ULP, fix I_ANDI bug, add tests
Ivan Grokhotkov [Fri, 16 Dec 2016 12:25:38 +0000 (20:25 +0800)]
ulp: use timer to start ULP, fix I_ANDI bug, add tests

Starting the ULP using SENS_SAR_START_FORCE_REG doesn’t disable clock gating of RTC fast clock.
When SoC goes into deep sleep mode, RTC fast clock gets gated, so ULP can no longer run.
Instead, it has to be started using the timer (RTC_CNTL_ULP_CP_SLP_TIMER_EN bit).
When ULP is enabled by the timer, clock also gets enabled.

7 years agoulp: add RD_REG, WR_REG, END instruction
Ivan Grokhotkov [Fri, 16 Dec 2016 12:01:15 +0000 (20:01 +0800)]
ulp: add RD_REG, WR_REG, END instruction

7 years agobootloader: fix error pointer to ota select info
Tian Zhong Xing [Fri, 16 Dec 2016 10:24:25 +0000 (18:24 +0800)]
bootloader: fix error pointer to ota select info

7 years agoMerge branch 'feature/extend_deep_sleep_apis' into 'master'
Ivan Grokhotkov [Fri, 16 Dec 2016 08:17:37 +0000 (16:17 +0800)]
Merge branch 'feature/extend_deep_sleep_apis' into 'master'

extend deep sleep APIs

This adds the following APIs to enable various wakeup sources:
- esp_deep_sleep_enable_timer_wakeup
- esp_deep_sleep_enable_ulp_wakeup
- esp_deep_sleep_enable_ext0_wakeup
- esp_deep_sleep_enable_ext1_wakeup

And an API to start deep sleep:
- esp_deep_sleep_start

Add an API to control which peripherals are kept enabled in deep sleep mode:
- esp_err_t esp_deep_sleep_pd_config

Also rolled an update of rtc_io header comments into this MR, as I had to add `slpie`, `slpsel`, and `hold` fields into `rtc_gpio_desc_t` struct.

Deep sleep unit tests don’t do anything useful in CI context because we don’t have a way to check reset behavior (time till reset, reason for reset) in CI environment, yet. Also for external wakeup we would need to control some ESP32 pins from the test environment.

Currently there is one known issue:
- RTC Fast memory may be isolated from the bus after deep sleep reset. We work around this by setting FORCE_NONISO flag in RTC power control register. This is non-optimal and we will keep looking for the reason why isolation gets enabled.

See merge request !297

7 years agodocs: fix some warnings
Ivan Grokhotkov [Fri, 16 Dec 2016 06:27:22 +0000 (14:27 +0800)]
docs: fix some warnings

7 years agodeep sleep: add documentation
Ivan Grokhotkov [Fri, 16 Dec 2016 06:26:52 +0000 (14:26 +0800)]
deep sleep: add documentation

7 years agodeep sleep: set pin configuration right before entering deep sleep
Ivan Grokhotkov [Fri, 16 Dec 2016 06:26:05 +0000 (14:26 +0800)]
deep sleep: set pin configuration right before entering deep sleep

This change allows setting pin configuration for EXT1 wakeup depending on the state of RTC_PERIPH power domain:
- if peripherals are enabled (due to another wakeup mode, or due to esp_deep_sleep_pd_config call), we can keep internal pullups/pulldowns enabled
- if peripherals are disabled, pullups and pulldowns need to be disabled as well

Also add comments about the purpose of registers being configured.

7 years agodeep sleep: power down RTC peripherals in EXT1 sleep
Ivan Grokhotkov [Fri, 16 Dec 2016 06:10:07 +0000 (14:10 +0800)]
deep sleep: power down RTC peripherals in EXT1 sleep

7 years agoulp: add missing component.mk for tests
Ivan Grokhotkov [Wed, 14 Dec 2016 06:25:42 +0000 (14:25 +0800)]
ulp: add missing component.mk for tests

7 years agodeep sleep: RTC fast memory may be disconnected after deep sleep wakeup
Ivan Grokhotkov [Wed, 14 Dec 2016 06:23:40 +0000 (14:23 +0800)]
deep sleep: RTC fast memory may be disconnected after deep sleep wakeup

This adds a workaround for a bug that following deep sleep wakeup, ISO (bus isolation) signal may be set for RTC fast memory.
We set FORCE_NOISO bit in RTC_CNTL_PWC_REG until we find out what is causing ISO signal to be set.

7 years agodeep sleep: add API to control power down
Ivan Grokhotkov [Wed, 14 Dec 2016 06:20:01 +0000 (14:20 +0800)]
deep sleep: add API to control power down

7 years agodeep sleep: rename header file
Ivan Grokhotkov [Tue, 13 Dec 2016 05:23:04 +0000 (13:23 +0800)]
deep sleep: rename header file