You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
533 B

  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. #include <p33Fxxxx.h>
  4. typedef signed char int8_t;
  5. typedef unsigned char uint8_t;
  6. typedef signed int int16_t;
  7. typedef unsigned int uint16_t;
  8. typedef signed long int int32_t;
  9. typedef unsigned long int uint32_t;
  10. typedef signed long long int64_t;
  11. typedef unsigned long long uint64_t;
  12. #define FCY 40000000
  13. /* define as 0/1 to invert I/O polarity for optocouplers
  14. define as 1/0 for normal polarity */
  15. #define IO_HIGH 0
  16. #define IO_LOW 1
  17. void config_init(void);
  18. #define nop() __asm("nop")
  19. #endif