Michal Horn [Tue, 31 Jul 2012 14:10:01 +0000 (16:10 +0200)]
Comunication over RS-232, done reading input, writing output and cmdProc implementation.
There is some error in command definitions with info parameter
We have 3 tasks and 1 ISR. ISR gets character from RS-232 and puts it into queue1. Than storeCmd task is woken and when inputBuffer is not
When newLine comes, storeCmd task gives semaphore to processCmd task, which uses cmdProc routines to process new line of commands.
printTask waits for full output buffer (implemented as queue) and has the lowest priority.
processCmd has the highest priority.
storeCmd is in the middle.
Michal Horn [Tue, 31 Jul 2012 11:41:22 +0000 (13:41 +0200)]
Command processing.
Comunication over RS-232, done reading input, writing output and cmdProc implementation.
There is some error in command definitions with info parameter
We have 3 tasks and 1 ISR. ISR gets character from RS-232 and puts it into queue1. Than storeCmd task is woken and when inputBuffer is not full and the character is not new line, store it into inBuffer and outBuffer, to be ready to print out on RS-232 by printTask.
When newLine comes, storeCmd task gives semaphore to processCmd task, which uses cmdProc routines to process new line of commands.
printTask waits for full output buffer (implemented as queue) and has the lowest priority.
processCmd has the highest priority.
storeCmd is in the middle.