Title: Re: [Tinyos-help] How to unset MOTECOM?
Hi.
 
I am currently trying to run High Frequency Sampling in MicaZ motes. As such, i have modified a few lines of code namely the definition part as follows:
---------------------
#if defined(PLATFORM_MICA2) || defined(PLATFORM_MICAZ) // just inserted MicaZ here
  enum { CYCLES_PER_MILLISECOND = 7373L };
#else
  enum { CYCLES_PER_MILLISECOND = 4000L };
#endif
-----------------------
#if defined(PLATFORM_MICAZ) || defined(PLATFORM_MICA2DOT) || defined(PLATFORM_MICA2) // just inserted MicaZ here
#define CTC1 WGM12
#endif
------------------------
 
However, when i compile, i get the following errors:
 
C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLTimer1M.nc:170: redefinition of `__vector_12'
MicroTimerM.nc:127: previous declaration of `__vector_12'
make: *** [exe0] Error 1
Terminated with exit code 0
 
When i checked both the nc files, i realised the conflict arised from SIG_OUTPUT_COMPARE1A being shared by both the modules. In MicroTimerM.nc, the vector is defined as follows:
 
TOSH_SIGNAL(SIG_OUTPUT_COMPARE1A) {
    signal MicroTimer.fired();
  }
 
What i would like to ask is what should i do to resolve this conflict? Could i just rename the SIG_OUTPUT_COMPARE1A in MicroTimerM.nc to say, SIG_OUTPUT_COMPARE1?
 
Thanks and regards.
 
Amit.
 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to