Feng Hong / Mbed OS Nucleo_yoda2_v2
Revision:
19:0356e54240cc
Parent:
17:faa4d4976d22
--- a/eeprom_cust.h	Sat Jul 20 03:57:26 2019 +0000
+++ b/eeprom_cust.h	Tue Sep 24 14:05:58 2019 +0000
@@ -1,3 +1,4 @@
+#if 0
 #define EEPROM_ADDR 0x0   // I2c EEPROM address is 0x00
 #ifdef STM32F207xx
 #define SDA PB_9            // I2C SDA pin
@@ -5,13 +6,19 @@
 #endif
 
 #ifdef STM32F303xE
+#ifdef OWN_SOLDER_BOARD
 #define SDA PC_9//D2//D2//PB_9 //PF_0            // I2C SDA pin
 #define SCL D7//D8//D8//PB_8 //PF_1           // I2C SCL pin
 #endif
+#ifdef YODA2
+#define SDA PA_10//D2//D2//PB_9 //PF_0            // I2C SDA pin
+#define SCL PA_9//D8//D8//PB_8 //PF_1           // I2C SCL pin
+#endif
+#endif
  
 #define MIN(X,Y) ((X) < (Y) ? (X) : (Y))
 #define MAX(X,Y) ((X) > (Y) ? (X) : (Y))
 
 #define EEPROM_DEVICE_ADDRESS_ADDRESS  0x40
 #define DEVICE_DEFAULT_ADDRESS   12
-
+#endif