]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agoMerge branch 'bugfix/btdm_bit_against_enums_github_#12289' into 'master'
Jiang Jiang Jian [Fri, 2 Jun 2017 07:41:01 +0000 (15:41 +0800)]
Merge branch 'bugfix/btdm_bit_against_enums_github_#12289' into 'master'

component/bt: Change the esp_gatt_perm_t & esp_gatt_char_prop_t type from enum t…

See merge request !809

7 years agoMerge branch 'bugfix/btdm_add_open_and_close_event_for_gatts' into 'master'
Jiang Jiang Jian [Fri, 2 Jun 2017 05:53:03 +0000 (13:53 +0800)]
Merge branch 'bugfix/btdm_add_open_and_close_event_for_gatts' into 'master'

component/bt: add open and close event for gatts

See merge request !786

7 years agocomponent/bt: Change the esp_gatt_perm_t & esp_gatt_char_prop_t type from enum to...
Yulong [Fri, 2 Jun 2017 05:48:56 +0000 (01:48 -0400)]
component/bt: Change the esp_gatt_perm_t & esp_gatt_char_prop_t type from enum to uint16_t & uint8_t.

7 years agoMerge branch 'example/smartconfig' into 'master'
Jiang Jiang Jian [Fri, 2 Jun 2017 05:11:12 +0000 (13:11 +0800)]
Merge branch 'example/smartconfig' into 'master'

feat: add smartconfig example

See merge request !716

7 years agoMerge branch 'bugfix/tw12174_connect_ap_fail' into 'master'
Jiang Jiang Jian [Thu, 1 Jun 2017 11:40:02 +0000 (19:40 +0800)]
Merge branch 'bugfix/tw12174_connect_ap_fail' into 'master'

Fix the bug that station fails to connect to AP sometimes.

See merge request !802

7 years agocomponent/bt: add open and close event for gatts
zhiweijian [Thu, 1 Jun 2017 06:16:24 +0000 (14:16 +0800)]
component/bt: add open and close event for gatts
1.added open event and close event for gatts.
2.used esp_log_buffer_char/hex for gattc scan result.

7 years agoMerge branch 'bugfix/ut_inverse_filter' into 'master'
Anton Maklakov [Thu, 1 Jun 2017 06:26:36 +0000 (14:26 +0800)]
Merge branch 'bugfix/ut_inverse_filter' into 'master'

unit-test-app: Fix capability to use !<filter> to inverse that filter

See merge request !805

7 years agounit-test-app: Fix capability to use !<filter> to inverse that filter
Anton Maklakov [Thu, 1 Jun 2017 04:11:45 +0000 (12:11 +0800)]
unit-test-app: Fix capability to use !<filter> to inverse that filter

7 years agoMerge branch 'bugfix/wrong_merge_of_MR773' into 'master'
Jiang Jiang Jian [Wed, 31 May 2017 12:39:59 +0000 (20:39 +0800)]
Merge branch 'bugfix/wrong_merge_of_MR773' into 'master'

fix bug that files missing commit in MR 773

See merge request !801

7 years agoFix the bug that station fails to connect to AP sometimes.
XiaXiaotian [Wed, 31 May 2017 12:27:02 +0000 (20:27 +0800)]
Fix the bug that station fails to connect to AP sometimes.

7 years agofix bug that files missing commit in MR 773
jack [Wed, 31 May 2017 09:20:29 +0000 (17:20 +0800)]
fix bug that files missing commit in MR 773

7 years agofeat: add smartconfig example
fuzhibo [Sat, 1 Apr 2017 14:37:58 +0000 (22:37 +0800)]
feat: add smartconfig example

7 years agoMerge branch 'bugfix/deep_sleep_example_stub_delay' into 'master'
Angus Gratton [Mon, 29 May 2017 04:11:56 +0000 (12:11 +0800)]
Merge branch 'bugfix/deep_sleep_example_stub_delay' into 'master'

sdkconfig: set CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 by default

See merge request !758

7 years agoMerge branch 'bugfix/doc-small-updates' into 'master'
Angus Gratton [Sun, 28 May 2017 23:09:47 +0000 (07:09 +0800)]
Merge branch 'bugfix/doc-small-updates' into 'master'

Small fixes/updates to toolchain installation procedures

See merge request !782

7 years agoMerge branch 'feature/docs_gen-dxd' into 'master'
Angus Gratton [Sun, 28 May 2017 23:08:53 +0000 (07:08 +0800)]
Merge branch 'feature/docs_gen-dxd' into 'master'

docs: Automatically generate API reference list / Doxygen directives

See merge request !723

7 years agoMerge branch 'bugfix/ble_comfirm_reply_not_work_#12881' into 'master'
Jiang Jiang Jian [Sat, 27 May 2017 06:40:26 +0000 (14:40 +0800)]
Merge branch 'bugfix/ble_comfirm_reply_not_work_#12881' into 'master'

component/bt: Added the esp_ble_passkey_reply BTC_GAP_BLE_PASSKEY_REPLY_EVT &BTC…

See merge request !793

7 years agoMerge branch 'bugfix/btdm_set_invalid_rand_addr_error_12303' into 'master'
Jiang Jiang Jian [Sat, 27 May 2017 06:38:08 +0000 (14:38 +0800)]
Merge branch 'bugfix/btdm_set_invalid_rand_addr_error_12303' into 'master'

component/bt: Added the set static random address callback to the bt project.

See merge request !773

7 years agocomponent/bt: Merge the new master to avoid conflict.
Yulong [Sat, 27 May 2017 02:47:56 +0000 (22:47 -0400)]
component/bt: Merge the new master to avoid conflict.

7 years agocomponent/bt: Added the esp_ble_passkey_reply BTC_GAP_BLE_PASSKEY_REPLY_EVT &BTC_GAP_...
Yulong [Fri, 26 May 2017 09:26:15 +0000 (05:26 -0400)]
component/bt: Added the esp_ble_passkey_reply BTC_GAP_BLE_PASSKEY_REPLY_EVT &BTC_GAP_BLE_CONFIRM_REPLY_EVT
event.

7 years agoMerge branch 'bugfix/btdm_ble_crash_read_long_char_#12338' into 'master'
Jiang Jiang Jian [Fri, 26 May 2017 06:40:47 +0000 (14:40 +0800)]
Merge branch 'bugfix/btdm_ble_crash_read_long_char_#12338' into 'master'

component/bt: Change the fragement method to avoid crash when the data transmit should fragement.

See merge request !789

7 years agoMerge branch 'bugfix/btdm_value_relate_to_internal' into 'master'
Jiang Jiang Jian [Fri, 26 May 2017 06:24:52 +0000 (14:24 +0800)]
Merge branch 'bugfix/btdm_value_relate_to_internal' into 'master'

fix bugs of some constant value not equal internal define but quotes internal define

See merge request !787

7 years agoMerge branch 'bugfix/tw12643_board_no_response' into 'master'
Jiang Jiang Jian [Fri, 26 May 2017 06:11:53 +0000 (14:11 +0800)]
Merge branch 'bugfix/tw12643_board_no_response' into 'master'

fix close socket block issue

See merge request !781

7 years agocompoennt/bt: change the remaining_length compare with the max_packet_size value...
Yulong [Fri, 26 May 2017 03:09:50 +0000 (23:09 -0400)]
compoennt/bt: change the remaining_length compare with the max_packet_size value when the data packet should fragment and dispatch.

7 years agocomponent/bt: Change the fragement method to avoid crash when the data transmit shoul...
Yulong [Thu, 25 May 2017 13:59:03 +0000 (09:59 -0400)]
component/bt: Change the fragement method to avoid crash when the data transmit should fragement.

7 years agoMerge branch 'feature/conditional_compile' into 'master'
Jeroen Domburg [Thu, 25 May 2017 08:34:29 +0000 (16:34 +0800)]
Merge branch 'feature/conditional_compile' into 'master'

Add cleaner way to conditionally compile files

See merge request !699

7 years agocomponent/bt : fix bugs of some constant value not equal internal define but quotes...
Tian Hao [Thu, 25 May 2017 07:39:01 +0000 (15:39 +0800)]
component/bt : fix bugs of some constant value not equal internal define but quotes internal define

7 years agoAdd cleaner way to conditionally compile files
Jeroen Domburg [Tue, 25 Apr 2017 07:36:45 +0000 (15:36 +0800)]
Add cleaner way to conditionally compile files

7 years agocomponent/bt: merge the origin branch
Yulong [Thu, 25 May 2017 06:21:01 +0000 (02:21 -0400)]
component/bt: merge the origin branch

with '#' will be ignored, and an empty message aborts

7 years agocomponent/bt: squash the branch of the early commit
Yulong [Fri, 19 May 2017 09:23:00 +0000 (05:23 -0400)]
component/bt: squash the branch of the early commit

component/bt: squash the branch of the early commit

component/bt: Added the set static random address callback to the bt project.

component/bt: fixed the set static random address error.

component/bt: fixed the set static random address error.

7 years agoSmall fixes/updates to toolchain installation procedures
krzychb [Wed, 24 May 2017 05:00:43 +0000 (07:00 +0200)]
Small fixes/updates to toolchain installation procedures

7 years agoMerge branch 'bugfix/btdm_set_invalid_rand_addr_error_12303' of ssh://gitlab.espressi...
Yulong [Thu, 25 May 2017 05:57:16 +0000 (01:57 -0400)]
Merge branch 'bugfix/btdm_set_invalid_rand_addr_error_12303' of ssh://gitlab.espressif.cn:27227/idf/esp-idf into bugfix/btdm_set_invalid_rand_addr_error_12303

7 years agocomponent/bt: squash the branch of the early commit
Yulong [Fri, 19 May 2017 09:23:00 +0000 (05:23 -0400)]
component/bt: squash the branch of the early commit

component/bt: Added the set static random address callback to the bt project.

component/bt: fixed the set static random address error.

7 years agoMerge branch 'bugfix/i2c_read_size' into 'master'
Jiang Jiang Jian [Thu, 25 May 2017 02:55:28 +0000 (10:55 +0800)]
Merge branch 'bugfix/i2c_read_size' into 'master'

component/driver : fix i2c slave read size bug

See merge request !770

7 years agosdkconfig: set CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 by default
Ivan Grokhotkov [Mon, 15 May 2017 02:32:35 +0000 (10:32 +0800)]
sdkconfig: set CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 by default

To increase the chances that the examples work out of the box, this
change is raising the default deep sleep wakeup delay to 1ms.
If GPIO15 is low at startup, ROM code takes less time to execute
(because no logging is performed), so more time may be needed to allow
flash chip to become ready.

7 years agoMerge branch 'bugfix/a2dp_media_pkt_drop' into 'master'
Jiang Jiang Jian [Wed, 24 May 2017 07:39:22 +0000 (15:39 +0800)]
Merge branch 'bugfix/a2dp_media_pkt_drop' into 'master'

component/bt: bugfix for A2DP in dropping of media packet when buffer is filled

See merge request !785

7 years agocomponent/bt: bugfix for A2DP in dropping of media packet when data buffer size goes...
wangmengyang [Wed, 24 May 2017 07:08:46 +0000 (15:08 +0800)]
component/bt: bugfix for A2DP in dropping of media packet when data buffer size goes beyond threshold

7 years agofix close socket block issue
XiaXiaotian [Tue, 23 May 2017 13:08:03 +0000 (21:08 +0800)]
fix close socket block issue

    LWIP rx task receives NULL buffer pointer only when closing socket.
    So, do not need to close it again.

7 years agocomponent/bt: fixed the set static random address error.
Yulong [Tue, 23 May 2017 11:48:45 +0000 (07:48 -0400)]
component/bt: fixed the set static random address error.

7 years agoMerge branch 'bugfix/ble_gatt_server_example_receive_prepare_write' into 'master'
Jiang Jiang Jian [Tue, 23 May 2017 05:57:39 +0000 (13:57 +0800)]
Merge branch 'bugfix/ble_gatt_server_example_receive_prepare_write' into 'master'

component/bt: gatt_server example receive prepare write

See merge request !741

7 years agoMerge branch 'bugfix/tw12669_ota_fails_on_dual_core' into 'master'
Jiang Jiang Jian [Tue, 23 May 2017 05:51:18 +0000 (13:51 +0800)]
Merge branch 'bugfix/tw12669_ota_fails_on_dual_core' into 'master'

esp32: update wifi lib to fix ota fail bug

See merge request !780

7 years agoesp32: update wifi lib to fix ota fail bug
Liu Zhi Fu [Tue, 23 May 2017 03:38:45 +0000 (11:38 +0800)]
esp32: update wifi lib to fix ota fail bug

Fix ota fails on dual core

7 years agoMerge branch 'bugfix/release_coproc_regs_taskdelete' into 'master'
Ivan Grokhotkov [Mon, 22 May 2017 03:05:47 +0000 (11:05 +0800)]
Merge branch 'bugfix/release_coproc_regs_taskdelete' into 'master'

Release coprocessor registers when a task is deleted.

See merge request !765

7 years agoMerge branch 'feature/ci_support_gitlab_v9' into 'master'
Ivan Grokhotkov [Mon, 22 May 2017 03:05:21 +0000 (11:05 +0800)]
Merge branch 'feature/ci_support_gitlab_v9' into 'master'

CI: replace with Gitlab v9 variable names

See merge request !777

7 years agogatt_server example receive prepare write
zhiweijian [Mon, 8 May 2017 07:45:11 +0000 (15:45 +0800)]
gatt_server example receive prepare write

7 years agoCI: replace with Gitlab v9 variable names
He Yin Ling [Fri, 19 May 2017 08:44:17 +0000 (16:44 +0800)]
CI: replace with Gitlab v9 variable names

7 years agodocs: Generate Doxygen directives for API documentation
krzychb [Tue, 2 May 2017 08:36:01 +0000 (10:36 +0200)]
docs: Generate Doxygen directives for API documentation

This is to resolve issue reported in https://github.com/espressif/esp-idf/issues/130.

7 years agoMerge branch 'bugfix/fix_dport_access_in_isr' into 'master'
Ivan Grokhotkov [Fri, 19 May 2017 11:08:34 +0000 (19:08 +0800)]
Merge branch 'bugfix/fix_dport_access_in_isr' into 'master'

Fix Dport access in interrupts

Dport accesses would re-enable interrupts unconditionally, breaking things when called in an ISR. This saves and restores the interrupt status, fixing this.

This fixes a crash in the SPI slave driver, and possibly other things.

See merge request !772

7 years agoMerge branch 'bugfix/hci_host_nb_cmp_pkts' into 'master'
Ivan Grokhotkov [Fri, 19 May 2017 10:45:12 +0000 (18:45 +0800)]
Merge branch 'bugfix/hci_host_nb_cmp_pkts' into 'master'

component/bt: bugfix for handling HCI_Host_Number_Of_Completed_Packets in BT controller

See merge request !774

7 years agocomponent/bt: bugfix for handling HCI_Host_Number_Of_Completed_Packets in BT controller
wangmengyang [Fri, 19 May 2017 09:36:02 +0000 (17:36 +0800)]
component/bt: bugfix for handling HCI_Host_Number_Of_Completed_Packets in BT controller

7 years agocomponent/bt: Added the set static random address callback to the bt project.
Yulong [Fri, 19 May 2017 09:23:00 +0000 (05:23 -0400)]
component/bt: Added the set static random address callback to the bt project.

7 years agoDport accesses would re-enable interrupts unconditionally, breaking things when calle...
Jeroen Domburg [Fri, 19 May 2017 07:25:02 +0000 (15:25 +0800)]
Dport accesses would re-enable interrupts unconditionally, breaking things when called in an ISR. This saves and restores the interrupt status, fixing this.

7 years agoMerge branch 'feature/ci_test_config_autogen' into 'master'
Ivan Grokhotkov [Fri, 19 May 2017 03:56:45 +0000 (11:56 +0800)]
Merge branch 'feature/ci_test_config_autogen' into 'master'

CI: auto generate configs for test jobs

Currently CI test jobs are static configured by several pre-generated config files.
This approach have several disadvantages:

1. not flexible to select test cases to run, which is important feature of @bot
2. difficult to update test as we need to pre-generate quite a lot files
3. need to maintain extra config files in IDF
4. not flexible to support new test apps or chips, can't use some new features of test bench

Therefore we'll add assign_test stage between build and test, to generate configs for test jobs.

See merge request !738

7 years agoMerge branch 'bugfix/bt_controller_log_clean_up' into 'master'
Ivan Grokhotkov [Fri, 19 May 2017 03:50:11 +0000 (11:50 +0800)]
Merge branch 'bugfix/bt_controller_log_clean_up' into 'master'

component/bt: disable information loggings from bt controller

clean-up information loggings during controller initialization

See merge request !769

7 years agocomponent/driver : fix i2c slave read size bug
Tian Hao [Fri, 19 May 2017 03:22:08 +0000 (11:22 +0800)]
component/driver : fix i2c slave read size bug

when no available data, the slave read size not return 0, so fix it.

7 years agoMerge branch 'bugfix/github_small_prs' into 'master'
Angus Gratton [Thu, 18 May 2017 23:51:47 +0000 (07:51 +0800)]
Merge branch 'bugfix/github_small_prs' into 'master'

Small PR fixes from github

Small bug fixes & typo corrections from github.

See merge request !762

7 years agocomponent/bt: disable information loggings from bt controller
wangmengyang [Thu, 18 May 2017 13:44:06 +0000 (21:44 +0800)]
component/bt: disable information loggings from bt controller

7 years agoMake compiler happy
Jeroen Domburg [Thu, 18 May 2017 10:50:15 +0000 (18:50 +0800)]
Make compiler happy

7 years agoRelease coprocessor registers when a task is deleted.
Jeroen Domburg [Wed, 17 May 2017 10:23:06 +0000 (18:23 +0800)]
Release coprocessor registers when a task is deleted.

7 years agoMerge branch 'bugfix/btdm_gattc_discover_refresh_cache_#11077' into 'master'
Jiang Jiang Jian [Thu, 18 May 2017 07:04:36 +0000 (15:04 +0800)]
Merge branch 'bugfix/btdm_gattc_discover_refresh_cache_#11077' into 'master'

component/bt: fixed the discover primary service not correct if server changes s…

…ervice during disconnect period.

See merge request !761

7 years agoMerge branch 'bugfix/ble_add_adv_state_bug_#12301' into 'master'
Jiang Jiang Jian [Thu, 18 May 2017 07:03:41 +0000 (15:03 +0800)]
Merge branch 'bugfix/ble_add_adv_state_bug_#12301' into 'master'

component/bt: Fix the bug that sometimes received a ble connection & the adv wil…

…l stop, can not send adv again.

See merge request !759

7 years agoMerge branch 'bugfix/minor_fix_about_wifi_api_comments' into 'master'
Jiang Jiang Jian [Thu, 18 May 2017 06:59:50 +0000 (14:59 +0800)]
Merge branch 'bugfix/minor_fix_about_wifi_api_comments' into 'master'

esp32: minor fix for wifi api comments

Minor fix about the comments of wifi_promiscuous_pkt_type_t

See merge request !760

7 years agoMerge branch 'bugfix/btdm_switch_gatts_error_#12659' into 'master'
Jiang Jiang Jian [Thu, 18 May 2017 06:58:24 +0000 (14:58 +0800)]
Merge branch 'bugfix/btdm_switch_gatts_error_#12659' into 'master'

component/bt:fix the bug of uild error if switch off BLE GATTS. Bug number is #12659.

switch off BLE GATTS and build.

See merge request !766

7 years agoMerge branch 'bugfix/lib_dport_access' into 'master'
Jiang Jiang Jian [Thu, 18 May 2017 06:56:38 +0000 (14:56 +0800)]
Merge branch 'bugfix/lib_dport_access' into 'master'

component/esp32 : fix library dport access protections.

1. add esp32 library access DPORT register protections.
2. add bluetooth library access DPORT register protections.
3. change register operation(suffix/prefix) to new style.

See merge request !757

7 years agocomponent/bt: change the esp_ble_gattc_cache_refresh API return value from esp_gatt_s...
Yulong [Thu, 18 May 2017 06:11:42 +0000 (02:11 -0400)]
component/bt: change the esp_ble_gattc_cache_refresh API return value from esp_gatt_status_t to esp_err_t.

7 years agocomponent/bt: Added the declaration for esp_ble_gattc_cache_refresh in the gattc...
Yulong [Thu, 18 May 2017 06:07:16 +0000 (02:07 -0400)]
component/bt: Added the declaration for esp_ble_gattc_cache_refresh in the gattc api header file.

7 years agoUpdate idf_monitor.py to make --toolchain-prefix argument work
Henrik Maier [Wed, 17 May 2017 13:12:22 +0000 (23:12 +1000)]
Update idf_monitor.py to make --toolchain-prefix argument work

--toolchain-prefix command line argument was not taken into account when specified

Merges https://github.com/espressif/esp-idf/pull/617

7 years agocomponent/bt:fix the bug of uild error if switch off BLE GATTS. Bug number is #12659.
Yulong [Wed, 17 May 2017 11:17:22 +0000 (07:17 -0400)]
component/bt:fix the bug of uild error if switch off BLE GATTS. Bug number is #12659.

7 years agocomponent/esp32 : update wifi library and phy library
Tian Hao [Wed, 17 May 2017 03:46:53 +0000 (11:46 +0800)]
component/esp32 : update wifi library and phy library

7 years agoMerge branch 'bugfix/freertos_larger_stacksize' into 'master'
Angus Gratton [Wed, 17 May 2017 02:23:39 +0000 (10:23 +0800)]
Merge branch 'bugfix/freertos_larger_stacksize' into 'master'

Make internal stack size variables in FreeRTOS 32-bit instead of 16-bit

Stock FreeRTOS uses an uint16 to store stack sizes, making it impossible to allocate a stack >64K. This changes this into an uint32, allowing for larger stacks.

See merge request !677

7 years agoPrint the name of the task that hit the stack watchpoint
Deomid Ryabkov [Tue, 16 May 2017 11:29:54 +0000 (14:29 +0300)]
Print the name of the task that hit the stack watchpoint

This may be enough to troubleshoot (increase stack size).

Merges https://github.com/espressif/esp-idf/pull/607

7 years agouart driver: Move UART_EVENT_MAX to last
zelll [Thu, 11 May 2017 13:59:50 +0000 (21:59 +0800)]
uart driver: Move UART_EVENT_MAX to last

Merges https://github.com/espressif/esp-idf/pull/594

7 years agodoc: Update wifi scan description
Ankit Daftery [Thu, 11 May 2017 13:53:11 +0000 (19:23 +0530)]
doc: Update wifi scan description

Code was refactored, updating documentation to reflect that

Merges https://github.com/espressif/esp-idf/pull/593

7 years agodocs: Error in gpio_install_isr_service() description
Konstantin Fedorov [Wed, 3 May 2017 19:40:01 +0000 (22:40 +0300)]
docs: Error in gpio_install_isr_service() description

Merges https://github.com/espressif/esp-idf/pull/564

7 years agoesp32.ld: Add an entry for ets_write_char_uart
Deomid Ryabkov [Wed, 26 Apr 2017 15:09:01 +0000 (18:09 +0300)]
esp32.ld: Add an entry for ets_write_char_uart

It is mentioned in ets_sys.h, but not actually PROVIDEd.

Merges https://github.com/espressif/esp-idf/pull/545

7 years agoFix typo in comment
Guido García [Mon, 1 May 2017 10:33:09 +0000 (12:33 +0200)]
Fix typo in comment

This is a minor fix (moudule -> module)

Merges https://github.com/espressif/esp-idf/pull/555

7 years agocomponent/bt: fixed the discover primary service not correct if server changes servic...
Yulong [Tue, 16 May 2017 13:10:37 +0000 (09:10 -0400)]
component/bt: fixed the discover primary service not correct if server changes service during disconnect period.

7 years agoesp32: minor fix for wifi api comments
Liu Zhi Fu [Tue, 16 May 2017 09:01:42 +0000 (17:01 +0800)]
esp32: minor fix for wifi api comments

Minor fix about the comments of wifi_promiscuous_pkt_type_t

7 years agocomponent/bt: Fix the bug that sometimes received a ble connection & the adv will...
Yulong [Tue, 16 May 2017 07:10:16 +0000 (03:10 -0400)]
component/bt: Fix the bug that sometimes received a ble connection & the adv will stop, can not send adv again.

7 years agoMerge branch 'bugfix/gen_esp32part' into 'master'
Angus Gratton [Tue, 16 May 2017 07:03:11 +0000 (15:03 +0800)]
Merge branch 'bugfix/gen_esp32part' into 'master'

Partition table gen esp32part fixes: App offset errors, Python 3 support

As mentioned on forums, gen_esp32part.py wasn't erroring correctly if a non-64KB-aligned app partition was referenced.

Also merges a PR to add Python 2&3 support (with some tweaks). Not very useful in IDF right now, but useful for Arduino.

See merge request !751

7 years agoMerge branch 'feature/ulp_adc_example' into 'master'
Ivan Grokhotkov [Tue, 16 May 2017 05:53:46 +0000 (13:53 +0800)]
Merge branch 'feature/ulp_adc_example' into 'master'

examples: add ULP ADC example

- Add example of ULP sampling an input using ADC1, waking up the system when ADC reading goes out of given window.
- Add a pair of convenience functions: to configure ADC1 for use with ULP, and to set ULP wakeup interval.

Ref. TW11902

See merge request !720

7 years agoexamples: add ULP ADC example
Ivan Grokhotkov [Thu, 20 Apr 2017 08:13:09 +0000 (16:13 +0800)]
examples: add ULP ADC example

7 years agocomponent/esp32 : fix library sport access protections.
Tian Hao [Sat, 13 May 2017 11:55:11 +0000 (19:55 +0800)]
component/esp32 : fix library sport access protections.

1. add esp32 library access DPORT register protections.
2. add bluetooth library access DPORT register protections.
3. change register operation(suffix/prefix) to new style.

7 years agoMerge branch 'bugfix/bt_acl_tx' into 'master'
Jiang Jiang Jian [Fri, 12 May 2017 10:23:20 +0000 (18:23 +0800)]
Merge branch 'bugfix/bt_acl_tx' into 'master'

components/bt: update libbtdm.a with a bugfix for an assertion failure when ACL-…

…U transmission is resumed

See merge request !755

7 years agoMerge branch 'driver_merge_tmp/mcpwm' into 'master'
Jiang Jiang Jian [Fri, 12 May 2017 10:21:38 +0000 (18:21 +0800)]
Merge branch 'driver_merge_tmp/mcpwm' into 'master'

feature: Motor Control PWM(mcpwm) driver and examples

See merge request !698

7 years agoMerge branch 'feature/i2s_pdm_and_dac' into 'master'
Jiang Jiang Jian [Fri, 12 May 2017 10:21:17 +0000 (18:21 +0800)]
Merge branch 'feature/i2s_pdm_and_dac' into 'master'

Driver update: I2S pdm and built-in DAC

1. Modify I2S DAC built-in mode settings
2. Add I2S pdm mode
3. Correct I2S signal index in full-duplex mode
4. Modify dac output function
5. Add dac pad init functions
6. Modify DAC documentation

See merge request !740

7 years agoMerge branch 'bugfix/dualcore' into 'master'
Jiang Jiang Jian [Fri, 12 May 2017 10:19:31 +0000 (18:19 +0800)]
Merge branch 'bugfix/dualcore' into 'master'

component/soc: fix register access protection missing

- fix dport register access protection missing
- add rom function protect
- add normal register function check

See merge request !747

7 years agocomponents/bt: update libbtdm.a with a bugfix for an assertion failure when ACL-U...
wangmengyang [Fri, 12 May 2017 09:53:25 +0000 (17:53 +0800)]
components/bt: update libbtdm.a with a bugfix for an assertion failure when ACL-U transmission is resumed

7 years agoDriver update: I2S pdm and built-in DAC
Wangjialin [Wed, 3 May 2017 10:55:52 +0000 (18:55 +0800)]
Driver update: I2S pdm and built-in DAC

1. Modify I2S DAC built-in mode settings
2. Add I2S pdm mode
3. Correct I2S signal index in full-duplex mode
4. Modify dac output function
5. Add dac pad init functions
6. Modify DAC documentation
7. Add i2s_set_dac_mode API

7 years agofeature: add Motor Control PWM(mcpwm) driver
Kewal M Shah [Wed, 29 Mar 2017 08:39:35 +0000 (16:39 +0800)]
feature: add Motor Control PWM(mcpwm) driver

1. Name change from chopper to carrier, block diagram update, minor changes to example codes
2. mcpwm_reg.h changed, brought uniformity in comments, worked on suggestions, duty to accept float. Some name changes!
3. Minor readme changes and Indetation
4. Minor change:  move mcpwm_reg.h and mcpwm_struct.h to new path
5. Minor change: addition of BLDC example code and Readme
6. Name changed from epwm to mcpwm
7. Improve the reg name in mcpwm_struct.h
8. Name change chopper>carrier, deadband>deadtime

7 years agocomponent/esp32 : do more fix of dualcore bug
Tian Hao [Wed, 10 May 2017 07:45:04 +0000 (15:45 +0800)]
component/esp32 : do more fix of dualcore bug

1. the cache API in romcode will access DPORT register, so protect it.
2. fix STALL spelling.
3. check dport access by non-dport access function

7 years agoMerge branch 'bugfix/ble_fix_exception_build_sr_msg_#12124' into 'master'
Jiang Jiang Jian [Fri, 12 May 2017 07:24:58 +0000 (15:24 +0800)]
Merge branch 'bugfix/ble_fix_exception_build_sr_msg_#12124' into 'master'

component/bt: fix the exception in attp_buil_sr_msg when handling gatt write bug. bug number #12124.

 fix the exception in attp_buil_sr_msg when handling gatt write bug.

See merge request !743

7 years agoMerge branch 'bugfix/unit_test_fixes' into 'master'
Ivan Grokhotkov [Fri, 12 May 2017 06:53:46 +0000 (14:53 +0800)]
Merge branch 'bugfix/unit_test_fixes' into 'master'

Small unit-test-related fixes

Fixes for some small bugs found running unit tests with heap poisoning turned on.

All are bugs in the tests, except for one FreeRTOS fix (when deleting a task, check if it's running on the other CPU and preempt it if so.)

See merge request !746

7 years agoMerge branch 'bugfix/nvs_dynamic_key_names' into 'master'
Ivan Grokhotkov [Fri, 12 May 2017 06:53:18 +0000 (14:53 +0800)]
Merge branch 'bugfix/nvs_dynamic_key_names' into 'master'

nvs: remove search cache at page level

Since read cache was introduced at page level, search cache became
useless in terms of reducing the number of flash read operations.
In addition to that, search cache used an assumption that if pointers to
keys are identical, the keys are also identical, which was proven wrong
by applications which generate key names dynamically.

This change removes CachedFindInfo, and all its uses. This is done at
expense of a small extra number of CPU operations (looking up a value in
the read cache is slightly more expensive) but no extra flash read
operations.

Ref TW12505
Ref https://github.com/espressif/arduino-esp32/issues/365

See merge request !753

7 years agocomponent/bt: Add parameter check for attp_build_sr_msg function
island [Fri, 12 May 2017 06:30:33 +0000 (14:30 +0800)]
component/bt: Add parameter check for attp_build_sr_msg function

7 years agogen_esp32part: Run unit tests on host as part of gitlab-ci
Angus Gratton [Fri, 12 May 2017 02:30:27 +0000 (12:30 +1000)]
gen_esp32part: Run unit tests on host as part of gitlab-ci

7 years agoMerge branch 'bugfix/enlarge_wifi_task_stack_size_and_hmac_tx_queue_size' into 'master'
Jiang Jiang Jian [Fri, 12 May 2017 05:37:22 +0000 (13:37 +0800)]
Merge branch 'bugfix/enlarge_wifi_task_stack_size_and_hmac_tx_queue_size' into 'master'

esp32: update wifi lib to enlarge wifi task stack size

1. Enlarge wifi task stack size by 512Bytes to fix potential stack overflow issue
2. Modify wifi hmac tx queue size from 12 to 32 because we already limit the buffer number in ebuf
   management module

See merge request !750

7 years agonvs: remove search cache at page level
Ivan Grokhotkov [Fri, 12 May 2017 04:18:08 +0000 (12:18 +0800)]
nvs: remove search cache at page level

Since read cache was introduced at page level, search cache became
useless in terms of reducing the number of flash read operations.
In addition to that, search cache used an assumption that if pointers to
keys are identical, the keys are also identical, which was proven wrong
by applications which generate key names dynamically.

This change removes CachedFindInfo, and all its uses. This is done at
expense of a small extra number of CPU operations (looking up a value in
the read cache is slightly more expensive) but no extra flash read
operations.

Ref TW12505
Ref https://github.com/espressif/arduino-esp32/issues/365

7 years agogen_esp32part.py: Correctly error out for non-64KB aligned app partitions
Angus Gratton [Fri, 12 May 2017 02:07:59 +0000 (12:07 +1000)]
gen_esp32part.py: Correctly error out for non-64KB aligned app partitions

Also clean up error handling for verification errors in general.

Ref https://esp32.com/viewtopic.php?f=13&t=1838&p=8685#p8659

7 years agogen_esp32part.py: Update documentation link, add license
Angus Gratton [Fri, 12 May 2017 01:58:28 +0000 (11:58 +1000)]
gen_esp32part.py: Update documentation link, add license

7 years agogen_esp32part.py: Remaining Python 3 changes for unit tests to pass, plus unit tests
Angus Gratton [Fri, 12 May 2017 02:25:41 +0000 (12:25 +1000)]
gen_esp32part.py: Remaining Python 3 changes for unit tests to pass, plus unit tests

Ref https://github.com/espressif/esp-idf/pull/577