diff options
author | William Harrington <kb0iic@berzerkula.org> | 2019-07-28 16:46:10 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2019-07-28 16:46:10 -0500 |
commit | d9c1b81f7f28f0b066cae716dcff0a5d511b7fc6 (patch) | |
tree | eacdcf9645c084912badb8f7c01830bd73bfe994 | |
parent | 7c219038bc87a87229656cbae777d1e5b0d7baef (diff) |
Remove Set_Time_Date()
-rwxr-xr-x | ds3231.c | 14 | ||||
-rwxr-xr-x | ds3231.h | 1 |
2 files changed, 0 insertions, 15 deletions
@@ -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();
@@ -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 |