#include "rtc.h" void plantage_i2C(void) { while(1); } void (*IT_I2C_Err) (void) = plantage_i2C; void MyRTC_Init() { MyI2C_Init(I2C1, 15, IT_I2C_Err); } void MyRTC_GetTime() { MyI2C_RecSendData_Typedef data; char regCopy = 0; data.SlaveAdress7bits = 0xC8; data.Ptr_Data = ®Copy; data.Nb_Data = 1; MyI2C_GetString(I2C1, 0x0, &data); }