projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AT91SAM7: add EMAC ethernet driver
[bertos.git]
/
bertos
/
cpu
/
arm
/
drv
/
spi_dma_at91.c
diff --git
a/bertos/cpu/arm/drv/spi_dma_at91.c
b/bertos/cpu/arm/drv/spi_dma_at91.c
index 25a104103705be0e6af8fb1a1697d5828038ae65..c4cbf2da70a37b288ddf9fa63ce484577d3c5e3a 100644
(file)
--- a/
bertos/cpu/arm/drv/spi_dma_at91.c
+++ b/
bertos/cpu/arm/drv/spi_dma_at91.c
@@
-92,7
+92,7
@@
static size_t spi_dma_write(struct KFile *fd, const void *_buf, size_t size)
*/
static const uint8_t tx_dummy_buf[CONFIG_SPI_DMA_MAX_RX] = { [0 ... (CONFIG_SPI_DMA_MAX_RX - 1)] = 0xFF };
*/
static const uint8_t tx_dummy_buf[CONFIG_SPI_DMA_MAX_RX] = { [0 ... (CONFIG_SPI_DMA_MAX_RX - 1)] = 0xFF };
-static size_t spi_dma_read(
struct KFile *fd
, void *_buf, size_t size)
+static size_t spi_dma_read(
UNUSED_ARG(struct KFile *, fd)
, void *_buf, size_t size)
{
size_t count, total_rx = 0;
uint8_t *buf = (uint8_t *)_buf;
{
size_t count, total_rx = 0;
uint8_t *buf = (uint8_t *)_buf;