![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Parses gcode commands sent over serial communication
Dependencies: 4DGL-uLCD-SE MODSERIAL mbed
main.cpp@0:fa0891ea897b, 2014-04-14 (annotated)
- Committer:
- ajb88
- Date:
- Mon Apr 14 05:03:29 2014 +0000
- Revision:
- 0:fa0891ea897b
Working version of gcode parser using MODSERIAL library. Code needs to be cleaned up and library and classes created. Needs refining of the logic so it can be requested to refill a circular buffer
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ajb88 | 0:fa0891ea897b | 1 | #include "mbed.h" |
ajb88 | 0:fa0891ea897b | 2 | #include "gparser.h" |
ajb88 | 0:fa0891ea897b | 3 | #include "MODSERIAL.h" |
ajb88 | 0:fa0891ea897b | 4 | |
ajb88 | 0:fa0891ea897b | 5 | |
ajb88 | 0:fa0891ea897b | 6 | #define CMD_LIST_SIZE 512 |
ajb88 | 0:fa0891ea897b | 7 | |
ajb88 | 0:fa0891ea897b | 8 | MODSERIAL gpc(USBTX, USBRX); |
ajb88 | 0:fa0891ea897b | 9 | |
ajb88 | 0:fa0891ea897b | 10 | extern G_cmd* gcmd_list; |
ajb88 | 0:fa0891ea897b | 11 | |
ajb88 | 0:fa0891ea897b | 12 | |
ajb88 | 0:fa0891ea897b | 13 | int main() |
ajb88 | 0:fa0891ea897b | 14 | { |
ajb88 | 0:fa0891ea897b | 15 | parserInit(); |
ajb88 | 0:fa0891ea897b | 16 | fillInCmdList(); |
ajb88 | 0:fa0891ea897b | 17 | } |