Re: Synchronization between ISR and IST - I2C Based device



Hi,

As everyone here pointed-out before, this is a really ugly solution.
Furthermore, I am not sure at all that it works.
Does the ISR really call *this* code?
If yes, what happens when a DUART interrupt is pending while you execute
"InterruptMask(UART_INTERRUPT, FALSE)"? What happens when the ISR tries to
EnterCriticalSection?
If no, how do you prevent the I2C bus from being used by both the ISR and
driver code?
You should really tell us more about the way the whole thing is supposed to
work.What is really doing your ISR? How is the SMBus/I2C bus used (how many
I2C slave devices being operated at the same time)? How are your UART used?

Remi


.



Relevant Pages