Reza wrote: > 2- In some cases, specially defining a serial port protocol, I need > to use state machine, rather than using multi-task kernels. but > defining and implementation of a state machine is a time consuming > task. and when you want to change any logic you may need to review > all work. is there any tools which could be customized to generate > AVR assembly or C code in help of state machine design? Look at QP-Nano at http://www.quantum-leaps.com ; it's been ported to AVR using another compiler, but I ported the full version to avr-gcc easily. It provides all the infrastructure for multiple state machines; your state machines are implemented as a single function per state which typically has a switch on the event type. I don't think that a code generator would do any better than you could do with this framework, and it's not been my experience that maintenance of such programs is at all difficult. -- Ned Konz MetaMagix Camano Island, WA http://bike-nomad.com
Message
Re: [AVR-Chat] What is your suggestion?
2006-12-07 by Ned Konz
Attachments
- No local attachments were found for this message.