Setting ICED bootloader to turn LCD backlight red
This commit is contained in:
parent
865be6145f
commit
581b464a13
@ -192,6 +192,12 @@ void main()
|
|||||||
// Setup pin - A5 - See Lib/pin_map.mchck for more details on pins
|
// 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);
|
PORTA_PCR5 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
|
||||||
GPIOA_PSOR |= (1<<5);
|
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
|
#else
|
||||||
#error "Incompatible chip for bootloader"
|
#error "Incompatible chip for bootloader"
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user