voor willem test
Dependencies: 4DGL MODSERIAL mbed mbos
main.cpp@3:58382fa6e555, 2012-11-28 (annotated)
- Committer:
- LvdK
- Date:
- Wed Nov 28 14:24:08 2012 +0000
- Revision:
- 3:58382fa6e555
- Parent:
- 2:cdc3ccd10040
- Child:
- 5:99594f4ab659
Stabiele versie met rx ringbuffer
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
LvdK | 0:6f71ca095e78 | 1 | #include "mbed.h" |
LvdK | 0:6f71ca095e78 | 2 | |
LvdK | 0:6f71ca095e78 | 3 | DigitalOut led1(LED1); // TEST Led1 |
LvdK | 0:6f71ca095e78 | 4 | |
LvdK | 0:6f71ca095e78 | 5 | |
LvdK | 0:6f71ca095e78 | 6 | void init_USB(); |
LvdK | 3:58382fa6e555 | 7 | //void decode_string(); |
LvdK | 3:58382fa6e555 | 8 | void collect_decode_FSdata(); |
LvdK | 0:6f71ca095e78 | 9 | |
LvdK | 0:6f71ca095e78 | 10 | main() |
LvdK | 0:6f71ca095e78 | 11 | { |
LvdK | 0:6f71ca095e78 | 12 | |
LvdK | 0:6f71ca095e78 | 13 | init_USB(); // setup USB communication |
LvdK | 0:6f71ca095e78 | 14 | |
LvdK | 0:6f71ca095e78 | 15 | while (1) { // this is my endless main loop : |
LvdK | 3:58382fa6e555 | 16 | led1 = !led1; // : toggle LED1 to show running program |
LvdK | 3:58382fa6e555 | 17 | wait(0.1); // : can be interrupted ??????????? |
LvdK | 3:58382fa6e555 | 18 | // decode_string(); // : call decoder to proces any valid command string received |
LvdK | 3:58382fa6e555 | 19 | collect_decode_FSdata(); |
LvdK | 0:6f71ca095e78 | 20 | } |
LvdK | 0:6f71ca095e78 | 21 | } |