boardio.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #ifndef _BOARD_IO_
  2. #define _BOARD_IO_
  3. /*--------- IOP -------------*/
  4. #define K1PORT A
  5. #define K1BIT 5
  6. #define K1AN 4
  7. /*--------- POTS ------------*/
  8. #define POT1PORT A
  9. #define POT1BIT 1
  10. #define POT1AN 1
  11. #define POT2PORT A
  12. #define POT2BIT 0
  13. #define POT2AN 0
  14. #define POT3PORT A
  15. #define POT3BIT 2
  16. #define POT3AN 2
  17. #define POT4PORT C
  18. #define POT4BIT 2
  19. #define POT4AN 14
  20. #define POT5PORT B
  21. #define POT5BIT 4
  22. #define POT5AN 11
  23. /*-------- 8 bits PORT -----------*/
  24. #define PA1PORT A
  25. #define PA1BIT 3
  26. #define PA1AN 3
  27. #define PA2PORT A
  28. #define PA2BIT 4
  29. #define PA3PORT A
  30. #define PA3BIT 7
  31. #define PA4PORT C
  32. #define PA4BIT 0
  33. #define PA5PORT C
  34. #define PA5BIT 1
  35. #define PA6PORT B
  36. #define PA6BIT 3
  37. #define PA6AN 9
  38. #define PA7PORT B
  39. #define PA7BIT 5
  40. #define PA7AN 13
  41. /*-------- AUX PORT -----------*/
  42. #define AUXPORT B
  43. #define AUXBIT 0
  44. #define AUXAN 12
  45. /*----------- I2C --------------*/
  46. #define I2C1SCLPORT C
  47. #define I2C1SCLBIT 3
  48. #define I2C1SDAPORT C
  49. #define I2C1SDABIT 4
  50. #define I2C2SCLPORT B
  51. #define I2C2SCLBIT 1
  52. #define I2C2SDAPORT B
  53. #define I2C2SDABIT 2
  54. #endif