TM STM32F4xx Libraries  v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle

DS1307 Library for STM32F4xx - http://stm32f4-discovery.com/2014/05/library-15-ds1307-real-time-clock-for-stm32f429-discovery/. More...

Modules

 TM_DS1307_Macros
 Library defines.
 
 TM_DS1307_Typedefs
 Library Typedefs.
 
 TM_DS1307_Functions
 Library Functions.
 

Detailed Description

DS1307 Library for STM32F4xx - http://stm32f4-discovery.com/2014/05/library-15-ds1307-real-time-clock-for-stm32f429-discovery/.

Note
Not recommended for future projects, use internal RTC inside STM32F4xx instead.
Default pinout
DS1307  STM32F4XX   DESCRIPTION
VCC     5V          Positive voltage
GND     GND         Ground
SDA     PB7         I2C1, PinsPack 1
SCL     PB6         I2C1, PinsPack 1

Change pinout in your defines.h file

//Set your I2C, to see corresponding pins, look for TM I2C library
#define TM_DS1307_I2C               I2C1
#define TM_DS1307_I2C_PINSPACK      TM_I2C_PinsPack_1 
Changelog
 Version 1.2
  - September 21, 2014
  - Added support for check if DS1307 module is connected to I2C on initialization

 Version 1.1
  - July 30, 2014
  - Added 2 new functions to work with SQW/OUT pin on DS1307
     TM_DS1307_EnableOutputPin
     TM_DS1307_DisableOutputPin
     
 Version 1.0
  - First release
Dependencies
 - STM32F4xx
 - STM32F4xx RCC
 - STM32F4xx I2C
 - defines.h
 - TM I2C
 - TM GPIO