• 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...
  • 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...
  • sizeof() reporting wrong size of struct
    Using ARM and RTX on MCB2300, I have the following struct defined from an extern file storage array: typedef struct choreoEvent { U8 flags; U16 leftover; U8 disable; U16 cueid; U32 time; char name...
  • sizeof() reporting wrong size of struct
    Using ARM and RTX on MCB2300, I have the following struct defined from an extern file storage array: typedef struct choreoEvent { U8 flags; U16 leftover; U8 disable; U16 cueid; U32 time; char name...
  • Whats wrong with this code?
    unsigned char sectors_per_cluster; unsigned int *pi; unsigned long *pl; pi = (unsigned int *)&raw_block[FAT_BYTES_PER_SECTOR]; partition.bytes_per_sector = *pi++; partition.sectors_per_cluster ...