Skip to content

Commit e5afbbf

Browse files
committed
chore: remove useless code
__HAL_RCC_GET_RTC_SOURCE was added since STM32Cube HAL V1.2.5 Signed-off-by: Frederic Pillon <[email protected]>
1 parent c2bd704 commit e5afbbf

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/rtc.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,6 @@ typedef void(*voidCallbackPtr)(void *);
155155
#define IS_RTC_HOUR12(HOUR) IS_RTC_HOUR24(HOUR)
156156
#endif /* !STM32F1xx && !IS_RTC_WEEKDAY */
157157

158-
/* __HAL_RCC_GET_RTC_SOURCE is not defined for F2*/
159-
/*
160-
#ifndef __HAL_RCC_GET_RTC_SOURCE
161-
static uint32_t RTC_getSource(void) {
162-
RCC_PeriphCLKInitTypeDef *PeriphClkInit;
163-
HAL_RCCEx_GetPeriphCLKConfig(PeriphClkInit);
164-
return PeriphClkInit->RTCClockSelection;
165-
}
166-
#define __HAL_RCC_GET_RTC_SOURCE() RTC_getSource()
167-
#endif
168-
*/
169-
170158
/* Exported macro ------------------------------------------------------------*/
171159
/* Exported functions ------------------------------------------------------- */
172160
void RTC_SetClockSource(sourceClock_t source);

0 commit comments

Comments
 (0)