This blog is an archive now! Find me on twdev.blog for new content.
It's often very useful to have some sort of interface through which a basic management can be done of our application. Whether you're designing a giant Marquee with a LED display or a plotter or you simply need to get some diagnostics from your device occasionally, a simple CLI system can come very handy. Of course, designing something similar to "bash" or any other unix shell is completely out of scope since those applications are huge and are simply an overkill for our needs. It's pretty simple though to create some basic, yet flexible & easilly extensible CLI system. First thing needed is a command type definition. This will bind a keyword with an actual underlying routine executed for that keyword typed in the CLI . typedef struct _t_cmd { const char *cmd; void (*fh)(void*); } t_cmd; The command type is pretty simple. There's the CLI command/keyword pointer, it holds a pointer to the execution function and that's it. OK, so...
This comment has been removed by the author.
ReplyDeleteGood work... I have gone through your blog and i am interested in the Arduino DAC related projects as that i am currently on a project working with audio real time processing. I would like to use your help, can i have an email to contact you?
ReplyDeletei am willing to pay for your help....
let me know.... contact me at: mutahar_alshami@yahoo.com
thanks