53,22 → 53,6 |
#define DS1307__REGISTER_ADDRESS__CONTROL 0x07 |
|
/****************************************************************************** |
* Private function prototypes. |
******************************************************************************/ |
|
/**************************************************************************//** |
* \fn static void ds1307__set_start_address(void) |
* |
* \brief Set RTC address to 0. |
******************************************************************************/ |
static |
void |
ds1307__set_start_address |
( |
void |
); |
|
/****************************************************************************** |
* Public function definitions. |
******************************************************************************/ |
|
249,24 → 233,3 |
|
twi__stop(); |
} |
|
/****************************************************************************** |
* Private function definitions. |
******************************************************************************/ |
|
/**************************************************************************//** |
* \fn static void ds1307__set_start_address(void) |
* |
* \brief Set RTC address to 0. |
******************************************************************************/ |
static |
void |
ds1307__set_start_address |
( |
void |
){ |
twi__start(); |
twi__send_slaw(DS1307__SLAVE_ADDRESS); |
twi__send_data(0); |
twi__stop(); |
} |