]> git.donarmstrong.com Git - kiibohd-controller.git/blobdiff - Debug/led/led.c
Removing aliased_bitband.h
[kiibohd-controller.git] / Debug / led / led.c
index 4ecff2a1647349faf03bbe6854946c0900c78463..97a97d79b4cda54d7730759b7353721f87768edc 100644 (file)
@@ -44,10 +44,11 @@ inline void init_errorLED()
 // ARM
 #elif defined(_mk20dx128_) || defined(_mk20dx256_)
 
+       // Enable pin
+       GPIOC_PDDR |= (1<<5);
+
        // Setup pin - Pin 11 -> C5 - See Lib/pin_map.teensy3 for more details on pins
        PORTC_PCR5 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
-       // Enable pin
-       GPIO_BITBAND_MODREG( GPIOC_PDOR, 5 ) = 1;
 
 #endif
 }