.

Dependencies:   mbed EthernetInterface mbed-rtos

Fork of Bootloader_K64F by Erik -

main.cpp

Committer:
Sissors
Date:
2015-03-12
Revision:
2:8c44f28c122c
Parent:
1:782a3ddc329e
Child:
4:8d109a566486

File content as of revision 2:8c44f28c122c:

#include "mbed.h"

Serial pc(USBTX, USBRX);

DigitalOut led1(LED1);
extern void bootloader(void);

void func1(void) {
    led1 = !led1;
}

int main() 
{   
    printf("BDH = %d, BDL = %d\r\n", UART0->BDH, UART0->BDL);
    bootloader();
    while(1);
}