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@10:d74124f266cb, 2016-08-10 (annotated)
- Committer:
- matthewgascoyne
- Date:
- Wed Aug 10 08:01:00 2016 +0000
- Revision:
- 10:d74124f266cb
- Parent:
- 9:d88699a0905a
base version of OpenSTEM Ranging Board Firmware
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
matthewgascoyne | 10:d74124f266cb | 1 | #include "core_defines.h" //for all global constant definitions |
matthewgascoyne | 10:d74124f266cb | 2 | #include "mbed.h" //to include the mBed library |
matthewgascoyne | 10:d74124f266cb | 3 | #include "Servo.h" //to include the mBed Servo library |
matthewgascoyne | 10:d74124f266cb | 4 | #include "daughter_core.h" //for all daughter board core functions |
matthewgascoyne | 10:d74124f266cb | 5 | |
samux | 7:5e693654d5b4 | 6 | |
matthewgascoyne | 10:d74124f266cb | 7 | int main() { |
matthewgascoyne | 10:d74124f266cb | 8 | startup_config(); |
matthewgascoyne | 10:d74124f266cb | 9 | usb_serial_t("BOOT COMPLETE\r\n"); |
matthewgascoyne | 10:d74124f266cb | 10 | |
matthewgascoyne | 10:d74124f266cb | 11 | while(1) { |
matthewgascoyne | 10:d74124f266cb | 12 | if(check_usb_rec_flg()){ |
matthewgascoyne | 10:d74124f266cb | 13 | |
matthewgascoyne | 10:d74124f266cb | 14 | //char comm[1]; |
matthewgascoyne | 10:d74124f266cb | 15 | //comm[0] = usb_serial_bufscan(); |
matthewgascoyne | 10:d74124f266cb | 16 | //usb_serial_t(comm); |
matthewgascoyne | 10:d74124f266cb | 17 | usb_serial_bufscan(); |
matthewgascoyne | 10:d74124f266cb | 18 | clr_usb_rec_flg(); |
matthewgascoyne | 10:d74124f266cb | 19 | } |
samux | 7:5e693654d5b4 | 20 | } |
samux | 7:5e693654d5b4 | 21 | } |