[Tinyos-devel] Minor patch for msp430regtypes.h
Joe Polastre
joe at polastre.com
Mon Nov 20 19:06:12 PST 2006
Agreed, however the regtypes should be generated from the method in
the comment in msp430regtypes.h in order to pull in the most
up-to-date list.
/*
To generate the primary contents of this file seen below, in
mspgcc/msp430/include/, execute the following command:
find . | xargs perl -ne '
BEGIN { %t = qw(b uint8_t w uint16_t); }
if( /\bsfr([bw])\s*\(\s*(\w+)/ && length($2) > 1 ) {
$r{$2} = $t{$1};
print "#define TYPE_$2 $t{$1}\n" if /\bsfr([bw])\s*\(\s*(\w+)/;
} elsif( /^#define\s+(\w+)\s+(\w+)\s+$/ ) {
print "#define TYPE_$1 $r{$2}\n" if $r{$2};
}
' | sort -u
*/
-Joe
On 11/20/06, R. Steve McKown <rsmckown at yahoo.com> wrote:
> Hi,
>
> tos/chips/msp430/msp430regtypes.h does not include type definitions for
> DAC12_0DAT and DAC12_1DAT for use with MSP430_NORACE(). Here's the trivial
> patch.
>
> Index: msp430regtypes.h
> ===================================================================
> --- msp430regtypes.h (revision 297)
> +++ msp430regtypes.h (working copy)
> @@ -101,6 +101,8 @@
> #define TYPE_DAC12IFG uint16_t
> #define TYPE_DAC12_0CTL uint16_t
> #define TYPE_DAC12_1CTL uint16_t
> +#define TYPE_DAC12_0DAT uint16_t
> +#define TYPE_DAC12_1DAT uint16_t
> #define TYPE_DCOCTL uint8_t
> #define TYPE_DMA0CTL uint16_t
> #define TYPE_DMA0DA uint16_t
> _______________________________________________
> 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