Kaynağa Gözat

Merge branch 'master' of http://192.168.1.18/gogs/remy/DriverSTM_RC

remy 4 yıl önce
ebeveyn
işleme
e642b2abe2
2 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  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 */
 HAL_StatusTypeDef 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*/
 HAL_StatusTypeDef readRTC(uint8_t reg, uint8_t *tab, int len) {
 	HAL_StatusTypeDef res = HAL_I2C_Master_Transmit(I2C_RTC, RTC_ADD, &reg, 1, 10000);