• sizeof to assembler
    I use the following means of making .h files usable in assembler #ifdef CCODE // bypass structs for assembler modules structs ... such as typedef struct { ......... } E1_SEI; #endif extern...
  • problem with sizeof
    hi i wrote this code which is written bellow when ever i check the value of u it appear to be the 3. while it is supposed to be 8. Can any body tell me what is the problem with this code and how can...
  • Unexpected return code from os_mbx_send
    I am using : µVision V4.22.22.0 Toolchain: MDK-ARM Standard Version: 4.22a This code is causing my problem: U8 res = os_mbx_send (CB_XMIT_MAILBOX, packetInfo, 0xFFFF); if(OS_R_OK != res) ...
  • printing sizeof() values
    I'm trying to print out sizeof() values for some of my structures. They are coming out incorrect. Here is a small table in which I've done this on different platforms: Linux : sizeof(TChannel) = 1460...
  • unexpected code
    There is simple code usRDelay(17); Comm_LineOut_Port=SendData.B.Bit02; usRDelay(17); Comm_LineOut_Port=SendData.B.Bit01; usRDelay(17); Comm_LineOut_Port=SendData.B.Bit00; usRDelay(17); Comm_LineOut_Port...