Author Topic: want to verify the operation of tickCount in tick.c for the webserver  (Read 1615 times)

roylefamily

  • Full Member
  • ***
  • Posts: 17
    • View Profile
Hi All,

Am I right here?

tickCount is a

near unsigned long

or an unsigned long

That increments every 10mS.

//If TICK_USE_ACCESSRAM has been defined, we use access RAM variables
//to optiomize speed and code size
#ifdef TICK_USE_ACCESSRAM
    #define NEAR_TICK near
    //Microchip C18 compiler
    #if defined(__18CXX)
        #pragma udata access accessram  //Indicate following data is in Access RAM section
    #endif
#else
    #define NEAR_TICK
#endif

NEAR_TICK TICK           tickCount;
NEAR_TICK TICK16         tickSec;
NEAR_TICK unsigned char  tickHelper;

#ifdef TICK_USE_ACCESSRAM
    //Microchip C18 compiler
    #if defined(__18CXX)
        #pragma udata   //Return to normal section
    #endif
#endif