Have someone experience with the SPI interface from HplAtm128SpiC? Because when 
i implement this I get this error:

[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/SPI# make mica2 install mib510,/dev/ttyS0
mkdir -p build/mica2
    compiling TestTimeAppC to a mica2 binary
ncc -o build/mica2/main.exe -Os -finline-limit=100000 -Wall -Wshadow -Wnesc-all 
-target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb 
-DIDENT_PROGRAM_NAME=\"TestTimeAppC\" -DIDENT_USER_ID=\"root\" 
-DIDENT_HOSTNAME=\"tinyos\" -DIDENT_USER_HASH=0x69f6412fL 
-DIDENT_UNIX_TIME=0x48562c1eL -DIDENT_UID_HASH=0x9f586a27L -fnesc-dump=wiring 
-fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, 
components)' -fnesc-dumpfile=build/mica2/wiring-check.xml TestTimeAppC.nc -lm
In file included from /opt/tinyos-2.x/tos/chips/atm128/spi/HplAtm128SpiC.nc:63,
                 from TestTimeAppC.nc:49:
In component `HplAtm128SpiP':
/opt/tinyos-2.x/tos/chips/atm128/spi/HplAtm128SpiP.nc:103: redefinition of 
`__vector_17'
/opt/tinyos-2.x/tos/platforms/mica2/chips/cc1000/HplCC1000SpiP.nc:62: previous 
declaration of `__vector_17'
make: *** [exe0] Fehler 1
[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/SPI# 


//----------------------------------------------------------------------------------------------------------

The code from my file is:


configuration TestTimeAppC 
{

}
implementation {
  components TestTimeC, MainC, LedsC;
  components HplAtm128SpiC as SPI;


  TestTimeC -> MainC.Boot;

  TestTimeC.Spi -> SPI.SpiBus;
  TestTimeC.Leds -> LedsC;
}

// 
------------------------------------------------------------------------------------------------------------


module TestTimeC {
        uses interface Atm128Spi as Spi;
        uses interface AsyncStdControl;
        uses interface Leds;
        uses interface Boot;
}
implementation
{
   
        
  event void Boot.booted()
  {
        call AsyncStdControl.start();
        call Spi.initSlave();
        call Spi.enableInterrupt(1);
        call Leds.led0Toggle();
    
  }

  
   async event void Spi.dataReady(uint8_t d)
  {     
    call Leds.led0Toggle();
  } 
        

}

// 
------------------------------------------------------------------------------------------------


I hope someone can help me, thanks.

<<winmail.dat>>

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

Reply via email to