]> granicus.if.org Git - esp-idf/log
esp-idf
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 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 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 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.

7 years agorefactor(rtc): change register writing from macros to structures in *_struct.h
michael [Fri, 22 Sep 2017 03:47:11 +0000 (11:47 +0800)]
refactor(rtc): change register writing from macros to structures in *_struct.h

7 years agoMerge branch 'bugfix/ioctl_declaration' into 'master'
Angus Gratton [Tue, 24 Oct 2017 02:02:51 +0000 (10:02 +0800)]
Merge branch 'bugfix/ioctl_declaration' into 'master'

add missing ioctl declaration

See merge request !1442

7 years agofix tcp crash
zhangyanjiao [Tue, 24 Oct 2017 01:43:29 +0000 (09:43 +0800)]
fix tcp crash

7 years agoadd missing ioctl declaration
Ivan Grokhotkov [Mon, 23 Oct 2017 10:03:23 +0000 (18:03 +0800)]
add missing ioctl declaration

Previously ioctl was declared as a macro in lwip/sockets.h.
Disabling LWIP_POSIX_SOCKETS_IO_NAMES removed that declaration.

This adds sys/ioctl.h file and the missing declaration.
Also adds missing includes in vfs.c.

7 years agoSquash the two submissions of previous.
Yulong [Mon, 23 Oct 2017 03:07:03 +0000 (23:07 -0400)]
Squash the two submissions of previous.

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

bt/examples: Change the gattc_multi_connect.c incorrect memory apply method.

7 years agoMerge branch 'bugfix/optmize_ipv6_event' into 'master'
Angus Gratton [Mon, 23 Oct 2017 09:00:10 +0000 (17:00 +0800)]
Merge branch 'bugfix/optmize_ipv6_event' into 'master'

bugfix: add netif info in event message when got ipv6 address

See merge request !959

7 years agopanic handler: Print correct PC & backtrace for debug exceptions
Angus Gratton [Mon, 23 Oct 2017 07:46:43 +0000 (15:46 +0800)]
panic handler: Print correct PC & backtrace for debug exceptions

7 years agocomponent/bt: Fix bug of function smp_decide_association_model
baohongde [Wed, 11 Oct 2017 09:36:46 +0000 (17:36 +0800)]
component/bt: Fix bug of function smp_decide_association_model

7 years agoMerge branch 'feature/esp32_pico_kit_v4_getting_started_guide' into 'master'
Ivan Grokhotkov [Mon, 23 Oct 2017 06:46:04 +0000 (14:46 +0800)]
Merge branch 'feature/esp32_pico_kit_v4_getting_started_guide' into 'master'

ESP32-PICO-KIT V4 Getting Started Guide

See merge request !1418

7 years agobugfix: add netif info in event message when got ipv6 address
Tian Zhong Xing [Wed, 5 Jul 2017 08:29:02 +0000 (16:29 +0800)]
bugfix: add netif info in event message when got ipv6 address

7 years agoMerge branch 'bugfix/unit_tests_build' into 'master'
Ivan Grokhotkov [Mon, 23 Oct 2017 04:14:10 +0000 (12:14 +0800)]
Merge branch 'bugfix/unit_tests_build' into 'master'

spi_flash: fix build error with profiling enabled

See merge request !1437

7 years agoMerge branch 'bugfix/select_fdset' into 'master'
Angus Gratton [Mon, 23 Oct 2017 02:55:33 +0000 (10:55 +0800)]
Merge branch 'bugfix/select_fdset' into 'master'

LWIP: Fix select() FD_SET/FD_GET/etc

See merge request !1435

7 years agoMerge branch 'bugfix/i2c_hw_fsm_recover' into 'master'
Angus Gratton [Mon, 23 Oct 2017 02:16:02 +0000 (10:16 +0800)]
Merge branch 'bugfix/i2c_hw_fsm_recover' into 'master'

bugfix(i2c): add I2C hardware reset if the hw FSM get stuck

See merge request !1272

7 years agospi_flash: fix build error with profiling enabled
Ivan Grokhotkov [Sun, 22 Oct 2017 04:57:56 +0000 (12:57 +0800)]
spi_flash: fix build error with profiling enabled

7 years agoMerge branch 'bugfix/i2s_bck_polariy' into 'master'
Ivan Grokhotkov [Sun, 22 Oct 2017 04:36:27 +0000 (12:36 +0800)]
Merge branch 'bugfix/i2s_bck_polariy' into 'master'

bugfix(i2s): fix bck polarity issue when using pll clock.

See merge request !1428

7 years agoMerge branch 'bugfix/rmt_thresh_check' into 'master'
Ivan Grokhotkov [Sun, 22 Oct 2017 04:35:44 +0000 (12:35 +0800)]
Merge branch 'bugfix/rmt_thresh_check' into 'master'

bugfix(rmt): fix event thresh check issue

See merge request !1423

7 years agoMerge branch 'feature/dfs' into 'master'
Ivan Grokhotkov [Sun, 22 Oct 2017 04:34:11 +0000 (12:34 +0800)]
Merge branch 'feature/dfs' into 'master'

Dynamic frequency scaling

See merge request !1189

7 years agoESP32-PICO-KIT V4 Getting Started Guide
krzychb [Tue, 17 Oct 2017 18:42:36 +0000 (21:42 +0300)]
ESP32-PICO-KIT V4 Getting Started Guide

7 years agobugfix(i2c): add I2C hardware reset if the hw FSM get stuck
Wangjialin [Fri, 15 Sep 2017 11:18:50 +0000 (19:18 +0800)]
bugfix(i2c): add I2C hardware reset if the hw FSM get stuck

Reported from different sources from github or bbs:

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

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

We tested reading several sensor or other I2C slave devices, if the power and SDA/SCL wires are in proper condition, everything works find with reading the slave.
If we remove the power supply for the slave during I2C is reading, or directly connect SDA or SCL to ground, this would  cause the I2C FSM get stuck in wrong state, all we can do is the reset the I2C hardware in this case.
After this commit, no matter whether the power supply of I2C slave is removed or SDA / SCL are shorted to ground, the driver can recover from wrong state.

We are not sure whether this the save issue with the reported one yet, but to make the driver more robust.

Further information:

1. For I2C master mode, we have tested different situations, e.g., to short the SDA/SCL directly to GND/VCC, to short the SDA to SCL, to un-plug the slave device, to power off the slave device. Under all of those situations, this version of driver can recover and keep working.
2. Some slave device will die by accident and keep the SDA in low level, in this case, master should send several clock to make the slave release the bus.
3. Slave mode of ESP32 might also get in wrong state that held the SDA low, in this case, master device could send a stop signal to make esp32 slave release the bus.

Modifications:

1. Disable I2C_MASTER_TRAN_COMP interrupt to void extra interrupt.
2. Disable un-used timeout interrupt for slave.
3. Add bus reset if error detected for master mode.
4. Add bus clear if SDA level is low when error detected.
5. Modify the argument type of i2c_set_pin.
6. add API to set timeout value
7. add parameter check for timing APIs

7 years agonewlib: Disable sys/types.h implementations of FD_SET, etc.
Angus Gratton [Fri, 20 Oct 2017 10:11:32 +0000 (18:11 +0800)]
newlib: Disable sys/types.h implementations of FD_SET, etc.

Temporary measure, until we have VFS-level select() support.

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

7 years agolwip: Make LWIP_SOCKET_OFFSET signed, remove need for underflow check
Angus Gratton [Fri, 20 Oct 2017 10:00:36 +0000 (18:00 +0800)]
lwip: Make LWIP_SOCKET_OFFSET signed, remove need for underflow check

This reverts commit 541493d87769e0fa7fa128f7bdd0c2b5bcaa25d0.

7 years agoMerge branch 'feature/FreeRTOS_Trace_Facilities' into 'master'
Angus Gratton [Fri, 20 Oct 2017 08:42:15 +0000 (16:42 +0800)]
Merge branch 'feature/FreeRTOS_Trace_Facilities' into 'master'

feature/make freertos trace facility configurable

See merge request !1420

7 years agoMerge branch 'feature/i2s_built_in_adc' into 'master'
Ivan Grokhotkov [Fri, 20 Oct 2017 07:52:56 +0000 (15:52 +0800)]
Merge branch 'feature/i2s_built_in_adc' into 'master'

feature(I2S-ADC): add ADC mode for I2S.

See merge request !1077

7 years agofreertos/make trace facility configurable
Darian Leung [Thu, 28 Sep 2017 04:33:53 +0000 (12:33 +0800)]
freertos/make trace facility configurable

This commit makes configUSE_TRACE_FACILITY and
configUSE_STATS_FORMATTING_FUNCTIONS configurable in kconfig. Test cases fro the
functions enabled by the two configurations above have also been added.

Test cases for the following functions have been added...

- uxTaskGetSystemState()
- uxTaskGetTaskNumber()
- vTaskSetTaskNumber()

- xEventGroupClearBitsFromISR()
- xEventGroupSetBitsFromISR()
- uxEventGroupGetNumber()

- uxQueueGetQueueNumber()
- vQueueSetQueueNumber()
- ucQueueGetQueueType()

Test cases for the following functions were not required...

- prvListTaskWithinSingleList()
- prvWriteNameToBuffer()
- vTaskList()

7 years agoMerge branch 'bugfix/touchpad_dac_mismatch_on_tp8_tp9' into 'master'
Angus Gratton [Fri, 20 Oct 2017 06:18:32 +0000 (14:18 +0800)]
Merge branch 'bugfix/touchpad_dac_mismatch_on_tp8_tp9' into 'master'

bugfix(touch): add workaround for touch pad DAC hardware source mismatch on tp8 and tp9.

See merge request !1288

7 years agoMerge branch 'feature/unit-test-configs' into 'master'
Ivan Grokhotkov [Fri, 20 Oct 2017 06:03:53 +0000 (14:03 +0800)]
Merge branch 'feature/unit-test-configs' into 'master'

unit-test-app: add support for testing multiple configurations

See merge request !1249

7 years agoMerge branch 'feature/add_dns_api' into 'master'
Angus Gratton [Fri, 20 Oct 2017 03:54:20 +0000 (11:54 +0800)]
Merge branch 'feature/add_dns_api' into 'master'

tcpip_adapter/lwip: add dns api

See merge request !1405

7 years agoMerge branch 'feature/heap_caps_dump' into 'master'
Angus Gratton [Fri, 20 Oct 2017 03:52:23 +0000 (11:52 +0800)]
Merge branch 'feature/heap_caps_dump' into 'master'

heap: Add heap_caps_dump() / heap_caps_dump_all() functions

See merge request !1422

7 years agoheap: Add heap_caps_dump() / heap_caps_dump_all() functions
Angus Gratton [Wed, 18 Oct 2017 08:25:17 +0000 (16:25 +0800)]
heap: Add heap_caps_dump() / heap_caps_dump_all() functions

Dump the structure of the heap for debugging purposes.

7 years agoMerge branch 'bugfix/init_nvs_flash_in_iperf_example' into 'master'
Ivan Grokhotkov [Fri, 20 Oct 2017 03:03:57 +0000 (11:03 +0800)]
Merge branch 'bugfix/init_nvs_flash_in_iperf_example' into 'master'

example: init nvs in iperf example

See merge request !1429

7 years agoexample: init nvs in iperf example
Liu Zhi Fu [Fri, 20 Oct 2017 01:52:58 +0000 (09:52 +0800)]
example: init nvs in iperf example

Need to call nvs_flash_init in iperf example

7 years agoPrint out in hex format in case non printable data are received
krzychb [Thu, 19 Oct 2017 19:45:58 +0000 (21:45 +0200)]
Print out in hex format in case non printable data are received

7 years agoAdded an asynchronous UART example, using separate RX and TX tasks.
Pieter du Preez [Sun, 1 Oct 2017 11:02:06 +0000 (13:02 +0200)]
Added an asynchronous UART example, using separate RX and TX tasks.

Signed-off-by: krzychb <krzychb@gazeta.pl>
7 years agobugfix(i2s): fix bck polarity issue when using pll clock.
Wangjialin [Thu, 19 Oct 2017 15:23:01 +0000 (23:23 +0800)]
bugfix(i2s): fix bck polarity issue when using pll clock.

reported from github: https://github.com/espressif/esp-idf/issues/1119

Digital team think it is due to the decimal divider.
We can reset the i2s tx and rx when calling i2s_stop to avoid this.

7 years agounit tests: fix warnings, build with -Werror
Ivan Grokhotkov [Wed, 18 Oct 2017 13:09:53 +0000 (21:09 +0800)]
unit tests: fix warnings, build with -Werror

- libsodium: silence warnings
- unit tests: fix warnings
- spiram: fix warnings
- ringbuf test: enable by default, reduce delays

7 years agobuild system: fix warning about undefined variable 'quote'
Ivan Grokhotkov [Wed, 18 Oct 2017 12:43:43 +0000 (20:43 +0800)]
build system: fix warning about undefined variable 'quote'

7 years agosleep: don't power down VDD_SDIO in light sleep if SPIRAM is enabled
Ivan Grokhotkov [Wed, 18 Oct 2017 12:04:40 +0000 (20:04 +0800)]
sleep: don't power down VDD_SDIO in light sleep if SPIRAM is enabled

7 years agoupdate libstdc++.a built with pSRAM workaround
Ivan Grokhotkov [Wed, 18 Oct 2017 12:01:29 +0000 (20:01 +0800)]
update libstdc++.a built with pSRAM workaround

7 years agospi_flash: fix spi_flash_read into buffer in external RAM, add test
Ivan Grokhotkov [Wed, 18 Oct 2017 04:21:19 +0000 (12:21 +0800)]
spi_flash: fix spi_flash_read into buffer in external RAM, add test

7 years agosoc: correct values of SOC_BYTE_ACCESSIBLE_LOW, SOC_MEM_INTERNAL_LOW
Ivan Grokhotkov [Wed, 18 Oct 2017 04:18:38 +0000 (12:18 +0800)]
soc: correct values of SOC_BYTE_ACCESSIBLE_LOW, SOC_MEM_INTERNAL_LOW

Internal byte accessible memory starts with Internal ROM 1 at 0x3FF90000.
Region of RTC fast memory starting at 0x3FF80000 is not used in IDF as
it is mapped to PRO CPU only.

7 years agospi_flash_cache_enabled: report correct result in single core mode
Ivan Grokhotkov [Mon, 18 Sep 2017 09:26:59 +0000 (17:26 +0800)]
spi_flash_cache_enabled: report correct result in single core mode

7 years agounit test: adapt tests to single core configuration
Ivan Grokhotkov [Mon, 18 Sep 2017 06:49:23 +0000 (14:49 +0800)]
unit test: adapt tests to single core configuration

7 years agounit-test: esp timer use same name as ets timer
He Yin Ling [Wed, 13 Sep 2017 14:17:24 +0000 (22:17 +0800)]
unit-test: esp timer use same name as ets timer

We will use case name to select test cases in UT jobs.
Same case name is not allowed.

7 years agoCI: support test UT with different config by CI
He Yin Ling [Wed, 13 Sep 2017 12:39:43 +0000 (20:39 +0800)]
CI: support test UT with different config by CI

7 years agounit-test-app: new targets for building different configurations
Ivan Grokhotkov [Tue, 12 Sep 2017 17:40:54 +0000 (01:40 +0800)]
unit-test-app: new targets for building different configurations

7 years agoMerge branch 'bugfix/malloc_failure' into 'master'
Ivan Grokhotkov [Thu, 19 Oct 2017 13:30:26 +0000 (21:30 +0800)]
Merge branch 'bugfix/malloc_failure' into 'master'

heap: Fix race condition causing malloc() to fail under some conditions

See merge request !1424

7 years agoMerge branch 'bugfix/heap_check_integrity' into 'master'
Ivan Grokhotkov [Thu, 19 Oct 2017 13:30:16 +0000 (21:30 +0800)]
Merge branch 'bugfix/heap_check_integrity' into 'master'

heap: Fix spurious heap_caps_check_integrity() errors in Comprehensive mode

See merge request !1421

7 years agotcpip_adapter/lwip: make dhcp domain name server option configurable
Liu Zhi Fu [Wed, 7 Jun 2017 13:22:53 +0000 (21:22 +0800)]
tcpip_adapter/lwip: make dhcp domain name server option configurable

Add api to configure dhcp option: domain name server

1.closes https://github.com/espressif/esp-idf/issues/162

2.closes https://github.com/espressif/esp-idf/issues/705

7 years agoheap: Fix race condition causing malloc() to fail under some conditions
Angus Gratton [Thu, 19 Oct 2017 07:59:04 +0000 (15:59 +0800)]
heap: Fix race condition causing malloc() to fail under some conditions

During a call to multi_heap_malloc(), if both these conditions were true:
- That heap only has one block large enough for the allocation
  (this is always the case if the heap is unfragmented).
- Another allocation is simultaneously occurring in the same heap.

... multi_heap_malloc() could incorrectly return NULL.

This caused IDF heap_caps_malloc() and malloc() to also fail, particularly
often if only one or two heaps had space for the allocation (otherwise
heap_caps_malloc() fails over to the next heap).

7 years agoMerge branch 'docs/esp32_hooks' into 'master'
Ivan Grokhotkov [Thu, 19 Oct 2017 04:32:36 +0000 (12:32 +0800)]
Merge branch 'docs/esp32_hooks' into 'master'

docs/Added documentation about esp32 hooks

See merge request !1417

7 years agobugfix(rmt): fix event thresh check issue
Wangjialin [Wed, 18 Oct 2017 10:49:09 +0000 (18:49 +0800)]
bugfix(rmt): fix event thresh check issue

reported from: https://github.com/espressif/esp-idf/issues/1011

1. Fix event thresh check issue
2. Change IO number in example in case it conflicts with GPIO16(psram cs pin).

7 years agoMerge branch 'bugfix/fix_some_wifi_bugs' into 'master'
Ivan Grokhotkov [Wed, 18 Oct 2017 08:20:09 +0000 (16:20 +0800)]
Merge branch 'bugfix/fix_some_wifi_bugs' into 'master'

esp32: fix some wifi bugs

See merge request !1414

7 years agoheap: Fix spurious heap_caps_check_integrity() errors in Comprehensive mode
Angus Gratton [Wed, 18 Oct 2017 06:54:55 +0000 (14:54 +0800)]
heap: Fix spurious heap_caps_check_integrity() errors in Comprehensive mode

Heap was not being locked before poisoning, so heap_caps_check_integrity()
would sometimes race with checking the poison bytes and print unnecessary
errors.

Details: https://esp32.com/viewtopic.php?f=2&t=3348&p=15732#p15732

7 years agodocs/Added documentation about esp32 hooks
Darian Leung [Tue, 17 Oct 2017 10:57:31 +0000 (18:57 +0800)]
docs/Added documentation about esp32 hooks

This commit adds documentation about the esp32 Idle and Tick Hooks

7 years agoMerge branch 'bugfix/cxx_exceptions' into 'master'
Angus Gratton [Wed, 18 Oct 2017 07:08:10 +0000 (15:08 +0800)]
Merge branch 'bugfix/cxx_exceptions' into 'master'

Full C++ Exception Support option (& reclaim memory when exceptions disabled)

See merge request !1353

7 years agoesp32: fix some wifi bugs
Deng Xin [Tue, 17 Oct 2017 06:57:45 +0000 (14:57 +0800)]
esp32: fix some wifi bugs

1. Fix WiFi timer enable twice issue
2. Fix a softAP compatibility issue
3. Fix ebuf alloc counter issue
4. remove nvs_flash_init() in esp_wifi_init()
5. Fix scan only find few APs after set bssid
6. Fix can not connect to hidden SoftAP
7. Remove group key entry before connecting ot AP

7 years agoexamples/power_save: enable modem sleep and DFS by default
Ivan Grokhotkov [Tue, 10 Oct 2017 04:33:47 +0000 (12:33 +0800)]
examples/power_save: enable modem sleep and DFS by default

7 years agodocs: add power management API reference
Ivan Grokhotkov [Mon, 9 Oct 2017 06:38:41 +0000 (14:38 +0800)]
docs: add power management API reference

7 years agobt: lock APB frequency while BT controller is enabled
Ivan Grokhotkov [Mon, 9 Oct 2017 07:34:31 +0000 (15:34 +0800)]
bt: lock APB frequency while BT controller is enabled

7 years agofreertos: fix error when including xtensa-timer.h from other components
Ivan Grokhotkov [Sun, 24 Sep 2017 07:46:59 +0000 (15:46 +0800)]
freertos: fix error when including xtensa-timer.h from other components

7 years agoethernet: lock APB frequency while ethernet is enabled
Ivan Grokhotkov [Sun, 24 Sep 2017 07:18:37 +0000 (15:18 +0800)]
ethernet: lock APB frequency while ethernet is enabled