Skip to content

Commit d652d39

Browse files
authored
Merge pull request #3454 from 0xc0170/jeromecoutant-PR_LPT
STM32: Refactor lp_ticker.c + rtc_api.c + sleep.c + rtc_api_hal.h files
2 parents 9b8efb2 + 2b4d83e commit d652d39

37 files changed

+107
-3811
lines changed

targets/TARGET_STM/TARGET_STM32F0/common_objects.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,8 @@ struct i2c_s {
116116
}
117117
#endif
118118

119+
/* STM32F0 HAL doesn't provide this API called in rtc_api.c */
120+
#define __HAL_RCC_RTC_CLKPRESCALER(__RTCCLKSource__)
121+
#define RTC_WKUP_IRQn RTC_IRQn
122+
119123
#endif

targets/TARGET_STM/TARGET_STM32F0/rtc_api.c

Lines changed: 0 additions & 294 deletions
This file was deleted.

targets/TARGET_STM/TARGET_STM32F0/sleep.c

Lines changed: 0 additions & 59 deletions
This file was deleted.

targets/TARGET_STM/TARGET_STM32F1/common_objects.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,8 @@ struct i2c_s {
116116
}
117117
#endif
118118

119+
/* STM32F1 HAL doesn't provide this API called in rtc_api.c */
120+
#define __HAL_RCC_RTC_CLKPRESCALER(__RTCCLKSource__)
121+
119122
#endif
120123

0 commit comments

Comments
 (0)