2007-10-16 19:20:11 -04:00
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
|
|
|
#include <p33Fxxxx.h>
|
|
|
|
|
|
|
|
typedef signed char int8_t;
|
|
|
|
typedef unsigned char uint8_t;
|
|
|
|
typedef signed int int16_t;
|
|
|
|
typedef unsigned int uint16_t;
|
|
|
|
typedef signed long int int32_t;
|
|
|
|
typedef unsigned long int uint32_t;
|
2008-01-22 23:29:07 -05:00
|
|
|
typedef signed long long int64_t;
|
|
|
|
typedef unsigned long long uint64_t;
|
2007-10-16 19:20:11 -04:00
|
|
|
|
2007-11-01 19:36:31 -04:00
|
|
|
#define FCY 40000000
|
2007-10-16 19:20:11 -04:00
|
|
|
|
2008-09-23 19:27:40 -04:00
|
|
|
/* define as 0/1 to invert I/O polarity for optocouplers
|
|
|
|
define as 1/0 for normal polarity */
|
|
|
|
#define IO_HIGH 0
|
|
|
|
#define IO_LOW 1
|
|
|
|
|
2007-10-16 19:20:11 -04:00
|
|
|
void config_init(void);
|
|
|
|
|
2007-11-02 18:48:41 -04:00
|
|
|
#define nop() __asm("nop")
|
|
|
|
|
2007-10-16 19:20:11 -04:00
|
|
|
#endif
|
|
|
|
|