Fixed reversed bit on IEV
authorKevin Townsend <kevin@ktownsend.com>
Fri, 2 Nov 2012 22:22:31 +0000 (23:22 +0100)
committerKevin Townsend <kevin@ktownsend.com>
Fri, 2 Nov 2012 22:22:31 +0000 (23:22 +0100)
core/gpio/gpio.c

index fe80dbc..2f03e9a 100644 (file)
@@ -306,7 +306,7 @@ void gpioSetInterrupt (uint32_t portNum, uint32_t bitPos, gpioInterruptSense_t s
     *gpiois |= (0x1<<bitPos);
   }
 
-  event == gpioInterruptEvent_ActiveHigh ? (*gpioiev &= ~(0x1<<bitPos)) : (*gpioiev |= (0x1<<bitPos));
+  event == gpioInterruptEvent_ActiveLow ? (*gpioiev &= ~(0x1<<bitPos)) : (*gpioiev |= (0x1<<bitPos));
 
   return;
 }
This page took 0.024871 seconds and 4 git commands to generate.