![](/media/cache/profiles/0f0ee3310223fe38a989b2c818709393.50x50_q85.jpg)
Control up to 4 steppers from serial port
jmCommands.c
- Committer:
- jm
- Date:
- 2011-02-12
- Revision:
- 0:0785901b085e
File content as of revision 0:0785901b085e:
/** @file jmCommands.c * Auto Generated by jmCLIG * Saturday, February 12, 2011 10:57 AM * @version 2011.01.05 */ #include "main.h" #include "jmCommands.h" #include "jmMessages.h" #include "jmRingBuffer.h" #include "jmStepper.h" const char jmCLIG[] = {"\njmCLIG Version 2011.01.05 \nInstance Saturday, February 12, 2011 10:57 AM\n"}; // Command Name Table const char cmdNames[]= { 'l','i','s','t',0, 'v','e','r',0, 'h','e','l','p',0, 'f','e','e','d','b','a','c','k',0, 'e','c','h','o',0, 's','t','e','p','p','e','r',0, 's','t','e','p','p','e','r','S','t','o','p',0, 'G','P','P','S','T',0, 's','t','e','p','S','p','e','e','d',0, 'i','n','i','t',0, 0 }; // Section Definitions #define list 0 #define ver 1 #define help 2 #define feedback 3 #define echo 4 #define stepper 5 #define stepperStop 6 #define GPPST 7 #define stepSpeed 8 #define init 9 /*********************************************************************** * @brief Command steering * Command Associated with Command Number is Executed * @param[in] cmdNum Command Number * @return none **********************************************************************/ void Action(int cmdNum){ switch(cmdNum){ case list : cli_list(); break; case ver : cli_version(); break; case help : cli_help(); break; case feedback : cli_feedback(); break; case echo : cli_echo(); break; case stepper : cli_Stepper(); break; case stepperStop : cli_StepperStop(); break; case GPPST : cli_GPPST(); break; case stepSpeed : cli_StepSpeed(); break; case init : Inits(); break; default : UnknownCommand(); NextCommand(nl,pLine); } }