Hello everyone:

      I'm wring a driver for mda320. I write two files,  Mda320deviceC.nc and 
Mda320deviceP.nc. I thought Mda320deviceC should provide StdControl  interface. 
So, in the file Mda320deviceC.nc, I wrote like: 


//---------------------file 
Mda320DeviceC.nc-------------------------------------------
configuration Mda320DeviceC{
provides interface StdControl;
provides interface Init;
........
}

implementation{
components new StdControlPowerManagerC() as PowerManager;
............
StdControl=Mda320DeviceP;
Init=Init=Mda320DeviceP;

 PowerManager.StdControl -> Mda320DeviceP;
..........
}




//------------------file Mda320DeviceP.nc-----------------------------
module Mda320DeviceP {
  provides {
    interface StdControl;
    interface Init;
..........
}

command error_t StdControl.start() { 
     //error_t error;
     if(started == FALSE) {
             started = TRUE;
                          atomic {
                sflag=1;
                adc_stopbitmap=0;
                }
              call PW6.set();
              pulse_clock();
             return SUCCESS;
        }
      
     return FAIL;
    }

//----------------------------------------------------
however, the error is 

In component 

`Mda320DeviceC.PowerManagerformda320.PowerManager':

/opt/tinyos-2.x/tos/lib/power/PowerManagerP.nc: In function 
`SplitControl.startDone':

/opt/tinyos-2.x/tos/lib/power/PowerManagerP.nc(Mda320DeviceC.PowerManagerformda320.PowerManager):93:
 

ResourceDefaultOwner.isOwner not 
connected/opt/tinyos-2.x/tos/lib/power/PowerManagerP.nc

(Mda320DeviceC.PowerManagerformda320.PowerManager):94: 

ResourceDefaultOwner.release not connected

make: *** [exe0] Error 1
//-----------------------------------------------------------------
      I didn't use splitcontrol  for Mda320. Is there anyone who can help me? 

     Thank you very much. 

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

Reply via email to