]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agosecure boot: Add warnings this feature is not finished yet
Angus Gratton [Fri, 11 Nov 2016 04:40:58 +0000 (15:40 +1100)]
secure boot: Add warnings this feature is not finished yet

7 years agoSecure boot: Documentation tweaks
Angus Gratton [Fri, 11 Nov 2016 04:40:29 +0000 (15:40 +1100)]
Secure boot: Documentation tweaks

7 years agosecure boot: Rename efuse option for UART bootloader to option for ROM interpreter
Angus Gratton [Fri, 11 Nov 2016 04:14:13 +0000 (15:14 +1100)]
secure boot: Rename efuse option for UART bootloader to option for ROM interpreter

7 years agoBuild system: Don't shell-quote SEPARATOR variable or it evaluates as a bunch of...
Angus Gratton [Fri, 11 Nov 2016 03:44:10 +0000 (14:44 +1100)]
Build system: Don't shell-quote SEPARATOR variable or it evaluates as a bunch of wildcards!

7 years agoBump esptool revision (espefuse.py fixes)
Angus Gratton [Wed, 9 Nov 2016 00:55:09 +0000 (11:55 +1100)]
Bump esptool revision (espefuse.py fixes)

7 years agosecure boot: Functional partition table & app signature verification
Angus Gratton [Mon, 7 Nov 2016 04:45:57 +0000 (15:45 +1100)]
secure boot: Functional partition table & app signature verification

7 years agosecure boot: Enable based on sdkconfig, remove "secure boot flag" from binary image
Angus Gratton [Mon, 7 Nov 2016 04:45:26 +0000 (15:45 +1100)]
secure boot: Enable based on sdkconfig, remove "secure boot flag" from binary image

7 years agopartition_table: Pad generated table to 0xC00 length, for easier signing
Angus Gratton [Mon, 7 Nov 2016 04:32:21 +0000 (15:32 +1100)]
partition_table: Pad generated table to 0xC00 length, for easier signing

7 years agopartition_table: Move from 0x4000 to 0x8000
Angus Gratton [Mon, 7 Nov 2016 03:35:23 +0000 (14:35 +1100)]
partition_table: Move from 0x4000 to 0x8000

Also fix a bug with correctly padding bootloader image when length is
already a multiple of 16.

7 years agosecure boot: Derive secure bootloader key from private key
Angus Gratton [Fri, 4 Nov 2016 05:05:00 +0000 (16:05 +1100)]
secure boot: Derive secure bootloader key from private key

Means only one key needs to be managed.

7 years agoSecure boot: initial image signature support
Angus Gratton [Thu, 3 Nov 2016 06:33:30 +0000 (17:33 +1100)]
Secure boot: initial image signature support

7 years agobuild system: Add support for embedded arbitrary binary or text files in .rodata
Angus Gratton [Thu, 6 Oct 2016 01:51:47 +0000 (12:51 +1100)]
build system: Add support for embedded arbitrary binary or text files in .rodata

Simplifies examples of embedding a certificate file or a root cert.

This is a much cruder mechanism than the full flash filesystem we want
eventually, but still sometimes useful.

7 years agobootloader_support: Move secure boot code to bootloader_support
Angus Gratton [Wed, 2 Nov 2016 06:54:47 +0000 (17:54 +1100)]
bootloader_support: Move secure boot code to bootloader_support

8 years agoRefactor existing bootloader common functionality into bootloader_support component
Angus Gratton [Tue, 1 Nov 2016 23:41:58 +0000 (10:41 +1100)]
Refactor existing bootloader common functionality into bootloader_support component

8 years agoAdd documentation for bootloader secure boot stage
Angus Gratton [Tue, 1 Nov 2016 06:41:27 +0000 (17:41 +1100)]
Add documentation for bootloader secure boot stage

8 years agobuild system: Add espefuse/espsecure support for secure boot
Angus Gratton [Mon, 31 Oct 2016 23:50:16 +0000 (10:50 +1100)]
build system: Add espefuse/espsecure support for secure boot

8 years agoesp32: efuse_reg add bit values for read & write disable flags
Angus Gratton [Mon, 31 Oct 2016 05:27:26 +0000 (16:27 +1100)]
esp32: efuse_reg add bit values for read & write disable flags

8 years agobootloader: Refactor secure boot digest generation
Angus Gratton [Tue, 25 Oct 2016 03:55:35 +0000 (14:55 +1100)]
bootloader: Refactor secure boot digest generation

8 years agoMerge branch 'driver_merge_tmp/modify_gpio_ledc_h' into 'master'
Ivan Grokhotkov [Tue, 1 Nov 2016 14:46:29 +0000 (22:46 +0800)]
Merge branch 'driver_merge_tmp/modify_gpio_ledc_h' into 'master'

Fix header docs for GPIO and LEDC drivers

Modify gpio.h and ledc.h according to documenting-code.rst

See merge request !166

8 years agoModify gpio.h and ledc.h
Wangjialin [Tue, 1 Nov 2016 03:48:32 +0000 (11:48 +0800)]
Modify gpio.h and ledc.h

8 years agoMerge branch 'bugfix/only_deploy_when_test_pass' into 'master'
Ivan Grokhotkov [Tue, 1 Nov 2016 14:27:37 +0000 (22:27 +0800)]
Merge branch 'bugfix/only_deploy_when_test_pass' into 'master'

fix bug that deploy when test failed:

test report will be a single stage. The result of test report will be calculated from the result of all test jobs in test stage. So it will only deploy when all test job passed.

See merge request !140

8 years agoMerge branch 'feature/deepsleep_stub_linker' into 'master'
Ivan Grokhotkov [Tue, 1 Nov 2016 14:27:13 +0000 (22:27 +0800)]
Merge branch 'feature/deepsleep_stub_linker' into 'master'

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

See merge request !142

8 years agoMerge branch 'bugfix/nvs_write_failure' into 'master'
Ivan Grokhotkov [Tue, 1 Nov 2016 14:26:37 +0000 (22:26 +0800)]
Merge branch 'bugfix/nvs_write_failure' into 'master'

Fix spi_flash_write regression and nvs error recovery

In the previous set of changes related to spi_flash, new alignment checks were added. One of these checks, word alignment of `src` buffer in `nvs_flas_write`, was unnecessary.  ROM `SPIWrite` function can handle unaligned source buffers.

This change caused an error to be returned to nvs for some legitimate write operations. Due to a bug in nvs, further write operations were possible, while the internal state of `Page` instance was broken. In WiFi functional tests, this inflicted havoc on the nvs partition, creating multiple duplicate items in the affected page. Because multiple duplicate items per page were never supposed to be handled during page load, duplicates were not removed. Thankfully this caused an assert at a later point in the loading process, otherwise this bug would be very difficult to detect.

This change set fixes the original spi_flash regression, handling of `INVALID` state of `nvs::Page`, and handling of duplicate items.

See merge request !161

8 years agoMerge branch 'feature/tw8155_optimize_tx_flow_control' into 'master'
Ivan Grokhotkov [Tue, 1 Nov 2016 14:26:15 +0000 (22:26 +0800)]
Merge branch 'feature/tw8155_optimize_tx_flow_control' into 'master'

Feature/tw8155 optimize tx flow control

1. Remove TX flow control in LWIP
2. Make the return value of esp_wifi_internal_tx consistent with LWIP error code

See merge request !164

8 years agoMerge branch 'feature/api_doc' into 'master'
Ivan Grokhotkov [Tue, 1 Nov 2016 14:25:20 +0000 (22:25 +0800)]
Merge branch 'feature/api_doc' into 'master'

API reference, first batch

This includes fixes to documentation formats in header files, some standalone doc fixes, necessary files for readthedocs, and instructions for documenting the code.

See merge request !162

8 years agodocs: deploy built docs
Ivan Grokhotkov [Tue, 1 Nov 2016 12:58:47 +0000 (20:58 +0800)]
docs: deploy built docs

8 years agodocs: fix typos, build docs with gitlab CI
Ivan Grokhotkov [Tue, 1 Nov 2016 12:08:29 +0000 (20:08 +0800)]
docs: fix typos, build docs with gitlab CI

8 years agoesp32: update wifi lib
Liu Zhi Fu [Tue, 1 Nov 2016 07:34:30 +0000 (15:34 +0800)]
esp32: update wifi lib

146f5962 - Make the return value of esp_wifi_internal_tx consistent with LWIP error code so that
the up-layer can detect the out-of-memory error and take action accordingly, such do flow control.

8 years agolwip: remove tx flow control code
Liu Zhi Fu [Tue, 1 Nov 2016 07:25:46 +0000 (15:25 +0800)]
lwip: remove tx flow control code

8 years agoTypo corrections
Krzysztof [Sun, 30 Oct 2016 18:54:10 +0000 (19:54 +0100)]
Typo corrections

8 years agoGuide on documenting code
Krzysztof [Sun, 30 Oct 2016 18:38:44 +0000 (19:38 +0100)]
Guide on documenting code

8 years agoCorrected documentation style
Krzysztof [Sun, 30 Oct 2016 18:37:45 +0000 (19:37 +0100)]
Corrected documentation style

This is for better visuaization with Sphinx

8 years agoChanged title of docs
Krzysztof [Sat, 29 Oct 2016 21:35:12 +0000 (23:35 +0200)]
Changed title of docs

8 years agoFixed confused Sphinx
Krzysztof [Sat, 29 Oct 2016 21:15:27 +0000 (23:15 +0200)]
Fixed confused Sphinx

Sphinx failed to phrase esp_log_timestamp
reorderdering esp_log_write and esp_log_timestamp fixed this issue

8 years agoFixed desription of logging library
Krzysztof [Sat, 29 Oct 2016 21:00:46 +0000 (23:00 +0200)]
Fixed desription of logging library

8 years agoAPI samples
Krzysztof [Sat, 29 Oct 2016 21:00:30 +0000 (23:00 +0200)]
API samples

- Logging library
- Virtual file system component

8 years agodocu makup update
Krzysztof [Sat, 29 Oct 2016 18:54:58 +0000 (20:54 +0200)]
docu makup update

8 years agoFixed headers to match python doc standard
Krzysztof [Fri, 28 Oct 2016 12:43:48 +0000 (14:43 +0200)]
Fixed headers to match python doc standard

8 years agoDraft of non-volatile storage component documentation
Krzysztof [Thu, 27 Oct 2016 19:22:35 +0000 (21:22 +0200)]
Draft of non-volatile storage component documentation

8 years agoAdd missing annotations
Krzysztof [Thu, 27 Oct 2016 19:20:30 +0000 (21:20 +0200)]
Add missing annotations

8 years agoSample cleaning of markup
Krzysztof [Wed, 26 Oct 2016 20:17:58 +0000 (22:17 +0200)]
Sample cleaning of markup

8 years agoAPI template
Krzysztof [Wed, 26 Oct 2016 19:08:36 +0000 (21:08 +0200)]
API template

- reflected template in other DRAFT API dcouments
- DRAFT of Bluetooth API
- link fixes in CONTRIBUTING.rst

8 years agoBack to .md format
Krzysztof [Tue, 25 Oct 2016 19:28:42 +0000 (21:28 +0200)]
Back to .md format

8 years agoMake section
Krzysztof [Tue, 25 Oct 2016 19:28:21 +0000 (21:28 +0200)]
Make section

8 years agoDraft of GPIO API included
krzychb [Tue, 25 Oct 2016 10:09:05 +0000 (12:09 +0200)]
Draft of GPIO API included

8 years agoInitial list of Wi-Fi API
Krzysztof [Mon, 24 Oct 2016 18:44:57 +0000 (20:44 +0200)]
Initial list of Wi-Fi  API

8 years agoSet up of theme for local builds
Krzysztof [Mon, 24 Oct 2016 18:43:13 +0000 (20:43 +0200)]
Set up of theme for local builds

8 years agoAdded ReadTheDocs.org badges
Krzysztof [Sun, 23 Oct 2016 20:59:53 +0000 (22:59 +0200)]
Added ReadTheDocs.org badges

8 years agoReduced the build coverage by DoxyGen
Krzysztof [Sun, 23 Oct 2016 20:31:15 +0000 (22:31 +0200)]
Reduced the build coverage by DoxyGen

8 years agoIncreased buikd coverage of DoxyGen
Krzysztof [Sun, 23 Oct 2016 20:25:28 +0000 (22:25 +0200)]
Increased buikd coverage of DoxyGen

8 years agoLink to file a folder up
Krzysztof [Sun, 23 Oct 2016 20:15:13 +0000 (22:15 +0200)]
Link to file a folder up

8 years agoInitial Sphinx / ReadTheDocs.org configuration
Krzysztof [Sun, 23 Oct 2016 20:14:24 +0000 (22:14 +0200)]
Initial Sphinx / ReadTheDocs.org configuration

8 years agoRenamed .md to .rst
Krzysztof [Sun, 23 Oct 2016 20:12:34 +0000 (22:12 +0200)]
Renamed .md to .rst

8 years agolwip: optimize tx flow control
Liu Zhi Fu [Mon, 31 Oct 2016 13:26:33 +0000 (21:26 +0800)]
lwip: optimize tx flow control

1. Remove tx flow control for TCP
2. Remove tx flow control for UDP temporary
3. Return the error code when call esp_wifi_internal_tx()

8 years agonvs_flash: delete all duplicate entries in a page while loading
Ivan Grokhotkov [Mon, 31 Oct 2016 13:10:47 +0000 (21:10 +0800)]
nvs_flash: delete all duplicate entries in a page while loading

Due to previous flash write bug it was possible to create multiple duplicate entries in a single page.
Recovery logic detected that case and bailed out with an assert.
This change adds graceful recovery from this condition.
Tests included.

8 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

8 years agonvs_flash: don't allow more operation to be done on page in PageState::INVALID
Ivan Grokhotkov [Mon, 31 Oct 2016 11:48:28 +0000 (19:48 +0800)]
nvs_flash: don't allow more operation to be done on page in PageState::INVALID

Currently a restart is required to recover a page from invalid state.
The long-term solution is to detect such a condition and recover automatically (without a restart). This will be implemented in a separate change set.

8 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

8 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

8 years agonvs_flash: introduce write failures after each word written
Ivan Grokhotkov [Mon, 31 Oct 2016 11:17:25 +0000 (19:17 +0800)]
nvs_flash: introduce write failures after each word written

Previously the test bench would check failure recovery by introducing error after each write operation.
This makes checks a bit more extensive (and much longer) by failing after every word written. Surprisingly, this change didn't expose any bugs.

8 years agonvs_flash: use CRC-32 routine compatible with ROM version
Ivan Grokhotkov [Mon, 31 Oct 2016 11:11:40 +0000 (19:11 +0800)]
nvs_flash: use CRC-32 routine compatible with ROM version

Host tests used different flavour of CRC-32, which made it impossible to load NVS partition dumps created on the chip

8 years agospi_flash: remove unnecessary src pointer alignment check in spi_flash_write
Ivan Grokhotkov [Mon, 31 Oct 2016 11:08:56 +0000 (19:08 +0800)]
spi_flash: remove unnecessary src pointer alignment check in spi_flash_write

ROM SPIWrite routine can work with unaligned sources, so this check is unnecessary.
Furthermore, it breaks nvs_set_str and nvs_get_blob when data pointer is unaligned.
Also fix stray backslash in COUNTER_STOP macro

8 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

8 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.

8 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

8 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

8 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

8 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

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

8 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

8 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

8 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.

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

8 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

8 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

8 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.

8 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

8 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

8 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

8 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

8 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.

8 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

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

8 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

8 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*

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

8 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

8 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.

8 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.

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

8 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

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

8 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

8 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

8 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

8 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

8 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

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

8 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

8 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