Merge branch 'bugfix/spi_dma_align' into 'master'

fix(spi_dma): fix the receive error with RX DMA start with non-aligned address.

See merge request !1112
This commit is contained in:
Ivan Grokhotkov
2017-08-22 23:39:53 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ struct spi_transaction_t {
void *rx_buffer; ///< Pointer to receive buffer, or NULL for no MISO phase. Written by 4 bytes-unit if DMA is used.
uint8_t rx_data[4]; ///< If SPI_USE_RXDATA is set, data is received directly to this variable
};
};
} ; //the rx data should start from a 32-bit aligned address to get around dma issue.
typedef struct spi_device_t* spi_device_handle_t; ///< Handle for a device on a SPI bus