comparison Bootloader/main.c @ 331:9e31d92caf12

Initial STLcd code. - Basic screen initialization and clear is working - Currently SPI is set to a low speed for easy logic analyzer debugging
author Jacob Alexander <haata@kiibohd.com>
date Tue, 14 Apr 2015 00:40:48 -0700
parents f4d4cad283c6
children 9ac304aa1ab5
comparison
equal deleted inserted replaced
330:f4d4cad283c6 331:9e31d92caf12
128 /* 128 /*
129 GPIOB_PDDR |= (1<<16); 129 GPIOB_PDDR |= (1<<16);
130 PORTB_PCR16 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1); 130 PORTB_PCR16 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
131 GPIOB_PSOR |= (1<<16); 131 GPIOB_PSOR |= (1<<16);
132 */ 132 */
133 // RST
134 GPIOC_PDDR |= (1<<8);
135 PORTC_PCR8 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
136 GPIOC_PSOR |= (1<<8);
137 /*
138 // CS1B
139 GPIOC_PDDR |= (1<<4);
140 PORTC_PCR4 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
141 GPIOC_PCOR |= (1<<4);
142 */
143 // Backlight
144 GPIOC_PDDR |= (1<<1);
145 PORTC_PCR1 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
146 GPIOC_PCOR |= (1<<1);
147 GPIOC_PDDR |= (1<<2);
148 PORTC_PCR2 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
149 GPIOC_PCOR |= (1<<2);
150 GPIOC_PDDR |= (1<<3);
151 PORTC_PCR3 = PORT_PCR_SRE | PORT_PCR_DSE | PORT_PCR_MUX(1);
152 GPIOC_PCOR |= (1<<3);
153
154
133 155
134 flash_prepare_flashing(); 156 flash_prepare_flashing();
135 157
136 uint32_t *position = &_app_rom; 158 uint32_t *position = &_app_rom;
137 usb_init( &dfu_device ); 159 usb_init( &dfu_device );