changeset 350:b02fc17eb027

Setting ICED bootloader to turn LCD backlight red
author Jacob Alexander <haata@kiibohd.com>
date Sat, 01 Aug 2015 18:26:04 -0700
parents df78f3312db0
children 38395a57cf52
files Bootloader/main.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Bootloader/main.c	Sat Jul 25 15:06:19 2015 -0700
+++ b/Bootloader/main.c	Sat Aug 01 18:26:04 2015 -0700
@@ -192,6 +192,12 @@
 	// 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