mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
spi_slave: fix a example issue caused by word alignment
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user