picsfr.h 761 B

1234567891011121314151617181920212223242526272829
  1. //////////////////////////////////////////////////////////////////
  2. // picsfr.h
  3. // Copyright (c) 2015 Robert Ramey
  4. //
  5. // Distributed under the Boost Software License, Version 1.0. (See
  6. // accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // Put these in a separate file so they can conditionally included.
  10. // This is necessary since their mere inclusion will cause syntax
  11. // errors on some compilers.
  12. #ifndef PICSFR_H
  13. #define PICSFR_H
  14. #byte TRISC = 0xf94
  15. #byte T3CON = 0xfb1
  16. #byte CCP2CON = 0xfba
  17. #byte CCPR2L = 0xfbb
  18. #byte CCPR2H = 0xfbc
  19. #byte CCP1CON = 0xfbd
  20. #byte CCPR1L = 0xfbe
  21. #byte CCPR1H = 0xfbf
  22. #byte T1CON = 0xfcd
  23. #byte TMR1L = 0xfce
  24. #byte TMR1H = 0xfcf
  25. #bit TMR1ON = T1CON.0
  26. #endif // PICSFR_H