Will there be problems with two commands calling the same command?  What 
if one of the commands is triggered by an interrupt?  Is it possible to 
have one command be preempted in the middle of operation by the 
interrupt and mess up the order of operation?  I'm thinking of having 
two commands call the same ADC port.

Also, within a component, are we allowed to have a command call another 
command in the _same_ component (not a sub-component)?  I would like to 
have multiple commands in the same component call the ADC to retrieve 
data, but I want the data to be returned to the proper handler 
(depending on the original calling command).  I would like to make a 
wrapper command inside the component I am writing, rather than make a 
new component between my component and the ADC.

Thanks,
Phoebus

Phoebus

Reply via email to