A bundled STM32F10x Std Periph and CMSIS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

49 lines
1.2 KiB

  1. /*
  2. * stm32f10x_rtc_ex.h
  3. *
  4. * Copyright (C) 2016 Houtouridis Christos <houtouridis.ch@gmail.com>
  5. * All Rights Reserved.
  6. *
  7. * NOTICE: All information contained herein is, and remains
  8. * the property of Houtouridis Christos. The intellectual
  9. * and technical concepts contained herein are proprietary to
  10. * Houtouridis Christos and are protected by copyright law.
  11. * Dissemination of this information or reproduction of this material
  12. * is strictly forbidden unless prior written permission is obtained
  13. * from Houtouridis Christos.
  14. *
  15. */
  16. #ifndef __stm32f10x_rtc_ex_h__
  17. #define __stm32f10x_rtc_ex_h__
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. #include <stm32f10x.h>
  22. #include <stm32f10x_systick.h>
  23. #include <stm32f10x_rcc.h>
  24. #include <stm32f10x_rtc.h>
  25. #include <stm32f10x_bkp.h>
  26. #include <stm32f10x_pwr.h>
  27. #define RTC_SYS_STARTUP_TIMEOUT (800000)
  28. /*
  29. * Hardware specific defines and Macros
  30. */
  31. #define RTC_SYS_LSI_CLOCK (0x9C3F)
  32. FunctionalState RTC_GetStatus (void);
  33. void RTC_Sys_DeInit (void);
  34. int RTC_Sys_Init (clock_t xtal);
  35. time_t RTC_Sys_time (time_t *timer);
  36. int RTC_Sys_settime (const time_t *timer);
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif /* #ifndef __stm32f10x_rtc_ex_h__ */