lol
Fork of Application by
main.cpp@5:ee94acbf45df, 2011-11-17 (annotated)
- Committer:
- samux
- Date:
- Thu Nov 17 16:36:10 2011 +0000
- Revision:
- 5:ee94acbf45df
- Parent:
- 4:95c491d36524
- Child:
- 6:aef06cd11ce4
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
samux | 0:a3e641b0dfc2 | 1 | #include "mbed.h" |
samux | 0:a3e641b0dfc2 | 2 | #include "USBSerial.h" |
samux | 0:a3e641b0dfc2 | 3 | |
samux | 0:a3e641b0dfc2 | 4 | //Virtual serial port over USB |
samux | 0:a3e641b0dfc2 | 5 | USBSerial serial; |
samux | 0:a3e641b0dfc2 | 6 | |
samux | 4:95c491d36524 | 7 | Serial pc(USBTX, USBRX); |
samux | 4:95c491d36524 | 8 | |
samux | 0:a3e641b0dfc2 | 9 | int main(void) { |
samux | 0:a3e641b0dfc2 | 10 | |
samux | 0:a3e641b0dfc2 | 11 | while(1) |
samux | 0:a3e641b0dfc2 | 12 | { |
samux | 5:ee94acbf45df | 13 | serial.printf("I am a virtual serial port!\r\n"); |
samux | 0:a3e641b0dfc2 | 14 | wait(1); |
samux | 0:a3e641b0dfc2 | 15 | } |
samux | 0:a3e641b0dfc2 | 16 | } |