Ivan Grokhotkov
6f1d3ce4a7
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
2016-10-27 17:25:38 +08:00
Ivan Grokhotkov
7e201c5527
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
2016-10-27 17:22:18 +08:00
Ivan Grokhotkov
0c130ecf19
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
2016-10-27 17:21:17 +08:00
Ivan Grokhotkov
b3b8334d54
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
2016-10-27 17:19:39 +08:00
Ivan Grokhotkov
38c6256db9
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
2016-10-27 17:09:35 +08:00
Jeroen Domburg
68f39c1ed9
Only init crosscore when FreeRTOS runs in multicore mode, add warnings that cross_int calls are private.
2016-10-27 16:50:28 +08:00
Jeroen Domburg
b14faabfda
Merge latest master in
2016-10-27 16:18:55 +08:00
Jeroen Domburg
3371083c16
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
2016-10-27 16:07:47 +08:00
Ivan Grokhotkov
50bd28353d
Merge branch 'master' into feature/freertos_static_buffers
2016-10-27 12:38:35 +08:00
Ivan Grokhotkov
329ad14b8c
esp32: update libs for changes in FreeRTOS header files
2016-10-27 12:37:34 +08:00
Jeroen Domburg
c6477ff10d
Fix int clear, actually call int init code
2016-10-27 12:37:19 +08:00
Jeroen Domburg
ff6b8addd9
Fix panic config ifdefs, un-stall app cpu on boot so it restarts after panic
2016-10-27 11:17:24 +08:00
Liu Zhi Fu
e0f49c2221
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
2016-10-27 10:42:01 +08:00
Jeroen Domburg
fd887dbeea
Merge remote-tracking branch 'origin/master' into feature/wdts
2016-10-27 10:25:23 +08:00
liuzhifu
df1c2f0da5
components/esp32: refractor according to review comments
...
modify esp_wifi_kick_sta to esp_wifi_deauth_sta
2016-10-26 21:50:15 +08:00
Jeroen Domburg
d3d9a8bc28
Most code written. Interrupts still do not fire yet.
2016-10-26 21:09:55 +08:00
liuzhifu
750d6faf51
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
2016-10-26 20:02:39 +08:00
liuzhifu
345cf333a8
components/esp32: udpate wifi lib
...
1. cc5a5e29 - refractor for some wifi APIs
2. 8d787147 - move soft wdt to idf
2016-10-26 18:18:58 +08:00
liuzhifu
3cca62dfa4
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
2016-10-26 18:16:40 +08:00
Jeroen Domburg
9546ad5b5e
Move write key and stage action select constants into headers
2016-10-26 14:54:50 +08:00
liuzhifu
a90217e201
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
2016-10-26 14:09:54 +08:00
liuzhifu
48301909eb
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
2016-10-26 13:53:00 +08:00
liuzhifu
612aaa69e4
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
2016-10-26 13:23:35 +08:00
Jeroen Domburg
7d254eb3f0
Move panic handler and gdbstub into esp32 component, clean up wdt according to merge req suggestions
2016-10-26 12:23:01 +08:00
Jeroen Domburg
1ca97f5adb
Move panic handler code from FreeRTOS to esp32 component
2016-10-26 11:06:53 +08:00
Jeroen Domburg
6f96b23989
Merge in master updates
2016-10-26 11:04:42 +08:00
Jeroen Domburg
06bff71481
Add licenses, docbook, general cleanup
2016-10-25 18:18:11 +08:00
Jeroen Domburg
89f7752cdd
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.
2016-10-25 18:08:55 +08:00
Jeroen Domburg
75a11589a1
Disable brown-out WDT, fix thread WDT, add panic reason indication to _xt_panic()
2016-10-25 17:05:13 +08:00
Angus Gratton
f988dc9587
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:
197ba605...5c6962e8
See merge request !144
2016-10-24 09:58:46 +08:00
Wangjialin
288f4f63f0
Add UART driver
...
1. add uart.h and uart.c
2. add ESP_ERR_TIMEOUT in esp_err.h
3. add UART AHB FIFO address in uart_reg.h
4. modify xRingbufferSendFromISR return value in ringbuffer.c
5. add #include "soc/gpio_sig_map.h" in gpio.h
2016-10-24 09:17:10 +08:00
Jeroen Domburg
ae5c563080
Brownout works (in as far brownout can work...), int wdt works.
2016-10-21 19:30:29 +08:00
Jeroen Domburg
beff3aab81
Merge branch 'feature/trax' into 'master'
...
Feature/trax
Add Trax support to esp-idf. OpenOCD already has trax support, this allows an esp-idf program to also trigger this when needed. Also included: some more logic to correctly reserve memory blocks for Trax.
See merge request !73
2016-10-21 18:16:12 +08:00
Jeroen Domburg
53146799a0
Initial addition of wdt and brownout code
2016-10-21 17:59:57 +08:00
Angus Gratton
1413ec3ff0
Remove SPIUnlock from linker script symbols
...
Add a comment about why it was removed and where it went.
2016-10-21 17:50:37 +11:00
Angus Gratton
8e8caca2e2
Replace ROM SPIUnlock function with a version that can't lock flash
...
Avoid bug where a bad status read is copied back to flash and can set
lock bits.
2016-10-21 16:12:51 +11:00
Ivan Grokhotkov
42827ff869
bootloader, menuconfig: add flash size setting support
2016-10-21 15:27:25 +11:00
Angus Gratton
feca308f1f
rom/spi_flash.h: Remove first parameter of SPI_read_status_high()
...
Corrects the prototype to match the one compiled into ROM.
2016-10-21 10:44:05 +11:00
Angus Gratton
da70611196
Deep sleep: Any source named rtc_wake_stub* is linked as RTC wake stub code
...
Also move esp_deepsleep.h documentation out to docs/deep-sleep-stub.rst
2016-10-19 15:58:37 +11:00
Angus Gratton
90cad92b9b
Merge branch 'master' into bugfix/build_dir_base
2016-10-18 15:30:57 +11:00
Ivan Grokhotkov
8f82a83c2c
Merge branch 'master' into feature/freertos_static_buffers
2016-10-17 16:02:09 +08:00
Tian Hao
28fa3c1a70
component/bt : new coexist lib
...
change boot loader.ld , the 0x40098000 may set other instructions
2016-10-17 15:47:45 +08:00
Ivan Grokhotkov
eaace9846a
smartconfig: update to match new FreeRTOS header files
2016-10-17 14:12:16 +08:00
Jeroen Domburg
0aab006bb7
Add Trax-support to esp-idf
2016-10-17 12:18:17 +08:00
Tian Hao
3ed2d89538
Merge branch 'master' into feature/btdm_blufi
...
# Conflicts:
# components/bt/component.mk
2016-10-16 18:59:04 +08:00
Tian Hao
3ecce07dbc
component/bt: cleanup phy/rtc/pp libs
2016-10-16 16:50:02 +08:00
Ivan Grokhotkov
4370794d07
wifi libraries: update to match new FreeRTOS header files
2016-10-14 21:52:43 +08:00
Jeroen Domburg
fa476c8ba9
Merge branch 'bugfix/small_fixes_jd' into 'master'
...
Some small fixes
- Kill unused uxReturn in task.c, https://github.com/espressif/esp-idf/issues/48
- Line end conversion in gpio.c
- Move heap_alloc_caps.h so components can also use it
See merge request !135
2016-10-12 21:13:34 +08:00
Angus Gratton
9632c8e56c
RSA Accelerator: Add mod_exp, refactor to avoid memory allocation & copying
...
Not fully working at the moment, mod_exp has a bug.
2016-10-12 16:19:09 +11:00
Angus Gratton
79bd6af7e7
build system: Print a WARNING if any submodule is out of date
...
Inspired by Github #27 and related "gotchas" with keeping submodules up to date.
2016-10-11 07:56:08 +11:00