Em Dom, 2009-05-03 às 22:41 +0300, Ilya Petrov escreveu: > 2009/5/3 Daniel Ribeiro <drw...@gmail.com>: > > EOC will interrupt PXA when you connect the cable. > > ok. how can i catch this?
Isnt it being caught already? Last time i checked this part of the code it was working... Its GPIO10, set to eoc_irq(), which in turn schedules eoc_work(). eoc_work is currently a NOP, that just prints the interrupts from the ISR register. The SENSE, ISR and MSR registers use the same bits, the rule is: Any change on SENSE rises ISR in case MSR is low and a interrupt is sent to pxa. So, if you want to monitor bit 4(INT_ID), then you clear bit 4 of MSR to enable the irq, on the softirq handler you check if bit 4 of ISR is set, case it is, then it was a INT_ID event that triggered the irq, then you read bit 4 on SENSE to see if it was a connect or disconnect event. -- Daniel Ribeiro