Nov 25, 2014
03:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 25, 2014
03:36 PM
So why won't this code compile. Fails on the assign to COM.State
#define BUFSIZE 10
volatile typedef struct {
char Buf[BUFSIZE];
uint8 DataBytes;
uint32 Timer;
uint8 DatainBuf;
uint8 State;
uint8 Timeout;
} comtype;
volatile typedef struct comtype COM;
volatile typedef struct comtype SMS;
int main()
{
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
/* CyGlobalIntEnable; */ /* Uncomment this line to enable global interrupts. */
for(;;)
{
COM.State = 1;
}
}
Ugh, Dana.
3 Replies