aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2019-07-28 16:46:10 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2019-07-28 16:46:10 -0500
commitd9c1b81f7f28f0b066cae716dcff0a5d511b7fc6 (patch)
treeeacdcf9645c084912badb8f7c01830bd73bfe994
parent7c219038bc87a87229656cbae777d1e5b0d7baef (diff)
Remove Set_Time_Date()
-rwxr-xr-xds3231.c14
-rwxr-xr-xds3231.h1
2 files changed, 0 insertions, 15 deletions
diff --git a/ds3231.c b/ds3231.c
index ae90d36..c7cd797 100755
--- a/ds3231.c
+++ b/ds3231.c
@@ -77,20 +77,6 @@ void Set_Time() {
I2C_Master_Stop();
}
-void Set_Time_Date() {
- I2C_Master_Start(); // Start I2C
- I2C_Master_Write(0xD0); // RTC Chip address
- I2C_Master_Write(0); // send register address
- I2C_Master_Write(DEC_2_BCD(sec)); //update sec
- I2C_Master_Write(DEC_2_BCD(min)); //update min
- I2C_Master_Write(DEC_2_BCD(hour)); //update hour
- I2C_Master_Write(1); //ignore updating day
- I2C_Master_Write(DEC_2_BCD(date)); //update date
- I2C_Master_Write(DEC_2_BCD(month)); //update month
- I2C_Master_Write(DEC_2_BCD(year)); //update year
- I2C_Master_Stop();
-}
-
void Update_Current_Date_Time() {
//START to Read
I2C_Master_Start();
diff --git a/ds3231.h b/ds3231.h
index 7e65e7c..c6a326a 100755
--- a/ds3231.h
+++ b/ds3231.h
@@ -6,6 +6,5 @@ void Read_Alarms_Temp(void);
void Set_Date(void);
void Set_DayOfWeek(void);
void Set_Time(void);
-void Set_Time_Date(void);
void Update_Current_Date_Time(void);
void Write_Alarms(void); \ No newline at end of file