__attribute__((aligned(32))) uint32_t spi0_send_array[ARRAYSIZE] = {0xA1B1, 0xA2B2, 0xA3B3, 0xA4B4, 0xA5B5, 0xA6B6, 0xA7B7, 0xA8B8, 0xA9B9, 0xAABA};
__attribute__((aligned(32))) uint32_t spi1_receive_array[ARRAYSIZE];
修正一个错误,原程序这里写成了32字节对齐,但遗憾的是,改成4字节对齐也是不行
__attribute__((aligned(4))) uint32_t spi0_send_array[ARRAYSIZE] = {0xA1B1, 0xA2B2, 0xA3B3, 0xA4B4, 0xA5B5, 0xA6B6, 0xA7B7, 0xA8B8, 0xA9B9, 0xAABA};
__attribute__((aligned(4))) uint32_t spi1_receive_array[ARRAYSIZE];
|