can you try

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


________________________________________
From: tinyos-help-boun...@millennium.berkeley.edu 
[tinyos-help-boun...@millennium.berkeley.edu] on behalf of 
tinyos-help-requ...@millennium.berkeley.edu 
[tinyos-help-requ...@millennium.berkeley.edu]
Sent: Wednesday, 1 January, 2014 4:00:02 AM
To: tinyos-help@millennium.berkeley.edu
Subject: Tinyos-help Digest, Vol 128, Issue 34

Send Tinyos-help mailing list submissions to
        tinyos-help@millennium.berkeley.edu

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
        tinyos-help-requ...@millennium.berkeley.edu

You can reach the person managing the list at
        tinyos-help-ow...@millennium.berkeley.edu

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 <redstripe...@gmail.com>
Subject: [Tinyos-help] Weird compile error
To: tinyos forum <tinyos-help@millennium.berkeley.edu>
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
Tinyos-help@millennium.berkeley.edu
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
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to