File tree Expand file tree Collapse file tree 4 files changed +891
-9
lines changed Expand file tree Collapse file tree 4 files changed +891
-9
lines changed Original file line number Diff line number Diff line change 1
1
/* *
2
2
******************************************************************************
3
3
* @file STM32RTC.cpp
4
- * @author WI6LABS
5
- * @version V1.0.0
6
- * @date 12-December-2017
4
+ * @author Frederic Pillon
7
5
* @brief Provides a RTC interface for Arduino
8
6
*
9
7
******************************************************************************
10
8
* @attention
11
9
*
12
- * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
10
+ * <h2><center>© COPYRIGHT(c) 2020 STMicroelectronics</center></h2>
13
11
*
14
12
* Redistribution and use in source and binary forms, with or without modification,
15
13
* are permitted provided that the following conditions are met:
Original file line number Diff line number Diff line change 1
1
/* *
2
2
******************************************************************************
3
3
* @file STM32RTC.h
4
- * @author WI6LABS
5
- * @version V1.0.0
6
- * @date 12-December-2017
4
+ * @author Frederic Pillon
7
5
* @brief Provides a RTC interface for Arduino
8
6
*
9
7
******************************************************************************
10
8
* @attention
11
9
*
12
- * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
10
+ * <h2><center>© COPYRIGHT(c) 2020 STMicroelectronics</center></h2>
13
11
*
14
12
* Redistribution and use in source and binary forms, with or without modification,
15
13
* are permitted provided that the following conditions are met:
40
38
#define __STM32_RTC_H
41
39
42
40
#include " Arduino.h"
43
-
41
+ #if defined(STM32_CORE_VERSION) && (STM32_CORE_VERSION > 0x01090000)
42
+ #include " rtc.h"
43
+ #endif
44
44
// Check if RTC HAL enable in variants/board_name/stm32yzxx_hal_conf.h
45
45
#ifndef HAL_RTC_MODULE_ENABLED
46
46
#error "RTC configuration is missing. Check flag HAL_RTC_MODULE_ENABLED in variants/board_name/stm32yzxx_hal_conf.h"
You can’t perform that action at this time.
0 commit comments