From: Jacob Alexander Date: Sun, 2 Aug 2015 01:26:04 +0000 (-0700) Subject: Setting ICED bootloader to turn LCD backlight red X-Git-Url: https://git.donarmstrong.com/?p=kiibohd-controller.git;a=commitdiff_plain;h=581b464a13969e0a7f195879513adece5eea2b53 Setting ICED bootloader to turn LCD backlight red --- diff --git a/Bootloader/main.c b/Bootloader/main.c index bca3fdf..aabaeeb 100644 --- a/Bootloader/main.c +++ b/Bootloader/main.c @@ -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