Hi, I'm using a MDA100 prototyping board for use a PIR sensor witch
generates a falling edge in it's out pin.

I'm writing a module for send an event when PIR out falling and I'm
using Interrupts on Int1 in a mica platform.

I can read sensor status with a pooling but the interrupts doesn't work.

I follow tep 109 schema for make the driver. My HplPiroSenrsorC looks
like this:


configuration HplPiroSensorC
{
  provides interface GeneralIO;
  provides interface GpioInterrupt;
}

implementation
{
  components MicaBusC;
  components new Atm128GpioInterruptC() as InterruptC;
  components HplAtm128InterruptC;

  GeneralIO = MicaBusC.Int1;

  InterruptC.Atm128Interrupt -> HplAtm128InterruptC.Int1;
  GpioInterrupt = InterruptC.Interrupt;
}

in PiroSensorLogicP I provide interfaces Get<bool>, Notify<bool> and
DeviceMetada, as the Appendix B of tep109 and I use GeneralIO and
GpioInterrupt interfaces.

I call GeneralIO.MakeInput() and GpioInterrupt.enableFallingEdge too
but GpioInterrupt.fired is never called.

Has anyone an idea of why it doesn't work?
I've revised all mails related with this and I didn't find any help
(only about msp430 userbuton).

I think I don't use the apropiate modules in HplPiroSensorC and I've
try with others but it stills don't work.

Thanks
-- 
Nunca confies en un S.O. del que no tienes código fuente ;-)

--------------------------------
Javier Almansa Sobrino.
Ingeniero Técnico en Informática de Sistemas.

Grupo de Investigación ARCo.
Escuela Superior de Informática. Ciudad Real
Tel: (+34)926 29 53 00 Ext: 3705


_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to