I am trying to implement an alarm using compare register B (OCR2B). I
modified HplAtm1281Timer2AsyncP.nc to provide an interface for compare B
module HplAtm1281Timer2AsyncP @safe()
{
provides {
// 8-bit Timers
interface HplAtm128Timer<uint8_t> as Timer;
interface HplAtm128TimerCtrl8 as TimerCtrl;
interface HplAtm128Compare<uint8_t> as Compare;
interface McuPowerOverride;
interface HplAtm128TimerAsync as TimerAsync;
interface HplAtm128Compare<uint8_t> as CompareB;
}
}
I have also implemented the commands for the new interface and made the
following changes to HplAtm1281Timer2AsyncC.nc
Compare = HplAtm1281Timer2AsyncP.Compare;
When i try to compile, i get the following error
In component `HplAtm1281Timer2AsyncC':
/opt/tinyos-2.x/tos/chips/atm1281/timer/HplAtm1281Timer2AsyncC.nc:96:
ambiguous match
I do not see any ambiguity in the wiring.
Please advice.
Thanks for your time and help.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help