Subversion Repositories HomeAutomation

Rev

Rev 51 | Go to most recent revision | Blame | Last modification | View Log | SVN | RSS feed

  1. /*********************************************************************
  2.  *
  3.  *                  Stack specific
  4.  *
  5.  *********************************************************************
  6.  * FileName:        stackTasks.h
  7.  *
  8.  * Author               Date    Comment
  9.  *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  10.  * Johan Böhlin     21-10-06    Original        (Rev 1.0)
  11.  ********************************************************************/
  12.  
  13. #ifndef stackTasks_H
  14. #define stackTasks_H
  15.  
  16. #define USE_CAN
  17. #define USE_UART
  18.  
  19. #define TICKS_PER_SECOND               (100)        // 10ms
  20.  
  21. #if (TICKS_PER_SECOND < 10 || TICKS_PER_SECOND > 255)
  22. #error Invalid TICKS_PER_SECONDS specified.
  23. #endif
  24.  
  25. /*
  26.  * Manually select prescale value to achieve necessary tick period
  27.  * for a given clock frequency.
  28.  */
  29. #define TICK_PRESCALE_VALUE             (256)
  30.  
  31.  
  32.  
  33. #endif
  34.