]> granicus.if.org Git - esp-idf/commit
spi_flash: define spi_flash_guard_{start,stop} with IRAM_ATTR
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 16 Jan 2017 16:42:55 +0000 (00:42 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Mon, 16 Jan 2017 16:42:55 +0000 (00:42 +0800)
commit075446318df651216be42966e721c30d822b48e2
tree778e773ab75b7c63189551e42f7ddbabfae11dd0
parent48ae7ab500f63c1765ce0a426403f34f09f74627
spi_flash: define spi_flash_guard_{start,stop} with IRAM_ATTR

These functions are marked as inline and are called from functions which are in IRAM.
In release (-Os) builds, the compiler may decide not to inline these functions.
Placing these functions into IRAM explicitly works around this.
components/spi_flash/flash_ops.c