]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agocomponent/bt: add AVRC controller example with simple PASSTHROUGH cmd
wangmengyang [Thu, 5 Jan 2017 07:43:44 +0000 (15:43 +0800)]
component/bt: add AVRC controller example with simple PASSTHROUGH cmd

7 years agocomponent/bt: remove source codes from esp-audio modules;
wangmengyang [Mon, 2 Jan 2017 06:20:28 +0000 (14:20 +0800)]
component/bt: remove source codes from esp-audio modules;

7 years agocomponent/bt: fix API typos, add license headers and fix some log messages
wangmengyang [Tue, 27 Dec 2016 05:48:07 +0000 (13:48 +0800)]
component/bt: fix API typos, add license headers and fix some log messages

7 years agocomponent/bt: modify comment formats for API headers
wangmengyang [Mon, 26 Dec 2016 14:02:40 +0000 (22:02 +0800)]
component/bt: modify comment formats for API headers

7 years agocomponent/bt: Merge branch 'master' into feature/btdm_a2dp
wangmengyang [Mon, 26 Dec 2016 12:35:28 +0000 (20:35 +0800)]
component/bt: Merge branch 'master' into feature/btdm_a2dp

7 years agocomponent/bt: A2DP code original in example project moved to component/bt directory;
wangmengyang [Mon, 26 Dec 2016 09:40:28 +0000 (17:40 +0800)]
component/bt: A2DP code original in example project moved to component/bt directory;

1. move btif and A2DP source code from project directory to bluetooth directory;
2. some updates of audio source code;

7 years agocomponent/bt: API clean up for the A2DP example
wangmengyang [Mon, 26 Dec 2016 09:26:54 +0000 (17:26 +0800)]
component/bt: API clean up for the A2DP example

7 years agoMerge branch 'feature/ethernet_driver' into 'master'
Wu Jian Gang [Mon, 26 Dec 2016 07:50:21 +0000 (15:50 +0800)]
Merge branch 'feature/ethernet_driver' into 'master'

feature/ethernet_driver: update ethernet driver

See merge request !319

7 years agofeature/ethernet_driver: update ethernet driver
shangke [Sun, 18 Dec 2016 13:18:37 +0000 (21:18 +0800)]
feature/ethernet_driver: update ethernet driver

1. The transmitting mode of the packets from LWIP to MAC is changed from synchronous to asynchronous.
2. The receive buf mode : support pointer mode and copy mode.
3. Add get phy status func used to config mac register.

7 years agoMerge branch 'bugfix/make_erase_flash' into 'master'
Ivan Grokhotkov [Sun, 25 Dec 2016 01:13:58 +0000 (09:13 +0800)]
Merge branch 'bugfix/make_erase_flash' into 'master'

build system: Fix bug where erase_flash was always invoked for flash

Order-only prerequisites do not work for phony targets!

See merge request !337

7 years agoMerge branch 'bugfix/ci_use_gitlab_for_bt_lib_on_non_master_branch' into 'master'
Ivan Grokhotkov [Fri, 23 Dec 2016 18:32:11 +0000 (02:32 +0800)]
Merge branch 'bugfix/ci_use_gitlab_for_bt_lib_on_non_master_branch' into 'master'

CI: use gitlab repo for bt lib on non master barnch

same as wifi lib, some bt lib might not be pushed to github yet for developping branches

See merge request !342

7 years agouse gitlab repo for bt lib on non master barnch
Yinling [Fri, 23 Dec 2016 07:16:29 +0000 (15:16 +0800)]
use gitlab repo for bt lib on non master barnch

same as wifi lib, some bt lib might not be pushed to github yet for
developping branches

replace gitlab server address with variable

7 years agobuild system: Fix bug where erase_flash was always invoked for flash
Angus Gratton [Thu, 22 Dec 2016 05:32:19 +0000 (16:32 +1100)]
build system: Fix bug where erase_flash was always invoked for flash

Order-only prerequisites do not work for phony targets!

7 years agoMerge branch 'bugfix/bootloader_stack' into 'master'
Angus Gratton [Thu, 22 Dec 2016 04:15:18 +0000 (12:15 +0800)]
Merge branch 'bugfix/bootloader_stack' into 'master'

bootloader: Check if DRAM segments are going to collide with stack

See merge request !330

7 years agoMerge branch 'bugfix/build_system_tilde' into 'master'
Angus Gratton [Thu, 22 Dec 2016 04:14:16 +0000 (12:14 +0800)]
Merge branch 'bugfix/build_system_tilde' into 'master'

Build system: Allow IDF_PATH to contain ~ or C:/

See github issues
* https://github.com/espressif/esp-idf/issues/118
* https://github.com/espressif/esp-idf/issues/166

(This is easier to work around in the build system than to document.)

See merge request !315

7 years agoMerge branch 'feature/erase_flash' into 'master'
Ivan Grokhotkov [Thu, 22 Dec 2016 01:53:25 +0000 (09:53 +0800)]
Merge branch 'feature/erase_flash' into 'master'

Build system: Add `make erase_flash` target

See merge request !328

7 years agobuild system: Fix Windows case when IDF_PATH contains colons (ie C:/)
Angus Gratton [Wed, 21 Dec 2016 23:31:20 +0000 (10:31 +1100)]
build system: Fix Windows case when IDF_PATH contains colons (ie C:/)

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

7 years agoMerge branch 'feature/uart' into 'master'
Wang Jia Lin [Wed, 21 Dec 2016 06:10:37 +0000 (14:10 +0800)]
Merge branch 'feature/uart' into 'master'

driver: uart

1. add uart rx buffer data length API
2. add uart pattern detect event
3. add uart example code
4. modify uart_isr_register API
5. modify uart.rst
6. fix parity err event and frame err event.

See merge request !321

7 years agodriver: uart
Wangjialin [Mon, 19 Dec 2016 04:52:10 +0000 (12:52 +0800)]
driver: uart

1. add uart rx buffer data length API
2. add uart pattern detect event
3. add uart example code
4. modify uart_isr_register
5. modify uart.rst
6. fix parity err event and frame err event.

7 years agoMerge branch 'bugfix/ringbuffer_receive_upto_api' into 'master'
Angus Gratton [Wed, 21 Dec 2016 02:01:13 +0000 (10:01 +0800)]
Merge branch 'bugfix/ringbuffer_receive_upto_api' into 'master'

bugfix: ring buffer

Fix API xRingbufferReceiveUpToFromISR

See merge request !327

7 years agoMerge branch 'bugfix/minor_fixes' into 'master'
Angus Gratton [Tue, 20 Dec 2016 22:54:33 +0000 (06:54 +0800)]
Merge branch 'bugfix/minor_fixes' into 'master'

Minor fixes from various sources

- Fix memory debugging code. Noticed by Tuan.
- intr_enable/disable should be in IRAM. Noticed by rojer
- Still old timer code in examples in doxygen comments. Noticed on the forum by jumjum123
- Timer example was broken. Noticed on the forum by jumjum123

See merge request !325

7 years agoMerge branch 'bugfix/ota_select_info_point_fix' into 'master'
Angus Gratton [Tue, 20 Dec 2016 22:54:21 +0000 (06:54 +0800)]
Merge branch 'bugfix/ota_select_info_point_fix' into 'master'

bootloader: fix error pointer to ota select info

bbs issue: http://www.esp32.com/viewtopic.php?f=14&t=615,
ota select info should be in different sector

See merge request !316

7 years agobootloader: Check if DRAM segments are going to collide with stack
Angus Gratton [Tue, 20 Dec 2016 05:04:15 +0000 (16:04 +1100)]
bootloader: Check if DRAM segments are going to collide with stack

7 years agoMerge branch 'bugfix/tcpip_adapter_set_ip_info' into 'master'
Wu Jian Gang [Tue, 20 Dec 2016 03:18:17 +0000 (11:18 +0800)]
Merge branch 'bugfix/tcpip_adapter_set_ip_info' into 'master'

Fix set static IP address issue

Set static IP address, clear current DNS servers default.

See merge request !310

7 years agoMerge branch 'feature/phy_init_data_update' into 'master'
Ivan Grokhotkov [Tue, 20 Dec 2016 02:26:16 +0000 (10:26 +0800)]
Merge branch 'feature/phy_init_data_update' into 'master'

phy init data update

This changes 54M target power from 16 dBm to 15 dBm, and bumps init_data version from 0 to 1.

See merge request !322

7 years agoMerge branch 'feature/ulp' into 'master'
Ivan Grokhotkov [Tue, 20 Dec 2016 02:25:55 +0000 (10:25 +0800)]
Merge branch 'feature/ulp' into 'master'

ULP: add new instructions, fix bugs, add tests

This adds peripheral register read and write instructions, an instruction to wake the SoC from deep sleep, and some tests.

Also fixes two bugs: ANDI instruction definition, and running the ULP when in deep sleep mode.

See merge request !317

7 years agoMerge branch 'bugfix/exception_handling' into 'master'
Jeroen Domburg [Tue, 20 Dec 2016 01:22:41 +0000 (09:22 +0800)]
Merge branch 'bugfix/exception_handling' into 'master'

Fix exception handler to jump to correct vector instead of crashing to the double exception vector.

One-character fix... basically, this caused the exception handler to crash into the double-exception handler instead of nicy panic'ing.

See merge request !323

7 years agoMerge branch 'feature/secure_boot_remote_sign' into 'master'
Angus Gratton [Mon, 19 Dec 2016 23:04:31 +0000 (07:04 +0800)]
Merge branch 'feature/secure_boot_remote_sign' into 'master'

Secure boot: Option for app & partition table signing to happen outside build system

Allows for a remote signing server, private signing key does not need to be on the build system.

See merge request !320

7 years agoBuild system: Add `make erase_flash` target
Angus Gratton [Mon, 19 Dec 2016 23:00:04 +0000 (10:00 +1100)]
Build system: Add `make erase_flash` target

7 years agoMerge branch 'feature/dhcpserver_null_gw' into 'master'
Angus Gratton [Mon, 19 Dec 2016 22:14:44 +0000 (06:14 +0800)]
Merge branch 'feature/dhcpserver_null_gw' into 'master'

Allow gw to be null

Github Pull Request 163: https://github.com/espressif/esp-idf/pull/163

Allow interfaces to be configured without a default gateway, for
local-only communication.

In case of the AP interface, if gw is not set, do not offer it.

See merge request !312

7 years agobugfix: ring buffer, fix api xRingbufferReceiveUpToFromISR
Wangjialin [Mon, 19 Dec 2016 17:13:03 +0000 (01:13 +0800)]
bugfix: ring buffer, fix api xRingbufferReceiveUpToFromISR

7 years agoAdd IRAM_ATTR to esp_intr_{enable,disable}
Deomid Ryabkov [Mon, 19 Dec 2016 06:28:28 +0000 (06:28 +0000)]
Add IRAM_ATTR to esp_intr_{enable,disable}

So it's safe to invoke from ISR

Signed-off-by: Jeroen Domburg <jeroen@espressif.com>
7 years agoFix timer example; it had too little stack resulting in a stack overflow
Jeroen Domburg [Mon, 19 Dec 2016 10:17:54 +0000 (18:17 +0800)]
Fix timer example; it had too little stack resulting in a stack overflow

7 years agoFix memory debugging code
Jeroen Domburg [Mon, 19 Dec 2016 10:13:36 +0000 (18:13 +0800)]
Fix memory debugging code

7 years agoGet rid of old interrupt example code
Jeroen Domburg [Mon, 19 Dec 2016 08:39:55 +0000 (16:39 +0800)]
Get rid of old interrupt example code

7 years agoFix exception handler to jump to correct vector instead of crashing to the double...
Jeroen Domburg [Mon, 19 Dec 2016 08:01:21 +0000 (16:01 +0800)]
Fix exception handler to jump to correct vector instead of crashing to the double exception vector.

7 years agophy init data update
Ivan Grokhotkov [Mon, 19 Dec 2016 06:23:39 +0000 (14:23 +0800)]
phy init data update

This changes 54M target power from 16 dBm to 15 dBm, and bumps init_data version from 0 to 1.

7 years agoMerge branch 'driver_merge_tmp/merge_sigmadelta' into 'master'
Wang Jia Lin [Mon, 19 Dec 2016 04:29:32 +0000 (12:29 +0800)]
Merge branch 'driver_merge_tmp/merge_sigmadelta' into 'master'

driver: sigma-delta

1. add sigma-delta code and example.
2. add gpio output signal in io matrix.

See merge request !241

7 years agoSecure boot: Option for app & partition table signing to happen outside build system
Angus Gratton [Mon, 19 Dec 2016 02:06:21 +0000 (13:06 +1100)]
Secure boot: Option for app & partition table signing to happen outside build system

7 years agodriver: sigma-delta
Wangjialin [Wed, 23 Nov 2016 08:28:16 +0000 (16:28 +0800)]
driver: sigma-delta

1. add sigma-delta code and example.
2. add gpio output signal in io matrix.

Squashed commits:
[a25e7d4] minor changes for doc
[6a03a1e] minor changes on comments and doc.
[97dd9e4] Add doc.
update index.rst
change example index

7 years agoulp: document peripherals accessible using RD_REG and WR_REG
Ivan Grokhotkov [Fri, 16 Dec 2016 12:32:34 +0000 (20:32 +0800)]
ulp: document peripherals accessible using RD_REG and WR_REG

7 years agoulp: use timer to start ULP, fix I_ANDI bug, add tests
Ivan Grokhotkov [Fri, 16 Dec 2016 12:25:38 +0000 (20:25 +0800)]
ulp: use timer to start ULP, fix I_ANDI bug, add tests

Starting the ULP using SENS_SAR_START_FORCE_REG doesn’t disable clock gating of RTC fast clock.
When SoC goes into deep sleep mode, RTC fast clock gets gated, so ULP can no longer run.
Instead, it has to be started using the timer (RTC_CNTL_ULP_CP_SLP_TIMER_EN bit).
When ULP is enabled by the timer, clock also gets enabled.

7 years agoulp: add RD_REG, WR_REG, END instruction
Ivan Grokhotkov [Fri, 16 Dec 2016 12:01:15 +0000 (20:01 +0800)]
ulp: add RD_REG, WR_REG, END instruction

7 years agobootloader: fix error pointer to ota select info
Tian Zhong Xing [Fri, 16 Dec 2016 10:24:25 +0000 (18:24 +0800)]
bootloader: fix error pointer to ota select info

7 years agoMerge branch 'feature/extend_deep_sleep_apis' into 'master'
Ivan Grokhotkov [Fri, 16 Dec 2016 08:17:37 +0000 (16:17 +0800)]
Merge branch 'feature/extend_deep_sleep_apis' into 'master'

extend deep sleep APIs

This adds the following APIs to enable various wakeup sources:
- esp_deep_sleep_enable_timer_wakeup
- esp_deep_sleep_enable_ulp_wakeup
- esp_deep_sleep_enable_ext0_wakeup
- esp_deep_sleep_enable_ext1_wakeup

And an API to start deep sleep:
- esp_deep_sleep_start

Add an API to control which peripherals are kept enabled in deep sleep mode:
- esp_err_t esp_deep_sleep_pd_config

Also rolled an update of rtc_io header comments into this MR, as I had to add `slpie`, `slpsel`, and `hold` fields into `rtc_gpio_desc_t` struct.

Deep sleep unit tests don’t do anything useful in CI context because we don’t have a way to check reset behavior (time till reset, reason for reset) in CI environment, yet. Also for external wakeup we would need to control some ESP32 pins from the test environment.

Currently there is one known issue:
- RTC Fast memory may be isolated from the bus after deep sleep reset. We work around this by setting FORCE_NONISO flag in RTC power control register. This is non-optimal and we will keep looking for the reason why isolation gets enabled.

See merge request !297

7 years agodocs: fix some warnings
Ivan Grokhotkov [Fri, 16 Dec 2016 06:27:22 +0000 (14:27 +0800)]
docs: fix some warnings

7 years agodeep sleep: add documentation
Ivan Grokhotkov [Fri, 16 Dec 2016 06:26:52 +0000 (14:26 +0800)]
deep sleep: add documentation

7 years agodeep sleep: set pin configuration right before entering deep sleep
Ivan Grokhotkov [Fri, 16 Dec 2016 06:26:05 +0000 (14:26 +0800)]
deep sleep: set pin configuration right before entering deep sleep

This change allows setting pin configuration for EXT1 wakeup depending on the state of RTC_PERIPH power domain:
- if peripherals are enabled (due to another wakeup mode, or due to esp_deep_sleep_pd_config call), we can keep internal pullups/pulldowns enabled
- if peripherals are disabled, pullups and pulldowns need to be disabled as well

Also add comments about the purpose of registers being configured.

7 years agodeep sleep: power down RTC peripherals in EXT1 sleep
Ivan Grokhotkov [Fri, 16 Dec 2016 06:10:07 +0000 (14:10 +0800)]
deep sleep: power down RTC peripherals in EXT1 sleep

7 years agoulp: add missing component.mk for tests
Ivan Grokhotkov [Wed, 14 Dec 2016 06:25:42 +0000 (14:25 +0800)]
ulp: add missing component.mk for tests

7 years agodeep sleep: RTC fast memory may be disconnected after deep sleep wakeup
Ivan Grokhotkov [Wed, 14 Dec 2016 06:23:40 +0000 (14:23 +0800)]
deep sleep: RTC fast memory may be disconnected after deep sleep wakeup

This adds a workaround for a bug that following deep sleep wakeup, ISO (bus isolation) signal may be set for RTC fast memory.
We set FORCE_NOISO bit in RTC_CNTL_PWC_REG until we find out what is causing ISO signal to be set.

7 years agodeep sleep: add API to control power down
Ivan Grokhotkov [Wed, 14 Dec 2016 06:20:01 +0000 (14:20 +0800)]
deep sleep: add API to control power down

7 years agodeep sleep: rename header file
Ivan Grokhotkov [Tue, 13 Dec 2016 05:23:04 +0000 (13:23 +0800)]
deep sleep: rename header file

7 years agodeep sleep: add option to delay CPU startup
Ivan Grokhotkov [Mon, 12 Dec 2016 15:20:15 +0000 (23:20 +0800)]
deep sleep: add option to delay CPU startup

When ESP32 wakes up from deep sleep, flash is accessed an approximately 900us after power on.
Some flash chips need more time to become ready. This change adds a menuconfig option to add
some delay to the default deep sleep wake stub.

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

7 years agodeep sleep: implement wake up using ULP, EXT0, EXT1 sources
Ivan Grokhotkov [Thu, 8 Dec 2016 14:22:10 +0000 (22:22 +0800)]
deep sleep: implement wake up using ULP, EXT0, EXT1 sources

This adds the following APIs to enable various wakeup sources:
- esp_deep_sleep_enable_timer_wakeup
- esp_deep_sleep_enable_ulp_wakeup
- esp_deep_sleep_enable_ext0_wakeup
- esp_deep_sleep_enable_ext1_wakeup

And an API to start deep sleep:
- esp_deep_sleep_start

7 years agodriver/rtc_io: improve header comments
Ivan Grokhotkov [Thu, 8 Dec 2016 10:37:22 +0000 (18:37 +0800)]
driver/rtc_io: improve header comments

Fix descriptions of return values, fix typos, use upper case for abbreviations.

7 years agoMerge branch 'feature/spiflash_unaligned_readwrite' into 'master'
Angus Gratton [Fri, 16 Dec 2016 05:28:12 +0000 (13:28 +0800)]
Merge branch 'feature/spiflash_unaligned_readwrite' into 'master'

Remove alignment reqs from spi_flash_{read,write}

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

See merge request !311

7 years agoBuild system: Deal with the case where IDF_PATH contains ~
Angus Gratton [Fri, 16 Dec 2016 00:30:37 +0000 (11:30 +1100)]
Build system: Deal with the case where IDF_PATH contains ~

See github issue https://github.com/espressif/esp-idf/issues/118

(This is easier to work around in the build system than to document.)

7 years agoMerge branch 'feature/tw8657_refractor_to_sniffer' into 'master'
Wu Jian Gang [Thu, 15 Dec 2016 11:03:44 +0000 (19:03 +0800)]
Merge branch 'feature/tw8657_refractor_to_sniffer' into 'master'

refactor to sniffer

1. WiFi send the whole packet to smartconfig
2. Fixed some modem sleep bugs

See merge request !306

7 years agoesp32: refactor to sniffer
Liu Zhi Fu [Mon, 12 Dec 2016 02:00:24 +0000 (10:00 +0800)]
esp32: refactor to sniffer

1. TW8657, WIFI send the whole packet to smartconfig;
2. modify API annotation of smartconfig and sniffer;
3. export smartconfig APIs to programming guide;

7 years agoMerge branch 'bugfix/tw9240_fix_lwip_dual_core_issue' into 'master'
Wu Jian Gang [Thu, 15 Dec 2016 09:33:28 +0000 (17:33 +0800)]
Merge branch 'bugfix/tw9240_fix_lwip_dual_core_issue' into 'master'

lwip: fix lwip dual core issue

Call xSemaphoreGiveFromISR instead xSemaphoreGive when the calling context is in critical section.

See merge request !314

7 years agoesp32: update wifi lib, fix some modem sleep bugs
Xia Xiaotian [Wed, 14 Dec 2016 03:13:15 +0000 (11:13 +0800)]
esp32: update wifi lib, fix some modem sleep bugs

1. tw7426: fix the bug that config ap crashes(7bb90c19)
2. tw9149: fix memory leak in modem sleep(1f450cb8)
3. tw9157: fix dtim change log in modem sleep(1f450cb8)
4. update smartconfig.a

7 years agoMerge branch 'bugfix/heap_alloc_no_iram' into 'master'
Ivan Grokhotkov [Thu, 15 Dec 2016 08:28:29 +0000 (16:28 +0800)]
Merge branch 'bugfix/heap_alloc_no_iram' into 'master'

Restore ability to alloc IRAM, and more.

- Fix mem regions so allocating IRAM works again
- Optimize allocator slightly, uses 4 less bytes per malloc now
- Allow querying free heap memory space per memory type

See merge request !301

7 years agoMerge branch 'bugfix/btdm_bluedroid' into 'master'
Jiang Jiang Jian [Thu, 15 Dec 2016 08:10:21 +0000 (16:10 +0800)]
Merge branch 'bugfix/btdm_bluedroid' into 'master'

Bugfix/btdm bluedroid

Cleanup all the warnings。
Fix GATT CLIENT cannot receive notfiy/indicate from GATT SERVER bug.

Originally, bluetooth have its own master branch(feature/btdm_bluedroid), all the bluetooth sub branch will merge to feature/btdm_bluedroid firstly. If feature/btdm_bluedroid is ready, it will request merge to master. But as Ivan/JG/Jack's requires, all the bluetooth bugfix or feature will request merge to master ASAP.
This MR contains "cleanup warning " and "some bug fix", after, every merge request only contain one thing.

See merge request !286

7 years agoMerge branch 'bugfix/uart_examples_intr' into 'master'
Jeroen Domburg [Thu, 15 Dec 2016 07:15:32 +0000 (15:15 +0800)]
Merge branch 'bugfix/uart_examples_intr' into 'master'

Update uart examples in uart.h to new interrupt allocation scheme

Some of the examples in the UART header haven't been adjusted to the new interrupt scheme; this fixes that. Also runs dos2unix on the drivers tree; a fair few drivers used DOS-style line ends.

See merge request !313

7 years agoadd more comments and call portYIELD when necessary
Liu Zhi Fu [Thu, 15 Dec 2016 07:06:00 +0000 (15:06 +0800)]
add more comments and call portYIELD when necessary

7 years agoMake internal function static
Jeroen Domburg [Wed, 14 Dec 2016 03:44:17 +0000 (11:44 +0800)]
Make internal function static

7 years agoAdd testcase, fix executable memory allocated in shared dram/iram region
Jeroen Domburg [Tue, 13 Dec 2016 14:21:20 +0000 (22:21 +0800)]
Add testcase, fix executable memory allocated in shared dram/iram region

7 years agoFix small things noticed in MR, add documentation
Jeroen Domburg [Tue, 13 Dec 2016 09:01:10 +0000 (17:01 +0800)]
Fix small things noticed in MR, add documentation

7 years agoAdd xPortGetFreeHeapSizeCaps and xPortGetMinimumEverFreeHeapSizeCaps plus everything...
Jeroen Domburg [Fri, 9 Dec 2016 09:13:45 +0000 (17:13 +0800)]
Add xPortGetFreeHeapSizeCaps and xPortGetMinimumEverFreeHeapSizeCaps plus everything it entails. Allows querying the available memory for various capabilities. Also: xPortGetFreeHeapSize and xPortGetMinimumEverFreeHeapSize now return the expected value. Bonus: the linked list used in the allocator is now 4 bytes smaller, which should save some memory.

7 years agoTabs -> spaces
Jeroen Domburg [Fri, 9 Dec 2016 08:19:24 +0000 (16:19 +0800)]
Tabs -> spaces

7 years agoDo not disable entire IRAM pool; instead disable only the bit that is used. This...
Jeroen Domburg [Fri, 9 Dec 2016 08:17:26 +0000 (16:17 +0800)]
Do not disable entire IRAM pool; instead disable only the bit that is used. This gives us 50K of iram at the moment.

7 years agoAdd name to tag type
Jeroen Domburg [Fri, 9 Dec 2016 07:48:32 +0000 (15:48 +0800)]
Add name to tag type

7 years agoMerge branch 'master' into bugfix/btdm_bluedroid
Tian Hao [Thu, 15 Dec 2016 06:40:29 +0000 (14:40 +0800)]
Merge branch 'master' into bugfix/btdm_bluedroid

7 years agolwip: fix lwip dual core issue
Liu Zhi Fu [Thu, 15 Dec 2016 06:37:21 +0000 (14:37 +0800)]
lwip: fix lwip dual core issue

Call xSemaphoreGiveFromISR instead xSemaphoreGive when the calling context is in critical section.

7 years agocomponent/bt : fix advertising bug
Tian Hao [Thu, 15 Dec 2016 06:33:09 +0000 (14:33 +0800)]
component/bt : fix advertising bug

1. low duty can not be set bug
2. adv type can not be effective bug

7 years agocomponent/bt : add some macro , so redo the doxygen
Tian Hao [Thu, 15 Dec 2016 06:02:48 +0000 (14:02 +0800)]
component/bt : add some macro , so redo the doxygen

7 years agocomponent/bt : change the resolving list cleanup position
Tian Hao [Thu, 15 Dec 2016 05:35:30 +0000 (13:35 +0800)]
component/bt : change the resolving list cleanup position

1. enable will malloc, but disable don't free resolving list, so fix it
2. In disable procedure, it will alloc alarm to hash_map, and all the alarm  hash_map will be free in deinit. So this need not be fixed currently.

7 years agoConvert DOS line ends to Unix line ends in drivers
Jeroen Domburg [Thu, 15 Dec 2016 01:45:40 +0000 (09:45 +0800)]
Convert DOS line ends to Unix line ends in drivers

7 years agoUpdate examples in uart.h
Jeroen Domburg [Thu, 15 Dec 2016 01:44:21 +0000 (09:44 +0800)]
Update examples in uart.h

7 years agoRemove alignment reqs from spi_flash_{read,write}
Deomid Ryabkov [Fri, 9 Dec 2016 17:29:31 +0000 (17:29 +0000)]
Remove alignment reqs from spi_flash_{read,write}

7 years agoMerge branch 'bugfix/conf_across_mountpoints' into 'master'
Angus Gratton [Wed, 14 Dec 2016 23:07:27 +0000 (07:07 +0800)]
Merge branch 'bugfix/conf_across_mountpoints' into 'master'

Create temp config in the same dir as target

Fixes case where SDK and app are on different mounts

(In our usage of kconfig, dirname is the empty string & basename is the full path to sdkconfig)

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

See merge request !309

7 years agoMerge branch 'bugfix/build_deps_assembler' into 'master'
Angus Gratton [Wed, 14 Dec 2016 22:48:15 +0000 (06:48 +0800)]
Merge branch 'bugfix/build_deps_assembler' into 'master'

build system: Generate dependency make rules for assembler source

Was previously only C, C++.

See merge request !304

7 years agobuild system tests: Add test case for sdkconfig-triggered recompilation
Angus Gratton [Wed, 7 Dec 2016 20:32:36 +0000 (07:32 +1100)]
build system tests: Add test case for sdkconfig-triggered recompilation

7 years agobuild system: Generate dependency make rules for assembler source
Angus Gratton [Sun, 11 Dec 2016 23:02:41 +0000 (10:02 +1100)]
build system: Generate dependency make rules for assembler source

Was previously only C, C++.

7 years agoMerge branch 'bugfix/build_system_linker_script_deps' into 'master'
Angus Gratton [Wed, 14 Dec 2016 21:38:54 +0000 (05:38 +0800)]
Merge branch 'bugfix/build_system_linker_script_deps' into 'master'

build system: Linker scripts or binary libraries should trigger a re-link

Add binary libraries and linker scripts to the list of dependencies for the ELF file.

Fixes TW7816.

See merge request !307

7 years agoAllow gw to be null
Deomid Ryabkov [Wed, 14 Dec 2016 19:30:40 +0000 (19:30 +0000)]
Allow gw to be null

Allow interfaces to be configured without a default gateway, for
local-only communication.

In case of the AP interface, if gw is not set, do not offer it.

7 years agocomponent/bt : fix bluetooth disable memory leak
Tian Hao [Wed, 14 Dec 2016 17:36:27 +0000 (01:36 +0800)]
component/bt : fix bluetooth disable memory leak

7 years agocomponent/bt : fix enable bug
Tian Hao [Wed, 14 Dec 2016 13:45:18 +0000 (21:45 +0800)]
component/bt : fix enable bug

1. enable will cause exception with list->head memory modify
2. gatt complete, timeout with HCI cmd timeout will cause exception

7 years agocomponent/bt : increase the task stack size
Tian Hao [Tue, 13 Dec 2016 11:34:07 +0000 (19:34 +0800)]
component/bt : increase the task stack size

1. increase HCI task stack size
2. increase BTC task stack size for default

7 years agocomponent/bt : fix the init/deinit memory leak
Tian Hao [Tue, 13 Dec 2016 06:57:30 +0000 (14:57 +0800)]
component/bt : fix the init/deinit memory leak

1. modify the memory debug
2. fix init/deinit memory leak

7 years agocomponent/bt : fix the bug of deinit/disable
Tian Hao [Mon, 12 Dec 2016 20:10:44 +0000 (04:10 +0800)]
component/bt : fix the bug of deinit/disable

1. fix the exception of deinit/disable
2. debug mem leak of deinit, fix some memleak, but still something wrong.
3. debug men leak of disable.
4. add bluedroid memory debug

7 years agoMerge branch 'bugfix/rom_int_functions' into 'master'
Ivan Grokhotkov [Tue, 13 Dec 2016 06:16:57 +0000 (14:16 +0800)]
Merge branch 'bugfix/rom_int_functions' into 'master'

Fix broken WiFi due to intr allocation code.

TL;DR: The dynamic interrupt allocation code fixed something up to the point it broke. This code breaks off the broken code, fixing everything.

The dynamic allocated interrupt patch also fixed a bug in FreeRTOSs interrupt handling for two cores, which caused the two cores to (most of the time) have exactly the same interrupts enabled. This made WiFi fail: it would wait on a semaphore but never figure out the other core had set the semaphore, so it would keep waiting in the idle task for ever. This was caused by both the cross-core interrupt as well as the tick interrupt being disabled.

The culplrit for this appeared to be the WiFi driver, which enabled a FRC2 interrupt. The code enabling this, through a respectable amount of defines, called a rom function which called a HAL function... which was configured in such a way that it worked okay if both CPUs happened to have the same interrupts set, but broke as soon as that was not the case, possibly setting only the interrupt that was enabled and clearing all others.

The fix for this is to not use the ROM functions, but provide our own instead. Fortunately, this can be done without changes in the WiFi libs.

This MR also addresses a potentially dangerous ESP_LOG as well as some, according to the ISA document, needed rsyncs in the interrupt enable/disable code. It also marks int 9 and 10 as reserved, the WiFi code seems to use this.

See merge request !308

7 years agoPut ets_isr_* functions into IRAM. Original fns were in ROM so people may expect...
Jeroen Domburg [Tue, 13 Dec 2016 03:29:34 +0000 (11:29 +0800)]
Put ets_isr_* functions into IRAM. Original fns were in ROM so people may expect them to work when flash cache is out.

7 years agonewlib: fix unit test name in test config
Ivan Grokhotkov [Sun, 11 Dec 2016 14:25:02 +0000 (22:25 +0800)]
newlib: fix unit test name in test config

7 years agofreertos: fix TLS delete callback test
Ivan Grokhotkov [Fri, 9 Dec 2016 11:44:27 +0000 (19:44 +0800)]
freertos: fix TLS delete callback test

“Full” printf uses more stack space than “nano” printf, and more space than available in the idle task.
This caused stack overflow in TLS delete test. Replacing printf with ets_printf.

7 years agoReplace non-multicore-aware rom funcs with multicore-aware funcs, ESP_LOG->ESP_EARLY_...
Jeroen Domburg [Mon, 12 Dec 2016 12:05:58 +0000 (20:05 +0800)]
Replace non-multicore-aware rom funcs with multicore-aware funcs, ESP_LOG->ESP_EARLY_LOG fix, reserve ints used in wireless libs. Fixes WiFi crashing

7 years agocomponents/tcpip_adapter: Fix set static IP address issue
Liu Han [Tue, 13 Dec 2016 01:52:29 +0000 (09:52 +0800)]
components/tcpip_adapter: Fix set static IP address issue

Set static IP address, clear current DNS servers.

7 years agoMerge branch 'feature/make_size' into 'master'
Angus Gratton [Mon, 12 Dec 2016 23:25:35 +0000 (07:25 +0800)]
Merge branch 'feature/make_size' into 'master'

Add the size target to project Makefile

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

See merge request !305

7 years agoAdd the size target to project Makefile
Jonathan Dumaresq [Fri, 9 Dec 2016 16:07:44 +0000 (11:07 -0500)]
Add the size target to project Makefile