From: Michael (XIAO Xufeng) Date: Thu, 13 Jun 2019 07:09:28 +0000 (+0800) Subject: spi_slave: fix a example issue caused by word alignment X-Git-Tag: v4.0-beta1~210^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2eff8f774237072240f9c8401acf4573ca12b4a8;p=esp-idf spi_slave: fix a example issue caused by word alignment --- diff --git a/examples/peripherals/spi_slave/receiver/main/app_main.c b/examples/peripherals/spi_slave/receiver/main/app_main.c index c5362dd97b..1a51c653a4 100644 --- a/examples/peripherals/spi_slave/receiver/main/app_main.c +++ b/examples/peripherals/spi_slave/receiver/main/app_main.c @@ -109,8 +109,8 @@ void app_main() ret=spi_slave_initialize(HSPI_HOST, &buscfg, &slvcfg, 1); assert(ret==ESP_OK); - char sendbuf[129]=""; - char recvbuf[129]=""; + WORD_ALIGNED_ATTR char sendbuf[129]=""; + WORD_ALIGNED_ATTR char recvbuf[129]=""; memset(recvbuf, 0, 33); spi_slave_transaction_t t; memset(&t, 0, sizeof(t));