Krzysztof Sitko / Bootloader_K05

Dependencies:   mbed-dev

Fork of Bootloader_K64F by Erik -

Files at this revision

API Documentation at this revision

Comitter:
Dot
Date:
Tue Jul 19 00:57:39 2016 +0000
Parent:
19:8f3f6138bfb9
Commit message:
Initial Working Release

Changed in this revision

bootloader.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/bootloader.cpp	Mon Jul 18 15:24:42 2016 +0000
+++ b/bootloader.cpp	Tue Jul 19 00:57:39 2016 +0000
@@ -119,9 +119,8 @@
 
 __attribute__((section(".ARM.__at_0x7080"))) static void setupserial(void) {
         //Setup USBRX/USBTX pins (PTB1/PTB2)
-        //SIM->SCGC5 |= 1 << SIM_SCGC5_PORTB_SHIFT; ?Why was this done?
         //Disable UART0
-        UART0->C2 &= ~(UARTLP_C2_RE_MASK | UARTLP_C2_TE_MASK);
+//        UART0->C2 &= ~(UARTLP_C2_RE_MASK | UARTLP_C2_TE_MASK);
         //Enable Port B Clock
         SIM->SCGC5 |= 1 <<SIM_SCGC5_PORTB_SHIFT;                   
         //Select MCGFLLCLK clock