12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #ifndef _BOARD_IO_
- #define _BOARD_IO_
- /*--------- IOP -------------*/
- #define K1PORT A
- #define K1BIT 5
- #define K1AN 4
- /*--------- POTS ------------*/
- #define POT1PORT A
- #define POT1BIT 1
- #define POT1AN 1
- #define POT2PORT A
- #define POT2BIT 0
- #define POT2AN 0
- #define POT3PORT A
- #define POT3BIT 2
- #define POT3AN 2
- #define POT4PORT C
- #define POT4BIT 2
- #define POT4AN 14
- #define POT5PORT B
- #define POT5BIT 4
- #define POT5AN 11
- /*-------- 8 bits PORT -----------*/
- #define PA1PORT A
- #define PA1BIT 3
- #define PA1AN 3
- #define PA2PORT A
- #define PA2BIT 4
- #define PA3PORT A
- #define PA3BIT 7
- #define PA4PORT C
- #define PA4BIT 0
- #define PA5PORT C
- #define PA5BIT 1
- #define PA6PORT B
- #define PA6BIT 3
- #define PA6AN 9
- #define PA7PORT B
- #define PA7BIT 5
- #define PA7AN 13
- /*-------- AUX PORT -----------*/
- #define AUXPORT B
- #define AUXBIT 0
- #define AUXAN 12
- /*----------- I2C --------------*/
- #define I2C1SCLPORT C
- #define I2C1SCLBIT 3
- #define I2C1SDAPORT C
- #define I2C1SDABIT 4
- #define I2C2SCLPORT B
- #define I2C2SCLBIT 1
- #define I2C2SDAPORT B
- #define I2C2SDABIT 2
- #endif
|