|
|
@@ -178,14 +178,14 @@ struct rw007_spi
|
|
|
|
|
|
/* Tx mempool and mailbox */
|
|
|
struct rt_mempool spi_tx_mp;
|
|
|
- ALIGN(4)
|
|
|
+ ALIGN(RT_ALIGN_SIZE)
|
|
|
rt_uint8_t spi_tx_mempool[(sizeof(struct spi_data_packet) + 4) * SPI_TX_POOL_SIZE];
|
|
|
struct rt_mailbox spi_tx_mb;
|
|
|
rt_ubase_t spi_tx_mb_pool[SPI_TX_POOL_SIZE + 1];
|
|
|
-
|
|
|
+
|
|
|
/* Rx mempool and mailbox */
|
|
|
struct rt_mempool spi_rx_mp;
|
|
|
- ALIGN(4)
|
|
|
+ ALIGN(RT_ALIGN_SIZE)
|
|
|
rt_uint8_t spi_rx_mempool[(sizeof(struct spi_data_packet) + 4) * SPI_RX_POOL_SIZE];
|
|
|
struct rt_mailbox spi_rx_mb;
|
|
|
rt_ubase_t spi_rx_mb_pool[SPI_RX_POOL_SIZE + 1];
|
|
|
@@ -193,7 +193,7 @@ struct rw007_spi
|
|
|
/* response event */
|
|
|
rt_event_t rw007_cmd_event;
|
|
|
/* response data */
|
|
|
- struct rw007_resp * resp[RW00x_CMD_MAX_NUM];
|
|
|
+ struct rw007_resp *resp[RW00x_CMD_MAX_NUM];
|
|
|
};
|
|
|
|
|
|
#define RW00x_CMD_RESP_EVENT(n) (0x01UL << n)
|