Article View: comp.sys.mac.programmer.codewarrior
Article #54Re: compiling in codewarrior
From: MW Ron
Date: Wed, 07 Jul 2004 16:24
Date: Wed, 07 Jul 2004 16:24
155 lines
4318 bytes
4318 bytes
In article <candy.190n5s@mail.codecomments.com>,
candy <candy.190n5s@mail.codecomments.com> wrote:
I'll check with our 8/16 bit team
I've cross posted this to codewarrior.emedded where others may help
Ron
>The codewarrier version is 3.0
>We are using it for the HCO8 type microcontroller- GT16
>and I learnt that bit variables are not supported in codewarrier.
>Is that causing the problem.
>Will the 'Big and Little Endian' solve the problem.
>If it can, how is it to be used.
>Errors
>
>Error : C2450: Expected: ;
>
>byte ADC_bReadData(
>
>byte bChannel /*
>*
>* Description: adc channel in which analog signal is available for
>
>* conversion
>*
>* Direction : in>
>*
>* Values : 0 - 7 ( ADC channel )
>*/
>
>);
>
>Error : C2450: Expected: ; = ,
>
>extern byte DIST_bDistanceCount; /*
>*
>* Description : Will be incremented for every km of distance travel
>*
>*/
>
>
>Error : C2450: Expected: ;
>
>byte EEPRM_bSubmitReadRequest(byte bDataType) ;
>
>
>Error : Compile failed
>
>
>Error : C2450: Expected: ; = ,
>
>const byte abFuelData_Tbl[50][2] ={
> {10, 0x1B},
> {20, 0x25},
> {30, 0x40},
> {40, 0x5E},
> {50, 0x6E},
> {60, 0x83},
> {70, 0x90},
> {80, 0x9C},
> {90, 0xA6},
> {100, 0xAE},
> {110, 0xB7},
> {120, 0xC1},
> {130, 0xCD},
> {140, 0xD3},
> {150, 0xD5},
> {160, 0xDB},
> {170, 0xE2},
> {180, 0xE7},
> {190, 0xEE},
> {200, 0xF3},
> {210, 0xF8},
> {220, 0xFF},
> {230, 0xFF}
>
>};
>
>
>Error : C1008: Typedef name expected
>
>volatile union
>{
>struct
>{
>byte PTA_B7 : 1;
>byte PTA_B6 : 1;
>byte PTA_B5 : 1;
>byte PTA_B4 : 1;
>byte PTA_B3 : 1;
>byte PTA_B2 : 1;
>byte PTA_B1 : 1;
>byte PTA_B0 : 1;
>
>} PTA_BITS;
>
>byte PTA_BYTE;
>
>}PORTA @ 0x00;
>
>Error : C1007: Type specifier mismatch
>
>volatile union
>{
>struct
>{
>byte PTA_B7 : 1;
>byte PTA_B6 : 1;
>byte PTA_B5 : 1;
>byte PTA_B4 : 1;
>byte PTA_B3 : 1;
>byte PTA_B2 : 1;
>byte PTA_B1 : 1;
>byte PTA_B0 : 1;
>
>} PTA_BITS;
>
>byte PTA_BYTE;
>
>}PORTA @ 0x00;
>
>
>Error : C1104: Bit field type is neither integral nor enum type
>
>volatile union
>{
>struct
>{
>byte PTA_B7 : 1;
>byte PTA_B6 : 1;
>byte PTA_B5 : 1;
>byte PTA_B4 : 1;
>byte PTA_B3 : 1;
>byte PTA_B2 : 1;
>byte PTA_B1 : 1;
>byte PTA_B0 : 1;
>
>} PTA_BITS;
>
>byte PTA_BYTE;
>
>}PORTA @ 0x00;
>
--
Metrowerks, one of the world๏ฟฝs top 100 companies and influencers
in the software development industry. - SD Times May 2004
http://www.sdtimes.com/2004sdt100.htm
Metrowerks, maker of CodeWarrior
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com
Technical Details
Message-ID:
<mwron-D59F9B.12244407072004@news.newsguy.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed.mathworks.com!arclight.uoregon.edu!hammer.uoregon.edu!logbridge.uoregon.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwronReferences:
<candy.18wxtr@mail.codecomments.com> <mwron-04ECD5.18251706072004@news.newsguy.com> <candy.190n5s@mail.codecomments.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f635e,6e3ae2784298dacb
X-Google-Thread: 10228c,32a28b93cd8836a7,start
X-Google-Attributes: gidf635e,gid10228c,public
X-Google-Language: ENGLISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed.mathworks.com!arclight.uoregon.edu!hammer.uoregon.edu!logbridge.uoregon.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwron
From: MW Ron <mwron@metrowerks.com>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.embedded
Subject: Re: compiling in codewarrior
Date: Wed, 07 Jul 2004 12:24:44 -0400
Organization: Metrowerks
Lines: 155
Message-ID: <mwron-D59F9B.12244407072004@news.newsguy.com>
References: <candy.18wxtr@mail.codecomments.com> <mwron-04ECD5.18251706072004@news.newsguy.com> <candy.190n5s@mail.codecomments.com>
NNTP-Posting-Host: p-345.newsdawg.com
User-Agent: MT-NewsWatcher/3.3b1 (PPC Mac OS X)
X-Face: )mY~XFHLw)UOW!W#[Ljvxq6Ja7(g'#F0-g*&puNxR8hEJkd@Oue/70^.)I78\
(%a%&Id211u"l/t.llWo/M|?15XUlx9!IGkdWiEmcasiyg"k;Q9[~XuE+`t2"*n(>nmm
@L/q,TjMd5+H{gASEPDR^$