Subversion Repositories HomeAutomation

Rev

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

  1. /*********************************************************************
  2.  *
  3.  *                  Compiler specifics like clockspeed and portIOs.
  4.  *
  5.  *********************************************************************
  6.  * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/branches/modules/EmbeddedSoftware/PIC/canNode/Include/compiler.h $
  7.  * Last changed:    $LastChangedDate: 2006-11-18 14:34:39 +0100 (Sat, 18 Nov 2006) $
  8.  * By:              $LastChangedBy: johboh $
  9.  * Revision:        $Revision: 120 $
  10.  ********************************************************************/
  11.  
  12. #ifndef COMPILER_H
  13. #define COMPILER_H
  14.  
  15. #include <p18cxxx.h>
  16. #define CLOCK_FREQ      (40000000)      // Hz
  17. #define INSTR_FREQ          (CLOCK_FREQ/4)
  18. #define CLOCK_FOSC      (40)      // MHz
  19.  
  20. #define LED0_TRIS       (TRISCbits.TRISC1)
  21. #define LED0_IO         (PORTCbits.RC1)
  22.  
  23.  
  24. #endif //compiler.h
  25.