Open taliesin opened 6 years ago
Hi, I can send you an example for the STM32F103. But, as I'm going on a business trip tomorrow (until wednesday), I'm not sure when I have the time to do so. If I find a WiFi hotspot I will try to send you the code tomorrow somewhere in the evening.
Best regards Matthias
Hi, thanks for your fast response. Take your time I think I almost figured it out already. Don't get me wrong it'll still be helpful, probably I'll stumble over a few things otherwise.
Helmut
Hi Helmut, find my example at https://www.dropbox.com/sh/03lbpvm936tudtm/AABH0UHwei93y3_jI3Uri_oWa?dl=0 I didn't push it to the git repo as I used an operating system (µC/OS-II) and a driver lib which are not provided under GPL. The communication between the input FSM and the SimpleCli function execution is based on a semaphore provided by the operating system. The userlevel callback is used to set the semaphore such that the command execution can be done in a task context.
Feel free to ask me anything about it. At the moment I'm travelling, therefore I didn't "prepare or beautified" the example.
Best regards Matthias
I am about to integrate SimpleCLI into https://github.com/UnifiedEngineering/T-962-improvements. It uses a cooperative scheduler, where the workers are called cyclically (and return more or less immediately). Could you provide an example on how to integrate SimpleCLI in such case (or any other, probably anything will help).
Thanks Helmut