• never, ever increments
    a very, very odd thing.... #define BUFFER_SZ 64 unsigned char sBuf0tail; sBuf0tail = ((sBuf0tail + 1) % BUFFER_SZ); .. this increments a circular buffer index just fine. #define BUFFER_SZ 64...
  • typedef with a member "pointer to itself"
    Hello forum I've a c progamming question: I want to place a function pointer into a typedef with a function parameter "pointer to the typedef itself": typedef struct pExampleStructTypdef {...
  • Is 'unsigned' a datatype by itself?
    Hi, I have seen that some of the example programs availbale in this site define/declare variables as unsigned. For eg: unsigned voltage; //A-to-D example program What type would voltage in the...
  • RTX51-full - os_wait for ever
    Hello all. Can anyone help me with the following one? My target is working under RTX51-full. I have an interrupt function (void mc12comm() interrupt 0 using 3) that calls other regular function, and...
  • The worst comment ever?
    Just running through some code written by someone no longer involved in the project and came across this: JobInProgress = true; // Obviously! Undoubtedly, comment style and reasoning can vary...