Subversion Repositories HomeAutomation

Rev

Rev 97 | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1. /*********************************************************************
  2.  *
  3.  *                  Stack specific
  4.  *
  5.  *********************************************************************
  6.  * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/branches/atomV2/EmbeddedSoftware/PIC/canToSerial/Include/stackTasks.h $
  7.  * Last changed:    $LastChangedDate: 2006-11-14 21:22:17 +0100 (Tue, 14 Nov 2006) $
  8.  * By:              $LastChangedBy: johboh $
  9.  * Revision:        $Revision: 97 $
  10.  ********************************************************************/
  11.  
  12. #ifndef stackTasks_H
  13. #define stackTasks_H
  14.  
  15. #define USE_CAN
  16. #define USE_UART
  17.  
  18. #define TICKS_PER_SECOND               (100)        // 10ms
  19.  
  20. #if (TICKS_PER_SECOND < 10 || TICKS_PER_SECOND > 255)
  21. #error Invalid TICKS_PER_SECONDS specified.
  22. #endif
  23.  
  24. /*
  25.  * Manually select prescale value to achieve necessary tick period
  26.  * for a given clock frequency.
  27.  */
  28. #define TICK_PRESCALE_VALUE             (256)
  29.  
  30.  
  31.  
  32. #endif
  33.