]> granicus.if.org Git - esp-idf/commit
spi_flash: allocate mmap pages array in internal memory
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 30 Jul 2018 19:49:09 +0000 (22:49 +0300)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 8 Aug 2018 08:30:31 +0000 (11:30 +0300)
commitb88ae6c39f03ce82595c88c8b5943a6a14bde30a
treead19305600ec656b9a682a0ecafd14424ac7b95c
parentd9a1b5faaeca39b2371e8b729cd495fc27957b69
spi_flash: allocate mmap pages array in internal memory

* spi_flash_mmap_pages needs pages array to be in internal memory.
  Document and check this.

* Fix a bug that spi_flash_mmap did not allocate pages array in
  internal memory.

* Minor style fixes: const-ify pages argument of spi_flash_mmap, add
  spaces around operators, mark output arguments with [out].

Closes https://github.com/espressif/esp-idf/issues/2229.
components/spi_flash/flash_mmap.c
components/spi_flash/include/esp_spi_flash.h