]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agombedtls: Re-apply MBEDTLS_BIGNUM_ALT & related macros for custom bignum functions
Angus Gratton [Wed, 6 Sep 2017 05:06:57 +0000 (15:06 +1000)]
mbedtls: Re-apply MBEDTLS_BIGNUM_ALT & related macros for custom bignum functions

(IDF-specific patch.)

7 years agombedtls: Update to 2.6.0 release (without IDF-specific patches)
Angus Gratton [Wed, 6 Sep 2017 05:05:55 +0000 (15:05 +1000)]
mbedtls: Update to 2.6.0 release (without IDF-specific patches)

7 years agoMerge branch 'test/modify_mtu_cases' into 'master'
Ivan Grokhotkov [Thu, 7 Sep 2017 06:27:41 +0000 (14:27 +0800)]
Merge branch 'test/modify_mtu_cases' into 'master'

test: update BLE GATT MTU cases

See merge request !1223

7 years agotest:update BLE GATT MTU cases
chensheng [Wed, 6 Sep 2017 03:19:10 +0000 (11:19 +0800)]
test:update BLE GATT MTU cases

7 years agoMerge branch 'feature/update_wifi_lib_for_some_feature_and_bugfix' into 'master'
Jiang Jiang Jian [Thu, 7 Sep 2017 05:24:24 +0000 (13:24 +0800)]
Merge branch 'feature/update_wifi_lib_for_some_feature_and_bugfix' into 'master'

esp32: update wifi lib for a bunch of small feature and bugfix

See merge request !1222

7 years agoMerge branch 'bugfix/spi_cache_disable_adjustments_iram' into 'master'
Ivan Grokhotkov [Thu, 7 Sep 2017 03:02:21 +0000 (11:02 +0800)]
Merge branch 'bugfix/spi_cache_disable_adjustments_iram' into 'master'

Make sure cache is disabled/enabled when *both* CPUs are running inside the iram guard code

See merge request !1208

7 years agoesp32: update wifi lib for a bunch of small feature and bugfix
Liu Zhi Fu [Wed, 6 Sep 2017 03:24:42 +0000 (11:24 +0800)]
esp32: update wifi lib for a bunch of small feature and bugfix

1. Update RTC V229: add BT AGC saturation protection
2. Update PHY V359: (1). esp_init_data_v2.bin -- modify WIFI and BT RX gain table Setting
                    (2). modify phy_close_rf()
                    (3). noisefloor add limit and no print
3. WiFi supports modem sleep dynamic frequency switch
4. Fix disabling AMPDU cause esp_wifi_init fail issue
5. Fix sniffer mode cause WiFi can't connect issue
6. Optimize an internal rx buffer full issue
7. Rollback the internal wifi init flag when wifi init fail

7 years agoMerge branch 'feature/register_heaps_runtime' into 'master'
Angus Gratton [Thu, 7 Sep 2017 02:18:21 +0000 (10:18 +0800)]
Merge branch 'feature/register_heaps_runtime' into 'master'

heap: Support adding new heap regions at runtime

See merge request !1159

7 years agoMerge branch 'bugfix/http_to_https_url_changes' into 'master'
Angus Gratton [Thu, 7 Sep 2017 02:16:43 +0000 (10:16 +0800)]
Merge branch 'bugfix/http_to_https_url_changes' into 'master'

Mass replacement of http with https urls, fixed broken urls

See merge request !1221

7 years agoMerge branch 'bugfix/btdm_unloaded_memory' into 'master'
Angus Gratton [Thu, 7 Sep 2017 02:12:44 +0000 (10:12 +0800)]
Merge branch 'bugfix/btdm_unloaded_memory' into 'master'

component/bt : fix unloaded memory(0x3fff0000 overwrite) bug

See merge request !1227

7 years agocomponent/bt : fix unloaded memory(0x3fff0000 overwrite) bug
Tian Hao [Wed, 6 Sep 2017 13:45:18 +0000 (21:45 +0800)]
component/bt : fix unloaded memory(0x3fff0000 overwrite) bug

7 years agoMake sure cache is disabled/enabled when *both* CPUs are running inside the iram...
Jeroen Domburg [Mon, 4 Sep 2017 12:11:15 +0000 (20:11 +0800)]
Make sure cache is disabled/enabled when *both* CPUs are running inside the iram guard code

7 years agoMass replacement of http with https urls, fixed broken urls
krzychb [Tue, 5 Sep 2017 19:58:31 +0000 (21:58 +0200)]
Mass replacement of http with https urls, fixed broken urls

7 years agoMerge branch 'bugfix/unit_test_build' into 'master'
Ivan Grokhotkov [Wed, 6 Sep 2017 00:48:44 +0000 (08:48 +0800)]
Merge branch 'bugfix/unit_test_build' into 'master'

build system: fix building tests specified via TEST_COMPONENTS

See merge request !1219

7 years agobuild system: fix building tests specified via TEST_COMPONENTS
Ivan Grokhotkov [Tue, 5 Sep 2017 10:07:00 +0000 (18:07 +0800)]
build system: fix building tests specified via TEST_COMPONENTS

7 years agoMerge branch 'bugfix/soft_reboot_psram' into 'master'
Jeroen Domburg [Tue, 5 Sep 2017 07:43:30 +0000 (15:43 +0800)]
Merge branch 'bugfix/soft_reboot_psram' into 'master'

Fix rebooting when external RAM is active

See merge request !1207

7 years agoMerge branch 'feature/build_warn_undefined_vars' into 'master'
Angus Gratton [Tue, 5 Sep 2017 07:39:48 +0000 (15:39 +0800)]
Merge branch 'feature/build_warn_undefined_vars' into 'master'

Add --warn-undefined-variables to MAKEFLAGS (github #138)

See merge request !1214

7 years agobuild system: Remove obsolete GenerateBuildDirTarget macro eval
Angus Gratton [Tue, 5 Sep 2017 06:28:42 +0000 (16:28 +1000)]
build system: Remove obsolete GenerateBuildDirTarget macro eval

7 years agoMerge branch 'feature/tcp_msl_menuconfig' into 'master'
Angus Gratton [Tue, 5 Sep 2017 06:18:36 +0000 (14:18 +0800)]
Merge branch 'feature/tcp_msl_menuconfig' into 'master'

components/lwip: Expose TCP_MSL in menuconfig. (github #783)

See merge request !1175

7 years agobuild system: Document --warn-undefined-variables and add a config item for it
Angus Gratton [Tue, 5 Sep 2017 06:10:00 +0000 (16:10 +1000)]
build system: Document --warn-undefined-variables and add a config item for it

7 years agobuild system: Restore ifdef/ifndef in Makefiles, clean up examples build
Angus Gratton [Tue, 5 Sep 2017 05:50:31 +0000 (15:50 +1000)]
build system: Restore ifdef/ifndef in Makefiles, clean up examples build

7 years agoAdd --warn-undefined-variables to MAKEFLAGS
Deomid Ryabkov [Sat, 3 Dec 2016 22:11:22 +0000 (22:11 +0000)]
Add --warn-undefined-variables to MAKEFLAGS

Fix warnings where undefined vars are used.

Make Kconfig emit "FOO=" for unset bool options
To ensure make variables are always defined, even if empty.

When writing auto.conf, include symbols disabled by dependency to make sure all make variables are always defined.

Fixes espressif/esp-idf#137

Cherry-picked from https://github.com/espressif/esp-idf/pull/138

7 years agoMerge branch 'bugfix/nvs_item_crc_check' into 'master'
Angus Gratton [Tue, 5 Sep 2017 04:09:40 +0000 (12:09 +0800)]
Merge branch 'bugfix/nvs_item_crc_check' into 'master'

nvs: check CRC of items on full pages

See merge request !1200

7 years agoheap: Support adding new heap regions at runtime
Angus Gratton [Mon, 28 Aug 2017 07:12:29 +0000 (17:12 +1000)]
heap: Support adding new heap regions at runtime

To facilitate this, the list of registered heap regions is now a linked list
(allowing entries to be appended at runtime.)

7 years agoMerge branch 'bugfix/core_dump_loop' into 'master'
Ivan Grokhotkov [Tue, 5 Sep 2017 03:40:31 +0000 (11:40 +0800)]
Merge branch 'bugfix/core_dump_loop' into 'master'

esp32: Fixes infinite loop caused by exception during core dumping

See merge request !1210

7 years agoMerge branch 'bugfix/mbedtls_net_failures' into 'master'
Angus Gratton [Tue, 5 Sep 2017 03:28:43 +0000 (11:28 +0800)]
Merge branch 'bugfix/mbedtls_net_failures' into 'master'

mbedtls: Don't assign ctx->fd until connect() or bind() has succeeded

See merge request !1211

7 years agoMerge branch 'feature/adc_calibration' into 'master'
Ivan Grokhotkov [Tue, 5 Sep 2017 03:23:05 +0000 (11:23 +0800)]
Merge branch 'feature/adc_calibration' into 'master'

Bugfix/ added esp_adc_cal include guards

See merge request !1192

7 years agoMerge branch 'bugfix/deep_sleep_wakeup_stub' into 'master'
Ivan Grokhotkov [Tue, 5 Sep 2017 03:22:52 +0000 (11:22 +0800)]
Merge branch 'bugfix/deep_sleep_wakeup_stub' into 'master'

deep sleep: don't use protected DPORT access in wake stub

See merge request !1194

7 years agoMerge branch 'bugfix/openssl_client_example' into 'master'
Ivan Grokhotkov [Tue, 5 Sep 2017 03:15:55 +0000 (11:15 +0800)]
Merge branch 'bugfix/openssl_client_example' into 'master'

example/openssl_client: Fix http string "printf" error without end character '\0'

See merge request !1201

7 years agoesp32: Fixes infinite loop caused by exception during core dumping
Alexey Gerenkov [Mon, 4 Sep 2017 17:05:36 +0000 (20:05 +0300)]
esp32: Fixes infinite loop caused by exception during core dumping

7 years agoMerge branch 'bugfix/cpu_clk_disable_spi' into 'master'
Ivan Grokhotkov [Tue, 5 Sep 2017 02:41:51 +0000 (10:41 +0800)]
Merge branch 'bugfix/cpu_clk_disable_spi' into 'master'

spi_master, sdmmc: fix regressions due to peripherals being disabled by default

See merge request !1193

7 years agoMerge branch 'bugfix/spinlock_performance' into 'master'
Angus Gratton [Tue, 5 Sep 2017 01:16:10 +0000 (09:16 +0800)]
Merge branch 'bugfix/spinlock_performance' into 'master'

freertos: Reduce CPU spinlock (portmux) overhead

See merge request !497

7 years agombedtls: Don't assign ctx->fd until connect() or bind() has succeeded
Angus Gratton [Tue, 5 Sep 2017 00:37:58 +0000 (10:37 +1000)]
mbedtls: Don't assign ctx->fd until connect() or bind() has succeeded

Avoid leaking closed file descriptors via ctx->fd

Reported: https://esp32.com/viewtopic.php?f=13&t=2910&sid=8568b1fd93a4c8d5760628a638efc48b#p13620

7 years agoMerge branch 'bugfix/bootloader_ota_sel' into 'master'
Angus Gratton [Mon, 4 Sep 2017 23:25:08 +0000 (07:25 +0800)]
Merge branch 'bugfix/bootloader_ota_sel' into 'master'

Fix bootloader OTA regression

See merge request !1205

7 years agoethernet: enable EMAC module clock on initialization
Ivan Grokhotkov [Mon, 4 Sep 2017 14:43:25 +0000 (22:43 +0800)]
ethernet: enable EMAC module clock on initialization

7 years agosdmmc: use periph_ctrl to enable peripheral when initializing the host
Ivan Grokhotkov [Mon, 4 Sep 2017 10:12:46 +0000 (18:12 +0800)]
sdmmc: use periph_ctrl to enable peripheral when initializing the host

7 years agodriver: add periph_ctrl support for SDMMC, SDIO slave, CAN, EMAC
Ivan Grokhotkov [Mon, 4 Sep 2017 10:12:15 +0000 (18:12 +0800)]
driver: add periph_ctrl support for SDMMC, SDIO slave, CAN, EMAC

7 years agofix(spi_master): this fix the SPI MOSI output missing bug.
michael [Thu, 31 Aug 2017 11:59:30 +0000 (19:59 +0800)]
fix(spi_master): this fix the SPI MOSI output missing bug.

7 years agoMerge branch 'feature/btdm_add_set_local_MTU_API_for_gatt' into 'master'
Jiang Jiang Jian [Mon, 4 Sep 2017 13:32:23 +0000 (21:32 +0800)]
Merge branch 'feature/btdm_add_set_local_MTU_API_for_gatt' into 'master'

component/bt: add set local MTU API

See merge request !1152

7 years agoapptrace lock acquire function was re-designed to minimize waiting time with disabled...
Alexey Gerenkov [Sun, 3 Sep 2017 00:44:21 +0000 (03:44 +0300)]
apptrace lock acquire function was re-designed to minimize waiting time with disabled IRQs

7 years agoci: add extra unit test job
Ivan Grokhotkov [Mon, 4 Sep 2017 12:39:35 +0000 (20:39 +0800)]
ci: add extra unit test job

7 years agoFix rebooting when PSRAM is active
Jeroen Domburg [Mon, 4 Sep 2017 11:00:47 +0000 (19:00 +0800)]
Fix rebooting when PSRAM is active

7 years agoMerge branch 'bugfix/lwip_send_timeout' into 'master'
Ivan Grokhotkov [Mon, 4 Sep 2017 10:19:59 +0000 (18:19 +0800)]
Merge branch 'bugfix/lwip_send_timeout' into 'master'

match sys tick with lwip_send_timeout

See merge request !1203

7 years agoesp32: Update wifi lib to use new spinlock implementation
Angus Gratton [Thu, 31 Aug 2017 00:49:42 +0000 (10:49 +1000)]
esp32: Update wifi lib to use new spinlock implementation

7 years agoportmux: Add vPortCPUAcquireMutexTimeout() function
Angus Gratton [Thu, 20 Jul 2017 06:34:45 +0000 (16:34 +1000)]
portmux: Add vPortCPUAcquireMutexTimeout() function

Refactor app_trace locking to use this function.

7 years agofreertos scheduler test: Free timer group interrupt handle when test finishes
Angus Gratton [Mon, 26 Jun 2017 04:09:02 +0000 (14:09 +1000)]
freertos scheduler test: Free timer group interrupt handle when test finishes

7 years agofreertos: Inline vPortCPUAcquireMutex/vPortCPUReleaseMutex into implementations
Angus Gratton [Thu, 16 Feb 2017 05:56:06 +0000 (16:56 +1100)]
freertos: Inline vPortCPUAcquireMutex/vPortCPUReleaseMutex into implementations

Further improves performance:
No contention -> 134 cycles
Recursion -> 117 cycles
Contention -> 323 cycles

7 years agofreertos: vPortCPUReleaseMutex() no longer returns a value
Angus Gratton [Thu, 16 Feb 2017 05:03:02 +0000 (16:03 +1100)]
freertos: vPortCPUReleaseMutex() no longer returns a value

Unlocking a never-locked mutex is an assertion failure in debug mode.

In release mode, this further improves performance:
No-Contention ->  153 cycles
Recursion No-Contention -> 138 cycles
Contention -> 378 cycles

7 years agofreertos spinlock/portmux: Reduce spinlocking overhead
Angus Gratton [Mon, 13 Feb 2017 03:46:37 +0000 (14:46 +1100)]
freertos spinlock/portmux: Reduce spinlocking overhead

Ref TW7117

Microbenchmarks in unit tests:

(All numbers in cycles per benchmarked operation):

Release mode
No lock contention lock/unlock -       301 -> 167 (-45%)
Recursive no contention lock/unlock -  289 -> 148 (-49%)
Lock contention two CPUs (lock/unlock) 699 -> 400 (-43%)

Debug mode
No lock contention lock/unlock -       355 -> 203 (-43%)
Recursive no contention lock/unlock -  345 -> 188 (-46%)
Lock contention two CPUs (lock/unlock) 761 -> 483 (-36%)

7 years agofreertos spinlocks/portmux: Add combination unit tests & microbenchmarks
Angus Gratton [Mon, 13 Feb 2017 05:53:33 +0000 (16:53 +1100)]
freertos spinlocks/portmux: Add combination unit tests & microbenchmarks

7 years agoMerge branch 'bugfix/ci_build_examples_more' into 'master'
Angus Gratton [Mon, 4 Sep 2017 08:02:12 +0000 (16:02 +0800)]
Merge branch 'bugfix/ci_build_examples_more' into 'master'

CI build_examples: Fix build flakiness

See merge request !1191

7 years agobuild system: Don't make menuconfig if "make clean" run with no sdkconfig
Angus Gratton [Mon, 4 Sep 2017 04:50:52 +0000 (14:50 +1000)]
build system: Don't make menuconfig if "make clean" run with no sdkconfig

7 years agobuild system: Explicitly disallow 'clean' along with non-cleaning targets
Angus Gratton [Mon, 4 Sep 2017 03:17:32 +0000 (13:17 +1000)]
build system: Explicitly disallow 'clean' along with non-cleaning targets

Too hard to stage the dependencies so that all clean steps complete before any build steps begin. Also, using and then
deleting and then regenerating SDKCONFIG_MAKEFILE in one pass is really hard to manage successfully.

7 years agobuild system tests: Run inside PWD same as build_examples.sh
Angus Gratton [Mon, 4 Sep 2017 01:15:04 +0000 (11:15 +1000)]
build system tests: Run inside PWD same as build_examples.sh

7 years agoci: Add two more example build jobs per CI pass
Angus Gratton [Fri, 1 Sep 2017 07:29:51 +0000 (17:29 +1000)]
ci: Add two more example build jobs per CI pass

7 years agobuild system: Add dependencies to component clean steps
Angus Gratton [Fri, 1 Sep 2017 07:28:13 +0000 (17:28 +1000)]
build system: Add dependencies to component clean steps

Build directory must exist, component_project_vars.mk must be generated if it is going to be.

7 years agobuild_examples: Small cleanups
Angus Gratton [Fri, 1 Sep 2017 03:42:39 +0000 (13:42 +1000)]
build_examples: Small cleanups

* Override MAKEFLAGS via make not via shell variables
* Remove build_examples in gitlab-ci
* Don't use mktemp for any logs

7 years agoota_ops: Fix get_selected_boot_partition() in case there is no factory partition
Angus Gratton [Mon, 4 Sep 2017 07:05:16 +0000 (17:05 +1000)]
ota_ops: Fix get_selected_boot_partition() in case there is no factory partition

get_selected_boot_partition() now follows the same basic logic as the bootloader to find the
default boot partition.

7 years agobootloader: Fix regression preventing OTA updates
Angus Gratton [Mon, 4 Sep 2017 06:50:09 +0000 (16:50 +1000)]
bootloader: Fix regression preventing OTA updates

Regression introduced in 43e231c.

Thanks to @yanbe for pointing out issue in https://github.com/espressif/esp-idf/pull/955

This is a different fix, tries to keep the behaviour that 43e231c was aiming to correct (unnecessarily testing an
invalid slot more than once.)

7 years agomatch sys tick with lwip_send_timeout
zhangyanjiao [Mon, 4 Sep 2017 06:47:11 +0000 (14:47 +0800)]
match sys tick with lwip_send_timeout

7 years agonvs: check CRC of items on full pages
Ivan Grokhotkov [Mon, 4 Sep 2017 03:54:18 +0000 (11:54 +0800)]
nvs: check CRC of items on full pages

Previously NVS did check CRC values of key-value pairs on the active
page, but the check for full pages was missing. This adds the necessary
check and a test for it.

7 years agoMerge branch 'feature/psram_in_address_space' into 'master'
Jeroen Domburg [Mon, 4 Sep 2017 06:18:23 +0000 (14:18 +0800)]
Merge branch 'feature/psram_in_address_space' into 'master'

Feature/psram in address space

See merge request !1069

7 years agoexample/openssl_client: Fix http string "printf" error without end character '\0'
Dong Heng [Mon, 4 Sep 2017 05:29:19 +0000 (13:29 +0800)]
example/openssl_client: Fix http string "printf" error without end character '\0'

7 years agoMerge branch 'bugfix/uart_5mbaud' into 'master'
Jeroen Domburg [Mon, 4 Sep 2017 04:06:33 +0000 (12:06 +0800)]
Merge branch 'bugfix/uart_5mbaud' into 'master'

Fix off-by-one in 5MBaud arg checking; propagate errors better

See merge request !1184

7 years agoAdd initial SPI RAM support. This adds support for an ESP-PSRAM32 chip connected...
Jeroen Domburg [Thu, 20 Jul 2017 08:26:35 +0000 (16:26 +0800)]
Add initial SPI RAM support. This adds support for an ESP-PSRAM32 chip connected to the default flash pins and GPIO 16 and 17. The RAM is mapped to address 0x3F800000, but otherwise ignored by esp-idf as of yet.

7 years agoComponent/bt: add set local MTU API
zhiweijian [Thu, 24 Aug 2017 11:54:41 +0000 (19:54 +0800)]
Component/bt: add set local MTU API
- add esp_ble_gatt_set_local_mtu( ) API
- modify esp_ble_gattc_config_mtu(esp_gatt_if_t gattc_if, uint16_t conn_id)
- modify  gattc demo

7 years agoMerge branch 'bugfix/btdm_fix_connection_parameters_update' into 'master'
Jiang Jiang Jian [Fri, 1 Sep 2017 12:15:30 +0000 (20:15 +0800)]
Merge branch 'bugfix/btdm_fix_connection_parameters_update' into 'master'

component/bt: fix connection parameters update

See merge request !1099

7 years agoMerge branch 'bugfix/btdm_optimize_gatt_security_server_demo' into 'master'
Jiang Jiang Jian [Fri, 1 Sep 2017 12:13:13 +0000 (20:13 +0800)]
Merge branch 'bugfix/btdm_optimize_gatt_security_server_demo' into 'master'

component/bt: optimize gatt security server demo

See merge request !1047

7 years agodeep sleep: don't use protected DPORT access in wake stub
Ivan Grokhotkov [Fri, 1 Sep 2017 10:35:42 +0000 (18:35 +0800)]
deep sleep: don't use protected DPORT access in wake stub

7 years agoAdd GD chip into qio data, so (at least my) ESP-WROVER uses QIO mode succesfully.
Jeroen Domburg [Mon, 31 Jul 2017 04:05:53 +0000 (12:05 +0800)]
Add GD chip into qio data, so (at least my) ESP-WROVER uses QIO mode succesfully.

7 years agoMerge branch 'feature/esp_timer_improvements' into 'master'
Ivan Grokhotkov [Fri, 1 Sep 2017 08:14:01 +0000 (16:14 +0800)]
Merge branch 'feature/esp_timer_improvements' into 'master'

esp_timer improvements

See merge request !1172

7 years agoFix off-by-one in 5MBaud arg checking; propagate errors better
Jeroen Domburg [Thu, 31 Aug 2017 03:29:12 +0000 (11:29 +0800)]
Fix off-by-one in 5MBaud arg checking; propagate errors better

7 years agoBugfix/ added esp_adc_cal include guards
Darian Leung [Fri, 1 Sep 2017 04:07:37 +0000 (12:07 +0800)]
Bugfix/ added esp_adc_cal include guards

7 years agoMerge branch 'feature/light_sleep' into 'master'
Ivan Grokhotkov [Fri, 1 Sep 2017 03:10:52 +0000 (11:10 +0800)]
Merge branch 'feature/light_sleep' into 'master'

Rename esp_deep_sleep_ APIs to esp_sleep_, introduce light sleep function

See merge request !1168

7 years agonewlib: rename esp_setup_time_syscalls to esp_set_time_from_rtc
Ivan Grokhotkov [Tue, 29 Aug 2017 03:48:18 +0000 (11:48 +0800)]
newlib: rename esp_setup_time_syscalls to esp_set_time_from_rtc

This function no longer sets up syscalls, and new name reflects its
purpose better.

7 years agosleep: add light sleep, factor out APIs common for deep/light sleep
Ivan Grokhotkov [Fri, 21 Apr 2017 04:32:50 +0000 (12:32 +0800)]
sleep: add light sleep, factor out APIs common for deep/light sleep

7 years agodport access: introduce pause/resume instead of deinit
Ivan Grokhotkov [Thu, 24 Aug 2017 09:48:40 +0000 (17:48 +0800)]
dport access: introduce pause/resume instead of deinit

7 years agosoc/rtc: add sleep flag to control powerdown of VDD_SDIO
Ivan Grokhotkov [Thu, 24 Aug 2017 23:14:29 +0000 (07:14 +0800)]
soc/rtc: add sleep flag to control powerdown of VDD_SDIO

7 years agoesp_timer: return signed timestamp (int64_t)
Ivan Grokhotkov [Wed, 30 Aug 2017 03:15:29 +0000 (11:15 +0800)]
esp_timer: return signed timestamp (int64_t)

Since timestamps are 64-bit, loosing one bit of range due to sign does
not present an issue, however for applications doing calculations on
timestamps, signed return type is more convenient.

7 years agoesp32: use ref_clock in esp_timer and delay tests
Ivan Grokhotkov [Wed, 30 Aug 2017 01:01:37 +0000 (09:01 +0800)]
esp32: use ref_clock in esp_timer and delay tests

7 years agounity: add reference clock for use in unit tests
Ivan Grokhotkov [Mon, 21 Aug 2017 14:33:03 +0000 (22:33 +0800)]
unity: add reference clock for use in unit tests

7 years agoesp_timer: lock-free implementation of esp_timer_get_time
Ivan Grokhotkov [Wed, 30 Aug 2017 00:43:02 +0000 (08:43 +0800)]
esp_timer: lock-free implementation of esp_timer_get_time

The implementation of esp_timer_get_time used a critical section, which
resulted in a call time of ~1.8us. To make esp_timer_get_time more
useable as a high-resolution time source, this change replaces the lock
with polling. Call time is reduced to ~0.7us.

7 years agosoc/rtc: round APB clock frequency to nearest MHz
Ivan Grokhotkov [Mon, 21 Aug 2017 14:33:52 +0000 (22:33 +0800)]
soc/rtc: round APB clock frequency to nearest MHz

7 years agoMerge branch 'bugfix/ci_build_examples' into 'master'
Ivan Grokhotkov [Fri, 1 Sep 2017 02:33:38 +0000 (10:33 +0800)]
Merge branch 'bugfix/ci_build_examples' into 'master'

ci: fix example builds and unit tests

See merge request !1188

7 years agoMerge branch 'feature/cxx_exceptions' into 'master'
Ivan Grokhotkov [Thu, 31 Aug 2017 16:27:41 +0000 (00:27 +0800)]
Merge branch 'feature/cxx_exceptions' into 'master'

Partial support for C++ exceptions

See merge request !930

7 years agoci: disable sd card tests
Ivan Grokhotkov [Thu, 31 Aug 2017 15:50:56 +0000 (23:50 +0800)]
ci: disable sd card tests

7 years agoci: put example log files on the build volume
Ivan Grokhotkov [Thu, 31 Aug 2017 15:00:48 +0000 (23:00 +0800)]
ci: put example log files on the build volume

7 years agoMerge branch 'feature/timeradd' into 'master'
Ivan Grokhotkov [Thu, 31 Aug 2017 05:57:19 +0000 (13:57 +0800)]
Merge branch 'feature/timeradd' into 'master'

feat(time): enable the macro timeradd, timersub, timerclear, etc.

See merge request !1177

7 years agoMerge branch 'bugfix/log_tag_change_level' into 'master'
Ivan Grokhotkov [Thu, 31 Aug 2017 02:45:55 +0000 (10:45 +0800)]
Merge branch 'bugfix/log_tag_change_level' into 'master'

bugfix(log): fix the log tag to update existing rather than add new tag when calling ``esp_log_level_set``

See merge request !1153

7 years agoMerge branch 'bugfix/remove_at_build_from_ci' into 'master'
Ivan Grokhotkov [Thu, 31 Aug 2017 02:45:40 +0000 (10:45 +0800)]
Merge branch 'bugfix/remove_at_build_from_ci' into 'master'

CI: remove build at

See merge request !1171

7 years agoMerge branch 'bugfix/i2s_dac_channel' into 'master'
Ivan Grokhotkov [Thu, 31 Aug 2017 02:45:30 +0000 (10:45 +0800)]
Merge branch 'bugfix/i2s_dac_channel' into 'master'

fix(i2s_dac): fix the disable function which only disables DAC_CHANNEL_1.

See merge request !1169

7 years agoMerge branch 'bugfix/memory_issues_pr838' into 'master'
Ivan Grokhotkov [Thu, 31 Aug 2017 02:45:19 +0000 (10:45 +0800)]
Merge branch 'bugfix/memory_issues_pr838' into 'master'

vfat, i2s, mdns: Fix two memory leaks, one double free (github #838)

See merge request !1173

7 years agoMerge branch 'feature/freertos_interrupt_backtrace_opt' into 'master'
Ivan Grokhotkov [Thu, 31 Aug 2017 02:45:06 +0000 (10:45 +0800)]
Merge branch 'feature/freertos_interrupt_backtrace_opt' into 'master'

freertos: introduce CONFIG_FREERTOS_INTERRUPT_BACKTRACE

See merge request !1167

7 years agoMerge branch 'bugfix/minor_prs_github' into 'master'
Angus Gratton [Wed, 30 Aug 2017 23:11:30 +0000 (07:11 +0800)]
Merge branch 'bugfix/minor_prs_github' into 'master'

Minor bugfixes and corrections from github

See merge request !1181

7 years agoMerge branch 'bugfix/uart_set_dtr_rts' into 'master'
Angus Gratton [Wed, 30 Aug 2017 22:50:24 +0000 (06:50 +0800)]
Merge branch 'bugfix/uart_set_dtr_rts' into 'master'

uart: Fix spinlock bug for uart_set_rts and uart_set_dtr

See merge request !1179

7 years agoMerge branch 'bugfix/timer_group_example' into 'master'
Angus Gratton [Wed, 30 Aug 2017 22:49:26 +0000 (06:49 +0800)]
Merge branch 'bugfix/timer_group_example' into 'master'

bugfix(timer group): remove floating-point in timer isr in example.

See merge request !1080

7 years agobugfix(timer group): remove floating-point in timer isr in example.
Wangjialin [Fri, 4 Aug 2017 16:21:52 +0000 (00:21 +0800)]
bugfix(timer group): remove floating-point in timer isr in example.

7 years agoREADME: Converting URLs from HTTP to HTTPS
Josh Lospinoso [Thu, 18 May 2017 19:33:37 +0000 (14:33 -0500)]
README: Converting URLs from HTTP to HTTPS

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

7 years agoRemove redundant code line from uart.c
Angus Gratton [Wed, 30 Aug 2017 05:16:11 +0000 (15:16 +1000)]
Remove redundant code line from uart.c

Merges part of https://github.com/espressif/esp-idf/pull/650

7 years agoFixed incorrect value in comments for GPIO_NUM_33.
Simon Werner [Wed, 7 Jun 2017 04:56:05 +0000 (16:56 +1200)]
Fixed incorrect value in comments for GPIO_NUM_33.

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