This is the firmware for the base version of the OpenSTEM Ranging Board hardware.
Dependencies: Servo USBDevice mbed
Fork of USBSerial_HelloWorld by
main.cpp@9:d88699a0905a, 2013-03-01 (annotated)
- Committer:
- samux
- Date:
- Fri Mar 01 13:33:02 2013 +0000
- Revision:
- 9:d88699a0905a
- Parent:
- 8:90f8322a65f8
- Child:
- 10:d74124f266cb
use latest USBDevice lib (FRDM-KL25Z support)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
samux | 7:5e693654d5b4 | 1 | #include "mbed.h" |
samux | 7:5e693654d5b4 | 2 | #include "USBSerial.h" |
samux | 7:5e693654d5b4 | 3 | |
samux | 7:5e693654d5b4 | 4 | //Virtual serial port over USB |
samux | 7:5e693654d5b4 | 5 | USBSerial serial; |
samux | 7:5e693654d5b4 | 6 | |
samux | 7:5e693654d5b4 | 7 | int main(void) { |
samux | 9:d88699a0905a | 8 | |
samux | 7:5e693654d5b4 | 9 | while(1) |
samux | 7:5e693654d5b4 | 10 | { |
samux | 9:d88699a0905a | 11 | serial.printf("I am a virtual serial port\r\n"); |
samux | 9:d88699a0905a | 12 | wait(1); |
samux | 7:5e693654d5b4 | 13 | } |
samux | 7:5e693654d5b4 | 14 | } |