]> git.donarmstrong.com Git - kiibohd-controller.git/commitdiff
Setting ICED bootloader to turn LCD backlight red
authorJacob Alexander <haata@kiibohd.com>
Sun, 2 Aug 2015 01:26:04 +0000 (18:26 -0700)
committerJacob Alexander <haata@kiibohd.com>
Sun, 2 Aug 2015 01:26:04 +0000 (18:26 -0700)
Bootloader/main.c

index bca3fdf8717484fb2f3ed4f9647ce797f29b238e..aabaeebe502842c77922d49ded00763311bb6238 100644 (file)
@@ -192,6 +192,12 @@ void main()
        // Setup pin - A5 - See Lib/pin_map.mchck for more details on pins
        PORTA_PCR5 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
        GPIOA_PSOR |= (1<<5);
+
+       // TODO Add CMake configuration for disabling
+       // Set LCD backlight on ICED to Red
+       GPIOC_PDDR |= (1<<1);
+       PORTC_PCR1 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
+       GPIOC_PCOR |= (1<<1);
 #else
 #error "Incompatible chip for bootloader"
 #endif