mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
spi_slave: fix a example issue caused by word alignment
This commit is contained in:
parent
5c9dc44c49
commit
2eff8f7742
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user