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 11/* *
22 ******************************************************************************
33 * @file STM32RTC.cpp
4- * @author WI6LABS
5- * @version V1.0.0
6- * @date 12-December-2017
4+ * @author Frederic Pillon
75 * @brief Provides a RTC interface for Arduino
86 *
97 ******************************************************************************
108 * @attention
119 *
12- * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
10+ * <h2><center>© COPYRIGHT(c) 2020 STMicroelectronics</center></h2>
1311 *
1412 * Redistribution and use in source and binary forms, with or without modification,
1513 * are permitted provided that the following conditions are met:
Original file line number Diff line number Diff line change 11/* *
22 ******************************************************************************
33 * @file STM32RTC.h
4- * @author WI6LABS
5- * @version V1.0.0
6- * @date 12-December-2017
4+ * @author Frederic Pillon
75 * @brief Provides a RTC interface for Arduino
86 *
97 ******************************************************************************
108 * @attention
119 *
12- * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
10+ * <h2><center>© COPYRIGHT(c) 2020 STMicroelectronics</center></h2>
1311 *
1412 * Redistribution and use in source and binary forms, with or without modification,
1513 * are permitted provided that the following conditions are met:
4038#define __STM32_RTC_H
4139
4240#include " Arduino.h"
43-
41+ #if defined(STM32_CORE_VERSION) && (STM32_CORE_VERSION > 0x01090000)
42+ #include " rtc.h"
43+ #endif
4444// Check if RTC HAL enable in variants/board_name/stm32yzxx_hal_conf.h
4545#ifndef HAL_RTC_MODULE_ENABLED
4646#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