]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agocomponent/bt: transport bluedroid avct, avdt, avrc and a2dp module to stack
wangmengyang [Wed, 2 Nov 2016 09:42:26 +0000 (17:42 +0800)]
component/bt: transport bluedroid avct, avdt, avrc and a2dp module to stack

7 years agoMerge branch 'master' into feature/btdm_bluedroid
Tian Hao [Tue, 1 Nov 2016 09:53:59 +0000 (17:53 +0800)]
Merge branch 'master' into feature/btdm_bluedroid
1.update esptool submodule
2.new esp32 lib and new phy lib
3.new bt lib
4.soc.h add comment

7 years agoMerge branch 'feature/btdm_gap' into feature/btdm_bluedroid
Tian Hao [Tue, 1 Nov 2016 06:19:38 +0000 (14:19 +0800)]
Merge branch 'feature/btdm_gap' into feature/btdm_bluedroid

# Conflicts:
# examples/07_blufi/components/bluedroid_demos/app_project/SampleClientProject.c
# examples/07_blufi/components/bluedroid_demos/app_project/SampleServerProject.c
# examples/07_blufi/components/bluedroid_demos/include/bt_app_common.h

7 years agoMerge branch 'feature/btdm_blufi' into feature/btdm_bluedroid
Tian Hao [Tue, 1 Nov 2016 06:01:49 +0000 (14:01 +0800)]
Merge branch 'feature/btdm_blufi' into feature/btdm_bluedroid

# Conflicts:
# components/bt/bluedroid/bta/dm/bta_dm_pm.c
# components/bt/component.mk
# examples/07_blufi/components/bluedroid_demos/app_core/bt_app_core.c
# examples/07_blufi/components/bluedroid_demos/app_project/SampleServerProject.c

7 years agocomponent/bt: merge SDP client and SDP server example to a single demo
wangmengyang [Tue, 1 Nov 2016 03:54:01 +0000 (11:54 +0800)]
component/bt: merge SDP client and SDP server example to a single demo

7 years agocomponent/bt: legacy bt API provide
wangmengyang [Mon, 31 Oct 2016 13:40:01 +0000 (21:40 +0800)]
component/bt: legacy bt API provide

1. move btif module out of bluetooth stack
2. provide new APIs in bluedroid/stack_api

7 years agoMerge branch 'bugfix/tw8242_fix_tcp_rx_abnormal_issue' into 'master'
Wu Jian Gang [Mon, 31 Oct 2016 12:28:11 +0000 (20:28 +0800)]
Merge branch 'bugfix/tw8242_fix_tcp_rx_abnormal_issue' into 'master'

lwip: fix tcp rx abnormal issue(tw8242)

In tcp_alloc(), initialize per_soc_tcp_wnd before initializing recv_wnd because recv_wnd depends on per_soc_tcp_wnd. 

See merge request !160

7 years agoturn on per socket tcp window by default
Liu Zhi Fu [Mon, 31 Oct 2016 11:43:18 +0000 (19:43 +0800)]
turn on per socket tcp window by default

7 years agomake build pass when disable per soc tcp window
Liu Zhi Fu [Mon, 31 Oct 2016 11:38:47 +0000 (19:38 +0800)]
make build pass when disable per soc tcp window

7 years agoMerge branch 'feature/tw8221_softap_supports_max_10_stations' into 'master'
Wu Jian Gang [Mon, 31 Oct 2016 10:09:03 +0000 (18:09 +0800)]
Merge branch 'feature/tw8221_softap_supports_max_10_stations' into 'master'

esp32/tcpip_adapter: softap supports max 10 stations

The max number of stations softap supports is modified from 8 to 10

See merge request !158

7 years agolwip: fix tcp rx abnormal issue(tw8242)
Liu Zhi Fu [Mon, 31 Oct 2016 09:50:09 +0000 (17:50 +0800)]
lwip: fix tcp rx abnormal issue(tw8242)

In tcp_alloc(), initialize per_soc_tcp_wnd before initializing recv_wnd because recv_wnd depends on per_soc_tcp_wnd.

7 years agoMerge branch 'bugfix/nvs_leaks' into 'master'
Ivan Grokhotkov [Mon, 31 Oct 2016 09:30:00 +0000 (17:30 +0800)]
Merge branch 'bugfix/nvs_leaks' into 'master'

nvs: fix memory leaks in HashList and nvs_close

Fixes TW8162.
Associated test case is run under Instruments on macOS, until I set up valgrind to test this automatically on Linux.

See merge request !150

7 years agoMerge branch 'test/clean_ci_fails' into 'master'
He Yin Ling [Mon, 31 Oct 2016 08:37:36 +0000 (16:37 +0800)]
Merge branch 'test/clean_ci_fails' into 'master'

Test/clean ci fails

See merge request !159

7 years agocomponent/bt: add new demo for Bluetooth SDP client
wangmengyang [Mon, 31 Oct 2016 04:34:11 +0000 (12:34 +0800)]
component/bt: add new demo for Bluetooth SDP client

1. add Bluetooth SDP client demo;
2. some minor typo fixes

7 years agomodify comments according to review
Liu Zhi Fu [Mon, 31 Oct 2016 03:17:33 +0000 (11:17 +0800)]
modify comments according to review

7 years agoMerge branch 'feature/crosscore_int' into 'master'
Jeroen Domburg [Mon, 31 Oct 2016 03:04:28 +0000 (11:04 +0800)]
Merge branch 'feature/crosscore_int' into 'master'

Add cross-core int to accelerate task being awoken from another CPU.

This adds a per-CPU interrupt that can be used to poke the CPU to go do something. In this case all that is implemented is a request to yield the current task, used in case a CPU unblocks a task that runs on another CPU. This gets rid of the limitation that inter-CPU communication using queues, muxes etc can take up to a FreeRTOS tick to happen.

Specs!
Sending an in in a queue of length 1 (essentially a semaphore) as quickly as possible (just a small delay in the sender, to make sure the receiver task gets swapped out) for 10 seconds. Number indicates the amount of ints transferred

Old code:

CPU0->CPU0: 42986

CPU0->CPU1,: 2999

New code:

CPU0->CPU0: 42868

CPU0->CPU1: 62073

See merge request !155

7 years agoRemove redundant volatile keyword
Jeroen Domburg [Mon, 31 Oct 2016 03:00:27 +0000 (11:00 +0800)]
Remove redundant volatile keyword

7 years agoesp32/tcpip_adapter: softap supports max 10 stations
Liu Zhi Fu [Fri, 28 Oct 2016 08:53:49 +0000 (16:53 +0800)]
esp32/tcpip_adapter: softap supports max 10 stations

The max number of stations softap supports is modified from 8 to 10

7 years agoMerge branch 'bugfix/int-wdt-fix' into 'master'
Ivan Grokhotkov [Fri, 28 Oct 2016 08:21:34 +0000 (16:21 +0800)]
Merge branch 'bugfix/int-wdt-fix' into 'master'

Fix the things that broke when adding the new WDTs

Seemingly, I broke a bunch of things when adding the interrupt WDTs and moved the panic handler to the esp32 directory. This fixes that, as well as the issue where flashing would trigger the int wdt. It also bodges in a fix for a merge artifact breaking the halt-on-first-thread-when-openocd-is-connected; that fix should be refined later.

See merge request !157

7 years agoset default interrupt watchdog timeout to 300ms
Ivan Grokhotkov [Fri, 28 Oct 2016 08:17:41 +0000 (16:17 +0800)]
set default interrupt watchdog timeout to 300ms

10ms is too low for openocd/gdb to work, so it's not a very useful default value.

7 years agovfs: fix adding CR
Ivan Grokhotkov [Fri, 28 Oct 2016 08:16:12 +0000 (16:16 +0800)]
vfs: fix adding CR

7 years agocomponent/bt: add new demo for bluetooth SDP server
wangmengyang [Fri, 28 Oct 2016 07:48:27 +0000 (15:48 +0800)]
component/bt: add new demo for bluetooth SDP server

1. add bluetooth SDP server demo
2. some minor typo fixes

7 years agoMerge branch 'feature/support_max_16_sockets' into 'master'
Wu Jian Gang [Fri, 28 Oct 2016 07:38:57 +0000 (15:38 +0800)]
Merge branch 'feature/support_max_16_sockets' into 'master'

lwip: support max 16 sockets

Since the customers need more sockets in their application, support max 16 sockets,
in other words, the total socket number of UDP/TCP/RAW sockets should not exceed 16.

See merge request !156

7 years agoAlso call tick hook on app cpu when scheduler is suspended
Jeroen Domburg [Fri, 28 Oct 2016 06:37:36 +0000 (14:37 +0800)]
Also call tick hook on app cpu when scheduler is suspended

7 years agoRe-add panic.o to IRAM/DRAM.
Jeroen Domburg [Fri, 28 Oct 2016 06:32:11 +0000 (14:32 +0800)]
Re-add panic.o to IRAM/DRAM.

7 years agofreertos: fix calling first task hook
Ivan Grokhotkov [Fri, 28 Oct 2016 05:41:07 +0000 (13:41 +0800)]
freertos: fix calling first task hook

7 years agolwip: rework comments according to review
Liu Zhi Fu [Fri, 28 Oct 2016 05:35:06 +0000 (13:35 +0800)]
lwip: rework comments according to review

7 years agolwip: add prompt when configure max sockets number in menuconfig
Liu Zhi Fu [Fri, 28 Oct 2016 04:29:26 +0000 (12:29 +0800)]
lwip: add prompt when configure max sockets number in menuconfig

7 years agoFix int wdt iram, fix some fallout of moving panic stuff to esp32
Jeroen Domburg [Fri, 28 Oct 2016 04:05:42 +0000 (12:05 +0800)]
Fix int wdt iram, fix some fallout of moving panic stuff to esp32

7 years agolwip: support max 16 sockets
Liu Zhi Fu [Fri, 28 Oct 2016 04:03:51 +0000 (12:03 +0800)]
lwip: support max 16 sockets

Since the customers need more sockets in their application, support max 16 sockets,
in other words, the total socket number of UDP/TCP/RAW sockets should not exceed 16.

7 years agoMerge branch 'feature/partition_api' into 'master'
Ivan Grokhotkov [Thu, 27 Oct 2016 10:12:03 +0000 (18:12 +0800)]
Merge branch 'feature/partition_api' into 'master'

high level partition api

This MR adds API for other components and application to access partition information, read, write, erase, and mmap them.

ref. TW6701

See merge request !67

7 years agospi_flash: update comment blocks
Ivan Grokhotkov [Thu, 27 Oct 2016 02:16:42 +0000 (10:16 +0800)]
spi_flash: update comment blocks

7 years agopartition API: separate type and subtype into two enums
Ivan Grokhotkov [Wed, 26 Oct 2016 16:48:10 +0000 (00:48 +0800)]
partition API: separate type and subtype into two enums

7 years agospi_flash: change pointer type to void*
Ivan Grokhotkov [Wed, 26 Oct 2016 16:46:33 +0000 (00:46 +0800)]
spi_flash: change pointer type to void*

7 years agospi_flash: improve documentation
Ivan Grokhotkov [Tue, 25 Oct 2016 03:43:00 +0000 (11:43 +0800)]
spi_flash: improve documentation

7 years agospi_flash: check physical address in mmap against flash chip size
Ivan Grokhotkov [Fri, 21 Oct 2016 11:33:42 +0000 (19:33 +0800)]
spi_flash: check physical address in mmap against flash chip size

7 years agospi_flash: implement partition API, drop trivial wrappers
Ivan Grokhotkov [Fri, 21 Oct 2016 10:44:57 +0000 (18:44 +0800)]
spi_flash: implement partition API, drop trivial wrappers

This implements esp_partition_read, esp_partition_write, esp_partition_erase_range, esp_partition_mmap.
Also removed getters which didn't add much sugar after all.

7 years agospi_flash: change argument types
Ivan Grokhotkov [Fri, 21 Oct 2016 09:28:50 +0000 (17:28 +0800)]
spi_flash: change argument types

spi_flash_read and spi_flash_write currently have a limitation that source and destination must be word-aligned.
This can be fixed by adding code paths for various unaligned scenarios, but function signatures also need to be adjusted.
As a first step (since we are pre-1.0 and can still change function signatures) alignment checks are added, and pointer types are relaxed to uint8_t.
Later we will add handling of unaligned operations.
This change also introduces spi_flash_erase_range and spi_flash_get_chip_size functions.

We probably need something like spi_flash_chip_size_detect which will detect actual chip size.
This is to allow single application binary to be used on a variety of boards and modules.

7 years agospi_flash: implement partition API
Ivan Grokhotkov [Wed, 19 Oct 2016 10:04:25 +0000 (18:04 +0800)]
spi_flash: implement partition API

7 years agofreertos: move panic handler data to DRAM
Ivan Grokhotkov [Wed, 19 Oct 2016 09:19:02 +0000 (17:19 +0800)]
freertos: move panic handler data to DRAM

Fixes https://ezredmine.espressif.com/issues/7817

7 years agospi_flash: implement mmap/munmap
Ivan Grokhotkov [Wed, 19 Oct 2016 09:17:24 +0000 (17:17 +0800)]
spi_flash: implement mmap/munmap

7 years agospi_flash: move cache operations into separate file
Ivan Grokhotkov [Wed, 19 Oct 2016 09:08:05 +0000 (17:08 +0800)]
spi_flash: move cache operations into separate file

7 years agobootloader: move useful structures to esp32 component
Ivan Grokhotkov [Wed, 19 Oct 2016 09:05:37 +0000 (17:05 +0800)]
bootloader: move useful structures to esp32 component

7 years agocomponents/spi_flash: add high level partition api header
Ivan Grokhotkov [Thu, 8 Sep 2016 11:18:03 +0000 (19:18 +0800)]
components/spi_flash: add high level partition api header

TW6701

7 years agoMerge branch 'feature/vfs' into 'master'
Ivan Grokhotkov [Thu, 27 Oct 2016 09:47:45 +0000 (17:47 +0800)]
Merge branch 'feature/vfs' into 'master'

Virtual filesystem APIs

This changeset adds virtual filesystem APIs. As an example, UART devices are mapped to `/dev/uart/x`.
Also fixes an issue with per-task FILE descriptors.

See merge request !149

7 years agovfs: code review fixes
Ivan Grokhotkov [Thu, 27 Oct 2016 03:47:41 +0000 (11:47 +0800)]
vfs: code review fixes

- fix typo in readme
- remove unneeded extern declaration
- fix header guard macro
- tabs->spaces in syscalls.c
- spaces->tabs in tasks.c

7 years agovfs: add readme file
Ivan Grokhotkov [Wed, 26 Oct 2016 08:47:26 +0000 (16:47 +0800)]
vfs: add readme file

7 years agovfs and newlib: small fixes
Ivan Grokhotkov [Wed, 26 Oct 2016 06:05:56 +0000 (14:05 +0800)]
vfs and newlib: small fixes

- spaces->tabs in tasks.c
- update vfs_uart.c to use per-UART locks
- add license to vfs_uart.c
- allocate separate streams for stdout, stdin, stderr, so that they can be independently reassigned
- fix build system test failure
- use posix off_t instead of newlib internal _off_t

7 years agovfs: code review fixes
Ivan Grokhotkov [Tue, 25 Oct 2016 14:16:08 +0000 (22:16 +0800)]
vfs: code review fixes

- fix typo in readme
- remove unneeded extern declaration
- fix header guard macro
- tabs->spaces in syscalls.c (+1 squashed commit)
- fix minor typos

7 years agovfs and newlib: small fixes
Ivan Grokhotkov [Tue, 25 Oct 2016 14:12:07 +0000 (22:12 +0800)]
vfs and newlib: small fixes

- spaces->tabs in tasks.c
- update vfs_uart.c to use per-UART locks
- add license to vfs_uart.c
- allocate separate streams for stdout, stdin, stderr, so that they can be independently reassigned
- fix build system test failure

7 years agovfs: add UART device
Ivan Grokhotkov [Tue, 25 Oct 2016 14:01:50 +0000 (22:01 +0800)]
vfs: add UART device

This should be integrated with UART driver once everything is merged

7 years agovfs: initial version of virtual filesystem API
Ivan Grokhotkov [Tue, 25 Oct 2016 13:02:39 +0000 (21:02 +0800)]
vfs: initial version of virtual filesystem API

7 years agoMerge branch 'feature/wdts' into 'master'
Ivan Grokhotkov [Thu, 27 Oct 2016 09:09:35 +0000 (17:09 +0800)]
Merge branch 'feature/wdts' into 'master'

Feature/wdts

This adds two watchdogs to  esp-idf:

- An interrupt watchdog. Kicks in if the FreeRTOS timer interupt on either the PRO_CPU or (when configured) the APP CPU isn't called for a configurable time. Panics, displaying which CPU caused the problem and the registers that may lead to the offending code.
- A task watchdog. A task has to feed it every once in a while. If not, it will print the name of the offending tasks, as well as the tasks currently running on both CPUs, and optionally panic.

Also adds a panic reason to the panic call, as well as fixes the panic code a bit.

See merge request !148

7 years agoOnly init crosscore when FreeRTOS runs in multicore mode, add warnings that cross_int...
Jeroen Domburg [Thu, 27 Oct 2016 08:50:28 +0000 (16:50 +0800)]
Only init crosscore when FreeRTOS runs in multicore mode, add warnings that cross_int calls are private.

7 years agoMerge latest master in
Jeroen Domburg [Thu, 27 Oct 2016 08:18:55 +0000 (16:18 +0800)]
Merge latest master in

7 years agoAdd checks for tasks woken up on other CPUs where needed, make xYieldPending and...
Jeroen Domburg [Thu, 27 Oct 2016 08:07:47 +0000 (16:07 +0800)]
Add checks for tasks woken up on other CPUs where needed, make xYieldPending and xPendingReadyList per-processor, add configurable ISR stack size to Kconfig, in general fix the entire wake-up-task-on-other-cpu-by-interrupt implementation

7 years agoMerge branch 'feature/refractor_for_lwip' into 'master'
Wu Jian Gang [Thu, 27 Oct 2016 07:47:18 +0000 (15:47 +0800)]
Merge branch 'feature/refractor_for_lwip' into 'master'

lwip: refactoring for lwip

1. All espressif specific code are prefix with ESP_
2. Define all ESP_ options in lwipopts.h
3. Remove useless code added in 8266

See merge request !154

7 years agolwip: refractor for lwip
Liu Zhi Fu [Thu, 27 Oct 2016 06:11:01 +0000 (14:11 +0800)]
lwip: refractor for lwip

1. All espressif specific code are prefix with ESP_
2. Define all ESP_ options in lwipopts.h
3. Remove useless code added in 8266

7 years agoMerge branch 'feature/freertos_static_buffers' into 'master'
Ivan Grokhotkov [Thu, 27 Oct 2016 05:44:31 +0000 (13:44 +0800)]
Merge branch 'feature/freertos_static_buffers' into 'master'

Backport the static allocation feature from FreeRTOS V9.0.0

This feature allows to use static buffers (or from a pool of memory which is not
controlled by FreeRTOS).
In order to reduce the impact of the changes, the static feature has only been added
to the queus (and in consequence to the semaphores and the mutexes) and the tasks.
The Timer task is always dynamically allocated and also the idle task(s), which in the
case of the ESP-IDF is ok, since we always need to have dynamic allocation enabled.

Original PR on Github: https://github.com/espressif/esp-idf/pull/21

See merge request !107

7 years agoMerge branch 'master' into feature/freertos_static_buffers
Ivan Grokhotkov [Thu, 27 Oct 2016 04:38:35 +0000 (12:38 +0800)]
Merge branch 'master' into feature/freertos_static_buffers

7 years agoesp32: update libs for changes in FreeRTOS header files
Ivan Grokhotkov [Thu, 27 Oct 2016 04:37:34 +0000 (12:37 +0800)]
esp32: update libs for changes in FreeRTOS header files

7 years agoFix int clear, actually call int init code
Jeroen Domburg [Thu, 27 Oct 2016 04:37:19 +0000 (12:37 +0800)]
Fix int clear, actually call int init code

7 years agoMerge branch 'feature/add_api_to_get_ap_info' into 'master'
Wu Jian Gang [Thu, 27 Oct 2016 03:33:56 +0000 (11:33 +0800)]
Merge branch 'feature/add_api_to_get_ap_info' into 'master'

esp32: add esp_wifi_sta_get_ap_info

The customers need to get information about AP that associated with ESP32 station,
these information includes RSSI, channel number etc, so add this new API

See merge request !153

7 years agoFix panic config ifdefs, un-stall app cpu on boot so it restarts after panic
Jeroen Domburg [Thu, 27 Oct 2016 03:17:24 +0000 (11:17 +0800)]
Fix panic config ifdefs, un-stall app cpu on boot so it restarts after panic

7 years agoesp32: add esp_wifi_sta_get_ap_info
Liu Zhi Fu [Thu, 27 Oct 2016 02:42:01 +0000 (10:42 +0800)]
esp32: add esp_wifi_sta_get_ap_info

The customers need to get information about AP that associated with ESP32 station,
these information includes RSSI, channel number etc, so add this new API

7 years agoMerge remote-tracking branch 'origin/master' into feature/wdts
Jeroen Domburg [Thu, 27 Oct 2016 02:25:23 +0000 (10:25 +0800)]
Merge remote-tracking branch 'origin/master' into feature/wdts

7 years agoMerge branch 'feature/refractor_for_some_wifi_APIs' into 'master'
Wu Jian Gang [Thu, 27 Oct 2016 02:08:32 +0000 (10:08 +0800)]
Merge branch 'feature/refractor_for_some_wifi_APIs' into 'master'

Feature/refractor for some wifi ap is

    1. Modify esp_wifi_get_station_list to esp_wifi_ap_get_sta_list
    2. Modify tcpip_adapter_get_station_list to tcpip_adapter_get_sta_list
    3. Remove esp_wifi_free_station_list
    4. Remove tcpip_adapter_free_station_list
    5. Modify related data struct accordingly
    6. Move soft watchdog from wifi lib to IDF

See merge request !152

7 years agoChange inline to static inline functions. Ref Github issue 62.
Jeroen Domburg [Thu, 27 Oct 2016 01:15:43 +0000 (09:15 +0800)]
Change inline to static inline functions. Ref Github issue 62.

7 years agoMerge branch 'feature/add_per_socket_tcp_window' into 'master'
Jeroen Domburg [Wed, 26 Oct 2016 15:39:36 +0000 (23:39 +0800)]
Merge branch 'feature/add_per_socket_tcp_window' into 'master'

components/lwip - add per socket tcp window

Add code to support per socket tcp window and tcp send buffer size configuration.

See merge request !145

7 years agocomponents/esp32: refractor according to review comments
liuzhifu [Wed, 26 Oct 2016 13:50:15 +0000 (21:50 +0800)]
components/esp32: refractor according to review comments

modify esp_wifi_kick_sta to esp_wifi_deauth_sta

7 years agoMost code written. Interrupts still do not fire yet.
Jeroen Domburg [Wed, 26 Oct 2016 13:09:55 +0000 (21:09 +0800)]
Most code written. Interrupts still do not fire yet.

7 years agoesp32/tcpip_adapter: rework according to review comments
liuzhifu [Wed, 26 Oct 2016 12:02:39 +0000 (20:02 +0800)]
esp32/tcpip_adapter: rework according to review comments

1. Modify sta to station in comments
2. Modify esp_wifi_get_ap_num to esp_wifi_scan_get_ap_num
3. Modify esp_wifi_get_ap_list to esp_wifi_scan_get_ap_records

7 years agocomponents/esp32: udpate wifi lib
liuzhifu [Wed, 26 Oct 2016 10:18:58 +0000 (18:18 +0800)]
components/esp32: udpate wifi lib

1. cc5a5e29 - refractor for some wifi APIs
2. 8d787147 - move soft wdt to idf

7 years agoesp32/tcpip_adapter: refractor for some wifi APIs
liuzhifu [Wed, 26 Oct 2016 10:16:40 +0000 (18:16 +0800)]
esp32/tcpip_adapter: refractor for some wifi APIs

1. Modify esp_wifi_get_station_list to esp_wifi_ap_get_sta_list
2. Modify tcpip_adapter_get_station_list to tcpip_adapter_get_sta_list
3. Remove esp_wifi_free_station_list
4. Remove tcpip_adapter_free_station_list
5. Modify related data struct accordingly

7 years agoMerge branch 'feature/add_internal_api_header' into 'master'
Wu Jian Gang [Wed, 26 Oct 2016 09:29:12 +0000 (17:29 +0800)]
Merge branch 'feature/add_internal_api_header' into 'master'

Feature/add internal api header

    1. Add esp_wifi_internal.h
    2. Rename system_pp_recycle_rx_pkt to esp_wifi_internal_free_rx_buffer
    3. rename esp_wifi_tx_is_stop to esp_wifi_internal_tx_is_stop
    4. rename ieee80211_output to esp_wifi_internal_tx

See merge request !151

7 years agocomponent/bt : use LOG_XXX instead of print
Tian Hao [Wed, 26 Oct 2016 07:57:40 +0000 (15:57 +0800)]
component/bt : use LOG_XXX instead of print

7 years agoMove write key and stage action select constants into headers
Jeroen Domburg [Wed, 26 Oct 2016 06:54:50 +0000 (14:54 +0800)]
Move write key and stage action select constants into headers

7 years agocomponents esp32/lwip: modify code according to review comments
liuzhifu [Wed, 26 Oct 2016 06:09:54 +0000 (14:09 +0800)]
components esp32/lwip: modify code according to review comments

1. Modify comments for esp_wifi_internal_tx
2. Fix delay time error in esp32_tx_flow_ctrl which is found in code review,
   modify _wait_delay init value from 0 to 1

7 years agocomponents/esp32: update wifi lib
liuzhifu [Wed, 26 Oct 2016 05:53:00 +0000 (13:53 +0800)]
components/esp32: update wifi lib

6ce01d76: rename some wifi internal APIs
aa4d2aa9: last rx buffer is reserved for mgmt frame
bb0ff4a8: tw7775 fix assert when rx auth frame before create bss

7 years agolwip/esp32: move the extern wifi calls into esp_wifi_internal.h
liuzhifu [Wed, 26 Oct 2016 05:23:35 +0000 (13:23 +0800)]
lwip/esp32: move the extern wifi calls into esp_wifi_internal.h

1. Add esp_wifi_internal.h
2. Rename system_pp_recycle_rx_pkt to esp_wifi_internal_free_rx_buffer
3. rename esp_wifi_tx_is_stop to esp_wifi_internal_tx_is_stop
4. rename ieee80211_output to esp_wifi_internal_tx

7 years agonvs: fix memory leaks in HashList and nvs_close
Ivan Grokhotkov [Wed, 26 Oct 2016 04:25:53 +0000 (12:25 +0800)]
nvs: fix memory leaks in HashList and nvs_close

Fixes TW8162.
Associated test case is run under Instruments on macOS, until I set up valgrind to test this automatically on Linux.

7 years agoRemove superfluous backup files
Jeroen Domburg [Wed, 26 Oct 2016 04:23:35 +0000 (12:23 +0800)]
Remove superfluous backup files

7 years agoMove panic handler and gdbstub into esp32 component, clean up wdt according to merge...
Jeroen Domburg [Wed, 26 Oct 2016 04:23:01 +0000 (12:23 +0800)]
Move panic handler and gdbstub into esp32 component, clean up wdt according to merge req suggestions

7 years agocomponent/bt: implement some APIs for bluetooth SDP, GAP and stack manager
wangmengyang [Wed, 26 Oct 2016 03:25:24 +0000 (11:25 +0800)]
component/bt: implement some APIs for bluetooth SDP, GAP and stack manager

1. add bt profile task(temporarily called btif task)
2. add GAP API to set BT scan mode
3. port btif/SDP module
4. port btif stack manager

7 years agoMove panic handler code from FreeRTOS to esp32 component
Jeroen Domburg [Wed, 26 Oct 2016 03:06:53 +0000 (11:06 +0800)]
Move panic handler code from FreeRTOS to esp32 component

7 years agoMerge in master updates
Jeroen Domburg [Wed, 26 Oct 2016 03:04:42 +0000 (11:04 +0800)]
Merge in master updates

7 years agoAdd licenses, docbook, general cleanup
Jeroen Domburg [Tue, 25 Oct 2016 10:18:11 +0000 (18:18 +0800)]
Add licenses, docbook, general cleanup

7 years agoMake CPU1 int wdt / idle task wdt configurable, panic now properly disables other...
Jeroen Domburg [Tue, 25 Oct 2016 10:08:55 +0000 (18:08 +0800)]
Make CPU1 int wdt / idle task wdt configurable, panic now properly disables other cpu, tick handler now also is called on cpu1, task wdt prints currently running tasks.

7 years agoDisable brown-out WDT, fix thread WDT, add panic reason indication to _xt_panic()
Jeroen Domburg [Tue, 25 Oct 2016 09:05:13 +0000 (17:05 +0800)]
Disable brown-out WDT, fix thread WDT, add panic reason indication to _xt_panic()

7 years agocomponent/bt ; add notify
Tian Hao [Tue, 25 Oct 2016 07:05:08 +0000 (15:05 +0800)]
component/bt ; add notify

7 years agoMerge branch 'bugfix/tw7458_dhcps_wrong_after_mode_switch' into 'master'
Wu Jian Gang [Tue, 25 Oct 2016 03:03:34 +0000 (11:03 +0800)]
Merge branch 'bugfix/tw7458_dhcps_wrong_after_mode_switch' into 'master'

component/tcpip_adapter: not update dhcps status when it is stopped after mode switch

When switch the mode from WIFI_MODE_STA/WIFI_MODE_NULL to WIFI_MODE_AP/WIFI_MODE_APSTA,
if the dhcp server is STOPPED, then dhcp server will not start automatically.

See merge request !147

7 years agocomponent/tcpip_adapter: not update dhcps status when it is stopped after mode switch
liuzhifu [Tue, 25 Oct 2016 01:26:10 +0000 (09:26 +0800)]
component/tcpip_adapter: not update dhcps status when it is stopped after mode switch

When switch the mode from WIFI_MODE_STA/WIFI_MODE_NULL to WIFI_MODE_AP/WIFI_MODE_APSTA,
if the dhcp server is STOPPED, then dhcp server will not start automatically.

7 years agocomponent/bt : delete extra GATTAPP_REGISTER
Tian Hao [Mon, 24 Oct 2016 12:07:19 +0000 (20:07 +0800)]
component/bt : delete extra GATTAPP_REGISTER

7 years agofix bug for case WIFI_CONN_0102:
Yinling [Mon, 24 Oct 2016 10:59:56 +0000 (18:59 +0800)]
fix bug for case WIFI_CONN_0102:

after set AP, STA will disconnected and do reconnect. scan could fail as reconnect also use scan

7 years agoadd know issue ^WIFI_CONN_0601:
Yinling [Mon, 24 Oct 2016 10:42:40 +0000 (18:42 +0800)]
add know issue ^WIFI_CONN_0601:

in STA+AP mode, when STA reconencting to enternal AP, external STA can't connect to AP

7 years agoblufi cleanup the bad things
Tian Hao [Mon, 24 Oct 2016 09:08:37 +0000 (17:08 +0800)]
blufi cleanup the bad things

7 years agocomponent/bt: fix logging format for some source files of BTM module
wangmengyang [Mon, 24 Oct 2016 08:17:55 +0000 (16:17 +0800)]
component/bt: fix logging format for some source files of BTM module

7 years agoMerge branch 'bugfix/esptool_write_protect' into 'master'
Angus Gratton [Mon, 24 Oct 2016 01:58:46 +0000 (09:58 +0800)]
Merge branch 'bugfix/esptool_write_protect' into 'master'

Fix flash write protect bug

As reported in github #50 and on forum.

Incorporates other esptool.py changes:
https://github.com/themadinventor/esptool/compare/197ba605...5c6962e8

See merge request !144

7 years agocomponents/lwip - add per socket tcp window
liuzhifu [Sat, 22 Oct 2016 16:49:41 +0000 (00:49 +0800)]
components/lwip - add per socket tcp window

Add code to support per socket tcp window and tcp send buffer size configuration.

7 years agoBrownout works (in as far brownout can work...), int wdt works.
Jeroen Domburg [Fri, 21 Oct 2016 11:30:29 +0000 (19:30 +0800)]
Brownout works (in as far brownout can work...), int wdt works.