Add files via upload

This commit is contained in:
agsNeto20
2020-12-14 23:04:32 +00:00
committed by GitHub
parent 2d9cf1c86d
commit f594fbb958
22 changed files with 1937 additions and 0 deletions
@@ -0,0 +1,21 @@
// *** Hardwarespecific defines ***
#if !defined(_UP_MCU_)
#if defined(__32MX320F128H__)
#define SDA 18 // A4 (Remeber to set the jumper correctly)
#define SCL 19 // A5 (Remeber to set the jumper correctly)
#elif defined(__32MX340F512H__)
#define SDA 18 // A4 (Remeber to set the jumper correctly)
#define SCL 19 // A5 (Remeber to set the jumper correctly)
#elif defined(__32MX795F512L__)
#define SDA 20 // Digital 20
#define SCL 21 // Digital 21
#else
#error "Unsupported PIC32 MCU!"
#endif
#endif
#ifndef TWI_FREQ
#define TWI_FREQ 400000L
#endif