I have been able to make get "make pc" working and am happily
simulating with the latest and greatest from cvs by doing 2
modifications to tos/platform/pc/SysTimeC.nc and 1 modification to the
app(configuration) being compiled.
1. using your observation "Functions that aren't called aren't included in the app.c
file", I commented out the guts of
SysTimeC->SysTime.set(uint32_t time). This is to get it to stop
the:
"implicit declaration of function `__outw_atomic'"
warnings.
command result_t SysTime.set(uint32_t time){
/*
char temp;
uint16_t t = time & 0xFFFF;
// write into hardware timer1's TCNT1 register
__outw_atomic(t, TCNT1L);
temp = TOSH_interrupt_disable();
high16 = time >>16 ;
if (temp) TOSH_interrupt_enable();
*/
return SUCCESS;
}
2. I couldn't get the:
"old-style parameter lists not supported"
error fixed using:
TOSH_INTERRUPT(SIG_OVERFLOW1) __attribute((spontaneous)){
high16 ++;
}
-or-
TOSH_INTERRUPT(SIG_OVERFLOW1) {
high16 ++;
}
So I hardwired the macro invocation:
void SIG_OVERFLOW1() __attribute__ ((interrupt, spontaneous, C)) {
high16 ++;
}
3. To get the new TimerC to work correctly, you must wire:
Main.StdControl -> TimerC.StdControl;
in your app.
Note: all the "declaration of `time' shadows global declaration"
warnings still remain
William
-------------------------------------------------------------------------
William J. Maurer 2170 Wedgewood Way
DSP Labs div WJM Inc. Livermore, California 94550
http://dsplabs.com (925) 606-8204
email [EMAIL PROTECTED] Telefax (925) 606-8205
ICQ#:17014999<http://wwp.mirabilis.com/17014999>
_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users