浏览代码

modif RTC

remy 4 年之前
父节点
当前提交
ce2dcf8156
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 1
      Include/RTC.h
  2. 2 0
      Source/RTC.c

+ 1 - 1
Include/RTC.h

@@ -57,7 +57,7 @@ void writeRTC(uint8_t add, uint8_t *tab, int len){
 #define ANALOG_CALIBRATION	0X12
 #define SQW					0X13
 
-I2C_HandleTypeDef *I2C_RTC;
+
 
 /****Private fonction */
 void readRTC(uint8_t reg, uint8_t *tab, int len);

+ 2 - 0
Source/RTC.c

@@ -7,6 +7,8 @@
 
 #include "RTC.h"
 
+I2C_HandleTypeDef *I2C_RTC;
+
 /** Private Fonction*/
 void readRTC(uint8_t reg, uint8_t *tab, int len) {