On Friday 01 June 2007 07:25, Nicolas Esteves wrote: > I would like to know if there is a way to redefine a function with > TOSH_SIGNAL. I want to redefine the void sig_TIMERA0_VECTOR defined in > Msp430TimerCommon.nc by my function to make another timer than > Msp430TimerC, but as far as i know I can't redefine a function in C, so > if anyone can help me with this I would be very nice. > > here is the error > In component `Msp430TimerCommonP': > tinyos/tinyos-2.x/tos/chips/msp430/timer/Msp430TimerCommonP.nc:11: > redefinition of `sig_TIMERA0_VECTOR' > MTimerCommonP.nc:9: previous declaration of `sig_TIMERA0_VECTOR'
The build system uses a path to find .nc files. So, place a private copy of Msp430TimerCommonP.nc in your project directory and it will be used instead of the system version. You can copy the system one to your project directory and make local changes. You will of course want to look for any other method to accomplish your goal, as the more system components you override in this manner, the more work it may take to make your project work with some future version of TinyOS. Steve _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
