Hello,
I'm trying to inject some aux data in using the debug port, I've CLI #defined'ed in main.c, and I get the "i0>" carrot on the serial interface, but I can't get it to respond to any commands.
//Command table
// {char *name, tShellCallback callback, uint32_t callbackData, const *help }
const tCommand gCommands[] =
{
{"ver", &CmdVersion, 0, "Display firmware version"},
{"raccel", &CmdReadAccelerometer, 0, "Read accelerometer"},
{"rgyro", &CmdReadGyro, 0, "Read Gyro"},
{"rmag", &CmdReadMagnetometer, 0, "Read magnetometer"},
// {"rGPS", &CmdGpsRead, 0, "Read current GPS value" },
COMMAND_TABLE_END //MUST BE LAST!!!
};
The CLI will echo all my chars, and send a "bell" when i exceed buff size. I just can't get it to process any command, clearly I'm missing something.
Seems like I should just type "ver" and get something like "OpenIMU300ZA 5020-3885-01 1.0.22 SN:1808400XXX" out.
What terminates a command?
Thanks!