|
|
@@ -704,9 +704,9 @@ void ResetHandler(void) |
|
|
|
SIM_SCGC3 = SIM_SCGC3_ADC1 | SIM_SCGC3_FTM2 | SIM_SCGC3_FTM3; |
|
|
|
SIM_SCGC5 = 0x00043F82; // clocks active to all GPIO |
|
|
|
SIM_SCGC6 = SIM_SCGC6_RTC | SIM_SCGC6_FTM0 | SIM_SCGC6_FTM1 | SIM_SCGC6_ADC0 | SIM_SCGC6_FTFL; |
|
|
|
PORTC_PCR5 = PORT_PCR_MUX(1) | PORT_PCR_DSE | PORT_PCR_SRE; |
|
|
|
GPIOC_PDDR |= (1<<5); |
|
|
|
GPIOC_PSOR = (1<<5); |
|
|
|
//PORTC_PCR5 = PORT_PCR_MUX(1) | PORT_PCR_DSE | PORT_PCR_SRE; |
|
|
|
//GPIOC_PDDR |= (1<<5); |
|
|
|
//GPIOC_PSOR = (1<<5); |
|
|
|
//while (1); |
|
|
|
#elif defined(__MKL26Z64__) |
|
|
|
SIM_SCGC4 = SIM_SCGC4_USBOTG | 0xF0000030; |