[rtems commit] bsp/atsam: Simplify SPI interrupt handler

Sebastian Huber sebh at rtems.org
Wed Dec 14 12:10:18 UTC 2016


Module:    rtems
Branch:    master
Commit:    d0452eb965abfced624ae1f467a0e348599cfea8
Changeset: http://git.rtems.org/rtems/commit/?id=d0452eb965abfced624ae1f467a0e348599cfea8

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Dec 14 07:46:18 2016 +0100

bsp/atsam: Simplify SPI interrupt handler

---

 c/src/lib/libbsp/arm/atsam/spi/atsam_spi_bus.c | 8 +-------
 1 file changed, 1 insertion(+), 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 1b9ec62..5dd773a 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 (



More information about the vc mailing list