38
|
1 /**
|
|
2 ******************************************************************************
|
|
3 * @file rtc.h
|
|
4 * @author heinrichs weikamp gmbh
|
|
5 * @version V0.0.1
|
|
6 * @date 10-Oct-2014
|
|
7 * @brief header file for rtc control
|
|
8 *
|
|
9 @verbatim
|
|
10 ==============================================================================
|
|
11 ##### How to use #####
|
|
12 ==============================================================================
|
|
13 @endverbatim
|
|
14 ******************************************************************************
|
|
15 * @attention
|
|
16 *
|
|
17 * <h2><center>© COPYRIGHT(c) 2014 heinrichs weikamp</center></h2>
|
|
18 *
|
|
19 ******************************************************************************
|
|
20 */
|
|
21
|
|
22 /* Define to prevent recursive inclusion -------------------------------------*/
|
|
23 #ifndef RTC_H
|
|
24 #define RTC_H
|
|
25
|
|
26 #ifdef __cplusplus
|
|
27 extern "C" {
|
|
28 #endif
|
|
29
|
|
30 /* Includes ------------------------------------------------------------------*/
|
|
31
|
|
32 #define RTC_ASYNCH_PREDIV 0x7F /* LSE as RTC clock */
|
|
33 #define RTC_SYNCH_PREDIV 0x00FF /* LSE as RTC clock */
|
|
34
|
|
35 #include "stm32f4xx_hal.h"
|
|
36
|
|
37 void MX_RTC_init(void);
|
|
38 void RTC_StopMode_2seconds(void);
|
|
39 void RTC_Stop_11ms(void);
|
|
40 void RTC_SetTime(RTC_TimeTypeDef stimestructure);
|
|
41 void RTC_SetDate(RTC_DateTypeDef sdatestructure);
|
|
42
|
|
43 #ifdef __cplusplus
|
|
44 }
|
|
45 #endif
|
|
46
|
|
47 #endif /* RTC_H */
|
|
48
|
|
49 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/
|