• Initializing array of structs
    Hello, I have an array of structs, which I would like to initialize at startup, but to my surprise this gives me a compiler syntax error: I do as follows: typedef volatile struct Timer {...
  • Anonymous union inside a struct?
    The C complier doesn't like this piece of source code: ------------------------- struct MyUart { union { unsigned char rx; // read unsigned char tx; // write }; unsigned char control; // r...
  • static inside struct
    Hi, I have problem with struct. Here is my code, please correct me. struct main_func { static int kval; int temp3; char buf[8]; }main_f; If I do not put "static" to "int kval", everything...
  • Initializing a struct
    Hi, I am trying to initialize a struct, but I get the following error: Error #29: Expected an expression typedef struct { atp V1; atp V2; atp V3; atp V4; } tosh_at; tosh_at tosh_options...
  • array inside interrupt function
    I having trouble sending data out under interrupts from a buffer. The buffer was declared in xdata and i have a counter that is used to index into it. So when an interrupt occurs, the data is loaded...