Feng Hong / Mbed OS Nucleo_rtos_basic
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers eeprom_cust.h Source File

eeprom_cust.h

00001 #if 0
00002 #define EEPROM_ADDR 0x0   // I2c EEPROM address is 0x00
00003 #ifdef STM32F207xx
00004 #define SDA PB_9            // I2C SDA pin
00005 #define SCL PB_8           // I2C SCL pin
00006 #endif
00007 
00008 #ifdef STM32F303xE
00009 #ifdef OWN_SOLDER_BOARD
00010 #define SDA PC_9//D2//D2//PB_9 //PF_0            // I2C SDA pin
00011 #define SCL D7//D8//D8//PB_8 //PF_1           // I2C SCL pin
00012 #endif
00013 #ifdef YODA2
00014 #define SDA PA_10//D2//D2//PB_9 //PF_0            // I2C SDA pin
00015 #define SCL PA_9//D8//D8//PB_8 //PF_1           // I2C SCL pin
00016 #endif
00017 #endif
00018  
00019 #define MIN(X,Y) ((X) < (Y) ? (X) : (Y))
00020 #define MAX(X,Y) ((X) > (Y) ? (X) : (Y))
00021 
00022 #define EEPROM_DEVICE_ADDRESS_ADDRESS  0x40
00023 #define DEVICE_DEFAULT_ADDRESS   12
00024 #endif