summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-12-14 07:46:18 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-12-14 13:09:29 +0100
commitd0452eb965abfced624ae1f467a0e348599cfea8 (patch)
tree463beb632b7d76e20ca2d943ab1a5add5761131a
parentc78928fcac13ac725c83117de2e5eb26bf3c1f6b (diff)
downloadrtems-d0452eb965abfced624ae1f467a0e348599cfea8.tar.bz2
bsp/atsam: Simplify SPI interrupt handler
-rw-r--r--c/src/lib/libbsp/arm/atsam/spi/atsam_spi_bus.c8
1 files changed, 1 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 1b9ec62a5f..5dd773adb4 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
@@ -50,7 +50,7 @@ typedef struct {
bool chip_select_active;
} atsam_spi_bus;
-static void atsam_interrupt_handler(void *arg)
+static void atsam_spi_interrupt(void *arg)
{
atsam_spi_bus *bus = (atsam_spi_bus *)arg;
sXdmad *Dma = &bus->Dma;
@@ -123,12 +123,6 @@ static void atsam_interrupt_handler(void *arg)
}
}
-static void atsam_spi_interrupt(void *arg)
-{
- sXdmad *Dma = (sXdmad *)arg;
- atsam_interrupt_handler(Dma);
-}
-
static uint8_t atsam_calculate_dlybcs(uint16_t delay_in_us)
{
return (