/*
 * rts_chasi.h
 *
 *  Created on: 19 сент. 2020 г.
 *      Author: Ivan
 */

#ifndef RTS_CHASI_H_
#define RTS_CHASI_H_
#include "stm32f4xx.h"
#include "stm32f4xx_ll_i2c.h"
 #define     I2C_REQUEST_WRITE1                       0x00
#define  ds1307WR   0b11010000                  // define baud
#define  ds1307READ  0b11010001                     // define baud

unsigned char RTC_ConvertFromBinDec(unsigned char c);
unsigned char RTC_ConvertFromDec(unsigned char c);
void I2C_SendByteByADDR1(I2C_TypeDef * i2c,uint8_t c,uint8_t addr);
#endif /* RTS_CHASI_H_ */
