comparison Bootloader/main.c @ 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 136e47478441
children
comparison
equal deleted inserted replaced
349:df78f3312db0 350:b02fc17eb027
190 // Enabling LED to indicate we are in the bootloader 190 // Enabling LED to indicate we are in the bootloader
191 GPIOA_PDDR |= (1<<5); 191 GPIOA_PDDR |= (1<<5);
192 // Setup pin - A5 - See Lib/pin_map.mchck for more details on pins 192 // Setup pin - A5 - See Lib/pin_map.mchck for more details on pins
193 PORTA_PCR5 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1); 193 PORTA_PCR5 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
194 GPIOA_PSOR |= (1<<5); 194 GPIOA_PSOR |= (1<<5);
195
196 // TODO Add CMake configuration for disabling
197 // Set LCD backlight on ICED to Red
198 GPIOC_PDDR |= (1<<1);
199 PORTC_PCR1 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
200 GPIOC_PCOR |= (1<<1);
195 #else 201 #else
196 #error "Incompatible chip for bootloader" 202 #error "Incompatible chip for bootloader"
197 #endif 203 #endif
198 204
199 uart_serial_setup(); 205 uart_serial_setup();