[Tinyos-devel] Including an assembler file in TinyOS 1.1.15

Justin Dugger jldugger at gmail.com
Tue Dec 19 14:11:06 PST 2006


The way we wrote our SD card interface was to use the gcc inline ASM
method.  An example can be seen in "tos/platform/mica2/HPLFlash.nc" in
the BIT(n) macro. It's kind of ugly, but it's the only way we know of
to pass ASM through ncc to gcc.  You'll probably need to rewrite the
assembler a bit to work the syntax. The benefit is that you can nest
ASM into a module, letting use the nesC constructs as much as
possible.

Justin Dugger

On 12/19/06, Christian Lederer <Lederer.Christian at gmx.net> wrote:
> Hello!
>
> I'm trying to add my own assembler file to TinyOS 1.1.15. This file is for the ATmega128 on a MICAz mote and should be executed from TinyOS. I also have a header file with the declaration of the function of the assembler file is in.
> Can anyone of you tell me how to include the header and assembler file in the make environment of TinyOS 1.1.15.
>
> Thanks for your answers in advance.
> Kind regards,
> Chris
> --
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
>



More information about the Tinyos-devel mailing list