[rtems commit] bsp/atsam: No timeout for SPI DMA transfers
Sebastian Huber
sebh at rtems.org
Wed Dec 14 12:10:18 UTC 2016
Module: rtems
Branch: master
Commit: 3417070dc9fabcfafe9a693113f40ddd1955a145
Changeset: http://git.rtems.org/rtems/commit/?id=3417070dc9fabcfafe9a693113f40ddd1955a145
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Dec 13 14:28:32 2016 +0100
bsp/atsam: No timeout for SPI DMA transfers
---
c/src/lib/libbsp/arm/atsam/spi/atsam_spi_bus.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/c/src/lib/libbsp/arm/atsam/spi/atsam_spi_bus.c b/c/src/lib/libbsp/arm/atsam/spi/atsam_spi_bus.c
index 86950ae..e15ce5e 100644
--- a/c/src/lib/libbsp/arm/atsam/spi/atsam_spi_bus.c
+++ b/c/src/lib/libbsp/arm/atsam/spi/atsam_spi_bus.c
@@ -431,7 +431,6 @@ static int atsam_spi_setup_transfer(atsam_spi_bus *bus)
uint32_t i;
uint32_t rv_command;
int rv = 0;
- rtems_status_code sc;
for (i=0; i<msg_todo; i++) {
rv = atsam_message_checks(bus, &msgs[i]);
@@ -446,12 +445,9 @@ static int atsam_spi_setup_transfer(atsam_spi_bus *bus)
rv = -1;
break;
}
- sc = rtems_event_transient_receive(RTEMS_WAIT, 10000);
- if (sc != RTEMS_SUCCESSFUL) {
- rtems_event_transient_clear();
- rv = -ETIMEDOUT;
- break;
- }
+
+ rtems_event_transient_receive(RTEMS_WAIT, RTEMS_NO_TIMEOUT);
+
bus->rx_transfer_done = false;
bus->tx_transfer_done = false;
if (msgs[i].cs_change > 0) {
More information about the vc
mailing list