]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agoethernet: add a gpio to enable/disable phy power
shangke [Sat, 11 Feb 2017 07:19:53 +0000 (15:19 +0800)]
ethernet: add a gpio to enable/disable phy power

7 years agoMerge branch 'test/get_test_env_config_from_gitlab' into 'master'
Ivan Grokhotkov [Wed, 8 Feb 2017 08:56:38 +0000 (16:56 +0800)]
Merge branch 'test/get_test_env_config_from_gitlab' into 'master'

CI: get test env config from gitlab

Previous design was put test env config on local runners. It's not easy to manage as test runners count growing.

Now we'll put config files for test runners to a Gitlab repository. Test runners will get its config from Gitlab every time before running.

See merge request !480

7 years agoMerge branch 'bugfix/yield_other_core_prio_check_fix' into 'master'
Jeroen Domburg [Wed, 8 Feb 2017 04:19:34 +0000 (12:19 +0800)]
Merge branch 'bugfix/yield_other_core_prio_check_fix' into 'master'

Fix interrupting task on other CPU that has lower prio than current task on current CPU

Fix for a very subtle bug introduced somewhere in december. This bug would cause a cross-core interrupt to only be sent if the activated task has a higher priority than the task currently running on *this* cpu, instead of on the other CPU.

See merge request !475

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

esp32: fix several misc wifi issue

1. Fix ssid_str not free issue
2. Fix sniffer not work issue
3. Fix null parameter cause esp_wifi_init crash issue
4. Enable ap ampdu rx interface

See merge request !484

7 years agoesp32: fix several misc wifi issue
Liu Zhi Fu [Mon, 6 Feb 2017 09:56:42 +0000 (17:56 +0800)]
esp32: fix several misc wifi issue

1. Fix ssid_str not free issue
2. Fix sniffer not work issue
3. Fix null parameter cause esp_wifi_init crash issue
4. Enable ap ampdu rx interface

7 years agoFix interrupting task on other CPU that has lower prio than current task on current CPU
Jeroen Domburg [Fri, 27 Jan 2017 09:17:05 +0000 (17:17 +0800)]
Fix interrupting task on other CPU that has lower prio than current task on current CPU

7 years agoMerge branch 'bugfix/esp32_core_dump_wd_uart' into 'master'
Ivan Grokhotkov [Mon, 6 Feb 2017 09:44:08 +0000 (17:44 +0800)]
Merge branch 'bugfix/esp32_core_dump_wd_uart' into 'master'

esp32: Fixes watchdog problem when printing core dump to uart

1) Fixes watchdog problem when printing core dump to uart
2) Also fixes generation of core dumps when flash cache is disabled

See merge request !472

7 years agoMerge branch 'bugfix/ethernet_flow_ctrl' into 'master'
Wu Jian Gang [Mon, 6 Feb 2017 05:42:18 +0000 (13:42 +0800)]
Merge branch 'bugfix/ethernet_flow_ctrl' into 'master'

ethernet:disable flow control when select l2_to_l3_copy_mode

Disable flow control when select l2_to_l3_copy_mode ,because this mode can not touch flow control watermark  .

See merge request !482

7 years agoethernet:disable flow control when select l2_to_l3_copy_mode
shangke [Mon, 6 Feb 2017 03:19:16 +0000 (11:19 +0800)]
ethernet:disable flow control when select l2_to_l3_copy_mode

7 years agoCI: get test env config from gitlab
He Yin Ling [Thu, 2 Feb 2017 13:59:00 +0000 (21:59 +0800)]
CI: get test env config from gitlab

Previous design was put test env config on local runners. It's not easy
to manage as test runners count growing. Now we'll put config files for
test runners to a Gitlab repository. Test runners will get its config
from Gitlab every time before running.

7 years agoesp32: Fixes watchdog problem when printing core dump to uart
Alexey Gerenkov [Thu, 19 Jan 2017 17:24:55 +0000 (20:24 +0300)]
esp32: Fixes watchdog problem when printing core dump to uart

Also fixes generation of core dumps when flash cache is disabled

7 years agoMerge branch 'bugfix/esp32_core_dump_esptool_search_path' into 'master'
Ivan Grokhotkov [Wed, 1 Feb 2017 05:59:40 +0000 (13:59 +0800)]
Merge branch 'bugfix/esp32_core_dump_esptool_search_path' into 'master'

esp32: Fixed search path for esptool

@igrokhotkov @angus Could you review the fix?

See merge request !474

7 years agoMerge branch 'bugfix/esp32_core_dump_doc' into 'master'
Ivan Grokhotkov [Wed, 1 Feb 2017 05:59:15 +0000 (13:59 +0800)]
Merge branch 'bugfix/esp32_core_dump_doc' into 'master'

esp32: Fixed and updated core dump docs

See merge request !473

7 years agoMerge branch 'feature/openssl_option' into 'master'
Angus Gratton [Fri, 27 Jan 2017 00:37:02 +0000 (08:37 +0800)]
Merge branch 'feature/openssl_option' into 'master'

components/openssl: refactor openssl debugging and assert function

1. add openssl option at menuconfig
2. remove SSL_ERR to reduce complexity
3. add more functions about debugging and assert

According these, our coders and customers may use and debug the OpenSSL code easily.

See merge request !400

7 years agoMerge branch 'bugfix/encrypted_partition_flag' into 'master'
Angus Gratton [Fri, 27 Jan 2017 00:34:08 +0000 (08:34 +0800)]
Merge branch 'bugfix/encrypted_partition_flag' into 'master'

Use PART_FLAG_ENCRYPTED value in gen_esp32part.py

Currently paritions marked as encrypted by gen_esp32part.py are not
recognized as such and encrypted writes don't work.

This is part of espressif/esp-idf#253

Merges Pull Request #293 https://github.com/espressif/esp-idf/pull/293

See merge request !470

7 years agoMerge branch 'feature/custom_partition_table_csv_path' into 'master'
Angus Gratton [Fri, 27 Jan 2017 00:33:41 +0000 (08:33 +0800)]
Merge branch 'feature/custom_partition_table_csv_path' into 'master'

Allow providing custom PARTITION_TABLE_CSV_PATH

Provide direct absolute path to CSV, without project_path

Github pull request #296: https://github.com/espressif/esp-idf/pull/296

See merge request !469

7 years agoMerge branch 'bugfix/spi_multiple_cs_fix' into 'master'
Angus Gratton [Fri, 27 Jan 2017 00:33:16 +0000 (08:33 +0800)]
Merge branch 'bugfix/spi_multiple_cs_fix' into 'master'

Add missing variable initialisation to make SPI work for multiple CS

Ref https://github.com/espressif/esp-idf/pull/277
From PR: "I am not especially familiar with this platform or with esp-idf -- so review with care.

The spi-master driver would not work for me when the number of devices on a bus exceeded 1 (caused device hang). I believe this is because cur_cs is not properly set (anywhere), and yet is used. This is likely just not noticed because 0 is presumably the correct value when there's only 1 device (and I'm guessing multi-device setup is not tested as thoroughly).

Simply setting cur_cs to the correct slot value resolves the problem and multiple devices on a single bus behave correctly in my test environment."

Looks like a small oversight on my side.

See merge request !468

7 years agoesp32: Fixed search path for esptool
Alexey Gerenkov [Thu, 26 Jan 2017 15:01:55 +0000 (18:01 +0300)]
esp32: Fixed search path for esptool

7 years agoesp32: Fixed and updated core dump docs
Alexey Gerenkov [Thu, 26 Jan 2017 15:47:10 +0000 (18:47 +0300)]
esp32: Fixed and updated core dump docs

7 years agoMerge branch 'bugfix/fix_two_wifi_datapath_issues' into 'master'
Jiang Jiang Jian [Thu, 26 Jan 2017 13:52:28 +0000 (21:52 +0800)]
Merge branch 'bugfix/fix_two_wifi_datapath_issues' into 'master'

esp32: udpate wifi lib to fix two datapath issues

1. fix ampdu<->mpdu<->ampdu switch may cause rx slow issue by put mpdu into ampdu reorder queue
2. fix each ac first sending always fail issue by adding retry

See merge request !471

7 years agoesp32: udpate wifi lib to fix two datapath issues
Liu Zhi Fu [Thu, 26 Jan 2017 07:35:04 +0000 (15:35 +0800)]
esp32: udpate wifi lib to fix two datapath issues

1. fix ampdu<->mpdu<->ampdu switch may cause rx slow issue by put mpdu into ampdu reorder queue
2. fix each ac first sending always fail issue by adding retry

7 years agoMerge branch 'feature/add_build_at_job_in_ci' into 'master'
Ivan Grokhotkov [Thu, 26 Jan 2017 02:46:45 +0000 (10:46 +0800)]
Merge branch 'feature/add_build_at_job_in_ci' into 'master'

CI: add job to check build esp-at in esp-idf

Add a job to check if latest IDF breaks `esp-at` build.

As `esp-at` is an application and has its own CI, we don't save binary as artifacts.

See merge request !462

7 years agocomponents/openssl: Add more debugging information at platform level
Dong Heng [Thu, 26 Jan 2017 02:12:58 +0000 (10:12 +0800)]
components/openssl: Add more debugging information at platform level

7 years agoUse PART_FLAG_ENCRYPTED value in gen_esp32part.py
Deomid Ryabkov [Tue, 24 Jan 2017 14:42:02 +0000 (14:42 +0000)]
Use PART_FLAG_ENCRYPTED value in gen_esp32part.py

Currently paritions marked as encrypted by gen_esp32part.py are not
recognized as such and encrypted writes don't work.

This is part of espressif/esp-idf#253

7 years agoAdd missing variable initialisation.
Dermot Duffy [Sat, 21 Jan 2017 15:39:36 +0000 (15:39 +0000)]
Add missing variable initialisation.

Signed-off-by: Jeroen Domburg <jeroen@espressif.com>
7 years agoMerge branch 'lwip/optimize_dhcpc_taken_time' into 'master'
Jiang Jiang Jian [Wed, 25 Jan 2017 13:39:17 +0000 (21:39 +0800)]
Merge branch 'lwip/optimize_dhcpc_taken_time' into 'master'

lwip: optimize the dhcp client

1. modify the discover retry backoff time from (2,4,8,16,32,60,60)s to (500m,1,2,4,8,15,15)s.
2. add DHCP_DOES_ARP_CHECK to menuconfig for users to specify if do a ARP check on the offered address.
   If enable, one more second will be taken.

See merge request !459

7 years agoMerge branch 'bugfix/btdm_debug_gatt_attr_table' into 'master'
Ivan Grokhotkov [Wed, 25 Jan 2017 03:48:09 +0000 (11:48 +0800)]
Merge branch 'bugfix/btdm_debug_gatt_attr_table' into 'master'

component/bt: Fix Gatt table read_req bug and advertising channel 39 not available bug

1. Fix Gatt table read request bug
2. Fix advertising channel 39 not available bug

See merge request !463

7 years agocomponent/bt: Fix Gatt table read_req bug and advertising channel 39 not available bug
Island [Tue, 24 Jan 2017 10:38:50 +0000 (18:38 +0800)]
component/bt: Fix Gatt table read_req bug and advertising channel 39 not available bug

7 years agoAllow providing custom PARTITION_TABLE_CSV_PATH
Deomid Ryabkov [Wed, 21 Dec 2016 18:18:42 +0000 (18:18 +0000)]
Allow providing custom PARTITION_TABLE_CSV_PATH

Provide direct absolute path to CSV, without project_path

7 years agocomponents/openssl: fixes for github issues 219
Dong Heng [Tue, 24 Jan 2017 09:36:32 +0000 (17:36 +0800)]
components/openssl: fixes for github issues 219

"SSL_write" doesn't send large buffers correctly

7 years agoCI: add job to check build esp-at in esp-idf
He Yin Ling [Tue, 24 Jan 2017 07:05:39 +0000 (15:05 +0800)]
CI: add job to check build esp-at in esp-idf

7 years agolwip: optimize the dhcp client
qiyueixa [Sun, 22 Jan 2017 12:32:39 +0000 (20:32 +0800)]
lwip: optimize the dhcp client

1. modify the discover retry backoff time from (2,4,8,16,32,60,60)s to (500m,1,2,4,8,15,15)s.
2. add DHCP_DOES_ARP_CHECK to menuconfig for users to specify if do a ARP check on the offered address.
   If enable, one more second will be taken in obtaining IP address.
3. update wifi libs

7 years agoMerge branch 'feature/spi_flash_write_16bytes' into 'master' v2.0-rc1
Ivan Grokhotkov [Fri, 20 Jan 2017 12:09:48 +0000 (20:09 +0800)]
Merge branch 'feature/spi_flash_write_16bytes' into 'master'

SPI Flash: Allow 16 byte aligned encrypted writes

Also includes some improved documentation

See merge request !456

7 years agospi_flash: Move FLASH_PAGE_SIZE constant into esp_spi_flash.h
Angus Gratton [Fri, 6 Jan 2017 00:24:24 +0000 (11:24 +1100)]
spi_flash: Move FLASH_PAGE_SIZE constant into esp_spi_flash.h

7 years agodocs: spi_flash: Add flash encryption ops, remove boilerplate
Angus Gratton [Fri, 6 Jan 2017 00:17:29 +0000 (11:17 +1100)]
docs: spi_flash: Add flash encryption ops, remove boilerplate

7 years agospi_flash_write_encrypted: Allow 16-byte aligned block writes
Angus Gratton [Wed, 4 Jan 2017 06:53:15 +0000 (17:53 +1100)]
spi_flash_write_encrypted: Allow 16-byte aligned block writes

As each 32 byte write has two identical 16 byte AES blocks, it's
possible to write them separately.

7 years agospi_flash: Flush flash cache if flash_mmap()ing a written-to page
Angus Gratton [Thu, 5 Jan 2017 04:51:02 +0000 (15:51 +1100)]
spi_flash: Flush flash cache if flash_mmap()ing a written-to page

Without this, it's possible for stale information to be read from
cache via mmap, even if the MMU table entry had been invalidated
prior to writing flash (if  the same MMU table entry was re-used after
writing flash.)

7 years agospiflash: Add spi_flash_read_encrypted() function
Angus Gratton [Wed, 4 Jan 2017 06:37:15 +0000 (17:37 +1100)]
spiflash: Add spi_flash_read_encrypted() function

7 years agoMerge branch 'feature/deploy_tags' into 'master'
Ivan Grokhotkov [Fri, 20 Jan 2017 11:38:02 +0000 (19:38 +0800)]
Merge branch 'feature/deploy_tags' into 'master'

ci: deploy code and docs for tags

Currently deploy happens only for the master branch.
This change is needed to support tags in release branches.

See merge request !458

7 years agoci: deploy code and docs for release branches
Ivan Grokhotkov [Fri, 20 Jan 2017 07:46:09 +0000 (15:46 +0800)]
ci: deploy code and docs for release branches

Currently deploy happens only for the master branch.
This change is needed to support release branches.

7 years agoMerge branch 'bugfix/misc_fixes' into 'master'
Ivan Grokhotkov [Fri, 20 Jan 2017 09:53:12 +0000 (17:53 +0800)]
Merge branch 'bugfix/misc_fixes' into 'master'

Misc fixes (including Github PRs)

Collection of single commit fixes, including several from Github.

See merge request !457

7 years agoMerge branch 'feature/docs_gh_link_roles' into 'master'
Ivan Grokhotkov [Fri, 20 Jan 2017 09:47:34 +0000 (17:47 +0800)]
Merge branch 'feature/docs_gh_link_roles' into 'master'

docs: use custom roles to generate GitHub links

This change replaces direct links to GitHub master branch with
auto-generated links using docutils custom roles.
These auto-generated links point to the tree or blob for the git commit
ID (or tag) of the repository. This is needed to ensure that links don’t
become broken when files in master branch are moved around or deleted.

The following roles are introduced:

```
- :idf:`path` - points to directory inside ESP-IDF
- :idf_blob:`path` - points to file inside ESP-IDF
- :idf_raw:`path` - points to raw view of the file inside ESP-IDF
- :component:`path` - points to directory inside ESP-IDF components dir
- :component_blob:`path` - points to file inside ESP-IDF components dir
- :component_raw:`path` - points to raw view of the file inside ESP-IDF
  components dir
- :example:`path` - points to directory inside ESP-IDF examples dir
- :example_blob:`path` - points to file inside ESP-IDF examples dir
- :example_raw:`path` - points to raw view of the file inside ESP-IDF
  examples dir
```

A check is added to the CI build script, which searches RST files for
presence of hard-coded links (identified by tree/master, blob/master,
or raw/master part of the URL).
This check can be run manually: cd docs && make gh-linkcheck

Additionally, Sphinx linkcheck build type is used to create new CI test,
which check for broken links. This test has to be triggered explicitly,
because including it in normal build process (when the commit is not yet
deployed to Github) will not work. It can be triggered in a regular
fashion using a combination of cron and Curl, similar to stress tests.

See merge request !455

7 years agodocs: use custom roles to generate GitHub links
Ivan Grokhotkov [Thu, 19 Jan 2017 08:16:06 +0000 (16:16 +0800)]
docs: use custom roles to generate GitHub links

This change replaces direct links to GitHub master branch with
auto-generated links using docutils custom roles.
These auto-generated links point to the tree or blob for the git commit
ID (or tag) of the repository. This is needed to ensure that links don’t
become broken when files in master branch are moved around or deleted.

The following roles are introduced:

- :idf:`path` - points to directory inside ESP-IDF
- :idf_blob:`path` - points to file inside ESP-IDF
- :idf_raw:`path` - points to raw view of the file inside ESP-IDF
- :component:`path` - points to directory inside ESP-IDF components dir
- :component_blob:`path` - points to file inside ESP-IDF components dir
- :component_raw:`path` - points to raw view of the file inside ESP-IDF
  components dir
- :example:`path` - points to directory inside ESP-IDF examples dir
- :example_blob:`path` - points to file inside ESP-IDF examples dir
- :example_raw:`path` - points to raw view of the file inside ESP-IDF
  examples dir

A check is added to the CI build script, which searches RST files for
presence of hard-coded links (identified by tree/master, blob/master,
or raw/master part of the URL).
This check can be run manually: cd docs && make gh-linkcheck

Additionally, Sphinx linkcheck build type is used to create new CI test,
which check for broken links. This test has to be triggered explicitly,
because including it in normal build process (when the commit is not yet
deployed to Github) will not work. It can be triggered in a regular
fashion using a combination of cron and Curl, similar to stress tests.

7 years agoMerge branch 'feature/esptool_v20_beta' into 'master'
Angus Gratton [Fri, 20 Jan 2017 07:45:03 +0000 (15:45 +0800)]
Merge branch 'feature/esptool_v20_beta' into 'master'

Update esptool.py to v2.0-beta1

* Minor bug fixes, no major functionality changes from the esp-idf perspective.
* Now tracks master branch of esptool repo (finally!)
* Supports Python 3, although our other esp-idf Python tools don't yet support Python 3.

See merge request !396

7 years agogatts_demo: re-enter advertising after client disconnects
Mike Ryan [Thu, 12 Jan 2017 00:40:37 +0000 (16:40 -0800)]
gatts_demo: re-enter advertising after client disconnects

In the existing tree, after a connected client disconnects the device
will never re-enter the advertising state. Additional clients will not
be able to discover or connect to the device. This patch forces the
device back into the advertising state upon disconnection.

Resolves Pull Request #217 https://github.com/espressif/esp-idf/pull/217

7 years agoAdd missing bit from LEDC interrupt state struct.
Dermot Duffy [Sat, 31 Dec 2016 01:09:54 +0000 (01:09 +0000)]
Add missing bit from LEDC interrupt state struct.

Resolves #191 https://github.com/espressif/esp-idf/pull/191

7 years agonetconn_gethostbyname: Fix race reporting success
Jan Schmidt [Fri, 20 Jan 2017 03:17:03 +0000 (14:17 +1100)]
netconn_gethostbyname: Fix race reporting success

If the DNS request is dispatched and performed very quickly,
then it can complete before tcpip_callback() actually returns,
in which case we'll destroy the actual err_t error value passed
in the message. Use a local variable for the tcpip_callback
error code so that can't happen.

Resolves #269 https://github.com/espressif/esp-idf/pull/269

7 years agogpio: Attach gpio intr to the isr_server on the right core.
Jan Schmidt [Thu, 19 Jan 2017 12:46:41 +0000 (23:46 +1100)]
gpio: Attach gpio intr to the isr_server on the right core.

Make sure GPIO interrupts get attached to the core that
the ISR service routine is running on, otherwise they
don't arrive.

7 years agoesp_panic.h: Add C++ include guards
Angus Gratton [Tue, 17 Jan 2017 23:57:53 +0000 (10:57 +1100)]
esp_panic.h: Add C++ include guards

7 years agobt: esp_ble_gatts_send_indicate: Fix description
Angus Gratton [Thu, 12 Jan 2017 02:30:39 +0000 (13:30 +1100)]
bt: esp_ble_gatts_send_indicate: Fix description

7 years agoMerge branch 'bugfix/ci_test_result_always_fail' into 'master'
Ivan Grokhotkov [Fri, 20 Jan 2017 03:13:41 +0000 (11:13 +0800)]
Merge branch 'bugfix/ci_test_result_always_fail' into 'master'

CI: fix bug that test result always fail

CI test report jobs always fails because of 2 bugs:

1. merge/rebase error: the variable used to log test result is modified during merge/rebase
2. path of unit test module definition file is not correct

See merge request !454

7 years agoCI: fix merge error on test report job
He Yin Ling [Thu, 19 Jan 2017 15:37:12 +0000 (23:37 +0800)]
CI: fix merge error on test report job

the variable used to save report result is changed by merge error

7 years agoMerge branch 'bugfix/ethernet_flow_control' into 'master'
Jiang Jiang Jian [Thu, 19 Jan 2017 14:16:40 +0000 (22:16 +0800)]
Merge branch 'bugfix/ethernet_flow_control' into 'master'

ethernet: limit rx buf num when flow ctrl enable.

See merge request !452

7 years agoCI: fix bug that test result always fail
He Yin Ling [Thu, 19 Jan 2017 10:59:50 +0000 (18:59 +0800)]
CI: fix bug that test result always fail

the path of module definition file from unit test is not correct

7 years agoMerge branch 'feature/btdm_raw_adv' into 'master'
Jiang Jiang Jian [Thu, 19 Jan 2017 10:57:39 +0000 (18:57 +0800)]
Merge branch 'feature/btdm_raw_adv' into 'master'

Feature/btdm raw adv

Add APIs to set raw advertising data and scan response data by user self.

See merge request !451

7 years agoMerge branch 'bugfix/fix_ap_not_reply_ba_issue' into 'master'
Wu Jian Gang [Thu, 19 Jan 2017 10:27:48 +0000 (18:27 +0800)]
Merge branch 'bugfix/fix_ap_not_reply_ba_issue' into 'master'

esp32: update wifi lib to fix ap not respond BA bug

Currently softap doesn't replay BA when receiving AMPDU, this fix is to fix this bug

See merge request !453

7 years agoesp32: update wifi lib to fix ap not respond BA bug
Liu Zhi Fu [Thu, 19 Jan 2017 09:32:27 +0000 (17:32 +0800)]
esp32: update wifi lib to fix ap not respond BA bug

Currently softap doesn't respond BA when receiving AMPDU, this fix is to fix this bug

7 years agocomponent/bt : add api to set raw adv_data/scan_rsp_data
Tian Hao [Thu, 19 Jan 2017 03:49:59 +0000 (11:49 +0800)]
component/bt : add api to set raw adv_data/scan_rsp_data

1. add api to set raw scan response data
2. add api to set raw scan response data
3. update doxygen
4. add menuconfig to config gatt server demo

7 years agoethernet: limit rx buf num when flow ctrl enable.
shangke [Thu, 19 Jan 2017 08:45:30 +0000 (16:45 +0800)]
ethernet: limit rx buf num when flow ctrl enable.

7 years agoMerge branch 'bugfix/phy_auto_init' into 'master'
Ivan Grokhotkov [Thu, 19 Jan 2017 05:27:17 +0000 (13:27 +0800)]
Merge branch 'bugfix/phy_auto_init' into 'master'

Move PHY options out of WiFi config, improve descriptions

- move PHY-related settings into new menu, make it dependent on WIFI_ENABLED || BT_ENABLED

- improve descriptions of Ethernet Kconfig options

See merge request !443

7 years agokconfig: define ESP32_PHY_MAX_TX_POWER if PHY_ENABLED
Ivan Grokhotkov [Thu, 19 Jan 2017 02:58:09 +0000 (10:58 +0800)]
kconfig: define ESP32_PHY_MAX_TX_POWER if PHY_ENABLED

ESP32_PHY_MAX_TX_POWER option is only meaningful for WiFi, so previous
change made it depend on WIFI_ENABLED. However if WiFi is not enabled,
but BT is, this option becomes undefined which breaks phy_init_data
generation.

This change turns ESP32_PHY_MAX_TX_POWER into a hidden parameter, which
depends on PHY_ENABLED. New user-visible parameter,
ESP32_PHY_MAX_WIFI_TX_POWER is introduced which depends on WIFI_ENABLED
and is used as default value for ESP32_PHY_MAX_TX_POWER if WIFI_ENABLED
is set. Otherwise ESP32_PHY_MAX_WIFI_TX_POWER is set to 20.

7 years agoMerge branch 'feature/category_readme' into 'master'
Ivan Grokhotkov [Thu, 19 Jan 2017 02:19:06 +0000 (10:19 +0800)]
Merge branch 'feature/category_readme' into 'master'

Readme and links to example category folders

- Added README.md to example category folders, for BT ref. https://github.com/espressif/esp-idf/issues/262
- Added links from api category TOC to example category folders

See merge request !450

7 years agoMerge branch 'bugfix/console_uart_none' into 'master'
Ivan Grokhotkov [Thu, 19 Jan 2017 02:18:33 +0000 (10:18 +0800)]
Merge branch 'bugfix/console_uart_none' into 'master'

Fix compilation if CONSOLE_UART is set to NONE

CONFIG_CONSOLE_UART_BAUDRATE is not defined

See merge request !445

7 years agoMerge branch 'bugfix/lwip_tcpip_printf' into 'master'
Ivan Grokhotkov [Thu, 19 Jan 2017 02:18:12 +0000 (10:18 +0800)]
Merge branch 'bugfix/lwip_tcpip_printf' into 'master'

TCPIP: Do not printf if debug level is not correct

See merge request !448

7 years agoMerge branch 'bugfix/dhcp_debug_printf' into 'master'
Ivan Grokhotkov [Thu, 19 Jan 2017 02:17:53 +0000 (10:17 +0800)]
Merge branch 'bugfix/dhcp_debug_printf' into 'master'

DHCP: Do not printf if debug is not enabled

See merge request !447

7 years agoMerge branch 'bugfix/frc1_timer_clear' into 'master'
Ivan Grokhotkov [Thu, 19 Jan 2017 02:17:36 +0000 (10:17 +0800)]
Merge branch 'bugfix/frc1_timer_clear' into 'master'

newlib: fix register used for DPORT/RTC bug workaround

While there was no register at DR_REG_FRC_TIMER_BASE + 0x60, due to
peripheral address space wraparound this write actually affected one of
FRC2 registers, which is used by WiFi stack to implement legacy
ets_timer APIs.
This change uses FRC_TIMER_LOAD_REG(0) instead, which can be set to
known value safely.

See merge request !449

7 years agoMerge branch 'bugfix/flash_op_unpinned_task' into 'master'
Ivan Grokhotkov [Thu, 19 Jan 2017 02:14:34 +0000 (10:14 +0800)]
Merge branch 'bugfix/flash_op_unpinned_task' into 'master'

fixes for issues observed when using spi_flash

This MR fixes three unrelated issues:

- Race condition in spi_flash_enable_interrupts_caches_and_other_cpu
  when operations on unpinned tasks are performed.
  The issue is reported in https://github.com/espressif/esp-idf/pull/258

- esp_intr_noniram_disable doesn’t disable interrupts when compiled in
  release mode. This issue manifested itself with an illegal instruction
  exception when task WDT ISR was called at the time when flash was
  disabled.
  Fixes https://github.com/espressif/esp-idf/issues/263.

- Tick hooks on CPU1 were not called if CPU0 scheduler was disabled for
  significant amount of time (which could happen when doing flash erase).
  The issue manifested itself as “INT WDT timeout on core 1” error.
  Fixes https://github.com/espressif/esp-idf/issues/219.

See merge request !441

7 years agophyinit: Use PHY config to enable, don't need phy_get_romfunc_addr to init
Angus Gratton [Thu, 19 Jan 2017 00:18:44 +0000 (11:18 +1100)]
phyinit: Use PHY config to enable, don't need phy_get_romfunc_addr to init

7 years agoAdded links from api category TOC to example category folders
krzychb [Wed, 18 Jan 2017 20:04:11 +0000 (21:04 +0100)]
Added links from api category TOC to example category folders

Typo fix in bluetooth README.md

7 years agoAdded README.md to example category folders
krzychb [Wed, 18 Jan 2017 20:03:15 +0000 (21:03 +0100)]
Added README.md to example category folders

7 years agonewlib: fix register used for DPORT/RTC bug workaround
Ivan Grokhotkov [Wed, 18 Jan 2017 14:49:41 +0000 (22:49 +0800)]
newlib: fix register used for DPORT/RTC bug workaround

While there was no register at DR_REG_FRC_TIMER_BASE + 0x60, due to
peripheral address space wraparound this write actually affected one of
FRC2 registers, which is used by WiFi stack to implement legacy
ets_timer APIs.
This change uses FRC_TIMER_LOAD_REG(0) instead, which can be set to
known value safely.

7 years agoMerge branch 'bugfix/docs_cleanup' into 'master'
Ivan Grokhotkov [Wed, 18 Jan 2017 16:33:31 +0000 (00:33 +0800)]
Merge branch 'bugfix/docs_cleanup' into 'master'

Organize examples and API documentation - supplement to !430

This supplement to !430, both intended to replace bulky  !421.

1. Fixed broken links
2. Added links to available examples in API documentation, where missing
3. Updated links to point directly to example folder (to show README.md with example description)
4. Added README.md in docs folder info to point reader to ReadTheDocs instead of doc sources, ref. https://github.com/espressif/esp-idf/issues/243
5. Fixed some typo errors / Sphinx warnings
6. Fixed memory leak in example, ref. https://github.com/espressif/esp-idf/issues/209

See merge request !440

7 years agoethernet: improve kconfig option descriptions
Ivan Grokhotkov [Wed, 18 Jan 2017 16:32:10 +0000 (00:32 +0800)]
ethernet: improve kconfig option descriptions

Also limit suggested EMAC task priority range to 22, as the top priority
should be used only by IPC tasks.

7 years agokconfig: move PHY-related settings into new menu
Tian Hao [Wed, 18 Jan 2017 12:05:26 +0000 (20:05 +0800)]
kconfig: move PHY-related settings into new menu

- PHY options must be shown when either WIFI or BT is enabled.

- Add clarification that TX power option applies to WiFi only.

7 years agofreertos: call tick hooks on CPU1 even if CPU0 scheduler is suspended
Ivan Grokhotkov [Wed, 18 Jan 2017 15:14:29 +0000 (23:14 +0800)]
freertos: call tick hooks on CPU1 even if CPU0 scheduler is suspended

The block which dispatches ticks on CPU1 was a copy of the code block
for the normal path (CPU0). It used to check uxPendedTicks, with the
logic that uxPendedTicks can be 0 iff the scheduler is not suspended.

On CPU1 however, uxPendedTicks is not related to the state of the
scheduler (as uxPendedTicks is updated on CPU0). Due to this, if CPU0
scheduler was suspended, and uxPendedTicks happened to be nonzero,
tick hooks on CPU1 didn’t run, even though CPU1 scheduler was working.

This change removes the check for uxPendedTicks in CPU1 code path,
so that the tick hooks on CPU1 always get called (as for the CPU0 code
path).

7 years agoDo not printf if debug level is not correct
me-no-dev [Wed, 18 Jan 2017 14:13:09 +0000 (16:13 +0200)]
Do not printf if debug level is not correct

7 years agoDo not printf if debug is not enabled
me-no-dev [Wed, 18 Jan 2017 14:06:54 +0000 (16:06 +0200)]
Do not printf if debug is not enabled

7 years agoFix compilation if CONSOLE_UART is set to NONE
me-no-dev [Wed, 18 Jan 2017 13:36:10 +0000 (15:36 +0200)]
Fix compilation if CONSOLE_UART is set to NONE

CONFIG_CONSOLE_UART_BAUDRATE is not defined

7 years agoMerge branch 'bug/tw7809_sta_no_rewiring_softap' into 'master'
Jiang Jiang Jian [Wed, 18 Jan 2017 12:45:08 +0000 (20:45 +0800)]
Merge branch 'bug/tw7809_sta_no_rewiring_softap' into 'master'

tw7809: fix station no rewiring softap probability

See merge request !444

7 years agotw7809: fix station no rewiring softap probability
XiaXiaotian [Wed, 18 Jan 2017 12:17:03 +0000 (20:17 +0800)]
tw7809: fix station no rewiring softap probability

7 years agoMerge branch 'bugfix/partition_write_encrypted' into 'master'
Ivan Grokhotkov [Wed, 18 Jan 2017 10:32:03 +0000 (18:32 +0800)]
Merge branch 'bugfix/partition_write_encrypted' into 'master'

Allow writes to encrypted partitions

There is a size alignment requirement but it is checked by
spi_flash_write_encrypted. However, this check flat-out bans encrypted
writes.

Original PR on Github: https://github.com/espressif/esp-idf/pull/249

See merge request !432

7 years agointr_alloc: mark inline asm operand as earlyclobber
Ivan Grokhotkov [Wed, 18 Jan 2017 10:31:06 +0000 (18:31 +0800)]
intr_alloc: mark inline asm operand as earlyclobber

When compiling in release mode, compiler was choosing same register for
oldint and intmask variables, so INTENABLE was never modified.
This effectively broke disabling of non-IRAM interrupts during flash
operations, observed in the existing tests if task watchdog is enabled.
This change adds an extra constraint tells the compiler that output
operand should not be placed into the same register as an input one.

7 years agoMerge branch 'bugfix/btdm_isr_cache' into 'master'
Jiang Jiang Jian [Wed, 18 Jan 2017 09:38:55 +0000 (17:38 +0800)]
Merge branch 'bugfix/btdm_isr_cache' into 'master'

component/bt : move some codes of controller to iram

1. mv codes which called by isr into iram
2. mv libcoexist.a into iram

See merge request !442

7 years agoMerge branch 'feature/parse_unit_test_cases_from_test_files' into 'master'
Ivan Grokhotkov [Wed, 18 Jan 2017 09:23:04 +0000 (17:23 +0800)]
Merge branch 'feature/parse_unit_test_cases_from_test_files' into 'master'

Parse unit test cases from test files

As of now, we need to sync three different places when adding new unit test cases. The plan is to add a python script in tools/unit-test-app. This script would parse unit test cases from the C files with tests and generate the needed YAML files in components/idf_test/unit_test. CI would run this script in build stage to create the files and unit-test stage would use the generated files to run tests.

To get the needed test metadata, we need to add some more tags in the test case functions. For example:

```
TEST_CASE("SYS_LIB_0102 test time functions", "[stdlib][fails][env=UT_T1_APC]")
{
    //...
}
```

Reason for this kind of implementation is that we need the YAML files for generating documents.

See merge request !275

7 years agoCI: add script for parsing unit test cases for CI from test files
antti [Wed, 7 Dec 2016 05:58:51 +0000 (13:58 +0800)]
CI: add script for parsing unit test cases for CI from test files

Add python script that parses list of unit test cases for CI from component test folder

Modify .gitlab-ci.yml to run this script as part of build unit tests stage

7 years agoesp32: add [ignore] tag to some unit test cases for CI
antti [Wed, 14 Dec 2016 08:38:45 +0000 (16:38 +0800)]
esp32: add [ignore] tag to some unit test cases for CI

Add ignore tag on unit test cases that are not supported in CI yet

7 years agoesp32: add unit testing doc
antti [Mon, 5 Dec 2016 09:29:12 +0000 (17:29 +0800)]
esp32: add unit testing doc

7 years agocomponent/bt : move some codes of controller to iram
Tian Hao [Wed, 18 Jan 2017 08:38:06 +0000 (16:38 +0800)]
component/bt : move some codes of controller to iram

1. mv codes which called by sir into iram
2. mv libcoexist.a into iram

7 years agoMerge branch 'bugfix/btdm_minor_misc' into 'master'
Jiang Jiang Jian [Wed, 18 Jan 2017 08:14:50 +0000 (16:14 +0800)]
Merge branch 'bugfix/btdm_minor_misc' into 'master'

component/bt : fix gatt server table bugs

1. fix gatt server table bugs
2. fix blufi a minor bugs
3. fix example minor mistakes

See merge request !438

7 years agospi_flash: fix race condition when doing operations in unpinned tasks
Ivan Grokhotkov [Wed, 18 Jan 2017 07:07:27 +0000 (15:07 +0800)]
spi_flash: fix race condition when doing operations in unpinned tasks

spi_flash_enable_interrupts_caches_and_other_cpu function used to enable
non-IRAM interrupts after giving up flash operation lock, which would
cause problems if another task was waiting on the lock to start a flash
operation. In fact, non-IRAM interrupts should be re-enabled before the
task scheduler is resumed. Otherwise non-pinned task can be moved to the
other CPU due to preemption, causing esp_intr_noniram_enable to be
called on the other CPU, causing an abort to be triggered.

Fixes the issue reported in
https://github.com/espressif/esp-idf/pull/258

7 years agoMerge branch 'feature/update_gitignore' into 'master'
Ivan Grokhotkov [Wed, 18 Jan 2017 02:32:14 +0000 (10:32 +0800)]
Merge branch 'feature/update_gitignore' into 'master'

Update gitignore for examples

Also ignore .settings since some of us use eclipse.

See merge request !437

7 years agoMerge branch 'bugfix/high_timer_int' into 'master'
Ivan Grokhotkov [Wed, 18 Jan 2017 02:31:03 +0000 (10:31 +0800)]
Merge branch 'bugfix/high_timer_int' into 'master'

Delete option to select core timer 2 as a FreeRTOS tick source

Core timer 2 is unusable for FreeRTOS ticks because it triggers a high-level interrupt. This MR deletes the option to select it.

Ref https://github.com/espressif/esp-idf/issues/234

See merge request !418

7 years agoMerge branch 'feature/add_get_idf_version_api' into 'master'
Wu Jian Gang [Wed, 18 Jan 2017 01:44:53 +0000 (09:44 +0800)]
Merge branch 'feature/add_get_idf_version_api' into 'master'

Add get idf version API

This is same as IDF_VER.

See merge request !435

7 years agoMerge branch 'feature/add_some_configurable_lwip_options' into 'master'
Wu Jian Gang [Wed, 18 Jan 2017 01:44:23 +0000 (09:44 +0800)]
Merge branch 'feature/add_some_configurable_lwip_options' into 'master'

Allow config TCP_MAXRTX & TCP_SYNMAXRTX in menuconfig

See merge request !436

7 years agoFixed memory leak in example, ref. https://github.com/espressif/esp-idf/issues/209
krzychb [Tue, 17 Jan 2017 20:20:24 +0000 (21:20 +0100)]
Fixed memory leak in example, ref. https://github.com/espressif/esp-idf/issues/209

7 years agoTypo corrections
krzychb [Tue, 17 Jan 2017 20:12:54 +0000 (21:12 +0100)]
Typo corrections

7 years agoDocs folder info, ref. https://github.com/espressif/esp-idf/issues/243; Doc title fix
krzychb [Tue, 17 Jan 2017 19:37:27 +0000 (20:37 +0100)]
Docs folder info, ref. https://github.com/espressif/esp-idf/issues/243; Doc title fix

7 years agoUpdated links to point directly to example folder, fixed names
krzychb [Tue, 17 Jan 2017 19:03:26 +0000 (20:03 +0100)]
Updated links to point directly to example folder, fixed names

7 years agoAdded links to examples in API documentation
krzychb [Tue, 17 Jan 2017 18:12:48 +0000 (19:12 +0100)]
Added links to examples in API documentation

7 years agoFixed broken links
krzychb [Tue, 17 Jan 2017 17:53:29 +0000 (18:53 +0100)]
Fixed broken links