HW_PIC32_defines.h 607 B

123456789101112131415161718192021
  1. // *** Hardwarespecific defines ***
  2. #if !defined(_UP_MCU_)
  3. #if defined(__32MX320F128H__)
  4. #define SDA 18 // A4 (Remeber to set the jumper correctly)
  5. #define SCL 19 // A5 (Remeber to set the jumper correctly)
  6. #elif defined(__32MX340F512H__)
  7. #define SDA 18 // A4 (Remeber to set the jumper correctly)
  8. #define SCL 19 // A5 (Remeber to set the jumper correctly)
  9. #elif defined(__32MX795F512L__)
  10. #define SDA 20 // Digital 20
  11. #define SCL 21 // Digital 21
  12. #else
  13. #error "Unsupported PIC32 MCU!"
  14. #endif
  15. #endif
  16. #ifndef TWI_FREQ
  17. #define TWI_FREQ 400000L
  18. #endif