Kedar Sovani
a41b1a9d1f
esp32: Register event handlers on the esp_wifi_init() call
2017-08-16 15:54:28 +05:30
Kedar Sovani
55a6aca355
wifi: Map esp_wifi_init() to esp_wifi_init_internal()
...
Follow-on patches will include additional functionality in
esp_wifi_init()
2017-08-16 15:54:28 +05:30
Kedar Sovani
8063b93497
wifi_lib: Update to the change in the wifi_lib repository
2017-08-16 15:54:13 +05:30
Ivan Grokhotkov
1633582ac4
Merge branch 'bugfix/spi_address' into 'master'
...
fix(spi_master): make the address field more intuitive to use.
See merge request !1074
2017-08-16 10:25:21 +08:00
Nilay Sheth
0eb59844bb
bugfix(driver): fix RMT issues from github
...
1. Rename api from rmt_get_ringbuf_handler to rmt_get_ringbuf_handle (Github Issue #274 )
2. doxygen param rename
3. change API rmt_wait_tx_done to specify maximum waiting time
4.Change return type of rmt_wait_tx_done API from bool to esp_err_t
5. update doc
2017-08-15 17:23:51 +08:00
michael
ed1d084aea
fix(spi_master): make the address field more intuitive to use.
...
The address field should be placed at the highest bits of address and slv_wr_status registers. Instead of breaking the address into two parts and fill in each register, move the address to the highest bits and write to the registers respectively.
Breaking change: if you fill-in the SPI address filed in a previous version in some way and it works correctly, you still have to rewrite the address, in a more intuitive way.
2017-08-15 14:49:31 +08:00
Angus Gratton
969f1bb9be
Merge branch 'bugfix/ota_failsafe' into 'master'
...
bootloader: Fallback if OTA data is invalid
See merge request !1033
2017-08-15 08:11:38 +08:00
Angus Gratton
5eef5e7a5d
bootloader: Fallback if OTA data is invalid
...
Make bootloader more robust if either OTA data or some OTA app slots are corrupt.
2017-08-15 09:42:19 +10:00
michael
366e4397e9
fix(spi_dma_rx): fixed the invalid argument issue in full-duplex mode.
...
force rxlength=length and mosi=1 and inlink.start=1 on in full-duplex mode.
set rxlength > length is forbidden in full-duplex mode.
TW#12609, TW#14240, https://www.esp32.com/viewtopic.php?f=13&t=2519
2017-08-14 17:25:30 +08:00
michael
227b011f6a
fix(spi_master): fix SPI master, now able to transfer more than 32 bytes in non-DMA-accessable area.
...
apply for internal space to hold these data.
use DMA when it's enabled, no matter long or short.
TW#12226, github#551
2017-08-14 17:19:57 +08:00
Angus Gratton
8f44efc619
Merge branch 'bugfix/ledc_fade_divided_by_zero' into 'master'
...
bugfix(ledc): fix integer divided by zero in function ledc_set_fade_with_time
See merge request !1048
2017-08-14 13:52:36 +08:00
Ivan Grokhotkov
5fdde089e5
Merge branch 'bugfix/wl_ext_size_test' into 'master'
...
wear_levelling: fix unit test, fix sector erase in performance mode
See merge request !1093
2017-08-14 09:35:12 +08:00
Kedar Sovani
0cc59d5f67
build: Print real paths for 'ulp' build objects as well
...
Signed-off-by: Kedar Sovani <kedars@gmail.com>
2017-08-11 14:26:44 +05:30
baohongde
b041c042bb
component/bt: Fix gatt read by type response bug
2017-08-10 20:05:10 +08:00
XiaXiaotian
67b6327c4e
Zero static IP address can also be set
2017-08-10 19:43:26 +08:00
Ivan Grokhotkov
43b81c8f11
Merge branch 'feature/fast_crypto_used_in_supplicant' into 'master'
...
Add the fast crypto function in supplicant, relate to the task tw13712
See merge request !1075
2017-08-09 21:55:05 +08:00
Deng Xin
57bc38d867
Add the fast crypto function in supplicant
...
optimize the speed when do wifi connect
2017-08-09 21:36:13 +08:00
Dmitry Yakovlev
af414eadbd
Log level changed to remove useless info.
2017-08-09 10:25:40 +03:00
Dmitry Yakovlev
8f0f9d8ab0
Fix: tests now process correct. The length of written array now fit to the defined range.
...
Fix: perfomance mode bugfix for big sector sizes.
2017-08-09 09:35:32 +03:00
Yulong
4efc97efc1
component/bt: All esp_bluedroid_get_status check-return could be used as MACRO ESP_BLUEDROID_STATUS_CHECK(ESP_BLUEDROID_STATUS_ENABLED);
2017-08-08 05:28:19 -04:00
Ivan Grokhotkov
5539bfb83b
sdmmc: mark new unit test as ignored
2017-08-08 03:51:54 +08:00
Ivan Grokhotkov
59a28ebccc
wear_levelling: temporarily disable 512 byte sectors
...
Unit tests are failing with the new 512 byte sector option. Disabling
this option to let the tests pass.
2017-08-08 03:26:14 +08:00
Ivan Grokhotkov
097dced499
wear_levelling: clean up Kconfig
2017-08-08 03:26:14 +08:00
Ivan Grokhotkov
b260f6cb25
Merge branch 'bugfix/sdmmc_unaligned_write' into 'master'
...
sdmmc: fix reads/writes to/from unaligned buffers
See merge request !1071
2017-08-08 02:55:13 +08:00
Ivan Grokhotkov
a88435ccbf
Merge branch 'feature/aws_iot_menuconfig' into 'master'
...
aws_iot: Expose common SDK compile-time configuration in menuconfig
See merge request !1030
2017-08-07 17:22:48 +08:00
Ivan Grokhotkov
dfda0fa67b
Merge branch 'feature/add_gpio_drive_capability' into 'master'
...
feature(gpio): add APIs to set and get pad drive capability.
See merge request !1010
2017-08-07 17:21:42 +08:00
Ivan Grokhotkov
7421452ca2
Merge branch 'bugfix/nghttp_build_port' into 'master'
...
nghttp: build port directory
See merge request !1057
2017-08-07 17:21:15 +08:00
Ivan Grokhotkov
72ee0120cd
Merge branch 'feature/wl_ext_sector_size' into 'master'
...
Feature/wl ext sector size
See merge request !1038
2017-08-07 17:20:34 +08:00
Ivan Grokhotkov
938085e749
Merge branch 'bugfix/windows_build' into 'master'
...
Disable link time optimisation for bootloader
See merge request !1044
2017-08-07 17:19:16 +08:00
Jiang Jiang Jian
a92806b089
Merge branch 'bugfix/tw14130_fix_buf_err' into 'master'
...
emac:fix rx buf err
See merge request !1073
2017-08-04 15:17:33 +08:00
shangke
01a2c31e1f
change copy right
2017-08-04 14:56:58 +08:00
Jiang Jiang Jian
886ea722ec
Merge branch 'bugfix/btdm_add_set_local_privacy_callback' into 'master'
...
component/bt: add set local privacy func callback
See merge request !1026
2017-08-04 14:52:02 +08:00
Jiang Jiang Jian
ea3b3046c2
Merge branch 'bugfix/btdm_fix_esp_ble_gatts_set_attr_value_memory_leak' into 'master'
...
component/bt: fix esp_ble_gatts_set_attr_value() memory leak
See merge request !1068
2017-08-04 14:40:54 +08:00
shangke
05aa09fbb9
beautify the code
2017-08-04 14:24:44 +08:00
shangke
1e6f904d38
add comments for rx list
2017-08-03 14:44:22 +08:00
Jiang Jiang Jian
e165336428
Merge branch 'bugfix/btdm_Wrong_return_code_type_for_esp_ble_gattc_register_for_notify_and_unregister_for_notify_func' into 'master'
...
component/bt: fix wrong return code type for notify functions
See merge request !1070
2017-08-03 10:49:47 +08:00
Ivan Grokhotkov
d286d2f647
Merge branch 'feature/apptrace_api_ext' into 'master'
...
esp32: Apptrace API enhancement
See merge request !1021
2017-08-02 14:34:42 +08:00
shangke
ae571ddddf
fix rx buf
2017-08-01 11:59:57 +08:00
Tian Hao
d2872cbf2e
component/bt : remove fixed queue from btu
2017-08-01 11:35:22 +08:00
Jiang Jiang Jian
fedc5090d1
Merge branch 'bugfix/btdm_optimize_controller_task' into 'master'
...
component/bt : fix a bug and optimize controller task handler
See merge request !1066
2017-08-01 11:10:56 +08:00
Ivan Grokhotkov
512898edee
sdmmc: fix reads/writes to/from unaligned buffers
...
SDMMC hardware treats all buffers as aligned, and ignores 2 LSBs of
addresses written into DMA descriptors. Previously SDMMC host driver
assumed that data buffers passed from SDDMC command layer would be
aligned. However alignment checks were never implemented in the command
layer, as were the checks that the buffer coming from the application
would be in DMA capable memory. Most of the time this was indeed true.
However in some cases FATFS library can pass buffers offset by 2 bytes
from word boundary. “DMA capable” restriction may be broken if pSRAM
support is used.
This change adds buffer checks to the SDMMC host driver (alignment and
DMA capability), so that the host layer will error out for incompatible
buffers. In SDMMC command layer, a check is added to read and write
functions. If an incompatible buffer is passed from the application, new
buffer (512 bytes size) is allocated, and the transfer is performed
using {READ,WRITE}_SINGLE_BLOCK commands.
2017-08-01 03:15:11 +08:00
Jeroen Domburg
9314bf0d37
Merge branch 'bugfix/spi_change_host' into 'master'
...
fix(spi_master): fix the bug that VSPI no respond when host changed from HSPI to VSPI, and vice versa.
See merge request !997
2017-07-31 18:33:36 +08:00
Dmitry Yakovlev
831cc4b42f
Typos correction.
2017-07-31 13:19:41 +03:00
Dmitry Yakovlev
06805842ea
Some typos corrected in readme.
2017-07-31 13:19:38 +03:00
Dmitry Yakovlev
9ebb68c2dc
Added component to change standard size of the flash device. Now the sector size could be less. The configuration supports it.
2017-07-31 13:19:36 +03:00
zhiweijian
6ff53d1967
Component/bt: wrong return code type for notify func
...
- fix esp_ble_gattc_register_for_notify() returen wrong code type
- fix esp_ble_gattc_unregister_for_notify() returen wrong code type
2017-07-31 18:02:15 +08:00
zhiweijian
87d58b9ddb
Component/bt: fix esp_ble_gatts_set_attr_value( ) memory leak
2017-07-31 17:24:07 +08:00
Tian Hao
6afadc3286
component/bt : fix a bug and optimize controller task handler
...
1. fix controller task printf in ISR may cause exception.
2. optimize task handler process.
2017-07-31 14:48:39 +08:00
XiaXiaotian
1c4f7f2081
add get and set wifi maximum transmit power API
2017-07-28 15:06:52 +08:00
Jiang Jiang Jian
a31736990c
Merge branch 'bugfix/btdm_osi' into 'master'
...
component/bt : add osi_is_in_isr && fix vhci delay
See merge request !1054
2017-07-28 11:35:04 +08:00
Jiang Jiang Jian
ff3aa69e76
Merge branch 'feature/tw13968_optimize_for_tcp_close' into 'master'
...
lwip: optimize TCP close
See merge request !1022
2017-07-28 11:34:12 +08:00
Ivan Grokhotkov
3bd6194c58
Merge branch 'feature/docs_jtag_debugging' into 'master'
...
Update and extension of Debugging documentation
See merge request !850
2017-07-27 22:03:45 +08:00
Liu Zhi Fu
4ad1f2b272
lwip: optimize TCP close
...
Optimize TCP close:
1. Not remove TCP pcb when IP address is changed since the lwip netconn still need the pcb
2. If the TCP connection is in TCP_FIN_WAIT_1 for too long time, remove it
2017-07-27 12:44:39 +08:00
Jiang Jiang Jian
843159b0d7
Merge branch 'feature/add_menuconfig_option_for_ba_window' into 'master'
...
esp32: add menuconfig options to configure BA window
See merge request !915
2017-07-27 10:46:04 +08:00
zhiweijian
fc05851b05
Component/bt: add set local privacy func callback
2017-07-26 17:29:10 +08:00
krzychb
1fb85b494c
JTAG Debugging - revamping of Debugging documentation
2017-07-26 14:53:43 +08:00
Ivan Grokhotkov
ee6d0631f4
nghttp: build port directory
...
Fixes https://github.com/espressif/esp-idf/issues/843
2017-07-26 14:27:20 +08:00
Ivan Grokhotkov
002f38fa8f
Merge branch 'feature/sdspi_driver' into 'master'
...
SD SPI mode driver
This MR adds functionality to support SD cards connected via SPI interface.
Additionally, two bugs are fixed:
- Definition of `SPI_TRANS_MODE_DIOQIO_ADDR` in spi_master driver
- SD card probing frequency was 4000kHz instead of 400kHz as required by the standard
See merge request !727
2017-07-26 13:51:37 +08:00
Jiang Jiang Jian
460ab2e33b
Merge branch 'feature/make_tcp_udp_receive_mbox_configurable' into 'master'
...
lwip: Make UDP/TCP receive mail box configurable
See merge request !1051
2017-07-25 20:45:38 +08:00
Tian Hao
b500d6558a
component/bt : add osi_is_in_isr && fix vhci delay
2017-07-25 19:58:39 +08:00
Liu Zhi Fu
7b2f388abc
lwip: Make UDP/TCP receive mail box configurable
...
Different application may require different TCP/UDP receiv mail box size,
so make them configurable.
2017-07-25 13:56:32 +08:00
Liu Zhi Fu
c99c5d13e6
esp32: add menuconfig options to configure BA window
...
Make AMPDU Block Ack Window configurable in menuconfig because we need to configure it
in some special cases, such as iperf test etc
2017-07-25 13:11:38 +08:00
Liu Zhi Fu
9ae5c6700b
lwip/ethernet: fix emac rx buf err
...
1. Lwip not free the ethernet buf in lwip layer
2. Fix emac counter error
2017-07-25 11:19:31 +08:00
Alexey Gerenkov
60c45ae2c4
Updated acc to comments
2017-07-24 20:07:21 +03:00
Alexey Gerenkov
c2c9149a24
esp32: Apptrace API enhancement
...
- User down buffer configuration support
- bugfix: ring buf - avalable write size undeflow
- SysView down buf support updated
2017-07-24 19:57:44 +03:00
Ivan Grokhotkov
6fbd6a007b
Merge branch 'bugfix/uart_tx_glitch' into 'master'
...
bugfix(uart): fix signal glitch on tx pin
See merge request !1032
2017-07-24 19:43:25 +08:00
Yulong
9d9280a8ea
component/bt: Added the bluedorid status checkout for the BLE security API.
2017-07-24 02:50:23 -04:00
Ivan Grokhotkov
967611cfaa
Revert "bootloader: Add option to build with Link Time Optimisation enabled"
...
This reverts commit d1b66a08c1
.
2017-07-24 05:14:31 +08:00
qianyicheng
acec9b9d35
bugfix(ledc): fix integer divided by zero in function ledc_set_fade_with_time
2017-07-21 19:06:44 +08:00
michael
99769f0b00
fix(spi_master): fix the bug that VSPI no respond when host changed
...
from HSPI to VSPI, and vice versa.
fix the SPI control bits written wrong in the headers.
TW#12123, Github#477
2017-07-21 14:50:17 +08:00
Tian Hao
63566f6650
component/bt : fix RX packets losing bug
2017-07-20 15:53:01 +08:00
Jiang Jiang Jian
8fd6ab9a39
Merge branch 'feature/btdm_ble_tx_power_new' into 'master'
...
component/bt : add ble tx power && fix controller deinit mem leak
See merge request !1018
2017-07-20 15:16:13 +08:00
Wangjialin
9d466de235
bugfix(uart): fix signal glitch on tx pin
...
gpio_matrix_out function will set output enable for GPIO, seems in gpio_matrix_out there will be a short moment that the chip will output GPIO level.
So we can set GPIO as high before gpio_matrix_out function.
2017-07-20 14:34:11 +08:00
Ivan Grokhotkov
292c2abd3b
Merge branch 'bugfix/init_nvs_in_bluetooth' into 'master'
...
bt: call nvs_flash_init in examples, show error if NVS is not initialized
See merge request !1003
2017-07-20 14:25:49 +08:00
Dmitry Yakovlev
e5bb45f381
driver: SD protocol driver for SPI peripheral
2017-07-20 13:43:07 +08:00
Ivan Grokhotkov
5f8785eaec
sdmmc: add support for SPI protocol commands
2017-07-20 13:34:21 +08:00
Ivan Grokhotkov
3b96771feb
sdmmc: fix probing clock frequency
...
Probing clock frequency should be 400kHz, not 4MHz.
2017-07-20 13:34:21 +08:00
Ivan Grokhotkov
54dc350907
spi_master: fix duplicate bit mask for SPI_TRANS_MODE_DIOQIO_ADDR
2017-07-20 13:34:21 +08:00
Angus Gratton
eeb8dc9c35
aws_iot: Expose common SDK compile-time configuration in menuconfig
...
Closes https://github.com/espressif/esp-idf/issues/637
2017-07-20 15:28:29 +10:00
Ivan Grokhotkov
b9f660524c
Merge branch 'bugfix/exception_lomem_heap_init' into 'master'
...
heap_caps: Allow for possibility a region is too small to register a heap
See merge request !1024
2017-07-20 12:13:12 +08:00
Angus Gratton
871ba41a09
bootloader: Remove unnecessary KEEP on data/bss sections, save static RAM
2017-07-19 18:31:59 +10:00
Angus Gratton
d1b66a08c1
bootloader: Add option to build with Link Time Optimisation enabled
2017-07-19 18:31:59 +10:00
Angus Gratton
17adb40ca8
bootloader: Calculate SHA256 hash of image on every boot
...
Makes app image booting more reliable (256-bit rather than 8-bit verification.)
Some measurements, time to boot a 655KB app.bin file and run to app_main() execution.
(All for rev 1 silicon, ie no 340ms spurious WDT delay.)
80MHz QIO mode:
before = 300ms
after = 140ms
40MHz DIO mode:
before = 712ms
after = 577ms
40MHz DIO mode, secure boot enabled
before = 1380ms
after = 934ms
(Secure boot involves two ECC signature verifications (partition table, app) that take approx 300ms each with 80MHz CPU.)
2017-07-19 18:31:59 +10:00
Angus Gratton
caaa29c676
esp_image_format: ESP32 additional header does not contain an encrypt flag
2017-07-19 18:25:17 +10:00
Angus Gratton
43b99edf2b
bootloader: Calculate SHA-256 of image while loading/verifying
2017-07-19 18:25:17 +10:00
Angus Gratton
8f6134dd96
bootloader: Obfuscate loaded memory until verification is complete
2017-07-19 18:25:17 +10:00
Angus Gratton
0c8888d68f
bootloader: Combine loading from flash & verifying to save boot time
...
Still needs updating to account for secure boot.
2017-07-19 18:25:17 +10:00
Angus Gratton
105c4b7386
Merge branch 'feature/esptool_image_padding' into 'master'
...
esptool: Optimise app image size by using RAM-loaded data for padding
See merge request !1017
2017-07-19 15:52:22 +08:00
Angus Gratton
2d9770fd00
linker script: Add some comments about significance of 0x18 byte offset
2017-07-19 17:38:05 +10:00
Angus Gratton
0feb40833a
heap_caps: Allow for possibility a region is too small to register a heap
...
May happen due to sdkconfig, static allocation of RAM.
Closes https://github.com/espressif/esp-idf/issues/802
2017-07-19 17:24:24 +10:00
Angus Gratton
c230e4280c
linker scripts: Limit DROM/IROM section lengths correctly
2017-07-19 16:33:48 +10:00
Angus Gratton
d92c541b1a
esptool: Optimise generated image size by using RAM-loaded data for padding
...
Can save almost 128KB from some images.
2017-07-19 16:24:17 +10:00
Angus Gratton
ec64fa3416
bootloader flash QIO mode: Restore DIO/DOUT mode if enabling quad fails
...
Previously, flash was degraded to single I/O mode.
2017-07-19 15:04:09 +10:00
Angus Gratton
0715d1f8c1
bootloader: When customising SPI flash pins in efuse, set WP pin in menuconfig
...
Allows custom configurations for QIO/QOUT mode.
2017-07-19 15:04:08 +10:00
Wangjialin
c30149e4bd
feature(gpio): add APIs to set and get pad drive capability. RTC pads use RTC registers to contol drive capability.
2017-07-19 11:23:41 +08:00
Angus Gratton
d664e32394
build system: Use component.mk for all components, refactor bootloader build
...
For config-only components, component.mk should now contain "COMPONENT_CONFIG_ONLY := 1"
Also refactored some of the generation of linker paths, library list. This required cleaning up the way the bootloader
project works, it's now mostly independent from the parent.
2017-07-19 09:10:48 +10:00
Tian Hao
006a90e075
component/bt : add ble tx power && fix controller deinit mem leak
...
1. add ble tx power functions
2. add more osi functions.
3. modify bluetooth controller task procedure
4. fix a memory leak when controller deinit
5. add controller disable return value.
2017-07-18 20:22:28 +08:00
Ivan Grokhotkov
aef5e90cce
Merge branch 'feature/mmap_unordered_flash_pages' into 'master'
...
Add function to map non-contiguous flash pages to contiguous memory space.
See merge request !873
2017-07-18 10:49:12 +08:00
Ivan Grokhotkov
0ae916d555
Merge branch 'feature/high_level_interrupts' into 'master'
...
Break out high-level interrupts so a component can override them
See merge request !675
2017-07-18 10:42:31 +08:00
Angus Gratton
4029ed1df4
Merge branch 'bugfix/rom_gpio_typo' into 'master'
...
bugfix(typo): fix typo in rom/gpio.h
See merge request !1009
2017-07-18 06:53:30 +08:00
Ivan Grokhotkov
979fce0df5
bt: call nvs_flash_init in examples, show error if NVS is not initialized
...
NVS is used to store PHY calibration data, WiFi configuration, and BT
configuration. Previously BT examples did not call nvs_flash_init,
relying on the fact that it is called during PHY init. However PHY init
did not handle possible NVS initialization errors.
This change moves PHY init procedure into the application, and adds
diagnostic messages to BT config management routines if NVS is not
initialized.
2017-07-17 21:29:50 +08:00
Ivan Grokhotkov
fd2d53fca6
Merge branch 'bugfix/wl_write' into 'master'
...
wear_levelling: fix write and read length for single access was wrong.
See merge request !993
2017-07-17 18:31:27 +08:00
Dmitry Yakovlev
b36e580756
wear_levelling: fix write and read length for single access was wrong.
2017-07-17 12:00:40 +03:00
Wangjialin
10340d718f
bugfix(typo): fix typo in rom/gpio.h
2017-07-17 15:41:02 +08:00
Angus Gratton
c2e6e10dcc
Merge branch 'bugfix/nghttp2_build_submodules' into 'master'
...
nghttp2: Add submodule to COMPONENT_SUBMODULES, update to v1.24
See merge request !977
2017-07-17 14:14:28 +08:00
Angus Gratton
e50870c2dc
Merge branch 'bugfix/bootloader_stack_smash' into 'master'
...
Fix crashes when >approx 185KB of DRAM is statically allocated
See merge request !983
2017-07-17 14:11:35 +08:00
Angus Gratton
f824829a13
Merge branch 'bugfix/dont_link_unused_data_sections' into 'master'
...
ld: Save RAM by removing unused .data sections at link time
See merge request !985
2017-07-17 14:10:12 +08:00
Jiang Jiang Jian
4ec2abbf23
Merge branch 'feature/some_refactor_for_tcpip_adapter' into 'master'
...
tcpip_adapter: not remove netif when tcpip adapter is stopped
See merge request !943
2017-07-13 22:16:00 +08:00
Jiang Jiang Jian
5ac0503ce7
Merge branch 'bugfix/btdm_modify_BTA_GATTC_KNOWN_SR_MAX_for_Multi-connection' into 'master'
...
component/bt: modify BTA_GATTC_KNOWN_SR_MAX for Multi-connection bug
See merge request !992
2017-07-13 21:55:24 +08:00
Liu Zhi Fu
d724cc23d2
tcpip_adapter: not free netif when tcpip adapter is stopped
...
When tcpip adapter is stop, don't free the netif
2017-07-13 18:42:45 +08:00
Angus Gratton
399ec29a68
Merge branch 'feature/silent_assertions' into 'master'
...
Add "silent" assertion option
See merge request !984
2017-07-13 17:21:09 +08:00
zhiweijian
ca3bf570cd
Component/bt: modify BTA_GATTC_KNOWN_SR_MAX for Multi-connection bug
2017-07-13 16:22:44 +08:00
Angus Gratton
1ed4eadfab
Merge branch 'bugfix/mbedtls_ecp_failure_memory_leak' into 'master'
...
mbedtls: Fix memory leak in initial ECDH exchange if OOM/failure occurs
See merge request !987
2017-07-13 15:39:40 +08:00
Ivan Grokhotkov
0c28b3bc4c
Merge branch 'bugfix/btdm_update_connect_params_for_gattc' into 'master'
...
component/bt: bugfix update connect params for gattc
See merge request !991
2017-07-13 14:32:20 +08:00
Jiang Jiang Jian
fc4d3df890
Merge branch 'bugfix/tw13744_make_low_rate_work' into 'master'
...
esp32: update wifi lib to make low rate work
See merge request !965
2017-07-13 14:26:02 +08:00
Ivan Grokhotkov
7fc25f18d2
Merge branch 'feature/enable_brownout_detector' into 'master'
...
Enable brownout detector
See merge request !811
2017-07-13 11:40:37 +08:00
Angus Gratton
8cd03c84d0
Merge branch 'feature/ip_route_base_on_source_ip' into 'master'
...
Broadcast IP route based on source IP address.
See merge request !942
2017-07-12 17:31:24 +08:00
Angus Gratton
7b565e4b25
assertions: Add "silent" option
...
Reduces assertion codesize overhead by approximately 35%
2017-07-12 17:29:26 +08:00
Angus Gratton
d8d2933bde
Merge branch 'bugfix/gdbstub_handler_noreturn' into 'master'
...
gdbstub: Mark the panic handler entry as noreturn
See merge request !975
2017-07-12 17:23:59 +08:00
Angus Gratton
ffefeef5ea
mbedtls: Fix memory leak in initial ECDH exchange if OOM/failure occurs
...
In ecp_mul_comb(), if (!p_eq_g && grp->T == NULL) and ecp_precompute_comb() fails (which can happen due to OOM), then the new array of points T was leaked.
2017-07-12 16:34:26 +08:00
Angus Gratton
cfbb1a652b
Merge branch 'doc/esp_random' into 'master'
...
esp_random: Add some documentation about using before RF subsystem is on
See merge request !976
2017-07-12 16:18:43 +08:00
Angus Gratton
99fe61716c
startup: Add assertion checks around various initialisation sequences
...
These may fail if close to 192KB of static RAM is allocated (remaining early heap RAM is too small.)
2017-07-12 13:06:56 +08:00
Angus Gratton
2b0f623259
bootloader/early boot: Error out if >192KB of static DRAM is allocated (temporary fix)
...
Currently the last 128KB of DRAM is reserved for the bootloader & early boot stacks. This means if >192KB of static DRAM
is allocated, the only available heap is this region - which is disabled until the scheduler starts. As a result, you
get either heap corruption on early boot if the static data overlaps startup heap (leading to very weird errors), or
FreeRTOS will fail to start when it can't malloc() anything.
Long term fix is to move the stacks & bootloader data to the very end of RAM, and only reserve that part for early
boot. This is a little fiddly because of also wanting to make sure this memory is not preemptively fragmented when it
gets reintroduced to the heap. This will become more important if/when we have more static allocation options in the
future.
For now, these errors make it clear why the boot has failed.
Ref TW13909
2017-07-12 13:06:56 +08:00
Angus Gratton
187b5fb888
ld: Remove unused .data sections at link time
...
Reduces static RAM, code size.
2017-07-12 13:05:54 +08:00
Angus Gratton
083f7d667b
nghttp2: Add submodule to COMPONENT_SUBMODULES, update to release v1.24
...
Removes need for -DNDEBUG hack in component.mk (fixed upstream).
2017-07-12 11:16:55 +08:00
Angus Gratton
d601bedb85
pvPortMalloc: Fix regression when changing to new heap implementation
2017-07-12 11:10:11 +08:00
Angus Gratton
7ae93f271c
Merge branch 'feature/multi_heap' into 'master'
...
Separate the heap implementation from FreeRTOS
See merge request !731
2017-07-12 10:53:37 +08:00
Angus Gratton
3ad163e644
freertos: Bump idle stack size to 1KB, min stack to 768 bytes, make configurable
...
Reverts regression mentioned at
3fe0022efa (commitcomment-23013504)
2017-07-11 14:48:15 +08:00
Angus Gratton
3bb90bab97
esp_random: Add some documentation about using before RF subsystem is on
2017-07-11 14:27:20 +08:00
zhiweijian
8460f1a972
Component/bt: bugfix update connect params for gattc
2017-07-11 11:27:36 +08:00
Angus Gratton
c049cd55a6
gdbstub: Mark the panic handler entry as noreturn
...
Fixes a warning in panic.c when this panic mode is enabled.
2017-07-11 10:18:08 +08:00
Angus Gratton
ad60c30de0
heap: Rename memory "tags" to "types" to avoid confusion w/ old tag allocator API
2017-07-10 17:46:03 +08:00
Angus Gratton
8d7074ed5c
soc: Move esp_ptr_dma_capable() function to soc_memory_layout.h
2017-07-10 17:46:03 +08:00
Angus Gratton
71c70cb15c
heap: Refactor heap regions/capabilities out of FreeRTOS
...
Remove tagged heap API, rename caps_xxx to heap_caps_xxx
Also includes additional heap_caps_xxx inspection functions.
2017-07-10 17:46:03 +08:00
Angus Gratton
5ee49fd311
heap: Add new multi_heap heap implementation to replace FreeRTOS-based tagged heaps
2017-07-10 17:46:03 +08:00
Ivan Grokhotkov
01b185977c
brownout detector: enable by default
...
Because of errata related to BOD reset function, brownout is handled as follows:
- attach an ISR to brownout interrupt
- when ISR happens, print a message and do a software restart
- esp_restart_nonos enables RTC watchdog, so if restart fails,
there will be one more attempt to restart (using the RTC
watchdog)
2017-07-10 17:25:55 +08:00
Ivan Grokhotkov
780569c04a
esp32: fix RTC watchdog configuration in esp_restart
...
RTC watchdog didn’t have any actions configured for any of the stages.
This change configures it to use SW_SYSTEM_RESET at stage 0 and a
full reset at stage 1. The timeout is now calculated based on
RTC_SLOW_CLK frequency.
2017-07-10 17:21:49 +08:00
Ivan Grokhotkov
cbe23147bf
driver/rtc: add support for attaching handlers to RTC_CNTL interrupts
2017-07-10 17:21:49 +08:00
Liu Zhi Fu
e1f13eda49
esp32: update wifi lib to make low rate work
...
Make low rate work
2017-07-07 22:05:54 +08:00
Tian Hao
7a79d31db0
fix reg operation missing
2017-07-07 20:04:24 +08:00
Jeroen Domburg
d3290479b2
Merge panic and dport high level interrupt code to both use int level 4
2017-07-07 12:51:33 +08:00
Jeroen Domburg
1d748db209
Break out high-level interrupts so a component can override them
2017-07-07 12:51:33 +08:00
Anton Maklakov
3d1d4fe150
build: Fix the warnings that break the tests
...
unused variable 'lfn'
'isr_handler' defined but not used
'servo_set_angle' defined but not used
'gpio_test_signal' defined but not used
'change_duty' defined but not used
2017-07-07 11:03:25 +08:00
Jeroen Domburg
927b5685cd
Merge branch 'bugfix/partition_mmap_size' into 'master'
...
esp_partition_mmap size calculation fix
See merge request !947
2017-07-06 18:44:59 +08:00
Jeroen Domburg
6c2b4854e1
Add test for partition mmap straddling 64K page issue
2017-07-06 18:22:43 +08:00
Angus Gratton
fd9d889e62
mbedtls unit tests: Allow for longer timeout using software SHA
...
Hardware SHA runs SHA operations faster than software...
2017-07-06 15:54:01 +08:00
Jiang Jiang Jian
6d03d42d2f
Merge branch 'bugfix/btdm_error_length_unit' into 'master'
...
Component/bt: fix bug for error length unit
See merge request !950
2017-07-06 14:48:29 +08:00
Ivan Grokhotkov
9aa0188655
Merge branch 'bugfix/small_typos' into 'master'
...
Fix a few minor typos in docs
See merge request !954
2017-07-06 14:27:22 +08:00
Ivan Grokhotkov
571ee9d1cb
Merge branch 'bugfix/disable_crypto_acceleration' into 'master'
...
mbedtls: Temporarily disable hardware acceleration in dual-core mode
See merge request !956
2017-07-06 14:26:41 +08:00
Ivan Grokhotkov
6b2e16e51b
soc: fix typo in register name
2017-07-06 12:36:06 +08:00
Ivan Grokhotkov
1194f59e1a
Merge branch 'bugfix/i2s_return_err_code' into 'master'
...
i2s driver: return error code if register isr error
See merge request !829
2017-07-06 11:25:40 +08:00
Ivan Grokhotkov
a054ced740
esp_chip_info: populate ‘model’ field
2017-07-06 11:01:40 +08:00
Angus Gratton
c35aa1d9a2
mbedtls: Temporarily disable hardware acceleration in dual-core mode
...
Temporary fix, until DPORT bugs in crypto accelerators are completely fixed.
2017-07-05 12:03:00 +08:00
Ivan Grokhotkov
ef63811e6d
phy_init: fix log level for "PHY data partition validated" message
2017-07-05 11:29:53 +08:00
zhiweijian
ad8cce3053
Component/bt: fix bug for error length unit
2017-07-04 10:57:36 +08:00
Jiang Jiang Jian
55b3ea9ccc
Merge branch 'bugfix/btdm_cherry-pick_ble_smp_bonding_issues' into 'master'
...
component/bt: Fixed the bug crash of disconnet BLE when close the SMP module in the menuconfig.
See merge request !941
2017-07-03 19:41:56 +08:00
Jeroen Domburg
93b7eaf5b2
esp_partition_mmap could map a page less than needed because it did not take the region offset into account.
2017-07-03 18:02:28 +08:00
wangmengyang
8959c7de20
component/bt: bugfix for AVDTP state machine during disconnection in failure to handle NULL parameter
2017-07-03 17:25:44 +08:00
Yulong
5b9a89f04d
component/bt: squech the commit
...
component/bt: Fixed the bug crash of disconnet BLE when close the SMP module in the menuconfig.
component/bt: Removed the Excess #endid ///SMP_INCLUDED == TRUE in the l2cu_no_dynamic_ccbs function.
2017-07-03 03:07:23 -04:00
Ivan Grokhotkov
0837b3b743
Merge branch 'doc/wifi_set_vendor_ie' into 'master'
...
Document the WiFi Vendor-Specific Information Element API
See merge request !933
2017-06-30 16:37:18 +08:00
Ivan Grokhotkov
15231f1cce
Merge branch 'bugfix/newlib_lock_init' into 'master'
...
newlib locks: Fix _lock_init() & _lock_init_recursive() failing to initialise a lock
See merge request !937
2017-06-30 16:36:47 +08:00
Ivan Grokhotkov
a4ae3efcd2
Merge branch 'bugfix/ipc_task_stack_size' into 'master'
...
Bugfix IPC task stack size
See merge request !938
2017-06-30 16:36:18 +08:00
XiaXiaotian
7a64e19ba8
Broadcast IP route based on source IP address.
...
If destination IP address of the packet is broadcast address, firstly compare
source IP address with the that of each network interface. If it matches,
packet is forwarded from the interface.
2017-06-30 16:18:29 +08:00
Angus Gratton
9297edaf60
ipc task: Allow configuration of IPC task stack size
...
Fixes regression in 3fe0022ef
2017-06-30 15:04:19 +10:00
Ivan Grokhotkov
016a579806
Merge branch 'bugfix/uart_tx_buffer_length' into 'master'
...
bugfix(uart): fix bugs reported from github
See merge request !927
2017-06-30 12:30:25 +08:00
Angus Gratton
75d6fdf73c
newlib locks: Fix _lock_init() & _lock_init_recursive() failing to initialise a lock
...
If scheduler was running, and lock was an automatic variable (ie stack-allocated) to be initialised by _lock_init*,
initialisation could be skipped if the lock variable was non-zero (and lock would be left invalid).
In other cases the lock is statically initialised to zero by __LOCK_INIT*
2017-06-30 08:54:56 +10:00
Angus Gratton
5c925bf96e
esp_wifi.h: Document the Vendor-Specific Information Element functions
2017-06-29 17:29:23 +10:00
Angus Gratton
b3603ccf58
esp_wifi header: Fix typo
2017-06-29 17:19:17 +10:00
Angus Gratton
3fe0022efa
stack sizes: Revert stack size increases added in 8d43859
...
Set min stack size to 2048 if AppTrace support is enabled, 512 bytes otherwise.
2017-06-29 14:57:13 +10:00
Angus Gratton
415a7d742a
dport_access: Fix spurious warning in unicore mode, refactor
2017-06-29 13:57:13 +10:00
Ivan Grokhotkov
9b955f4c9f
Merge branch 'feature/sysview_via_apptrace' into 'master'
...
sysview via apptrace
See merge request !708
2017-06-29 08:40:13 +08:00
Jan Mrázek
f698a1b2d3
Add missing support for C++ exceptions
...
Specifying -fexceptions for the compiler is not enough.
- add necessary zero padding after .eh_frame section
- link .gcc_except_table_table in a way flash script does not complain
- call __registrer_frame_info before global constructors
Kudos jcmvbkbc for the necessary help.
2017-06-28 13:53:42 +08:00
Angus Gratton
540a506d0f
Merge branch 'bugfix/lwip_assert' into 'master'
...
lwip: Remove port-specific sys_arch_assert(), use libc __assert_func() instead
See merge request !926
2017-06-28 06:09:04 +08:00
Alexey Gerenkov
8d43859b6a
esp32: SEGGER SystemView Tracing Support
...
Implements support for system level traces compatible with SEGGER
SystemView tool on top of ESP32 application tracing module.
That kind of traces can help to analyse program's behaviour.
SystemView can show timeline of tasks/ISRs execution, context switches,
statistics related to the CPUs' load distribution etc.
Also this commit adds useful feature to ESP32 application tracing module:
- Trace data buffering is implemented to handle temporary peaks of events load
2017-06-27 20:52:43 +03:00
Ivan Grokhotkov
bd09f186b6
Merge branch 'test/ci_add_ble_cases' into 'master'
...
CI: add ble cases to CI
See merge request !917
2017-06-27 23:49:17 +08:00
Ivan Grokhotkov
fff0a001d3
Merge branch 'bugfix/btdm_ble_smp_bonding_issues' into 'master'
...
component/bt: Fix bugs of the SMP security module
See merge request !923
2017-06-27 23:49:00 +08:00
Wangjialin
40fd9db55d
bugfix(uart): fix bugs reported from github
...
1. uart_set_line_inverse API issue, https://github.com/espressif/esp-idf/issues/673
2. tx buffer length issue, https://github.com/espressif/esp-idf/issues/710
2017-06-27 16:41:59 +08:00
Angus Gratton
857a7f186e
lwip: Make LWIP_ERROR behave as if assertions were off, even if they are on
2017-06-27 18:36:54 +10:00
Angus Gratton
f5e7f2bb8f
lwip: Remove port-specific sys_arch_assert(), use libc __assert_func() instead
2017-06-27 17:32:17 +10:00
Ivan Grokhotkov
f5920e8d24
Merge branch 'bugfix/nvs_err_code' into 'master'
...
ESP_ERR_NVS_VALUE_TOO_LONG had conflicting value.
See merge request !924
2017-06-27 14:33:12 +08:00
Ivan Grokhotkov
3f8f618df5
Merge branch 'feature/lwip_expose_more_config' into 'master'
...
lwip: Expose more config in IDF menuconfig
See merge request !909
2017-06-27 12:53:42 +08:00
Ivan Grokhotkov
aeeb6cff17
Merge branch 'test/add_dual_core_dport_access_unit_test_case' into 'master'
...
test: add UT case for accessing dport and apb at the same time
See merge request !910
2017-06-27 12:47:37 +08:00
Ivan Grokhotkov
19b7158a9a
Merge branch 'bugfix/gpio_set_direction_sets_matrix' into 'master'
...
gpio driver: Clear GPIO matrix output config when setting pin as input
See merge request !919
2017-06-27 11:42:56 +08:00
Ivan Grokhotkov
f045123691
nvs: add test for ESP_ERR_NVS_INVALID_LENGTH
2017-06-27 11:28:37 +08:00
He Yin Ling
31f7e8d7e5
CI: add BLE test cases to CI
2017-06-27 10:35:33 +08:00
Simon Werner
dacb053546
ESP_ERR_NVS_VALUE_TOO_LONG had conflicting value.
...
`ESP_ERR_NVS_VALUE_TOO_LONG` had conflicting value, its original value was `0x0c`, which is the same as `ESP_ERR_NVS_INVALID_LENGTH`
2017-06-27 11:58:49 +12:00
Eugene Zagidullin
713964fe9e
Use LwIP IPC for low-level API calls
2017-06-27 00:41:41 +03:00
Yulong
b60b58a333
component/bt: Added the bta gattc write ccc judgment.
2017-06-26 05:39:14 -04:00
Yulong
574d0cf846
component/bt: Fixed a very important bug of the SMP security module when use SMP to connected after bonding.
2017-06-26 05:02:57 -04:00
Ivan Grokhotkov
ff6a3b1a11
Merge branch 'bugfix/default_vfs_paths' into 'master'
...
Make relative paths match the default VFS, if provided
See merge request !913
2017-06-26 14:03:22 +08:00
Ivan Grokhotkov
9716447fcc
Merge branch 'bugfix/esp32d2wd_gpio0' into 'master'
...
esptool: Update to v2.0.1, fix ESP32-D2WD GPIO0 issue
See merge request !918
2017-06-26 14:02:48 +08:00
Jiang Jiang Jian
f9abf98f46
Merge branch 'bugfix/l2cap_disconnect_timeout' into 'master'
...
component/bt: bugfix for L2CAP state machine to access NULL lcb during disconnection
See merge request !920
2017-06-26 14:02:36 +08:00
Jiang Jiang Jian
e033b018d4
Merge branch 'bugfix/wrong_macro_uart_base_addr' into 'master'
...
fix bug that uart register base address macro was wrong
See merge request !912
2017-06-26 13:55:37 +08:00
Angus Gratton
17747b3358
gpio driver: Clear GPIO matrix output config when setting pin as input
...
Otherwise, if a non-GPIO peripheral has been routed to this pin
(as an output), output driver can remain enabled.
2017-06-26 12:47:08 +10:00
Angus Gratton
c26baeb610
esptool: Update to v2.0.1
...
Fixes issue with GPIO 0 being enabled as an output on ESP32D2WD (or when setting SPI pins in efuse)
and not using Quad-I/O modes.
Ref: https://esp32.com/viewtopic.php?f=2&t=2205
2017-06-26 12:16:09 +10:00
Liu Zhi Fu
a7ef510551
esp32: update wifi lib to fix a sniffer issue
...
Fix sniffer only receives the first MDPU in AMPDU when the AMPDU is not for our station/soft-AP
2017-06-24 10:45:20 +08:00
Deomid Ryabkov
ee5eba793f
Make relative paths match the default VFS, if provided
...
https://github.com/espressif/esp-idf/issues/158
2017-06-23 13:12:28 +01:00
Jack
ab9f63aba7
fix bug that uart register base address macro was wrong
2017-06-23 19:56:12 +08:00
wangmengyang
6da84eff76
component/bt: fix a bug for L2CAP state machine to access lcb after it is released
2017-06-23 17:26:43 +08:00
Ivan Grokhotkov
3bd3640d60
Merge branch 'bugfix/fatfs_unit_test_name' into 'master'
...
fatfs: fix duplicate unit test name
See merge request !911
2017-06-23 16:32:51 +08:00
He Yin Ling
7c6208c9e0
test: add UT case for dual dport and apb access
2017-06-23 16:15:57 +08:00
Jiang Jiang Jian
1480251aa7
Merge branch 'bugfix/spiflash_rom_symbols' into 'master'
...
spiflash rom: Add symbols accidentally removed in refactor
See merge request !804
2017-06-23 15:24:04 +08:00
Ivan Grokhotkov
24c4bc9cc4
fatfs: fix duplicate unit test name
2017-06-23 14:59:21 +08:00
Jeroen Domburg
113bb30218
This commit adds spi_flash_mmap_pages(), a function to map a set of unordered 64K pages in flash into a contiguous region in memory space.
2017-06-23 14:28:57 +08:00
Angus Gratton
0c301206cf
lwip debug: fix typo
2017-06-23 16:28:38 +10:00
Angus Gratton
8f4fc209a1
lwip: Enable LWIP assertions unless they are disabled globally
2017-06-23 16:26:11 +10:00
Angus Gratton
1c6510ed96
lwip: Allow configuring/disabling some TCP options to save RAM
...
RAM savings are small, but may add up when running large numbers of sockets.
2017-06-23 16:26:11 +10:00
Angus Gratton
8aa09aea10
event handler: Add debug event handler for confirmed IPv6 LL address
2017-06-23 16:15:16 +10:00
Angus Gratton
1ea0ddb025
lwip: Expose broadcast/multicast ping enable options in menuconfig
2017-06-23 16:15:00 +10:00
Ivan Grokhotkov
85baf0afaa
Merge branch 'buxfix/panic_handler_not_halting_cpu' into 'master'
...
Panic Handler not halting when running on both cores
See merge request !903
2017-06-23 11:34:03 +08:00
Ivan Grokhotkov
e918ee20da
Merge branch 'bugfix/vfs_fixes' into 'master'
...
VFS fixes
See merge request !901
2017-06-23 11:33:27 +08:00
Ivan Grokhotkov
dc0632789f
Merge branch 'bugfix/sdmmc_send_init_bits' into 'master'
...
sdmmc: send init sequence to card before MMC_GO_IDLE_STATE
See merge request !906
2017-06-23 11:31:29 +08:00
Jiang Jiang Jian
3dd2861e2a
Merge branch 'bugfix/btdm_ble_update_conn_params_issues' into 'master'
...
component/bt: Modifed the update connection method to fixed the bug of connectio…
See merge request !889
2017-06-22 20:50:37 +08:00
Jiang Jiang Jian
df76a904b0
Merge branch 'bugfix/fix_ieee80211_output_assert_and_restore_task_priority_in_wifi_lib' into 'master'
...
Fix the bug that lora vendor size was not added to probe response.
See merge request !908
2017-06-22 16:38:48 +08:00
Yulong
d79aeab3aa
component/bt: Added the error log to the l2cble_start_conn_update func.
2017-06-22 03:53:27 -04:00
XiaXiaotian
8411aa7362
Fix the bug that lora vendor size was not added to probe response.
...
Restore priority of tasks in wifi lib.
2017-06-22 15:06:58 +08:00
wangmengyang
55c0a4ea60
component/bt: bugfix for NULL pointer access when HCI CTLR to HOST flow control is in use
2017-06-22 14:59:51 +08:00
Ivan Grokhotkov
45037efc45
Merge branch 'bugfix/vfs_write_return_type' into 'master'
...
Change esp_vfs_t.write return value to ssize_t
See merge request !897
2017-06-22 11:48:34 +08:00
James Sarrett
b772024699
send bus initialization bits before MMC_GO_IDLE_STATE command to initialize card after poweron
2017-06-22 11:08:47 +08:00
Jiang Jiang Jian
157749c77b
Merge branch 'bugfix/btdm_modify_some_log_info' into 'master'
...
component /bt: modify some log infor
See merge request !905
2017-06-22 11:03:01 +08:00
Darian Leung
21f02a6955
Bugfix - Panic Handler not halting when running on both cores
...
Bug occurs when core dump destination in menuconfig is set to flash. When
programme crashes, xt_unhandled_exception or panicHandler will both trigger
commonErrorHandler. commonErrorHandler calls esp_core_dump_to_flash which
will attempt to use DPORT functions and hang due to trying to a stall and already
stalled processor (already stalled in xt_unhandled_exception and panicHandler).
Program will eventually be rebooted when wdt expires.
Added esp_dport_access_int_deinit after calls to haltOtherCore() so that DPORT
functions don't try to halt and already halted cpu hence preventing hang.
Fixes TW#12944 https://github.com/espressif/esp-idf/issues/646
2017-06-21 16:58:48 +08:00
wangmengyang
bbf449dbde
component/bt: bugfix for hci_le_rd_rmt_used_feats_cmd handler which does not check connection state
2017-06-21 15:52:32 +08:00
Yulong
328e93ddc4
component/bt: Change the l2cble_start_conn_update return value to BOOLEAN.
2017-06-21 02:39:36 -04:00
Ivan Grokhotkov
5b678eed0d
vfs: add support for nested mount points
...
Fixes https://github.com/espressif/esp-idf/issues/135
2017-06-21 14:17:14 +08:00
Ivan Grokhotkov
4f71b4574a
vfs: fix NULL pointer dereference in esp_vfs_unregister
2017-06-21 13:54:04 +08:00
zhiweijian
eec989f026
Component /bt: modify some log infor
2017-06-21 10:54:51 +08:00
Ivan Grokhotkov
2ccfe3da96
vfs: fix opendir of a filesystem root directory
...
Previously opendir("/data") would fail if filesystem with "data" prefix
was registered in VFS, while opendir("/data/") would succeed.
This change fixes handling for the former case and adds relevant tests.
2017-06-21 01:21:14 +08:00
Ivan Grokhotkov
7ed8c66547
Merge branch 'bugfix/uxTaskGetSystemState_github_#12142' into 'master'
...
Bugfix for uxTaskGetSystemState
See merge request !883
2017-06-20 17:27:08 +08:00
Ivan Grokhotkov
89d503edf0
Merge branch 'bugfix/doc_bugfixes' into 'master'
...
Corrected small issues in documentation, fixes #694 and merges #706
See merge request !894
2017-06-20 17:25:03 +08:00
krzychb
05f56d1d25
[TW#13322] Typo in documentation, fixes #694
2017-06-19 22:42:22 +02:00
Liu Zhi Fu
59479eb7dd
esp32: update wifi lib to fix a wifi connect issue
...
Fix WiFi fails to connect TP842N bug
2017-06-19 21:23:24 +08:00
Yulong
01705166bc
component/bt: Modifed the update connection method to fixed the bug of connection parameters not correct.
2017-06-19 03:22:25 -04:00
Angus Gratton
99962b7905
Merge branch 'feature/esptool_v20' into 'master'
...
esptool: Update to v2.0 final release
See merge request !862
2017-06-19 08:37:10 +08:00
Jiang Jiang Jian
c8201275f7
Merge branch 'bugfix/btdm_ble_client_muti_conn_issue' into 'master'
...
component/bt: change the MAX_L2CAP_CHANNELS macro from 2 to MAX_ACL_CONNECTIONS …
See merge request !882
2017-06-16 16:52:38 +08:00
Darian Leung
1c798b0eab
BugFix: uxTaskGetSystemState test case update
...
Updated test case to include configASSERT cases (+1 squashed commits)
Squashed commits:
[871ec26f] Freertos:Bugfix uxTaskGetSystemState
Bug (github #12142 ) with uxTaskGetSystemState where
if called immediately after creating a bunch of tasks,
those tasks would be added twice into the TaskStatusArray.
Bug caused due to use old implementation using vTaskSuspendAll
which did not stop newly created task on other core from accessing the
read/waiting task lists whilst the list were being read by
uxTaskGetSystemState. Fixed bug by replacing vTaskSuspendAll
with taskENTER_CRITICAL and added test case for the bugfix
2017-06-16 16:00:54 +08:00
Yulong
0d318ea2da
component/bt: change the MAX_L2CAP_CHANNELS macro from 2 to MAX_ACL_CONNECTIONS when in the BLE only mode.
2017-06-16 03:46:46 -04:00
Jiang Jiang Jian
a5c5748de2
Merge branch 'bugfix/pcnt_reset' into 'master'
...
pcnt: Fix pcnt_set_pin/pcnt_counter_clear reported on github
See merge request !872
2017-06-16 15:43:04 +08:00
Jiang Jiang Jian
07ccbb8dbc
Merge branch 'bugfix/rtc_time_issues' into 'master'
...
Fixes for RTC time issues
See merge request !849
2017-06-16 15:29:56 +08:00
Jiang Jiang Jian
ff6c0a6cc8
Merge branch 'bugfix/spi_flash_large_writes' into 'master'
...
spi_flash: Fix large writes, unaligned writes, and writes from flash
See merge request !843
2017-06-16 15:04:01 +08:00
Jiang Jiang Jian
7c50916c53
Merge branch 'bugfix/phy_init_procedure' into 'master'
...
component/esp32 : fix phy init with NULL init_data
See merge request !879
2017-06-16 15:03:03 +08:00
Nilay
769944b067
PCNT: fix for pcnt_set_pin API, it can now use all pcnt channels
2017-06-16 11:18:00 +05:30
Nilay
f50b5481fa
PCNT: Fixed pcnt_counter_clear, Pulse Count now able to resume after API call
2017-06-16 11:11:52 +05:30
Jiang Jiang Jian
e045253883
Merge branch 'bugfix/btdm_conn_enhanecd_issue' into 'master'
...
component/bt: added the temp enhanced to solve the conn_interval not collect issues.
See merge request !881
2017-06-16 13:18:41 +08:00
Tian Hao
bb4a87dbfe
component/esp32 : fix phy init with NULL init_data
...
1. fix phy init with NULL init_data
2. do full calibration without CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE
3. fix libphy.a printf
2017-06-16 12:09:13 +08:00
Ivan Grokhotkov
8ccb2a4990
esp32: make time monotonic across resets
...
Small changes to clock calibration value will cause increasing errors
the longer the device runs. Consider the case of deep sleep, assuming
that RTC counter is used for timekeeping:
- before sleep:
time_before = rtc_counter * calibration_val
- after sleep:
time_after = (rtc_counter + sleep_count) * (calibration_val + epsilon)
where 'epsilon' is a small estimation error of 'calibration_val'.
The apparent sleep duration thus will be:
time_after - time_before = sleep_count * (calibration_val + epsilon)
+ rtc_counter * epsilon
Second term on the right hand side is the error in time difference
estimation, it is proportional to the total system runtime (rtc_counter).
To avoid this issue, this change makes RTC_SLOW_CLK calibration value
persistent across restarts. This allows the calibration value update to
be preformed, while keeping time after update same as before the update.
2017-06-16 12:06:04 +08:00
Jiang Jiang Jian
9a6b1c3b11
Merge branch 'bugfix/always_disable_ints_in_critical_region' into 'master'
...
Always disable interrupts in a critical region
See merge request !821
2017-06-16 11:36:27 +08:00
Yulong
1739216787
component/bt: added the temp enhanced to solve the conn_interval not collect issues.
2017-06-15 10:15:49 -04:00
Jiang Jiang Jian
a64f5de091
Merge branch 'bugfix/sw_reset_fixes' into 'master'
...
Fixes for esp_restart
See merge request !865
2017-06-15 22:10:13 +08:00
Jiang Jiang Jian
1cae2da0a0
Merge branch 'bugfix/classicBT_SMP_dependence' into 'master'
...
component/bt: add constraint in Kconfig to enable SMP_ENABLE when using classic BT
See merge request !877
2017-06-15 21:28:36 +08:00
Jiang Jiang Jian
fe1f8a25b5
Merge branch 'bugfix/intrrupt_num_conflict' into 'master'
...
component/bt : fix interrupt number conflict
See merge request !878
2017-06-15 20:45:57 +08:00
wangmengyang
85e9a0fa17
component/bt: add constraint in Kconfig to enable SMP_ENABLE when using classic BT
...
1. For now, some security related functions used in classic Bluetooth are controlled by "SMP_ENABLE". This commit fixes the dependency.
2. The two options, "CLASSIC_BT_ENABLED" and "SMP_ENABLED" The two options will be decoupled in the future.
2017-06-15 20:06:49 +08:00
Jiang Jiang Jian
fd12a6c706
Merge branch 'bugfix/btdm_add_set_pkt_data_length_evt_cback' into 'master'
...
component / bt: add set pkt data length event callback
See merge request !869
2017-06-15 19:51:22 +08:00
Tian Hao
09f7cf45dd
component/bt : fix interrupt number conflict
...
1. the typical problem is when push keyboard on serial tool, the bluetooth may stop.
2017-06-15 19:41:54 +08:00
Ivan Grokhotkov
ffdcbc5355
libsodium: don’t link tests when TEST_ALL=1 is used
...
Currently libsodium tests add about 800kB to the binary, which is too
much for a partition table constrained to 2MB. Disable libsodium tests
until we start building multiple unit test apps for different subsets.
2017-06-15 18:15:37 +08:00
Ivan Grokhotkov
8cb0d52c43
esp_system: remove link time dependency on WiFi stack
...
- esp_restart will not pull in WiFi stack (if it is not used otherwise)
- esp_restore is moved into a separate file to break link time
dependency
2017-06-15 18:15:36 +08:00
Ivan Grokhotkov
6538ebe8ad
cxx: don’t pull libstdc++ local support in unit tests
2017-06-15 18:15:36 +08:00
Ivan Grokhotkov
9353666cc1
esp32: reset APP CPU when doing esp_restart
...
This fixes a bug introduced by !848 , where APP CPU would not be reset
during esp_restart, if esp_restart was called from a task running on APP
CPU, and wouldn’t be reset by PRO CPU on startup.
This change replaces stalling APP CPU with resetting it.
Also adds a non-automated esp_restart tests.
2017-06-15 18:15:35 +08:00
Ivan Grokhotkov
a72b1abc51
esp32: disable DPORT access protection when doing esp_restart
...
DPORT access protection can not work when the other CPU is stalled.
Writes to DPORT registers in esp_restart caused the program to hang due
to access protection, and the reset happened due to RTC_WDT, not SW_RST.
This change adds esp_dport_access_int_deinit function and calls it from
esp_restart once the other core is stalled.
2017-06-15 18:15:35 +08:00
Ivan Grokhotkov
75658ee29b
bootloader: workaround for clock switching bug in ESP32 rev. 0
...
In ESP32 rev. 0, switching between 240MHz and 80MHz (even via an
intermediate frequency of 40MHz) may cause the chip to lock up.
The bootloader used to enable 80MHz CPU clock at startup, which could
cause lock up after software reset. With this change, if 240MHz CPU
clock is enabled in menuconfig, bootloader will also use 240MHz to avoid
lock-up.
2017-06-15 18:15:35 +08:00
zhiweijian
58b65291d9
component / bt: add set pkt data length event callback
2017-06-15 16:02:03 +08:00
Jiang Jiang Jian
491932b80c
Merge branch 'bugfix/btdm_cherry_pick_hit_limit_github_#12259' into 'master'
...
component/bt: cherry-pick the btdm_hit_limit_github_#12259 branch to this branch.
See merge request !867
2017-06-15 15:14:10 +08:00
Jiang Jiang Jian
ac5040a7c2
Merge branch 'bugfix/btdm_ll_get_remote_feature' into 'master'
...
component/bt: Fix can't get remote's feature bug
See merge request !871
2017-06-15 15:10:52 +08:00
Yulong
83b7144207
component/bt: Added the lmp_verion default value to 4.0.
2017-06-15 02:13:31 -04:00
Jiang Jiang Jian
5f24dcdf4e
Merge branch 'bugfix/btdm_blufi' into 'master'
...
component/bt : fix blufi second init fail bug
See merge request !866
2017-06-15 13:37:31 +08:00
Yulong
6ffa30a408
component/bt: Change the return position in the btc_gatts_inter_cb function.
2017-06-14 23:40:25 -04:00
Jiang Jiang Jian
113c21a481
Merge branch 'bugfix/fail_to_disconn_after_pair_#13172' into 'master'
...
component/bt: Added the judgment to check the address is public or not.
See merge request !868
2017-06-15 11:20:12 +08:00
Jiang Jiang Jian
2e33dace16
Merge branch 'bugfix/fix_wifi_assert_at_ieee80211_output_line_733' into 'master'
...
fix the bug that wifi assert at ieee80211_output.c line 733
See merge request !870
2017-06-15 11:06:04 +08:00
Tian Hao
7cf5eea36f
component/bt : fix blufi second init fail bug
2017-06-15 11:05:21 +08:00
Jiang Jiang Jian
a18032fe80
Merge branch 'bugfix/btdm_gattc_refresh_cache_does_not_work_properly' into 'master'
...
component /bt: using esp_ble_gattc_cache_refresh() does not work when open event callback
See merge request !864
2017-06-15 11:02:35 +08:00
island
e2e5f4caae
component/bt: Fix can't get remote's feature bug
...
- Slave send version_ind cause some Android 7.0 devices can't encrypt correctly
2017-06-14 21:56:59 +08:00
XiaXiaotian
435b907475
fix the bug that wifi assert at ieee80211_output.c line 733
2017-06-14 21:20:28 +08:00
Yulong
a03e5f95be
component/bt: Added the judgment to check the address is public or not.
2017-06-14 09:01:29 -04:00
Yulong
00bcee2df2
component/bt: cherry-pick the btdm_hit_limit_github_#12259 branch to this branch.
2017-06-14 07:14:23 -04:00
Jiang Jiang Jian
aefde1517d
Merge branch 'bugfix/i2c_delete_interrupt_race' into 'master'
...
i2c driver: When deleting, disable interrupts before freeing data structures
See merge request !836
2017-06-14 17:47:22 +08:00
zhiweijian
60d5b677e7
Component /bt: using esp_ble_gattc_cache_refresh() does not work when open event callback.
2017-06-14 16:45:17 +08:00
Jiang Jiang Jian
ae7269d39d
Merge branch 'bugfix/btdm_smp_auth_complete_error' into 'master'
...
component/bt: Change the btc layer data copy method.
See merge request !844
2017-06-14 15:16:38 +08:00
Jiang Jiang Jian
6b3a559ee7
Merge branch 'bugfix/btdm_master_write_service_change_ccc' into 'master'
...
component/bt: Fix slave initiate service change ccc discovery procedure bug
See merge request !847
2017-06-14 15:12:45 +08:00
Angus Gratton
55bec0e82f
Merge branch 'feature/libsodium' into 'master'
...
Add libsodium cryptography library component (v1.0.12)
See merge request !852
2017-06-14 14:58:16 +08:00
Jiang Jiang Jian
db87a640ea
Merge branch 'feature/optimize_task_priority_in_wifi_lib' into 'master'
...
Optimize priorities of pp, pm, timer, wps and wpa2 tasks.
See merge request !861
2017-06-14 14:01:53 +08:00
Angus Gratton
211580bf4f
Add libsodium v1.0.12
...
Run some unit test cases based (poorly) around sodium's test infrastructure.
Increase in unity test task stack is due to signature tests, load a lot of data onto the stack.
2017-06-14 15:51:08 +10:00
Angus Gratton
8e0ec6a9ab
Merge branch 'bugfix/abort_in_interrupt_context' into 'master'
...
Panic handler backtrace fixes
See merge request !835
2017-06-14 13:45:36 +08:00
Angus Gratton
6068c1be9a
esptool: Update to v2.0 final release
...
For IDF use, most changes are minor compared to 2.0-beta3.
One notable addition, esptool.py now prints chip model & silicon
revision when it connects.
2017-06-14 15:41:51 +10:00
island
c5debed621
component/bt: Fix bug while writing slave's service change characteristic
...
- Fix slave initiate service discovery procedure
- Fix master re-discovery every time connection established
- Optimize service discovery char ccc write procedure
- Optimize esp_log_buffer function
- Modify default supervision timeout from 20s to 2s
2017-06-14 13:12:38 +08:00
Jiang Jiang Jian
06fa08b022
Merge branch 'bugfix/btdm_config_bluedroid_mem_debug_github_#12631' into 'master'
...
component/bt: Change the osi_mem_dbg_init to the esp_bluedroid_init function.
See merge request !860
2017-06-14 11:18:34 +08:00
XiaXiaotian
28e84a5299
Optimize priorities of pp, pm, timer, wps and wpa2 tasks.
2017-06-14 11:06:57 +08:00
Jiang Jiang Jian
69e8085624
Merge branch 'bugfix/wps_receive_m2d_fail_process' into 'master'
...
ESP32: Add error wps fail reason
See merge request !855
2017-06-14 10:57:59 +08:00
Jiang Jiang Jian
243bc97119
Merge branch 'bugfix/btdm_task_post' into 'master'
...
component/bt : fix task post bug && fix controller init protection
See merge request !856
2017-06-14 10:52:56 +08:00
Yulong
3f997d3e8c
component/bt: Added the unhandle log to the btc dm case.
2017-06-13 22:37:44 -04:00
Ivan Grokhotkov
0c83e46b08
Merge branch 'bugfix/nvs_max_value_size' into 'master'
...
nvs: check value size before writing, document limitations
See merge request !796
2017-06-14 09:15:59 +08:00
Ivan Grokhotkov
6e704fc421
Merge branch 'bugifx/cplusplus_guards' into 'master'
...
add C++ include guards to header files which are missing them
See merge request !799
2017-06-14 09:14:02 +08:00
Ivan Grokhotkov
71d7716a45
Merge branch 'bugfix/esp_event_send_init_check' into 'master'
...
esp_event_send: check if the event loop is initialized
See merge request !817
2017-06-14 09:11:50 +08:00
Angus Gratton
91593a5237
Merge branch 'bugfix/rmt_driver_interrupts' into 'master'
...
rmt driver: Fix some issues around interrupts
See merge request !837
2017-06-14 08:35:22 +08:00
Angus Gratton
8bf675786a
Merge branch 'feature/freertos_get_priority' into 'master'
...
freertos: Mark uxTaskPriorityGet() as tested, add SMP task priority unit tests
See merge request !794
2017-06-14 08:31:00 +08:00
Angus Gratton
5d7bffea2b
panic handler: Print backtraces with calling address not return address
...
This seems to clean up some of the more wrong addr2line output results (not
sure why, something to do with optimisations I think - perhaps the return
address may also be a jump target from some earlier line of the code.)
2017-06-14 10:30:04 +10:00
Deng Xin
3d963f1c61
Merge branch bugfix/wps_receive_m2d_fail_process to master
...
ESP32: Add error wps fail reason enum in esp_event.h
see merge request !226
2017-06-13 21:48:48 +08:00
Ivan Grokhotkov
81f98c0a77
Merge branch 'test/nvs_compatible_test' into 'master'
...
test: add WIFI NVS compatible test case
See merge request !812
2017-06-13 21:32:50 +08:00
Jiang Jiang Jian
ff8287645b
Merge branch 'bugfix/tw13140_fix_assoc_timeout_bug' into 'master'
...
esp32: update wifi lib to fix assoc timeout issue
See merge request !854
2017-06-13 21:14:33 +08:00
Jiang Jiang Jian
12c1238730
Merge branch 'bugfix/btdm_uuid_convert' into 'master'
...
component/bt : fix uuid convert warning
See merge request !857
2017-06-13 21:03:55 +08:00
Yulong
2a759a9864
component/bt: Change the osi_mem_dbg_init to the esp_bluedroid_init function.
2017-06-13 08:52:26 -04:00
Tian Hao
063dccd6c0
component/bt : fix uuid convert warning
2017-06-13 20:21:59 +08:00
Liu Zhi Fu
bf4dd5175b
esp32: update wifi lib to fix assoc timeout issue
...
Fix assoc timeout thread-safe issue
2017-06-13 20:08:00 +08:00
Jiang Jiang Jian
1ce18758d4
Merge branch 'bugfix/tw13140_fix_throughput_test_crash_issue' into 'master'
...
esp32: update wifi lib to fix wifi crash bug
See merge request !840
2017-06-13 18:22:39 +08:00
Jiang Jiang Jian
57d27faee8
Merge branch 'bugfix/btdm_write_API_to_write_char_get_wrong_status_when_server_response_NULL' into 'master'
...
component /bt: write_API_to_write_char_get_wrong_status_when_server_response_NULL
See merge request !842
2017-06-13 18:18:30 +08:00
Ivan Grokhotkov
cd89a653e4
Merge branch 'bugfix/app_cpu_reset' into 'master'
...
esp32: don’t reset APP CPU if it was already reset by OpenOCD
See merge request !848
2017-06-13 18:15:47 +08:00
Jiang Jiang Jian
be680a0ef3
Merge branch 'bugfix/btdm_auth_val_error_#12962' into 'master'
...
component/bt: correct the security demo pair status code.
See merge request !841
2017-06-13 18:14:39 +08:00
Tian Hao
808b07799c
component/bt : fix task post bug && fix controller init protection
...
1. fix bluedroid task post to blocking.
2. use semphore protect btdm controller task when be called from higher priority task
2017-06-13 17:14:50 +08:00
Tuan PM
f91715438a
i2s: return error code if register isr error, resolve #587 (github)
...
set p_i2s_obj = NULL when return error
2017-06-13 14:28:47 +07:00
Angus Gratton
47e789f538
abort handler: Fix abort stack trace when abort() called in ISR
...
Previously, this resulted in task stack frames turning up incorrectly in the backtrace, ie
Backtrace: 0x400d22a0:0x3ffb0fa0 0x40085a3c:0x3ffb0fc0 0x400f32c4:0x3ffb0fe0 0x40081965:0x3ffb1010
0x400d22a0: esp_vApplicationIdleHook at /home/esp/esp-idf/components/esp32/./freertos_hooks.c:
52
0x40085a3c: prvIdleTask at /home/esp/esp-idf/components/freertos/./tasks.c:4431
0x400f32c4: i2c_isr_handler_default at /home/esp/esp-idf/components/driver/./i2c.c:598
0x40081965: _xt_lowint1 at xtensa_vectors.o:?
Fix is to implement abort() via an unhandled exception rather than a breakpoint, I think
because of relative priority of exception types.
Another approach would be to assign a software-only INUM to abort()ing and defined a
PANIC_RSN_ABORTED, but this is more complex and interrupt numbers are more scarce than RAM!
2017-06-13 10:19:01 +10:00
Ivan Grokhotkov
cc8af68244
syscalls: fix wraparound of RTC time
...
This change removes the erroneous cast to uint32_t (which caused time to
wrap around after 1 hour) and splits the multiplication into two terms
to remove the wraparound after 13 days.
Ref. https://esp32.com/viewtopic.php?f=13&t=1908
2017-06-12 15:21:43 +08:00
Ivan Grokhotkov
f327a9b1cf
esp32: don’t reset APP CPU if it was already reset by OpenOCD
...
When ‘reset halt’ command is executed, OpenOCD will take the APP CPU
out of reset and enable the clock. At this point, user can set a
breakpoint on code which will run on APP CPU. Previously, app startup
code would do another reset of APP CPU, thereby removing any breakpoints
which may have been set. This change makes APP CPU reset conditional on
DPORT_APPCPU_CLKGATE_EN bit, which is 0 by default but is set to 1 by
OpenOCD after reset.
2017-06-12 15:16:57 +08:00
zhiweijian
352cc0c7fe
Component /bt: write_API_to_write_char_get_wrong_status_when_server_response_NULL
2017-06-12 15:02:21 +08:00
Deomid Ryabkov
b8782bdd90
Change esp_vfs_t.write return value to ssize_t
...
write() should return ssize_t, not size_t.
2017-06-09 21:24:00 +01:00
Yulong
411b5ecc43
component/bt: delete the bd_addr to avoid the warning.
2017-06-09 05:07:26 -04:00
Yulong
e07482504a
component/bt: Change the btc ESP_BLE_SM_SET_RSP_KEK to ESP_BLE_SM_SET_RSP_KEY
2017-06-09 04:54:56 -04:00
Yulong
4734ba40b0
component/bt: Change the btc layer data copy method.
2017-06-09 04:32:01 -04:00
Angus Gratton
11d2db40f4
spi_flash: Fix SPI flash write alignment/size bugs
...
* Writing >4 bytes to unaligned offsets would fail
* Writiing data from flash would fail (wrong buffer was used)
* Writing >8192 bytes from RAM would over-write data multiple times
Adds test cases for the above.
2017-06-09 17:33:27 +10:00
Angus Gratton
edd2459934
esp_log_buffer_hex: Make buffer argument a void pointer
2017-06-09 17:16:58 +10:00
Yulong
e5adfb8119
component/bt: correct the security demo pair status code.
2017-06-09 02:37:28 -04:00
Angus Gratton
c77b699463
rmt driver: Manage driver interrupt handler based on which channels are enabled
...
Previously the first call to rmt_driver_uninstall() would remove the interrupt handler,
even if other channels still had the driver installed.
Adds an OS-level lock to control concurrent registration/deregistration of channels.
2017-06-09 16:11:21 +10:00
Ivan Grokhotkov
e7db29b2a8
Merge branch 'bugfix/btdm_crash_invalid_control_param' into 'master'
...
component/bt: Fix crash problem while using invalid control parameter
See merge request !832
2017-06-09 12:00:18 +08:00
Angus Gratton
5a1a8b4637
Merge branch 'bugfix/resume_task_cpu1_when_scheduler_disabled' into 'master'
...
Fix bug waking a task on CPU1 when scheduler is disabled
See merge request !819
2017-06-09 07:10:10 +08:00
Liu Zhi Fu
c1e8988240
esp32: update wifi lib to fix wifi crash bug
...
Fix a wifi crash bug which happens in throughput test
2017-06-08 20:51:21 +08:00
Angus Gratton
4b58cc12cd
rmt driver: When deleting, disable interrupt before freeing data structures
...
Fixes potential race if RMT interrupt happens while deregistering (unlikely
due to timing of taking semaphore tx_sem, but still possible.)
2017-06-08 16:14:51 +10:00
Angus Gratton
a89e93fc3d
i2c driver: When deleting, disable interrupts before freeing data structures
...
Fixes a potential race if I2C interrupt occurs while driver is being delted.
2017-06-08 15:57:31 +10:00
island
30783d481d
component/bt: Fix crash problem while using invalid control parameter
...
- Fix crash problem while using invalid control parameter to set gatt characteristic or descriptor
2017-06-07 20:18:36 +08:00
Tian Hao
bd309731da
component/bt : fix bug of task schedule delayed.
...
1. BLE RX test mode require quick task reaction, so allow higher priority task schedule from ISR.
2. Maybe other scenario also require this.
2017-06-07 14:58:17 +08:00
Jiang Jiang Jian
99d5959d8a
Merge branch 'bugfix/btdm_library' into 'master'
...
component/bt : revert the bluetooth library
See merge request !827
2017-06-07 14:17:33 +08:00
Jiang Jiang Jian
35f6a2a8af
Merge branch 'feature/tw10091_add_sniffer_filter' into 'master'
...
esp32: add sniffer filter api
See merge request !790
2017-06-07 13:55:35 +08:00
Tian Hao
460c37ddf6
component/bt : revert the bluetooth library
...
bluetooth library use a old one, so update to the newest.
2017-06-07 13:52:28 +08:00
Jiang Jiang Jian
7da4b42ed1
Merge branch 'feature/btdm_add_connect_event_and_disconnect_event_for_gattc' into 'master'
...
component/bt: Add disconnect & connect func and event
See merge request !806
2017-06-07 13:45:43 +08:00
Jiang Jiang Jian
82b8b1db1f
Merge branch 'bugfix/bt_ble_separation' into 'master'
...
component/bt: fix the build error when using classic BT, with GATTC, GATTS and SMP disabled
See merge request !822
2017-06-06 20:56:05 +08:00
Jiang Jiang Jian
b78242da58
Merge branch 'bugfix/btdm_rebase_update_param_#9626' into 'master'
...
component/bt: rebase the btdm_updata_param_bug_#9626 to the new master.
See merge request !808
2017-06-06 20:55:23 +08:00
Liu Zhi Fu
f40be8eb77
esp32: add sniffer filter api
...
Add sniffer filter to filter specified packets
2017-06-06 19:07:12 +08:00
Yulong
e6acc32df6
component/bt: rebase the btdm_updata_param_bug_#9626 to the new master.
...
- Added the error code for the time out status.
2017-06-06 05:51:31 -04:00
Yulong
531f751fd3
component/bt: Cherry-pick the btdm_no_doc_for_value_type_github_#118659 to this branch to avoid conflict.
2017-06-06 05:22:17 -04:00
zhiweijian
db96edc5d9
component/bt: Add disconnect & connect func and event
...
- Add disconnect func for gap
- Add connect event and disconnect event for gattc
2017-06-06 16:53:37 +08:00
Angus Gratton
1cbdb35e1e
Merge branch 'bugfix/i2s_channel_setting' into 'master'
...
bugfix(i2s): fix error when changing channel number in i2s_set_clk function
See merge request !784
2017-06-06 14:40:43 +08:00
Angus Gratton
99454d4a73
Merge branch 'feature/nghttp2_v1_22' into 'master'
...
nghttp module: Update to v1.22, use submodule instead of in-tree source
See merge request !763
2017-06-06 14:38:41 +08:00
Angus Gratton
ae05787a51
Merge branch 'bugfix/make_srcdirs_order' into 'master'
...
build system: Fix bug where component src subdirs needed listing before parent source dirs
See merge request !778
2017-06-06 14:37:21 +08:00
Jiang Jiang Jian
b0d93fccce
Merge branch 'bugfix/btdm_ble_scan_5min_stop_github_#12723' into 'master'
...
component/bt: Change the duration type from UINT8 to UINT32
See merge request !815
2017-06-06 14:11:05 +08:00
wangmengyang
ca4506fba9
component/bt: fix the build error when using classic BT, with GATTC, GATTS and SMP disabled
2017-06-05 21:01:58 +08:00
jack
ba32dd30a1
bugfix:Fix bug that wdt reset information for CPU1 was not correct
2017-06-05 18:26:14 +08:00
Jeroen Domburg
d4b0f85eb4
Make portENTER_CRITICAL and portENTER_CRITICAL_ISR the same, plus some changes to fix an issue this causes
2017-06-05 15:57:42 +08:00
Angus Gratton
b9fc5ecf68
freertos: Fix crash when waking task on CPU1 with scheduler disabled
...
xPendingReadyList[1] was never initialised correctly, so if a task is added to this list (ie by xSemaphoreGiveFromISR()
or similar) while scheduler is disabled, then it causes a null pointer dereference.
Bug produces stack traces similar to:
0x40086e87: vListInsertEnd at /home/gus/esp/32/idf/components/freertos/./list.c:130
0x40084ba3: xTaskRemoveFromEventList at /home/gus/esp/32/idf/components/freertos/./tasks.c:3439
0x40083c54: xQueueGiveFromISR at /home/gus/esp/32/idf/components/freertos/./queue.c:2034
0x400f50a0: timer_group0_isr at /home/gus/esp/32/idf/components/freertos/test/./test_suspend_scheduler.c:27
0x40081d7d: _xt_lowint1 at xtensa_vectors.o:?
2017-06-05 16:12:20 +10:00
Angus Gratton
f40ae10a5d
freertos: add test case for ISRs waking tasks when scheduler disabled
2017-06-05 16:12:20 +10:00
Ivan Grokhotkov
17da994345
esp_event_send: check if the event loop is initialized
...
Fixes https://github.com/espressif/esp-idf/issues/668
2017-06-05 11:01:26 +08:00
He Yin Ling
2e7f6a2247
test: add NVS compatible test case and CI job
2017-06-04 10:29:15 +08:00
Yulong
a42bf640bc
component/bt: Change the duration type from UINT8 to UINT32
2017-06-03 01:00:10 -04:00
Jiang Jiang Jian
cc46038142
Merge branch 'bugfix/add_dport_protect_in_libphy' into 'master'
...
Add dport protect in libphy.a
See merge request !803
2017-06-02 19:13:18 +08:00
Jiang Jiang Jian
bd17791fd4
Merge branch 'bugfix/tw12798_dhcp_server_crash' into 'master'
...
lwip: fix dhcp server crash issue
See merge request !797
2017-06-02 19:09:43 +08:00