Skip to content

Commit bad5b56

Browse files
committed
Fix warning in RTC driver for F2
Since commit: Fix HSE source clock issue (6410a69) __HAL_RCC_GET_RTC_SOURCE is no more used. As it is not defined for F2, it was defined manually. Comment this definition. Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
1 parent 30531fd commit bad5b56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cores/arduino/stm32/rtc.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ typedef void(*voidCallbackPtr)(void *);
123123
#define IS_RTC_HOUR12(HOUR) IS_RTC_HOUR24(HOUR)
124124
#endif /* !STM32F1xx && !IS_RTC_WEEKDAY */
125125

126-
/* __HAL_RCC_GET_RTC_SOURCE is not defined for F2 and F4 */
126+
/* __HAL_RCC_GET_RTC_SOURCE is not defined for F2*/
127+
/*
127128
#ifndef __HAL_RCC_GET_RTC_SOURCE
128129
static uint32_t RTC_getSource(void) {
129130
RCC_PeriphCLKInitTypeDef *PeriphClkInit;
@@ -132,6 +133,7 @@ static uint32_t RTC_getSource(void) {
132133
}
133134
#define __HAL_RCC_GET_RTC_SOURCE() RTC_getSource()
134135
#endif
136+
*/
135137

136138
/* Exported macro ------------------------------------------------------------*/
137139
/* Exported functions ------------------------------------------------------- */

0 commit comments

Comments
 (0)