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

6 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.

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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.

6 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

6 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

6 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()

6 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

6 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

6 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

6 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

6 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.

6 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

6 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

6 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.

6 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

6 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'

6 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

6 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

6 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

6 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.

6 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

6 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

6 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.

6 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

6 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

6 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

6 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

6 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

6 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).

6 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

6 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).

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 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

6 years agospi slave: lock APB frequency while driver is in use
Ivan Grokhotkov [Sun, 24 Sep 2017 07:05:35 +0000 (15:05 +0800)]
spi slave: lock APB frequency while driver is in use

6 years agospi master: lock APB frequency while in transaction
Ivan Grokhotkov [Sun, 24 Sep 2017 06:59:15 +0000 (14:59 +0800)]
spi master: lock APB frequency while in transaction

6 years agosdmmc: lock APB frequency while in transaction
Ivan Grokhotkov [Sun, 24 Sep 2017 06:37:37 +0000 (14:37 +0800)]
sdmmc: lock APB frequency while in transaction

6 years agosysview: always use TG as timestamp source
Ivan Grokhotkov [Tue, 29 Aug 2017 10:34:43 +0000 (18:34 +0800)]
sysview: always use TG as timestamp source

6 years agouart: add support for REF_TICK
Ivan Grokhotkov [Mon, 21 Aug 2017 14:30:23 +0000 (22:30 +0800)]
uart: add support for REF_TICK

6 years agofreertos: deprecate XT_CLOCK_FREQ
Ivan Grokhotkov [Fri, 22 Sep 2017 15:09:16 +0000 (23:09 +0800)]
freertos: deprecate XT_CLOCK_FREQ

- freertos: add deprecated definition for XT_CLOCK_FREQ
- flash_ops: don't use XT_CLOCK_FREQ
- unity: don't use XT_CLOCK_FREQ
- hw_random: don't use XT_CLOCK_FREQ
- core_dump: don't use XT_CLOCK_FREQ
- app_trace: don't use XT_CLOCK_FREQ
- xtensa_init: init xt_tick_divisor

6 years agoesp32: add power management hooks for WiFi library
Ivan Grokhotkov [Fri, 22 Sep 2017 15:34:52 +0000 (23:34 +0800)]
esp32: add power management hooks for WiFi library

6 years agoesp_timer: add support for frequency scaling
Ivan Grokhotkov [Mon, 9 Oct 2017 07:24:51 +0000 (15:24 +0800)]
esp_timer: add support for frequency scaling

6 years agopm: support for tracing using GPIOs
Ivan Grokhotkov [Fri, 22 Sep 2017 15:26:09 +0000 (23:26 +0800)]
pm: support for tracing using GPIOs

6 years agofreertos: add frequency switching hooks to ISR and idle task
Ivan Grokhotkov [Fri, 22 Sep 2017 15:06:52 +0000 (23:06 +0800)]
freertos: add frequency switching hooks to ISR and idle task

6 years agoesp32: initialize PM at startup, add Kconfig options
Ivan Grokhotkov [Fri, 22 Sep 2017 15:02:58 +0000 (23:02 +0800)]
esp32: initialize PM at startup, add Kconfig options

6 years agopm: initial implementation for ESP32
Ivan Grokhotkov [Fri, 22 Sep 2017 15:30:13 +0000 (23:30 +0800)]
pm: initial implementation for ESP32

6 years agopm: initial version of power management APIs
Ivan Grokhotkov [Fri, 22 Sep 2017 15:29:33 +0000 (23:29 +0800)]
pm: initial version of power management APIs

6 years agounit tests: add test to dump esp_timer stats
Ivan Grokhotkov [Fri, 22 Sep 2017 15:16:52 +0000 (23:16 +0800)]
unit tests: add test to dump esp_timer stats

6 years agounit tests: more robust esp_timer test
Ivan Grokhotkov [Thu, 7 Sep 2017 17:32:18 +0000 (01:32 +0800)]
unit tests: more robust esp_timer test

6 years agounit tests: fix ref_clock value obtained due to overflow
Ivan Grokhotkov [Thu, 7 Sep 2017 17:33:20 +0000 (01:33 +0800)]
unit tests: fix ref_clock value obtained due to overflow

6 years agosoc/rtc: add function to convert CPU frequency in MHz to rtc_cpu_freq_t
Ivan Grokhotkov [Fri, 13 Oct 2017 16:27:56 +0000 (00:27 +0800)]
soc/rtc: add function to convert CPU frequency in MHz to rtc_cpu_freq_t

6 years agosoc/rtc: add fast paths for switching between PLL and XTAL
Ivan Grokhotkov [Mon, 21 Aug 2017 14:34:42 +0000 (22:34 +0800)]
soc/rtc: add fast paths for switching between PLL and XTAL

6 years agoesp_clk.h: make public, add getters for RTC time, CPU/APB freq
Ivan Grokhotkov [Fri, 22 Sep 2017 15:04:16 +0000 (23:04 +0800)]
esp_clk.h: make public, add getters for RTC time, CPU/APB freq

6 years agomake esp_timer.h public
Ivan Grokhotkov [Sun, 15 Oct 2017 16:37:00 +0000 (00:37 +0800)]
make esp_timer.h public

6 years agocrosscore_int: add support for FREQ_SWITCH event
Ivan Grokhotkov [Mon, 21 Aug 2017 14:29:08 +0000 (22:29 +0800)]
crosscore_int: add support for FREQ_SWITCH event

6 years agoMerge branch 'feature/fsync' into 'master'
Ivan Grokhotkov [Tue, 17 Oct 2017 23:17:56 +0000 (07:17 +0800)]
Merge branch 'feature/fsync' into 'master'

vfs,fat: add fsync to VFS interface, implement it for fatfs

See merge request !1412

6 years agoMerge branch 'feature/update_phy362_rtc230' into 'master'
Ivan Grokhotkov [Tue, 17 Oct 2017 10:20:25 +0000 (18:20 +0800)]
Merge branch 'feature/update_phy362_rtc230' into 'master'

component/esp32 : update phy & rtc

See merge request !1411

6 years agocomponent/esp32 : update phy & rtc
Tian Hao [Tue, 17 Oct 2017 03:22:46 +0000 (11:22 +0800)]
component/esp32 : update phy & rtc

RTC V230
add BT AGC saturation protection, replace RTC V229.

PHY V362
Power up print: "phy_version: 362.0, 61e8d92, Sep 8 2017, 18:48:13"
1. esp_init_data_v3.bin
modify TX target power
modify WIFI & BT RX gain table
2. modify phy_close_rf()
3. add phy_set_most_tpw()
4. 26M crystal work OK
5. noise_check_loop ok

6 years agoMerge branch 'bugfix/slave_dma_claim' into 'master'
Ivan Grokhotkov [Tue, 17 Oct 2017 09:41:39 +0000 (17:41 +0800)]
Merge branch 'bugfix/slave_dma_claim' into 'master'

fix(spi_slave): enable DMA clock when initialization.

See merge request !1385

6 years agoMerge branch 'feature/reduce_min_num_of_wifi_static_tx_buffer' into 'master'
Ivan Grokhotkov [Tue, 17 Oct 2017 09:40:14 +0000 (17:40 +0800)]
Merge branch 'feature/reduce_min_num_of_wifi_static_tx_buffer' into 'master'

Reduce minimum number of WiFi static tx buffer

See merge request !1398

6 years agopthreads local storage: add test for unique keys
Angus Gratton [Tue, 10 Oct 2017 00:50:02 +0000 (11:50 +1100)]
pthreads local storage: add test for unique keys

6 years agounit tests: If heap tracing is enabled in sdkconfig, leak trace each test
Angus Gratton [Wed, 4 Oct 2017 06:30:10 +0000 (17:30 +1100)]
unit tests: If heap tracing is enabled in sdkconfig, leak trace each test

6 years agocxx: Add KConfig option for C++ exceptions, disable by default
Angus Gratton [Wed, 4 Oct 2017 06:29:21 +0000 (17:29 +1100)]
cxx: Add KConfig option for C++ exceptions, disable by default

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

(Additional 20KB is still used if C++ exception support is enabled in
menuconfig.)

6 years agovfs,fat: add fsync to VFS interface, implement it for fatfs
Ivan Grokhotkov [Tue, 17 Oct 2017 06:00:01 +0000 (14:00 +0800)]
vfs,fat: add fsync to VFS interface, implement it for fatfs

6 years agoUnit tests: If a test fails due to corrupting memory, don't print a misleading source...
Angus Gratton [Wed, 4 Oct 2017 05:00:38 +0000 (16:00 +1100)]
Unit tests: If a test fails due to corrupting memory, don't print a misleading source file name

6 years agoidf_monitor: Demangle C++ names
Angus Gratton [Wed, 4 Oct 2017 05:00:28 +0000 (16:00 +1100)]
idf_monitor: Demangle C++ names

6 years agocxx: Add a sanity check for C++ exception support
Angus Gratton [Wed, 4 Oct 2017 05:00:11 +0000 (16:00 +1100)]
cxx: Add a sanity check for C++ exception support

6 years agopthread: Add support for pthread thread local storage
Angus Gratton [Wed, 4 Oct 2017 04:52:19 +0000 (15:52 +1100)]
pthread: Add support for pthread thread local storage

Refactors LWIP to use this for the LWIP thread local semaphore

6 years agofreertos: Idle task shouldn't hold xTaskQueueMutex while calling TLS destructors
Angus Gratton [Thu, 5 Oct 2017 01:12:19 +0000 (12:12 +1100)]
freertos: Idle task shouldn't hold xTaskQueueMutex while calling TLS destructors

If the callbacks use any blocking call (ie printf), this can otherwise trigger a deadlock.

6 years agocxx tests: Fix race condition w/ leak checker when tearing down test tasks
Angus Gratton [Wed, 4 Oct 2017 02:25:16 +0000 (13:25 +1100)]
cxx tests: Fix race condition w/ leak checker when tearing down test tasks

6 years agoMerge branch 'feature/sockets_files_shared_fd_space' into 'master'
Angus Gratton [Tue, 17 Oct 2017 06:17:09 +0000 (14:17 +0800)]
Merge branch 'feature/sockets_files_shared_fd_space' into 'master'

lwip & vfs: POSIX I/O functions operate on sockets and files (first stage, no select() yet)

See merge request !1352

6 years agoMerge branch 'bugfix/add_mutex_for_dual_core_hooks' into 'master'
Ivan Grokhotkov [Tue, 17 Oct 2017 06:15:09 +0000 (14:15 +0800)]
Merge branch 'bugfix/add_mutex_for_dual_core_hooks' into 'master'

freertos/Add mutex for dual core hooks

See merge request !1406

6 years agoMerge branch 'bugfix/ets_timer_iram' into 'master'
Ivan Grokhotkov [Tue, 17 Oct 2017 06:12:43 +0000 (14:12 +0800)]
Merge branch 'bugfix/ets_timer_iram' into 'master'

wifi/bt coexistence: Fix disabled cache access race when writing to flash

See merge request !1409

6 years agofix(spi_slave): enable DMA clock when initialization.
Gabriel Carstoiu [Fri, 22 Sep 2017 09:47:06 +0000 (17:47 +0800)]
fix(spi_slave): enable DMA clock when initialization.

merging in the code updates to the SPI master code done in commit b834fcf78aa4cc16d4c3f5349286df3580d24edb.

TW#15670, Closes #1027

6 years agofix(periph_ctrl): fix reset function in `periph_ctrl.c`
michael [Tue, 17 Oct 2017 03:52:50 +0000 (11:52 +0800)]
fix(periph_ctrl): fix reset function in `periph_ctrl.c`

6 years agofeat(spi_slave): append trans_len field in trans_desc to show length actually transfe...
michael [Sat, 30 Sep 2017 11:59:05 +0000 (19:59 +0800)]
feat(spi_slave): append trans_len field in trans_desc to show length actually transferred.

6 years agoMerge branch 'feature/spiram_init_in_app' into 'master'
Ivan Grokhotkov [Mon, 16 Oct 2017 20:56:35 +0000 (04:56 +0800)]
Merge branch 'feature/spiram_init_in_app' into 'master'

spiram: expose function to initialize SPI RAM cache

See merge request !1281

6 years agoMerge branch 'bugfix/soc_component_rodata' into 'master'
Ivan Grokhotkov [Mon, 16 Oct 2017 20:54:43 +0000 (04:54 +0800)]
Merge branch 'bugfix/soc_component_rodata' into 'master'

soc: place constant data from rtc_clk.c into DRAM

See merge request !1321

6 years agoMerge branch 'bugfix/sd_card_fixes' into 'master'
Ivan Grokhotkov [Mon, 16 Oct 2017 20:45:24 +0000 (04:45 +0800)]
Merge branch 'bugfix/sd_card_fixes' into 'master'

SD card fixes

See merge request !1393