• understanding the syntax of MACROs setbit, clearbit
    I want to create a fctn which can set or clear a bit based on the value of a variable. I attempted to incorporate the provided macro fctns; it didn't work. It compiled, but didn't change port state...
  • Locating a function to a specific start address - still don't understand
    Locating a function to a specific start address I still have problems with this issue. I have a function, Eobd_ADP_pf() , which I want to store starting at address 0x50000. I have seen the examples...
  • typedef & optimisation
    In the book "TCP/IP Lean" [1], the author states: "I have used #define in preference to typedef because compilers use better optimisation strategies for their native data types." Is this true of...
  • Circular Typedefs
    Structs can easily have circular references: struct ATag { struct BTag* pB; }; struct BTag { struct ATag* pA; }; Can the same thing be done with typedefs? typedef struct { BType* pB; } AType;...
  • Length of a typedef enum
    I am trying to pass the length of a typedefinition to an integer by using the sizeof function. At the moment I only get the value 4 passed back no matter the number of items are in the typedef. This...