]> granicus.if.org Git - esp-idf/log
esp-idf
6 years agoI2C API documenation update
krzychb [Mon, 30 Oct 2017 05:17:27 +0000 (06:17 +0100)]
I2C API documenation update

6 years agoMerge branch 'feature/illustrations_with_blockdiag' into 'master'
Ivan Grokhotkov [Wed, 8 Nov 2017 10:54:28 +0000 (18:54 +0800)]
Merge branch 'feature/illustrations_with_blockdiag' into 'master'

Implement ‘blockdiag - simple block-diagram image generator’ to illustrate docum…

See merge request !1495

6 years agoMerge branch 'bugfix/fail_to_scan_all_matched_ap' into 'master'
Jiang Jiang Jian [Wed, 8 Nov 2017 09:39:29 +0000 (17:39 +0800)]
Merge branch 'bugfix/fail_to_scan_all_matched_ap' into 'master'

Wifi: bugfix/fail_to_scan_all_matched_ap

See merge request !1493

6 years agoImplement ‘blockdiag - simple block-diagram image generator’ to illustrate documentat...
krzychb [Mon, 6 Nov 2017 20:41:31 +0000 (21:41 +0100)]
Implement ‘blockdiag - simple block-diagram image generator’ to illustrate documentation with block diagrams, sequence diagrams, activity diagrams and logical network diagrams

6 years agoMerge branch 'feature/unit-tests-psram' into 'master'
Ivan Grokhotkov [Tue, 7 Nov 2017 12:11:54 +0000 (20:11 +0800)]
Merge branch 'feature/unit-tests-psram' into 'master'

unit tests: add psram configuration

See merge request !1488

6 years agoMerge branch 'bugfix/btdm_lib_update_for_psram' into 'master'
Jiang Jiang Jian [Tue, 7 Nov 2017 12:01:14 +0000 (20:01 +0800)]
Merge branch 'bugfix/btdm_lib_update_for_psram' into 'master'

component/bt: update toolchain and add compile options to build libbtdm_app.a to support PSRAM

See merge request !1491

6 years agoMerge branch 'doc/freertos_port_comments' into 'master'
Ivan Grokhotkov [Tue, 7 Nov 2017 11:31:21 +0000 (19:31 +0800)]
Merge branch 'doc/freertos_port_comments' into 'master'

freertos: Update comments in "port" section (portMUX/etc)

See merge request !1431

6 years agoMerge branch 'bugfix/hardware_mpi_sign' into 'master'
Ivan Grokhotkov [Tue, 7 Nov 2017 11:30:31 +0000 (19:30 +0800)]
Merge branch 'bugfix/hardware_mpi_sign' into 'master'

hwcrypto mpi: Fix losing sign when multiplying by -1 (github PR)

Contribution from github: https://github.com/espressif/esp-idf/pull/1181/

See merge request !1471

6 years agocomponent/bt: update toolchain and add compile options to build libbtdm_app.a to...
wangmengyang [Tue, 7 Nov 2017 08:08:47 +0000 (16:08 +0800)]
component/bt: update toolchain and add compile options to build libbtdm_app.a to support PSRAM

6 years agoMerge branch 'bugfix/restart_reconfigure_flash_pins' into 'master'
Ivan Grokhotkov [Tue, 7 Nov 2017 04:08:52 +0000 (12:08 +0800)]
Merge branch 'bugfix/restart_reconfigure_flash_pins' into 'master'

esp32: reconfigure SPI flash pins in esp_restart

See merge request !1492

6 years agoMerge branch 'bugfix/new_task_watchdog_API_false_trigger' into 'master'
Ivan Grokhotkov [Tue, 7 Nov 2017 02:43:56 +0000 (10:43 +0800)]
Merge branch 'bugfix/new_task_watchdog_API_false_trigger' into 'master'

feat/New Task Watchdog API

See merge request !1380

6 years agoMerge branch 'feature/FreeRTOS_SMP_unit_tests' into 'master'
Ivan Grokhotkov [Tue, 7 Nov 2017 02:39:51 +0000 (10:39 +0800)]
Merge branch 'feature/FreeRTOS_SMP_unit_tests' into 'master'

feature: Add unit tests for freertos untested functions

See merge request !1308

6 years agoWifi: bugfix/fail_to_scan_all_matched_ap
Deng Xin [Mon, 6 Nov 2017 13:31:45 +0000 (21:31 +0800)]
Wifi: bugfix/fail_to_scan_all_matched_ap
fail to scan all matched ap in fast scan mode

6 years agoesp32: reconfigure SPI flash pins in esp_restart
Ivan Grokhotkov [Mon, 6 Nov 2017 08:44:26 +0000 (16:44 +0800)]
esp32: reconfigure SPI flash pins in esp_restart

6 years agofreertos: Test untested functions
Darian Leung [Fri, 22 Sep 2017 10:45:57 +0000 (18:45 +0800)]
freertos: Test untested functions

Test cases were added for the following functions
- xTaskNotify(), xTaskNotifyGive(), xTaskNotifyFromISR(), vTaskNotifyGiveFromISR(),
- xTaskNotifyWait(), ulTaskNotifyTake()
- vTaskDelayUntil()

The following function was made smp compatible and tested as well
- eTaskGetState()

6 years agounit tests: add psram configuration
Ivan Grokhotkov [Thu, 19 Oct 2017 13:39:45 +0000 (21:39 +0800)]
unit tests: add psram configuration

6 years agoMerge branch 'bugfix/unit_tests' into 'master'
Ivan Grokhotkov [Mon, 6 Nov 2017 02:02:48 +0000 (10:02 +0800)]
Merge branch 'bugfix/unit_tests' into 'master'

ci: add one more job for single core unit tests

See merge request !1490

6 years agoci: add one more job for single core unit tests
Ivan Grokhotkov [Sun, 5 Nov 2017 13:50:43 +0000 (21:50 +0800)]
ci: add one more job for single core unit tests

6 years agoMerge branch 'bugfix/upgrade_sphinx_and_breathe' into 'master'
Ivan Grokhotkov [Sun, 5 Nov 2017 13:44:26 +0000 (21:44 +0800)]
Merge branch 'bugfix/upgrade_sphinx_and_breathe' into 'master'

Upgraded Sphinx to latest release 1.6.5 that contains a fix to https://github.co…

See merge request !1476

6 years agoMerge branch 'bugfix/protect_spiflash_regions' into 'master'
Angus Gratton [Sat, 4 Nov 2017 04:40:21 +0000 (12:40 +0800)]
Merge branch 'bugfix/protect_spiflash_regions' into 'master'

spi_flash: Abort on writes to dangerous regions (bootloader, partition table, app)

See merge request !1452

6 years agospi_flash: Abort on writes to dangerous regions (bootloader, partition table, app)
Angus Gratton [Wed, 25 Oct 2017 07:22:30 +0000 (15:22 +0800)]
spi_flash: Abort on writes to dangerous regions (bootloader, partition table, app)

Can be disabled or made into a failure result in kconfig if needed.

6 years agoMerge branch 'bugfix/rtc_and_restart_fixes' into 'master'
Jiang Jiang Jian [Fri, 3 Nov 2017 17:34:38 +0000 (01:34 +0800)]
Merge branch 'bugfix/rtc_and_restart_fixes' into 'master'

rtc_clk and esp_restart fixes

See merge request !1458

6 years agoMerge branch 'feature/add_psram_wifi_lib' into 'master'
Jiang Jiang Jian [Fri, 3 Nov 2017 17:32:18 +0000 (01:32 +0800)]
Merge branch 'feature/add_psram_wifi_lib' into 'master'

esp32: add wifi lib which is compiled with psram gcc

See merge request !1489

6 years agoesp32: add wifi lib which is compiled with psram gcc
Liu Zhi Fu [Fri, 3 Nov 2017 15:02:35 +0000 (23:02 +0800)]
esp32: add wifi lib which is compiled with psram gcc

Add psram wifi lib because it doesn't impact the WiFi throughput once the psram is not enabled in IDF menuconfig

6 years agoMerge branch 'bugfix/psram_io_settings' into 'master'
Jiang Jiang Jian [Fri, 3 Nov 2017 09:34:32 +0000 (17:34 +0800)]
Merge branch 'bugfix/psram_io_settings' into 'master'

Improve psram clock signal generation, increase drive strength, raise LDO voltage

See merge request !1474

6 years agopsram: improve clock signal generation, increase drive strength
Wangjialin [Fri, 3 Nov 2017 07:10:47 +0000 (15:10 +0800)]
psram: improve clock signal generation, increase drive strength

Also check the chip type when initializing.

6 years agobootloader: add configuration of flash pins and VDDIO boost
Wangjialin [Fri, 3 Nov 2017 07:09:19 +0000 (15:09 +0800)]
bootloader: add configuration of flash pins and VDDIO boost

6 years agoefuse\10\10: add package definitions for PICOD2/D4
Ivan Grokhotkov [Fri, 3 Nov 2017 06:54:02 +0000 (14:54 +0800)]
efuse\10\10: add package definitions for PICOD2/D4

6 years agosoc/rtc: add function to get/set VDDSDIO configuration
Ivan Grokhotkov [Wed, 1 Nov 2017 07:16:32 +0000 (15:16 +0800)]
soc/rtc: add function to get/set VDDSDIO configuration

Also consider case of VDDSDIO force powered on in rtc_sleep.

6 years agosoc/gpio: fix description of GPIO_STRAP_REG
Ivan Grokhotkov [Wed, 1 Nov 2017 08:26:59 +0000 (16:26 +0800)]
soc/gpio: fix description of GPIO_STRAP_REG

6 years agotools/unit-test-app: fix build warning
Ivan Grokhotkov [Fri, 3 Nov 2017 06:49:51 +0000 (14:49 +0800)]
tools/unit-test-app: fix build warning

6 years agoMerge branch 'feature/btdm_add_value_callback_when_send_notification_or_indicate_fail...
Jiang Jiang Jian [Fri, 3 Nov 2017 02:05:29 +0000 (10:05 +0800)]
Merge branch 'feature/btdm_add_value_callback_when_send_notification_or_indicate_failed' into 'master'

component/bt: add value callback when send notification or indicate failed

See merge request !1457

6 years agoMerge branch 'bugfix/light_sleep_current' into 'master'
Ivan Grokhotkov [Thu, 2 Nov 2017 10:26:23 +0000 (18:26 +0800)]
Merge branch 'bugfix/light_sleep_current' into 'master'

soc/rtc: fix increased current consumption in light sleep

See merge request !1483

6 years agoMerge branch 'bugfix/fix_some_phy_bugs' into 'master'
Jiang Jiang Jian [Thu, 2 Nov 2017 10:10:10 +0000 (18:10 +0800)]
Merge branch 'bugfix/fix_some_phy_bugs' into 'master'

fix some phy bugs

See merge request !1481

6 years agoNew Task Watchdog API (Revert of Revert)
Darian Leung [Mon, 9 Oct 2017 10:07:30 +0000 (18:07 +0800)]
New Task Watchdog API (Revert of Revert)

This commit reverts the revert on the new task watchdog API. It also
fixes the following bug which caused the reversion.

- sdkconfig TASK_WDT_TIMEOUT_S has been reverted from the unit of ms back to the
unit of seconds. Fixes bug where projects using the new API without rebuilding sdkconfig
would cause the old default value of 5 to be interpreted in ms.

This commit also adds the following features to the task watchdog

- Updated idle hook registration to be compatible with dual core hooks

- Updated dual core hooks to support deregistration for cpu

- Legacy mode has been removed and esp_task_wdt_feed() is now replaced by
  esp_task_wdt_reset().  esp_task_wdt_feed() is deprecated

- Idle hooks to reset are now registered/deregistered when the idle tasks are
  added/deleted from the Task Watchdog instead of at Task Watchdog init/deinit

- Updated example

6 years agofix some phy bugs
XiaXiaotian [Thu, 2 Nov 2017 02:37:59 +0000 (10:37 +0800)]
fix some phy bugs

    1. V366, fix a problem which initialize current can reach 800mA.

    2. V365, fix a problem for pll_cap tracking in Coexist (BT & WIFI)
       mode. The problem will make Coexist (BT & WIFI) WIFI AP mode TX
       Fail in high temperature(>70).

    3. V364, fix a bug of BT and Wifi coexist (hung in function of
       force_wifi_mode())

6 years agoMerge branch 'bugfix/btdm_master_dont_send_pair_req_#13686' into 'master'
Jiang Jiang Jian [Thu, 2 Nov 2017 07:49:27 +0000 (15:49 +0800)]
Merge branch 'bugfix/btdm_master_dont_send_pair_req_#13686' into 'master'

component/bt: Fix the bug of master don't send pair request to the slave when the sec_act set to the value of ESP_BLE_SEC_ENCRYPT.

See merge request !1376

6 years agoMerge branch 'bugfix/clean_up_WIFI_CLK_EN_settings' into 'master'
Jiang Jiang Jian [Thu, 2 Nov 2017 07:44:37 +0000 (15:44 +0800)]
Merge branch 'bugfix/clean_up_WIFI_CLK_EN_settings' into 'master'

refactor WIFI_CLK_EN settings

See merge request !1463

6 years agorefractor WiFi clock setting
XiaXiaotian [Sat, 28 Oct 2017 02:19:49 +0000 (10:19 +0800)]
refractor WiFi clock setting

   Do not set WiFi clock in PHY initializing function, move it to WiFi
   start/stop function.

6 years agocomponent/bt: clean up WIFI_CLK_EN_REG settings for Bluetooth
wangmengyang [Wed, 1 Nov 2017 09:05:38 +0000 (17:05 +0800)]
component/bt: clean up WIFI_CLK_EN_REG settings for Bluetooth

1. move settings of WIFI_CLK_EN_REG for bluetooth into controller init/deinit APIs
2. modify the bit mask used in phy_rf init/deinit to use WIFI-BT shared bits

6 years agoMerge branch 'feature/increase_dynamic_tx_buffer_number' into 'master'
Jiang Jiang Jian [Thu, 2 Nov 2017 07:09:37 +0000 (15:09 +0800)]
Merge branch 'feature/increase_dynamic_tx_buffer_number' into 'master'

Feature/increase dynamic tx buffer number

See merge request !1473

6 years agoMerge branch 'feature/docs_small_updates' into 'master'
Ivan Grokhotkov [Thu, 2 Nov 2017 06:18:09 +0000 (14:18 +0800)]
Merge branch 'feature/docs_small_updates' into 'master'

Small updates of documentation

See merge request !1443

6 years agosoc/rtc: fix increased current consumption in light sleep
Ivan Grokhotkov [Thu, 2 Nov 2017 05:57:26 +0000 (13:57 +0800)]
soc/rtc: fix increased current consumption in light sleep

This fixes a configuration issue of RTC, which caused light sleep current
to be 1.35mA instead of 0.85mA.

7 years agoMerge branch 'test/ci_test_examples' into 'master'
Ivan Grokhotkov [Wed, 1 Nov 2017 05:59:10 +0000 (13:59 +0800)]
Merge branch 'test/ci_test_examples' into 'master'

test: test examples with CI

See merge request !1275

7 years agoMerge branch 'bugfix/btdm_modify_close_disconnect_event_params' into 'master'
Jiang Jiang Jian [Wed, 1 Nov 2017 03:01:36 +0000 (11:01 +0800)]
Merge branch 'bugfix/btdm_modify_close_disconnect_event_params' into 'master'

component/bt: modify close , connect and  disconnection event params

See merge request !1407

7 years agoMerge branch 'bugfix/btdm_fix_memory_leak_in_blufi' into 'master'
Jiang Jiang Jian [Wed, 1 Nov 2017 03:01:14 +0000 (11:01 +0800)]
Merge branch 'bugfix/btdm_fix_memory_leak_in_blufi' into 'master'

component/bt: fix memory leak in bluefi demo

See merge request !1436

7 years agoComponent/bt: add value callback when send notification or indicate failed
zhiweijian [Thu, 26 Oct 2017 06:39:49 +0000 (14:39 +0800)]
Component/bt: add value callback when send notification or indicate failed

7 years agoComponent/bt: modify close event and disconnection event params
zhiweijian [Mon, 16 Oct 2017 08:27:38 +0000 (16:27 +0800)]
Component/bt: modify close event and disconnection event params
- modify close event params
- modify disconnection event params
- modify connect event params

7 years agoUpgraded Sphinx to latest release 1.6.5 that contains a fix to https://github.com...
krzychb [Tue, 31 Oct 2017 21:52:55 +0000 (22:52 +0100)]
Upgraded Sphinx to latest release 1.6.5 that contains a fix to https://github.com/sphinx-doc/sphinx/issues/4041. Upgraded Breathe to latest release 4.7.3 as well.

7 years agoCI: integrate example test to CI
He Yin Ling [Tue, 10 Oct 2017 02:55:25 +0000 (10:55 +0800)]
CI: integrate example test to CI

7 years agomake: add make command `print_flash_cmd`
He Yin Ling [Tue, 10 Oct 2017 02:51:08 +0000 (10:51 +0800)]
make: add make command `print_flash_cmd`

7 years agotest: add test for https_request
He Yin Ling [Tue, 10 Oct 2017 02:48:57 +0000 (10:48 +0800)]
test: add test for https_request

7 years agotest: add test fw for example test
He Yin Ling [Tue, 10 Oct 2017 02:44:55 +0000 (10:44 +0800)]
test: add test fw for example test

7 years agoIncrease maximum number of WiFi dynamic transmitting buffer
XiaXiaotian [Tue, 31 Oct 2017 06:45:25 +0000 (14:45 +0800)]
Increase maximum number of WiFi dynamic transmitting buffer

7 years agoFix the return value of esp_now_send()
XiaXiaotian [Tue, 31 Oct 2017 03:52:05 +0000 (11:52 +0800)]
Fix the return value of esp_now_send()

7 years agoMerge branch 'bugfix/wrong_ap_info_in_all_channel_scan' into 'master'
Jiang Jiang Jian [Tue, 31 Oct 2017 07:15:07 +0000 (15:15 +0800)]
Merge branch 'bugfix/wrong_ap_info_in_all_channel_scan' into 'master'

Wifi: bugfix of get wrong ap information in all channel scan

See merge request !1470

7 years agoMerge branch 'bugfix/btdm_unable_use_esp_ble_gatts_get_attr_value_after_long_write...
Jiang Jiang Jian [Tue, 31 Oct 2017 06:45:17 +0000 (14:45 +0800)]
Merge branch 'bugfix/btdm_unable_use_esp_ble_gatts_get_attr_value_after_long_write' into 'master'

component/bt: Fix the bug cann't use esp_ble_gatts_get_attr_value to get the att…

See merge request !1381

7 years agoSmall updates of documentation
krzychb [Mon, 30 Oct 2017 05:27:40 +0000 (06:27 +0100)]
Small updates of documentation

7 years agoMerge branch 'bugfix/btdm_smp_decide_association_model' into 'master'
Jiang Jiang Jian [Tue, 31 Oct 2017 06:34:41 +0000 (14:34 +0800)]
Merge branch 'bugfix/btdm_smp_decide_association_model' into 'master'

component/bt: Fix bug of function smp_decide_association_model

See merge request !1377

7 years agoMerge branch 'bugfix/btdm_set_MAX_L2CAP_CHANNELS_error' into 'master'
Jiang Jiang Jian [Tue, 31 Oct 2017 06:32:53 +0000 (14:32 +0800)]
Merge branch 'bugfix/btdm_set_MAX_L2CAP_CHANNELS_error' into 'master'

component/bt: Fix bug of set MAX_L2CAP_CHANNELS error

See merge request !1448

7 years agoWifi: bugfix of get wrong ap information in all channel scan
Deng Xin [Mon, 30 Oct 2017 13:29:32 +0000 (21:29 +0800)]
Wifi: bugfix of get wrong ap information in all channel scan

fix the issue get wrong ap information in all channel scan

7 years agoMerge branch 'bugfix/btdm_app_malloc_invalid_bug' into 'master'
Jiang Jiang Jian [Tue, 31 Oct 2017 03:34:37 +0000 (11:34 +0800)]
Merge branch 'bugfix/btdm_app_malloc_invalid_bug' into 'master'

bt/examples: The application layer does not allocate memory correctly causing the btc layer pointer to cross the border.

See merge request !1438

7 years agoMerge branch 'bugfix/btdm_disable_role_switch' into 'master'
Jiang Jiang Jian [Tue, 31 Oct 2017 03:31:15 +0000 (11:31 +0800)]
Merge branch 'bugfix/btdm_disable_role_switch' into 'master'

component/bt: disable the use of ROLE_SWITCH feature for classic BT as workaround

See merge request !1446

7 years agoMerge branch 'bugfix/btdm_fix_crash_when_set_device_name_null' into 'master'
Jiang Jiang Jian [Tue, 31 Oct 2017 03:17:49 +0000 (11:17 +0800)]
Merge branch 'bugfix/btdm_fix_crash_when_set_device_name_null' into 'master'

component/bt: fix crash when set device name NULL

See merge request !1462

7 years agoMerge branch 'feature/reduce_default_wifi_static_buffer_number' into 'master'
Jiang Jiang Jian [Tue, 31 Oct 2017 03:16:22 +0000 (11:16 +0800)]
Merge branch 'feature/reduce_default_wifi_static_buffer_number' into 'master'

esp32: reduce default wifi static tx buffer

See merge request !1465

7 years agoMerge branch 'bugfix/fix_tcp_crash' into 'master'
Angus Gratton [Mon, 30 Oct 2017 22:18:49 +0000 (06:18 +0800)]
Merge branch 'bugfix/fix_tcp_crash' into 'master'

fix tcp crash

See merge request !1444

7 years agoMerge branch 'bugfix/unit_test_refactored_timer_api_usage' into 'master'
Ivan Grokhotkov [Mon, 30 Oct 2017 13:35:04 +0000 (21:35 +0800)]
Merge branch 'bugfix/unit_test_refactored_timer_api_usage' into 'master'

unit_tests/Update unit test timer divider

See merge request !1468

7 years agounit_tests/Update unit test timer divider
Darian Leung [Mon, 30 Oct 2017 11:42:16 +0000 (19:42 +0800)]
unit_tests/Update unit test timer divider

This commit updates various test cases throughout esp-idf such that
the values used for timer divider pass the assertions in the timer component.
Timer divider values must be between 2 to 65536

7 years agoesp32: reduce default wifi static tx buffer
Liu Zhi Fu [Sat, 28 Oct 2017 04:15:40 +0000 (12:15 +0800)]
esp32: reduce default wifi static tx buffer

Modify the the default WiFi static tx buffer from 32 to 16

7 years agoFix losing sign when multiplying by -1
Alexey Skalozub [Sat, 28 Oct 2017 00:47:00 +0000 (03:47 +0300)]
Fix losing sign when multiplying by -1

7 years agoMerge branch 'bugfix/fix_uart_vfs_test_error' into 'master'
Angus Gratton [Fri, 27 Oct 2017 11:20:13 +0000 (19:20 +0800)]
Merge branch 'bugfix/fix_uart_vfs_test_error' into 'master'

bugfix(uart): Don't disable console uart peripheral

See merge request !1456

7 years agoMerge branch 'bugfix/btdm_cpu_core' into 'master'
Jiang Jiang Jian [Fri, 27 Oct 2017 10:36:59 +0000 (18:36 +0800)]
Merge branch 'bugfix/btdm_cpu_core' into 'master'

component/bt : fix bug of sw interrupt cause to run btdm to different cpu core.

See merge request !1434

7 years agobugfix(uart): Don't disable console UART peripheral
Wangjialin [Thu, 26 Oct 2017 09:18:08 +0000 (17:18 +0800)]
bugfix(uart): Don't disable console UART peripheral

7 years agocomponent/bt: fix crash when set device name NULL
zhiweijian [Fri, 27 Oct 2017 06:07:47 +0000 (14:07 +0800)]
component/bt: fix crash when set device name NULL

7 years agoMerge branch 'feature/docs_update_timer_api' into 'master'
Angus Gratton [Fri, 27 Oct 2017 05:31:18 +0000 (13:31 +0800)]
Merge branch 'feature/docs_update_timer_api' into 'master'

Timer API docs update, refactored example

See merge request !1316

7 years agoTimer API docs update, refactored example
krzychb [Mon, 25 Sep 2017 04:20:12 +0000 (06:20 +0200)]
Timer API docs update, refactored example

7 years agoMerge branch 'feature/uart_example_separate_tx_rx_tasks' into 'master'
Angus Gratton [Fri, 27 Oct 2017 05:13:24 +0000 (13:13 +0800)]
Merge branch 'feature/uart_example_separate_tx_rx_tasks' into 'master'

Added an asynchronous UART example, using separate RX and TX tasks.

See merge request !1403

7 years agoMerge branch 'bugfix/pthread_once' into 'master'
Ivan Grokhotkov [Fri, 27 Oct 2017 01:21:55 +0000 (09:21 +0800)]
Merge branch 'bugfix/pthread_once' into 'master'

[pthread] Perform init_routine execution outside of the mutex

See merge request !1453

7 years agoMerge branch 'bugfix/set_cppflags' into 'master'
Angus Gratton [Thu, 26 Oct 2017 12:21:49 +0000 (20:21 +0800)]
Merge branch 'bugfix/set_cppflags' into 'master'

Ensure that C++ and C compilers get the same preprocessor setup (from github)

See merge request !1459

7 years agoesp_restart: fix possible race while stalling other CPU, enable WDT early
Ivan Grokhotkov [Thu, 26 Oct 2017 11:11:47 +0000 (19:11 +0800)]
esp_restart: fix possible race while stalling other CPU, enable WDT early

Previously esp_restart would stall the other CPU before enabling RTC_WDT.
If the other CPU was executing an s32c1i instruction, the lock signal
from CPU to the arbiter would still be held after CPU was stalled. If
the CPU running esp_restart would then try to access the same locked
memory pool, it would be stuck, because lock signal would never be
released.

With this change, esp_restart resets the other CPU before stalling it.
Ideally, we would want to reset the CPU and keep it in reset, but the
hardware doesn't have such feature for PRO_CPU (it is possible to hold
APP_CPU in reset using DPORT register). Given that ROM code will not use
s32c1i in the first few hundred cycles, doing reset and then stall seems
to be safe.

In addition to than, RTC_WDT initialization is moved to the beginning of
the function, to prevent possible lock-up if CPU stalling still has any
issue.

7 years agosoc/rtc: fix spurious warnings about XTAL frequency on startup
Ivan Grokhotkov [Thu, 26 Oct 2017 10:52:00 +0000 (18:52 +0800)]
soc/rtc: fix spurious warnings about XTAL frequency on startup

1. Make sure that 8MD256 clock used to estimate XTAL frequency is enabled
   before trying to use rtc_clk_cal_ratio.
   This fixes "Bogus XTAL frequency: 0 MHz" warnings after software reset.

2. Don't call rtc_clk_xtal_freq_estimate if XTAL frequency is already
   known. This reduces startup time after deep sleep or software reset.

3. Compare known XTAL frequency and estimated one before printing a
   warning. This fixes "Possibly invalid CONFIG_ESP32_XTAL_FREQ setting
   (40MHz). Detected 40 MHz." warnings.

7 years agosoc/rtc: add tests for CPU frequency switching
Ivan Grokhotkov [Thu, 26 Oct 2017 10:47:31 +0000 (18:47 +0800)]
soc/rtc: add tests for CPU frequency switching

These tests switch between PLL and XTAL frequencies for 10 seconds.

7 years agosoc/rtc: wait for SLOW_CLK cycle when switching CPU clock
Ivan Grokhotkov [Thu, 26 Oct 2017 10:46:27 +0000 (18:46 +0800)]
soc/rtc: wait for SLOW_CLK cycle when switching CPU clock

Previous implementation waited for 20us after setting
RTC_CNTL_SOC_CLK_SEL_XTL register, using ets_delay_us, assuming that
the CPU was running at XTAL frequency. In reality, clock switch happened
on the next RTC_SLOW_CLK cycle, and CPU could be running at the previous
frequency (for example, 240 MHz) until then.
ets_delay_us would wait for 20 us * 40 cycles per us = 800 CPU cycles
(assuming 40 MHz XTAL; even less with a 26 MHz XTAL).
But if CPU was running at 240 MHz, 800 cycles would pass in just 3.3us,
while SLOW_CLK cycle could happen as much as 1/150kHz = 6.7us after
RTC_CNTL_SOC_CLK_SEL_XTL was set. So the software would not actually wait
long enough for the clock switch to happen, and would disable the PLL
while CPU was still clocked from PLL, leading to a halt.

This implementation uses rtc_clk_wait_for_slow_cycle() function to wait
until the clock switch, removing the need to wait for a fixed number of
CPU cycles.

7 years agosoc/rtc: add a function to wait for slow clock cycle
Ivan Grokhotkov [Thu, 26 Oct 2017 10:33:13 +0000 (18:33 +0800)]
soc/rtc: add a function to wait for slow clock cycle

Some RTC features are synchronized to RTC_SLOW_CLK, so sometimes
software needs to wait for the next slow clock cycle.
This function implements waiting using Timer Group clock calibration
feature.

7 years agoEnsure that C++ and C compilers get the same preprocessor setup
Andreas Pokorny [Thu, 26 Oct 2017 11:04:41 +0000 (13:04 +0200)]
Ensure that C++ and C compilers get the same preprocessor setup

CPPFLAGS is applied for both languages while CFLAGS only for C

Signed-off-by: Andreas Pokorny <andreas.pokorny@siemens.com>
7 years agoMerge branch 'bugfix/panic_handler_debugexception' into 'master'
Angus Gratton [Thu, 26 Oct 2017 07:49:30 +0000 (15:49 +0800)]
Merge branch 'bugfix/panic_handler_debugexception' into 'master'

panic handler: Print correct PC & backtrace for debug exceptions

See merge request !1441

7 years agoMerge branch 'feature/adc2_driver' into 'master'
Angus Gratton [Thu, 26 Oct 2017 07:48:48 +0000 (15:48 +0800)]
Merge branch 'feature/adc2_driver' into 'master'

feature(adc2): add support to use ADC2 when WIFI is disabled

See merge request !1237

7 years agoMerge branch 'bugfix/uart_set_default_idle_time_to_zero' into 'master'
Angus Gratton [Thu, 26 Oct 2017 07:17:45 +0000 (15:17 +0800)]
Merge branch 'bugfix/uart_set_default_idle_time_to_zero' into 'master'

bugfix(uart): set default tx idle num

See merge request !1419

7 years agoMerge branch 'bugfix/tcpip_stack_overflow_logging_printf' into 'master'
Angus Gratton [Thu, 26 Oct 2017 07:09:22 +0000 (15:09 +0800)]
Merge branch 'bugfix/tcpip_stack_overflow_logging_printf' into 'master'

lwip: Increase minimum TCP/IP task stack size if log level is Debug or Verbose

See merge request !1396

7 years agorefactor(rtc): re-organize code in rtc_module.c
michael [Tue, 24 Oct 2017 03:51:33 +0000 (11:51 +0800)]
refactor(rtc): re-organize code in rtc_module.c

7 years agoexample(adc2): add example and test case for adc2.
michael [Wed, 13 Sep 2017 10:33:05 +0000 (18:33 +0800)]
example(adc2): add example and test case for adc2.

closes #461

7 years agofeat(adc2): append adc2 support and api and the lock with WIFI module
esp32de [Tue, 28 Mar 2017 20:00:58 +0000 (04:00 +0800)]
feat(adc2): append adc2 support and api and the lock with WIFI module

append adc support and api
- esp_err_t adc2_config_width(adc_bits_width_t width_bit);
- esp_err_t adc2_config_channel_atten(adc2_channel_t channel, adc_atten_t atten);
- int adc2_get_voltage(adc2_channel_t channel);

7 years ago[pthread] Perform init_routine execution outside of the mutex
Kedar Sovani [Wed, 25 Oct 2017 06:42:10 +0000 (12:12 +0530)]
[pthread] Perform init_routine execution outside of the mutex

The mutex is common across all the threads. It needn't be held across
the init_routine() call as long as the 'once' behaviour is guaranteed

Saw a deadlock case, where init_routine of one thread was waiting for
the completion of init_routine in another thread.

t2: wait for command
t1: pthread_once:
         lock once_mux
         init_routine:
               inform thread t2
               wait for signal from t2
t2: received command
         pthread_once
             lock once_mux (already held by t1)
---- Deadlock ----

7 years agoMerge branch 'bugfix/btdm_fix_bonded_public_scan_issue' into 'master'
Jiang Jiang Jian [Wed, 25 Oct 2017 06:11:56 +0000 (14:11 +0800)]
Merge branch 'bugfix/btdm_fix_bonded_public_scan_issue' into 'master'

component/bt: Fix scan problem of bonded device using public address

See merge request !1305

7 years agobugfix(uart): set default tx idle num
Wangjialin [Wed, 18 Oct 2017 04:04:59 +0000 (12:04 +0800)]
bugfix(uart): set default tx idle num

Reported from:
https://github.com/espressif/esp-idf/issues/703
https://github.com/espressif/esp-idf/issues/917
In uart driver we didn't change the default value of tx idle num, so there would be a delay after tx FIFO is empty.

1. Add API to set tx idle interval before next data transmission. (The UART hardware can add an interval after tx FIFO is empty).
2. Set default tx idle interval to zero.
3. Add hardware disable in uart driver delete function.

7 years agocomponent/bt: Fix bug of set MAX_L2CAP_CHANNELS error
baohongde [Wed, 25 Oct 2017 04:02:41 +0000 (12:02 +0800)]
component/bt: Fix bug of set MAX_L2CAP_CHANNELS error

7 years agocomponent/bt: Fix scan problem of bonded device using public address
island [Wed, 25 Oct 2017 03:52:03 +0000 (11:52 +0800)]
component/bt: Fix scan problem of bonded device using public address

7 years agocomponent/bt : fix bug of sw interrupt cause to run btdm to different cpu core.
Tian Hao [Fri, 20 Oct 2017 09:09:03 +0000 (17:09 +0800)]
component/bt : fix bug of sw interrupt cause to run btdm to different cpu core.

1. add sw interrupt cause osi to controller.
2. modify the kconfig to improve the option view.
3. add option of the cpu core which bluedroid run.
4. add option of the cpu core which bluetooth controller run.

7 years agocomponent/bt: disable the use of ROLE_SWITCH feature for classic BT as workaround
wangmengyang [Tue, 24 Oct 2017 06:44:53 +0000 (14:44 +0800)]
component/bt: disable the use of ROLE_SWITCH feature for classic BT as workaround

7 years agofeat(rtc): open adc*(dac)_pad_get_io_num functions to public.
michael [Wed, 13 Sep 2017 09:27:45 +0000 (17:27 +0800)]
feat(rtc): open adc*(dac)_pad_get_io_num functions to public.