cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ Creator & Designer

ETRO_SSN583
Esteemed Contributor

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.

0 Likes
3 Replies