This is a simple-to-use library to interface with the DS1302 RTC module written for STM32CubeHal.
![](https://private-user-images.githubusercontent.com/52702259/360481503-291db377-a329-4ae4-878a-7e571ff7136b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MDcyNTcsIm5iZiI6MTczODgwNjk1NywicGF0aCI6Ii81MjcwMjI1OS8zNjA0ODE1MDMtMjkxZGIzNzctYTMyOS00YWU0LTg3OGEtN2U1NzFmZjcxMzZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDAxNTU1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZjYzg3MDc1YzgzYjI1MTgwOTI0ZDAwYTgyOGRiNWZiMjgzM2I4MjZmZTczMWY0NDJmNTBkOGE1MDJkNTYzY2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.01yDZJk7AX0RCnv1NNlYWf1qaQWA1snrVMR9n5BWAik)
- Set or get individual time components. eg: ds1302_getSecond, ds1302_setDay...
- Set or get all time component using struct
DS1302_TimeRecord
- Halt or unhalt clock
- Transition 12/24 hour mode
- Read write to Ram address individually or in burst mode
NOTICE
⚠️ : This library expects you to have a file namedmain.h
in your include path which should contain an include directive for your stm32hal header such asstm32f4xx_hal.h