Browse Source

src/spi.c: code clean

Signed-off-by: surenyi <surenyi82@qq.com>
master
surenyi 3 years ago
parent
commit
d8e46d4270
  1. 4
      src/spi.c

4
src/spi.c

@ -403,8 +403,6 @@ int spi_edma_write(int dev_id, const void *buf, int len, void (*notify)(void *ar
return -1;
}
spi = &__spi_devs[dev_id];
return edma_periph_write(MCBSP_getXmtAddr(spi->spi), MCBSP_getXmtEventId(spi->spi), spi->bits, buf, len, notify, args);
}
@ -466,8 +464,6 @@ int spi_edma_read(int dev_id, void *buf, int len, void (*on_complete)(void *args
return -1;
}
spi = &__spi_devs[dev_id];
return edma_periph_read(MCBSP_getRcvAddr(spi->spi), MCBSP_getRcvEventId(spi->spi),
spi->bits, buf, len, on_complete, args);
}

Loading…
Cancel
Save