can you try

    interface HplAtm128Compare as Compare<uint8_t>;
    ...
    interface HplAtm128Compare as CompareB<uint8_t>;


________________________________________
From: [email protected] 
[[email protected]] on behalf of 
[email protected] 
[[email protected]]
Sent: Wednesday, 1 January, 2014 4:00:02 AM
To: [email protected]
Subject: Tinyos-help Digest, Vol 128, Issue 34

Send Tinyos-help mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tinyos-help digest..."


Today's Topics:

   1. Weird compile error (Roadstar Runner)


----------------------------------------------------------------------

Message: 1
Date: Mon, 30 Dec 2013 17:10:05 -0500
From: Roadstar Runner <[email protected]>
Subject: [Tinyos-help] Weird compile error
To: tinyos forum <[email protected]>
Message-ID:
        <CAN3Ao+wVsNsvg=rPQ_g1=ED1gRsMR=c3hbymswytifekrpv...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20131230/b78026d0/attachment.html

------------------------------

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

End of Tinyos-help Digest, Vol 128, Issue 34
********************************************

Institute for Infocomm Research disclaimer:  "This email is confidential and 
may be privileged. If you are not the intended recipient, please delete it and 
notify us immediately. Please do not copy or use it for any purpose, or 
disclose its contents to any other person. Thank you."

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

Reply via email to