Re: Synchronization between ISR and IST - I2C Based device
- From: "bluesphere" <ads_bx@xxxxxxxxxxx>
- Date: Sat, 30 Dec 2006 00:10:12 +0100
Sooner or later "USB Host Controllers" should inspire
someone so that I2C drivers can rest in peace (being
freed from management responsibilities they shouldn't take).
We'll call them I2C client drivers and they will use services
provided by "humble" I2C host controllers.
Once again, i realize that I2C's low speed and the lack
or "real" I2C devices (under the User's point of view)
can't justify the efforts.
"Srivathsan" <srivathsan.a@xxxxxxxxx> wrote in message
news:1167381788.736738.200830@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Greats
We solved the problem by masking the UART Interrupt on every read /
Write Operation.
The logic is
Read / Write Smbus()
{
EnterCriticalSection()
InterruptMask(UART_INTERRUPT, TRUE)
SMBus Read / Write Operation
InterruptMask(UART_INTERRUPT, FALSE)
LeaveCriticalSection()
}
Now the Interrupt is being masked and the ISR will not occur when the
bus is being accessed. Since the UART is producing only Level Interrupt
it will not be cleared and will not process any more interrupts. Thus
when the bus access is finished the interrupt is served immediately.
Thanks
Mams and Team
.
- References:
- Synchronization between ISR and IST - I2C Based device
- From: Mams
- Re: Synchronization between ISR and IST - I2C Based device
- From: Geoff
- Re: Synchronization between ISR and IST - I2C Based device
- From: Srivathsan
- Re: Synchronization between ISR and IST - I2C Based device
- From: Steve Maillet \(eMVP\)
- Re: Synchronization between ISR and IST - I2C Based device
- From: Srivathsan
- Re: Synchronization between ISR and IST - I2C Based device
- From: Steve Maillet \(eMVP\)
- Re: Synchronization between ISR and IST - I2C Based device
- From: Remi de Gravelaine
- Re: Synchronization between ISR and IST - I2C Based device
- From: Steve Maillet \(eMVP\)
- Re: Synchronization between ISR and IST - I2C Based device
- From: Remi de Gravelaine
- Re: Synchronization between ISR and IST - I2C Based device
- From: Steve Maillet \(eMVP\)
- Re: Synchronization between ISR and IST - I2C Based device
- From: Remi de Gravelaine
- Re: Synchronization between ISR and IST - I2C Based device
- From: Steve Maillet \(eMVP\)
- Re: Synchronization between ISR and IST - I2C Based device
- From: Remi de Gravelaine
- Re: Synchronization between ISR and IST - I2C Based device
- From: Srivathsan
- Synchronization between ISR and IST - I2C Based device
- Prev by Date: Re: GPIO driver for pxa270
- Next by Date: first driver project
- Previous by thread: Re: Synchronization between ISR and IST - I2C Based device
- Next by thread: Problem loading driver in wince 5
- Index(es):
Relevant Pages
|
|