Device driver for DS1307 Real-time clock (RTC) based on STM32 HAL Library, What do You need?
- Any STM32 Nucleo-Board or any STM32 Microcontrollers
- STM32Cube IDE (HAL Libraries)
- Any dev-board DS1307 or your custom hardware
- Created new project in your STM32Cube IDE
- Select your STM32 Microcontroller in my case I used a STM32F103CBTx (Blue Pill board)
- Select your preferred I2C peripheral in my case I used I2C1
- If you need to use another I2C peripheral just modify this macro DS1307_HANDLER in the file ds1307.h
- Include the source files in your project
- Enjoy!!
Submit Merge Requests to fix issues or add features to the repo.
STM32F103CBT | DS1307 |
---|---|
PB6 | SCL |
PB7 | SDA |