initial version

Dependencies:   mbed-dev

This highly complex and confidential code has been published to test mbed-cli export functions

Committer:
abouillot
Date:
Fri Jan 13 19:52:46 2017 +0000
Revision:
0:534614616cc2
Initial version of test program for export;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
abouillot 0:534614616cc2 1 #include "mbed.h"
abouillot 0:534614616cc2 2
abouillot 0:534614616cc2 3 //------------------------------------
abouillot 0:534614616cc2 4 // Hyperterminal configuration
abouillot 0:534614616cc2 5 // 9600 bauds, 8-bit data, no parity
abouillot 0:534614616cc2 6 //------------------------------------
abouillot 0:534614616cc2 7
abouillot 0:534614616cc2 8 Serial pc(SERIAL_TX, SERIAL_RX);
abouillot 0:534614616cc2 9
abouillot 0:534614616cc2 10 DigitalOut myled(LED1);
abouillot 0:534614616cc2 11
abouillot 0:534614616cc2 12 int main()
abouillot 0:534614616cc2 13 {
abouillot 0:534614616cc2 14 int i = 1;
abouillot 0:534614616cc2 15 pc.printf("Hello World !\n");
abouillot 0:534614616cc2 16 while(1) {
abouillot 0:534614616cc2 17 wait(1);
abouillot 0:534614616cc2 18 pc.printf("This program runs since %d seconds.\n", i++);
abouillot 0:534614616cc2 19 myled = !myled;
abouillot 0:534614616cc2 20 }
abouillot 0:534614616cc2 21 }