• What's wrong with the define of STRUCT?
    Hello all, My project with 3 files as following ,the MAIN is in sys.c,all 3 files are compiled well each other. File a: including sys.c and common.h File b: including rtk.c and rtk.h File c: including...
  • Extern struct
    Hi all: I am trying to use data from a structure in different modules ( extern struct), with no success. Here's what I am doing: main.c: #include "main.h" struct my_struct new_struct; void...
  • struct & union definations
    I am using struct in my code. with LPC1317. Now if I write: typedef struct { uint32_t f; union { uint32_t ADR[3]; struct { uint32_t ADR1; uint32_t ADR2; uint32_t ADR3; }; // warning...
  • Typedef __xxx struct? Defines?
    Hi guys, I have a piece of code that I copied from another source but I don't understand what it means and the Keil compiler doesn't either. The code looks like that: #if _MSC_VER >= 1000...
  • Extern STRUCT..
    Hi, I have a big problem. I have a multyple file included into the project, and in the main.c i've declared a struct like this: struct{ unsigned char x; unsigned char y; unsigned char z; }prova;...