]> granicus.if.org Git - esp-idf/log
esp-idf
6 years agobuild system: Fix undefined variables
Anton Maklakov [Fri, 20 Oct 2017 04:14:41 +0000 (12:14 +0800)]
build system: Fix undefined variables

    make/project.mk:315: warning: undefined variable `CC'
    make/project.mk:316: warning: undefined variable `LD'
    make/project.mk:317: warning: undefined variable `AR'
    make/project.mk:62: warning: undefined variable `MAKECMDGOALS'
    components/partition_table/Makefile.projbuild:24: warning: undefined variable `quote'
    components/bootloader/Makefile.projbuild:123: warning: undefined variable 'BOOTLOADER_DIGEST_BIN'
    components/bootloader/Makefile.projbuild:123: warning: undefined variable 'SECURE_BOOTLOADER_KEY'

6 years agoCI: Fix a sporadic bug when building of the examples. Add logs to the artifacts
Anton Maklakov [Thu, 28 Dec 2017 10:20:14 +0000 (18:20 +0800)]
CI: Fix a sporadic bug when building of the examples. Add logs to the artifacts

6 years agoMerge branch 'bugfix/static_mem_workaround' into 'master'
Ivan Grokhotkov [Thu, 28 Dec 2017 10:52:47 +0000 (18:52 +0800)]
Merge branch 'bugfix/static_mem_workaround' into 'master'

esp32: Change 192KB runtime static limit workaround to a 176KB link time workaround

See merge request !1704

6 years agoMerge branch 'bugfix/btdm_error_when_white_list_is_full' into 'master'
Jiang Jiang Jian [Wed, 27 Dec 2017 10:03:38 +0000 (18:03 +0800)]
Merge branch 'bugfix/btdm_error_when_white_list_is_full' into 'master'

component/bt: Fix bug of adding device to white list has no callback when while list is full

See merge request !1689

6 years agoMerge branch 'bugfix/btdm_disconnect_fail_during_pairing' into 'master'
Jiang Jiang Jian [Wed, 27 Dec 2017 10:03:13 +0000 (18:03 +0800)]
Merge branch 'bugfix/btdm_disconnect_fail_during_pairing' into 'master'

component/bt: Fix bug of disconnected fail during pairing

See merge request !1672

6 years agoMerge branch 'bugfix/idle_task_deletes_currently_running_task' into 'master'
Ivan Grokhotkov [Wed, 27 Dec 2017 08:44:06 +0000 (16:44 +0800)]
Merge branch 'bugfix/idle_task_deletes_currently_running_task' into 'master'

freertos: prvCheckTasksWaitingTermination bugfix

See merge request !1686

6 years agoMerge branch 'cherry-pick-4837f939-2' into 'master'
Jiang Jiang Jian [Wed, 27 Dec 2017 03:43:52 +0000 (11:43 +0800)]
Merge branch 'cherry-pick-4837f939-2' into 'master'

esp_timer:fix three bugs about timer get and timer alarm where overflow is not correct

See merge request !1695

6 years agoMerge branch 'refactor/btdm_spp_client_demo' into 'master'
Jiang Jiang Jian [Wed, 27 Dec 2017 03:43:35 +0000 (11:43 +0800)]
Merge branch 'refactor/btdm_spp_client_demo' into 'master'

component/bt: refactor spp client demo

See merge request !1366

6 years agoMerge branch 'bugfix/btdm_fix_memory_leak_for_SMP' into 'master'
Jiang Jiang Jian [Wed, 27 Dec 2017 03:43:18 +0000 (11:43 +0800)]
Merge branch 'bugfix/btdm_fix_memory_leak_for_SMP' into 'master'

component/bt: fix memory leak in SMP

See merge request !1690

6 years agoMerge branch 'feature/docs_update_rmt_api' into 'master'
Angus Gratton [Wed, 27 Dec 2017 01:23:47 +0000 (09:23 +0800)]
Merge branch 'feature/docs_update_rmt_api' into 'master'

RMT API docs update, new example

See merge request !1564

6 years agoMerge branch 'bugfix/blockdiag_windows_installation' into 'master'
Angus Gratton [Wed, 27 Dec 2017 01:05:12 +0000 (09:05 +0800)]
Merge branch 'bugfix/blockdiag_windows_installation' into 'master'

A workaround for MSYS2 / Windows system to be able to install 'blockdiag'

See merge request !1684

6 years agoMerge branch 'bugfix/iperf_example_bugfix' into 'master'
Angus Gratton [Wed, 27 Dec 2017 01:01:21 +0000 (09:01 +0800)]
Merge branch 'bugfix/iperf_example_bugfix' into 'master'

example: some modification about iperf example

See merge request !1603

6 years agoesp32: Change 192KB runtime static limit workaround to a 176KB link time workaround
Angus Gratton [Fri, 22 Dec 2017 07:36:12 +0000 (18:36 +1100)]
esp32: Change 192KB runtime static limit workaround to a 176KB link time workaround

Turns out some app memory around 0x3ffdc000 is also used by APP CPU.

This is a workaround until code to remove the 176KB limit is committed.

6 years agoMerge branch 'bugfix/add_iic_NACK' into 'master'
Angus Gratton [Wed, 27 Dec 2017 00:49:57 +0000 (08:49 +0800)]
Merge branch 'bugfix/add_iic_NACK' into 'master'

driver(i2c): to specify ack value for last I2C read in a transaction

See merge request !1580

6 years agoadd NACK for the last byte to read
kooho [Tue, 21 Nov 2017 13:10:17 +0000 (21:10 +0800)]
add NACK for the last byte to read

6 years agofreertos: prvCheckTasksWaitingTermination bugfix
Darian Leung [Mon, 18 Dec 2017 13:58:15 +0000 (21:58 +0800)]
freertos: prvCheckTasksWaitingTermination bugfix

Bugfix to prevent a self deleting no affinity task's memory from being freed by the
idle task of the other core before the self deleting no affinity task is able to context
switch out.  prvCheckTasksWaitingTermination now checks if the task is still on
pxCurrentTCB before freeing task memory.

6 years agocomponent/bt: Fix bug of disconnected fail during pairing
baohongde [Thu, 14 Dec 2017 12:19:55 +0000 (20:19 +0800)]
component/bt: Fix bug of disconnected fail during pairing

6 years agocomponent/bt: Fix bug of adding device to white list has no callback when while list...
baohongde [Tue, 19 Dec 2017 08:41:07 +0000 (16:41 +0800)]
component/bt: Fix bug of adding device to white list has no callback when while list is full

6 years agoMerge branch 'bugfix/modify_bt_h' into 'master'
Ivan Grokhotkov [Mon, 25 Dec 2017 06:27:35 +0000 (14:27 +0800)]
Merge branch 'bugfix/modify_bt_h' into 'master'

component/bt : change header file name bt.h to esp_bt.h in new bluetooth example

See merge request !1703

6 years agocomponent/bt : change header file name bt.h to esp_bt.h in new bluetooth example
Tian Hao [Fri, 22 Dec 2017 07:13:45 +0000 (15:13 +0800)]
component/bt : change header file name bt.h to esp_bt.h in new bluetooth example

6 years agoMerge branch 'feature/components_can_add_to_component_make_rules' into 'master'
Ivan Grokhotkov [Fri, 22 Dec 2017 03:40:54 +0000 (11:40 +0800)]
Merge branch 'feature/components_can_add_to_component_make_rules' into 'master'

Support Makefile.componentbuild so components can add to global component make rules

See merge request !1667

6 years agoMerge branch 'feature/editorconfig' into 'master'
Angus Gratton [Thu, 21 Dec 2017 23:37:46 +0000 (07:37 +0800)]
Merge branch 'feature/editorconfig' into 'master'

Add .editorconfig file

See merge request !1682

6 years agoMerge branch 'bugfix/spiram_fails_after_esp_restart' into 'master'
Ivan Grokhotkov [Thu, 21 Dec 2017 05:40:10 +0000 (13:40 +0800)]
Merge branch 'bugfix/spiram_fails_after_esp_restart' into 'master'

Make psram function after an esp_restart as well.

See merge request !1694

6 years agocomponent/bt: refactor spp client demo
xiewenxiang [Mon, 6 Nov 2017 07:35:11 +0000 (15:35 +0800)]
component/bt: refactor spp client demo

 - fix the bug that before free the db pointer, the db was set to NULL

6 years agoMerge branch 'feature/btdm_classic_discovery' into 'master'
Jiang Jiang Jian [Wed, 20 Dec 2017 05:30:31 +0000 (13:30 +0800)]
Merge branch 'feature/btdm_classic_discovery' into 'master'

component/bt: implement Classic Bluetooth GAP APIs for device and service discovery

See merge request !1576

6 years agoAdd support for Makefile.componentbuild files
Jeroen Domburg [Wed, 13 Dec 2017 07:48:49 +0000 (15:48 +0800)]
Add support for Makefile.componentbuild files

6 years agoComponent/bt: fix memory leak in SMP
zhiweijian [Tue, 19 Dec 2017 07:00:01 +0000 (15:00 +0800)]
Component/bt: fix memory leak in SMP

6 years agoMerge branch 'bugfix/btdm_modify_code_format_and_comments' into 'master'
Jiang Jiang Jian [Tue, 19 Dec 2017 12:19:00 +0000 (20:19 +0800)]
Merge branch 'bugfix/btdm_modify_code_format_and_comments' into 'master'

component/bt: modify code format and comments

See merge request !1631

6 years agoMerge branch 'bugfix/btdm_send_data_length_req_after_read_feature_complete' into...
Jiang Jiang Jian [Tue, 19 Dec 2017 12:18:50 +0000 (20:18 +0800)]
Merge branch 'bugfix/btdm_send_data_length_req_after_read_feature_complete' into 'master'

component/bt: send data length request by host after read feature complete

See merge request !1639

6 years agoesp_timer:fix three bugs about timer get and timer alarm where overflow is not correct
Jack [Mon, 27 Nov 2017 14:10:15 +0000 (22:10 +0800)]
esp_timer:fix three bugs about timer get and timer alarm where overflow is not correct

6 years agoFix the clock subsystem so it doesn't undo the weird condition spiram_psram.c jams...
Jeroen Domburg [Tue, 19 Dec 2017 11:12:58 +0000 (19:12 +0800)]
Fix the clock subsystem so it doesn't undo the weird condition spiram_psram.c jams the enable/reset bits of SPI3 in when 80MHz mode is selected anymore

6 years agoexample: some modification about iperf example
Liu Zhi Fu [Mon, 27 Nov 2017 06:34:41 +0000 (14:34 +0800)]
example: some modification about iperf example

Modify default sdkconfig since some WiFi menuconfig options are changed

6 years agoMerge branch 'feature/eth_set_mac_addr' into 'master'
Jiang Jiang Jian [Tue, 19 Dec 2017 09:40:36 +0000 (17:40 +0800)]
Merge branch 'feature/eth_set_mac_addr' into 'master'

emac:add set_eth_mac api

See merge request !1604

6 years agoMerge branch 'bugfix/btdm_optimiz_adv_cb_func' into 'master'
Jiang Jiang Jian [Tue, 19 Dec 2017 09:35:00 +0000 (17:35 +0800)]
Merge branch 'bugfix/btdm_optimiz_adv_cb_func' into 'master'

Bugfix/btdm optimiz adv cb func

See merge request !1619

6 years agoMerge branch 'bugfix/fix_some_wifi_bug' into 'master'
Jiang Jiang Jian [Tue, 19 Dec 2017 09:31:44 +0000 (17:31 +0800)]
Merge branch 'bugfix/fix_some_wifi_bug' into 'master'

Fix some wifi bugs

See merge request !1680

6 years agoMerge branch 'bugfix/btdm_mem_release' into 'master'
Jiang Jiang Jian [Tue, 19 Dec 2017 09:31:09 +0000 (17:31 +0800)]
Merge branch 'bugfix/btdm_mem_release' into 'master'

component/bt : fix btdm mem release cause 0x3ffbbb28-0x3ffbdb28 add to region but should not.

See merge request !1660

6 years agoMerge branch 'bugfix/bootloader_v10_backwards_compat' into 'master'
Ivan Grokhotkov [Mon, 18 Dec 2017 09:20:08 +0000 (17:20 +0800)]
Merge branch 'bugfix/bootloader_v10_backwards_compat' into 'master'

esp32: Fix backwards compatibility for pre-v2.1 bootloaders

See merge request !1673

6 years agoMerge branch 'feature/ringbuf_improvement' into 'master'
Jeroen Domburg [Mon, 18 Dec 2017 08:52:40 +0000 (16:52 +0800)]
Merge branch 'feature/ringbuf_improvement' into 'master'

Feature/ringbuf improvement

See merge request !1571

6 years agoAdd .editorconfig file
Tuan PM [Fri, 15 Dec 2017 16:37:10 +0000 (23:37 +0700)]
Add .editorconfig file

remove newlinet in binary file

editorconfig style guide

correct format for rst hyperlinks

6 years agoA workaround for MSYS2 / Windows system to be able to install 'blockdiag'
krzychb [Mon, 18 Dec 2017 04:31:39 +0000 (05:31 +0100)]
A workaround for MSYS2 / Windows system to be able to install 'blockdiag'

6 years agoesp32: Fix backwards compatibility for pre-v2.1 bootloaders
Angus Gratton [Thu, 14 Dec 2017 23:32:53 +0000 (10:32 +1100)]
esp32: Fix backwards compatibility for pre-v2.1 bootloaders

Older bootloaders don't set RTC_XTAL_FREQ_REG or call rtc_clk_init(),
app needs to pick this up.

Reported at
https://esp32.com/viewtopic.php?f=2&t=3939&p=17836

6 years agoMerge branch 'bugfix/log_tag_variables_static' into 'master'
Angus Gratton [Sun, 17 Dec 2017 23:06:36 +0000 (07:06 +0800)]
Merge branch 'bugfix/log_tag_variables_static' into 'master'

log: Remove non-static TAG variables

See merge request !1674

6 years agoMerge branch 'bugfix/i2c_fixes_pr1180' into 'master'
Angus Gratton [Sun, 17 Dec 2017 22:44:33 +0000 (06:44 +0800)]
Merge branch 'bugfix/i2c_fixes_pr1180' into 'master'

i2c: rx <-> tx typo's, NULLing free'd variable, consistent CRITICAL sects

See merge request !1551

6 years agoMerge branch 'bugfix/windows_10_idf_monitor_redux' into 'master'
Angus Gratton [Sun, 17 Dec 2017 22:42:11 +0000 (06:42 +0800)]
Merge branch 'bugfix/windows_10_idf_monitor_redux' into 'master'

idf_monitor: Fix Windows 10 bug in cases where second console write also fails

See merge request !1675

6 years agoFix some wifi bugs
XiaXiaotian [Fri, 15 Dec 2017 10:17:17 +0000 (18:17 +0800)]
Fix some wifi bugs

1. change first scanning channel to adjust different country code.

2. fix a bug that system crashes when station disconnects from AP.

6 years agocomponent/bt: Optimized broadcast callback function, send the callback function to...
Yulong [Wed, 29 Nov 2017 06:23:21 +0000 (01:23 -0500)]
component/bt: Optimized broadcast callback function, send the callback function to the application after the controller confirms receipt of the broadcast start.

1. optimiz the ble stop adv callback function.
2. added the osi_mutex_unlock in the bta_gattc_wait4_service_change_ccc_cback function when the p_timer_param == NULL ||  p_conn == NULL.

6 years agoemac:add set_eth_mac api
shangke [Mon, 27 Nov 2017 07:58:35 +0000 (15:58 +0800)]
emac:add set_eth_mac api

6 years agoMerge branch 'bugfix/i2c_use_queue_instead_of_eventbit' into 'master'
Angus Gratton [Fri, 15 Dec 2017 05:54:03 +0000 (13:54 +0800)]
Merge branch 'bugfix/i2c_use_queue_instead_of_eventbit' into 'master'

bugfix(i2c): use queue instead of event group for internal commands

See merge request !1616

6 years agoidf_monitor: Fix Windows 10 bug in cases where second console write also fails
Angus Gratton [Fri, 15 Dec 2017 05:45:44 +0000 (16:45 +1100)]
idf_monitor: Fix Windows 10 bug in cases where second console write also fails

Although in my tests the second write always passes, people have reported
different results.

Closes https://github.com/espressif/esp-idf/issues/1136 (again)

6 years agolog: Remove non-static TAG variables
Angus Gratton [Thu, 14 Dec 2017 23:39:07 +0000 (10:39 +1100)]
log: Remove non-static TAG variables

6 years agoMerge branch 'feature/monitor_log_toggle' into 'master'
Angus Gratton [Thu, 14 Dec 2017 22:27:53 +0000 (06:27 +0800)]
Merge branch 'feature/monitor_log_toggle' into 'master'

feat(monitor): add new feature allowing disabling log display.

See merge request !1548

6 years agoMerge branch 'bugfix/heap_alloc_typo' into 'master'
Angus Gratton [Thu, 14 Dec 2017 22:26:14 +0000 (06:26 +0800)]
Merge branch 'bugfix/heap_alloc_typo' into 'master'

fix typo for heap cap free size

See merge request !1669

6 years agofeat(monitor): add pause feature.
michael [Thu, 30 Nov 2017 04:46:08 +0000 (12:46 +0800)]
feat(monitor): add pause feature.

6 years agofeat(monitor): add new feature allowing disabling log display.
michael [Thu, 16 Nov 2017 06:39:57 +0000 (14:39 +0800)]
feat(monitor): add new feature allowing disabling log display.

6 years agoMerge branch 'feature/doc_wroom_modules_with_ESP32-D0WD' into 'master'
Ivan Grokhotkov [Thu, 14 Dec 2017 05:36:49 +0000 (13:36 +0800)]
Merge branch 'feature/doc_wroom_modules_with_ESP32-D0WD' into 'master'

The WROOM and WROVER family of modules is now extended with ESP-WROOM-32D and ESP32-WROOM-32U

See merge request !1654

6 years agoMerge branch 'bugfix/uart1_console' into 'master'
Ivan Grokhotkov [Thu, 14 Dec 2017 05:36:34 +0000 (13:36 +0800)]
Merge branch 'bugfix/uart1_console' into 'master'

Fixes for console output on UART1

See merge request !1649

6 years agoMerge branch 'bugfix/sdmmc_vfs_deinit' into 'master'
Ivan Grokhotkov [Thu, 14 Dec 2017 05:36:20 +0000 (13:36 +0800)]
Merge branch 'bugfix/sdmmc_vfs_deinit' into 'master'

SDSPI bug fixes

See merge request !1647

6 years agofix typo for heap cap free size
Kewal [Wed, 13 Dec 2017 14:52:48 +0000 (22:52 +0800)]
fix typo for heap cap free size

6 years agoMerge branch 'bugfix/eclipse_warning' into 'master'
Angus Gratton [Wed, 13 Dec 2017 22:15:56 +0000 (06:15 +0800)]
Merge branch 'bugfix/eclipse_warning' into 'master'

Resolves: Warning '-s option given but default rule can be matched'. Closes http…

See merge request !1658

6 years agoMerge branch 'master' into 'bugfix/btdm_modify_code_format_and_comments'
Zhi Wei Jian [Wed, 13 Dec 2017 07:42:41 +0000 (15:42 +0800)]
Merge branch 'master' into 'bugfix/btdm_modify_code_format_and_comments'

# Conflicts:
#   examples/bluetooth/gatt_server_service_table/main/gatts_table_creat_demo.c

6 years agoMerge branch 'feature/ulp_docs_update' into 'master'
Ivan Grokhotkov [Wed, 13 Dec 2017 07:36:36 +0000 (15:36 +0800)]
Merge branch 'feature/ulp_docs_update' into 'master'

ULP docs update

See merge request !1640

6 years agocomponent/bt : fix btdm mem release cause 0x3ffbbb28-0x3ffbdb28 add to region but...
Tian Hao [Tue, 12 Dec 2017 07:24:43 +0000 (15:24 +0800)]
component/bt : fix btdm mem release cause 0x3ffbbb28-0x3ffbdb28 add to region but should not.

1. fix the bug. Modify the condition that esp_bt_controller_mem_release() shoud be only called before esp_bt_controller_init() or after esp_bt_controller_deinit()
2. modify the example to use esp_bt_controller_mem_release()

6 years agoMerge branch 'bugfix/rtc_time' into 'master'
Ivan Grokhotkov [Wed, 13 Dec 2017 03:10:45 +0000 (11:10 +0800)]
Merge branch 'bugfix/rtc_time' into 'master'

Fix compilation issue when using RTC time only, update Kconfig help and source code

See merge request !1650

6 years agoMerge branch 'bugfix/fatfs_stat' into 'master'
Ivan Grokhotkov [Wed, 13 Dec 2017 03:10:27 +0000 (11:10 +0800)]
Merge branch 'bugfix/fatfs_stat' into 'master'

Fix stat behavior for FATFS mount point

See merge request !1652

6 years agoComponent/bt: send data length request by host after read feature complete
zhiweijian [Thu, 7 Dec 2017 07:00:06 +0000 (15:00 +0800)]
Component/bt: send data length request by host after read feature complete

6 years agoLinked ESP32 datasheet and regulatory certificates
krzychb [Tue, 12 Dec 2017 07:42:22 +0000 (08:42 +0100)]
Linked ESP32 datasheet and regulatory certificates

6 years agoMerge branch 'feature/spiffs_mtime' into 'master'
Angus Gratton [Tue, 12 Dec 2017 06:43:03 +0000 (14:43 +0800)]
Merge branch 'feature/spiffs_mtime' into 'master'

Add optional mtime support in SPIFFS

See merge request !1579

6 years agoResolves: Warning '-s option given but default rule can be matched'. Closes https...
krzychb [Mon, 11 Dec 2017 21:53:39 +0000 (22:53 +0100)]
Resolves: Warning '-s option given but default rule can be matched'. Closes https://github.com/espressif/esp-idf/issues/1338

6 years agoMerge branch 'bugfix/note_about_main_xtal_frequency_selection' into 'master'
Ivan Grokhotkov [Mon, 11 Dec 2017 07:45:01 +0000 (15:45 +0800)]
Merge branch 'bugfix/note_about_main_xtal_frequency_selection' into 'master'

Getting Started docs: Updated information about setting the main XTAL frequency

See merge request !1645

6 years agoMerge branch 'test/UT_master_slave_mode' into 'master'
Ivan Grokhotkov [Mon, 11 Dec 2017 07:22:51 +0000 (15:22 +0800)]
Merge branch 'test/UT_master_slave_mode' into 'master'

unit-test-app: support multiple devices test cases

See merge request !1220

6 years agoFixed issues identified during review
krzychb [Mon, 11 Dec 2017 07:01:37 +0000 (08:01 +0100)]
Fixed issues identified during review

6 years ago1. Following https://esp32.com/viewtopic.php?f=14&t=3834 and https://github.com/espre...
krzychb [Thu, 7 Dec 2017 21:45:39 +0000 (22:45 +0100)]
1. Following https://esp32.com/viewtopic.php?f=14&t=3834 and https://github.com/espressif/esp-idf/issues/1351 updated information regarding selection of the main XTAL frequency. 2. Removed obsolete note about ': not a valid identifier...', as it does not show up anymore with the latests MSYS2 installation.

6 years agodocs: add information about execution time of ULP instructions
Ivan Grokhotkov [Mon, 11 Dec 2017 04:11:24 +0000 (12:11 +0800)]
docs: add information about execution time of ULP instructions

6 years agoMerge branch 'bugfix/gpio_config_block' into 'master'
Angus Gratton [Mon, 11 Dec 2017 04:56:39 +0000 (12:56 +0800)]
Merge branch 'bugfix/gpio_config_block' into 'master'

driver(GPIO): use ULL for IO bit mask

See merge request !1627

6 years agoMerge branch 'bugfix/minor_fixes_github' into 'master'
Angus Gratton [Mon, 11 Dec 2017 04:51:41 +0000 (12:51 +0800)]
Merge branch 'bugfix/minor_fixes_github' into 'master'

Minor fixes from github

See merge request !1638

6 years agotime: rename time source option from FRC to "high-resolution timer"
Ivan Grokhotkov [Fri, 8 Dec 2017 08:14:20 +0000 (16:14 +0800)]
time: rename time source option from FRC to "high-resolution timer"

libc time function now rely on esp_timer_get_time as the source of
high-resolution time, rather than FRC1 timer. Internally, on the ESP32
esp_timer implementation uses FRC2 timer.

- Change help text and labels in Kconfig to use "high-resolution timer"
  instead of FRC1. Keep existing Kconfig option name to be backwards
  compatible.
- Change references to "FRC1" in the source code to "FRC".

6 years agoulp: document the need to wait for RTC to be ready for wakeup
Ivan Grokhotkov [Thu, 7 Dec 2017 09:11:24 +0000 (17:11 +0800)]
ulp: document the need to wait for RTC to be ready for wakeup

6 years agoulp: mention that instructions array must be declared in local scope
Ivan Grokhotkov [Thu, 7 Dec 2017 06:41:17 +0000 (14:41 +0800)]
ulp: mention that instructions array must be declared in local scope

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

6 years agodocs: add description of ULP I2C instructions
Ivan Grokhotkov [Thu, 7 Dec 2017 03:50:39 +0000 (11:50 +0800)]
docs: add description of ULP I2C instructions

6 years agoMerge branch 'bugfix/openssl_alpn' into 'master'
Angus Gratton [Mon, 11 Dec 2017 04:03:11 +0000 (12:03 +0800)]
Merge branch 'bugfix/openssl_alpn' into 'master'

openssl: add feature check for MBEDTLS_SSL_ALPN

See merge request !1648

6 years agovfs/fatfs: use structures with bit fields for FAT date/time
Ivan Grokhotkov [Fri, 8 Dec 2017 12:03:24 +0000 (20:03 +0800)]
vfs/fatfs: use structures with bit fields for FAT date/time

Replace explicit masks and shifts with bit fields when working with FATFS date and time representations. Also zero-initialize remaining members of struct tm.

Fixes https://github.com/espressif/esp-idf/issues/1369.

6 years agoi2c: rx <-> tx typo's, NULLing free'd variable, consistent CRITICAL sects
Chuck Todd [Fri, 27 Oct 2017 22:59:10 +0000 (16:59 -0600)]
i2c: rx <-> tx typo's, NULLing free'd variable, consistent CRITICAL sects

A couple of typos referencing tx_ring_buf when rx_ring_buf, slv_tx_mux
instead of slv_rx_mux.

Also, I2C_ENTER_CRITICAL()/I2C_EXIT_CRITICAL() usage was not consistent.
Only some of the _set_ functions had them.  Most of the _get_ function
had them?  It is my understanding that they should be wrapped around
writes, not reads? (I think we still need the lock for reading pairs of consistent values)

Also, the ticks_to_wait timeout handling in i2c_master_cmd_begin() would
not handle integer rollover correctly.

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

6 years agofatfs: fix double free in bailout path of esp_vfs_fat_sdmmc_mount
Ivan Grokhotkov [Mon, 11 Dec 2017 03:06:29 +0000 (11:06 +0800)]
fatfs: fix double free in bailout path of esp_vfs_fat_sdmmc_mount

Fixes https://github.com/espressif/esp-idf/issues/1370

6 years agosdspi: use response timeout passed from upper layer
Ivan Grokhotkov [Fri, 8 Dec 2017 04:23:54 +0000 (12:23 +0800)]
sdspi: use response timeout passed from upper layer

Previously SDSPI host driver would rely on retry count when waiting for
the card to read or write data. This caused different timeout times
depending on CPU frequency and card clock frequency. In practice, card
performance does not depend on these two factors.
This change uses timeout_ms field of sdmmc_command_t introduced
previously for SDMMC host.

Fixes https://esp32.com/viewtopic.php?f=2&t=3440&p=16037 and similar
issues related to SDSPI timeouts.

6 years agofatfs: fix deinit not called for SDSPI host
Ivan Grokhotkov [Fri, 8 Dec 2017 04:17:58 +0000 (12:17 +0800)]
fatfs: fix deinit not called for SDSPI host

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

6 years agoThe WROOM and WROVER family of modules is now extended with ESP-WROOM-32D and ESP32...
krzychb [Fri, 8 Dec 2017 19:46:44 +0000 (20:46 +0100)]
The WROOM and WROVER family of modules is now extended with ESP-WROOM-32D and ESP32-WROOM-32U

6 years agovfs/fatfs: fix stat call failing when called for mount point
Ivan Grokhotkov [Fri, 8 Dec 2017 11:58:39 +0000 (19:58 +0800)]
vfs/fatfs: fix stat call failing when called for mount point

FATFS does not support f_stat call for drive root. When handling stat
for drive root, don't call f_stat and just return struct st with S_IFDIR
flag set.

Closes #984

6 years agonewlib/time: fix compilation error when only RTC is used as clock source
Ivan Grokhotkov [Fri, 8 Dec 2017 08:06:11 +0000 (16:06 +0800)]
newlib/time: fix compilation error when only RTC is used as clock source

Fixes https://github.com/espressif/esp-idf/issues/1245

6 years agodriver(i2c): corrected timeout range for i2c_set_timeout.
Fabiano Kovalski [Wed, 6 Dec 2017 05:54:59 +0000 (00:54 -0500)]
driver(i2c): corrected timeout range for i2c_set_timeout.

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

6 years agoMerge branch 'feature/btdm_modify_header_file_name' into 'master'
Ivan Grokhotkov [Fri, 8 Dec 2017 06:03:15 +0000 (14:03 +0800)]
Merge branch 'feature/btdm_modify_header_file_name' into 'master'

component/btdm : change bt.h name to esp_bt.h to form the name prefix

See merge request !1644

6 years agoMerge branch 'bugfix/heap_trace_realloc' into 'master'
Ivan Grokhotkov [Fri, 8 Dec 2017 06:02:48 +0000 (14:02 +0800)]
Merge branch 'bugfix/heap_trace_realloc' into 'master'

heap_trace: fix bug in realloc for copying trace record

See merge request !1643

6 years agobootloader: don't log anything before uart_console_configure is called
Ivan Grokhotkov [Fri, 8 Dec 2017 05:15:40 +0000 (13:15 +0800)]
bootloader: don't log anything before uart_console_configure is called

6 years agoesp32: fix incorrect clock enable bit name for UART0
Ivan Grokhotkov [Fri, 8 Dec 2017 05:14:36 +0000 (13:14 +0800)]
esp32: fix incorrect clock enable bit name for UART0

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

6 years agoopenssl: add feature check for MBEDTLS_SSL_ALPN
Ivan Grokhotkov [Fri, 8 Dec 2017 05:00:11 +0000 (13:00 +0800)]
openssl: add feature check for MBEDTLS_SSL_ALPN

Fixes https://github.com/espressif/esp-idf/issues/1342

6 years agocomponent/btdm : change bt.h name to esp_bt.h to form the name prefix
Tian Hao [Thu, 7 Dec 2017 13:48:27 +0000 (21:48 +0800)]
component/btdm : change bt.h name to esp_bt.h to form the name prefix

6 years agoheap_trace: fix bug in realloc for copying trace record
Mahavir Jain [Thu, 7 Dec 2017 12:49:40 +0000 (18:19 +0530)]
heap_trace: fix bug in realloc for copying trace record

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

Signed-off-by: Mahavir Jain <mahavir@espressif.com>
6 years agofreertos/ringbuf: Added an API xRingbufferCreateNoSplit()
Piyush Shah [Thu, 23 Nov 2017 10:09:17 +0000 (15:39 +0530)]
freertos/ringbuf: Added an API xRingbufferCreateNoSplit()

This is a wrapper API for creating a Ring Buffer, which ensures that
the ringbuffer can hold the given number of items, each item being of the
same given length.

Signed-off-by: Piyush Shah <piyush@espressif.com>
6 years agofreertos/ringbuf: Add an API xRingbufferIsNextItemWrapped()
Piyush Shah [Mon, 20 Nov 2017 14:52:20 +0000 (20:22 +0530)]
freertos/ringbuf: Add an API xRingbufferIsNextItemWrapped()

Useful to check if the next item to receive is wrapped or not.
This is valid only if the ring buffer is initialised with type
RINGBUF_TYPE_ALLOWSPLIT.

This is as per the feature request here:
https://github.com/espressif/esp-idf/issues/806

Signed-off-by: Piyush Shah <piyush@espressif.com>
6 years agofreertos/ringbuf: Add an API xRingbufferGetCurFreeSize() to fetch current free size...
Piyush Shah [Mon, 20 Nov 2017 13:53:25 +0000 (19:23 +0530)]
freertos/ringbuf: Add an API xRingbufferGetCurFreeSize() to fetch current free size available

The earlier available API (xRingbufferGetMaxItemSize())just gives
a static max entry value possible for given ring buffer.
There was a feature request for an API which could provide
a real time available buffer size. See below:

https://github.com/espressif/esp-idf/issues/806

Signed-off-by: Piyush Shah <piyush@espressif.com>
6 years agounit-test-app: support multiple devices test cases:
houchenyao [Thu, 30 Nov 2017 11:31:51 +0000 (19:31 +0800)]
unit-test-app: support multiple devices test cases:

current unit-test-app don't support test components need to communicate
with each other (like GPIO, SPI ...). Now we add multiple devices mode
to unit test app, support writing and running test with multiple DUTs.

please refer to `docs/api-guides/unit-tests.rst` for detail.