Skip to content

Commit 02bf93b

Browse files
committed
[F0] Update STM32F0xx HAL Drivers to v1.7.5
Included in STM32CubeF0 FW v1.11.2 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 9b8a633 commit 02bf93b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+4048
-1571
lines changed

system/Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h

Lines changed: 162 additions & 26 deletions
Large diffs are not rendered by default.

system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ typedef struct
121121
* b6 Error information
122122
* 0 : No Error
123123
* 1 : Error
124-
* b5 IP initilisation status
124+
* b5 IP initialization status
125125
* 0 : Reset (IP not initialized)
126126
* 1 : Init done (IP initialized. HAL CEC Init function already called)
127127
* b4-b3 (not used)
@@ -138,7 +138,7 @@ typedef struct
138138
* RxState value coding follow below described bitmap :
139139
* b7-b6 (not used)
140140
* xx : Should be set to 00
141-
* b5 IP initilisation status
141+
* b5 IP initialization status
142142
* 0 : Reset (IP not initialized)
143143
* 1 : Init done (IP initialized)
144144
* b4-b2 (not used)

system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@
2828

2929
/* Includes ------------------------------------------------------------------*/
3030
#include "stm32f0xx.h"
31-
#if defined(USE_HAL_LEGACY)
32-
#include "Legacy/stm32_hal_legacy.h"
33-
#endif /* USE_HAL_LEGACY */
31+
#include "Legacy/stm32_hal_legacy.h"
3432
#include <stddef.h>
3533

3634
/* Exported types ------------------------------------------------------------*/
@@ -109,7 +107,14 @@ typedef enum
109107
}while (0U)
110108
#endif /* USE_RTOS */
111109

112-
#if defined ( __GNUC__ ) && !defined (__CC_ARM) /* GNU Compiler */
110+
#if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) /* ARM Compiler V6 */
111+
#ifndef __weak
112+
#define __weak __attribute__((weak))
113+
#endif
114+
#ifndef __packed
115+
#define __packed __attribute__((packed))
116+
#endif
117+
#elif defined ( __GNUC__ ) && !defined (__CC_ARM) /* GNU Compiler */
113118
#ifndef __weak
114119
#define __weak __attribute__((weak))
115120
#endif /* __weak */
@@ -120,7 +125,14 @@ typedef enum
120125

121126

122127
/* Macro to get variable aligned on 4-bytes, for __ICCARM__ the directive "#pragma data_alignment=4" must be used instead */
123-
#if defined ( __GNUC__ ) && !defined (__CC_ARM) /* GNU Compiler */
128+
#if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) /* ARM Compiler V6 */
129+
#ifndef __ALIGN_BEGIN
130+
#define __ALIGN_BEGIN
131+
#endif
132+
#ifndef __ALIGN_END
133+
#define __ALIGN_END __attribute__ ((aligned (4)))
134+
#endif
135+
#elif defined ( __GNUC__ ) && !defined (__CC_ARM) /* GNU Compiler */
124136
#ifndef __ALIGN_END
125137
#define __ALIGN_END __attribute__ ((aligned (4)))
126138
#endif /* __ALIGN_END */
@@ -132,7 +144,7 @@ typedef enum
132144
#define __ALIGN_END
133145
#endif /* __ALIGN_END */
134146
#ifndef __ALIGN_BEGIN
135-
#if defined (__CC_ARM) /* ARM Compiler */
147+
#if defined (__CC_ARM) /* ARM Compiler V5*/
136148
#define __ALIGN_BEGIN __align(4)
137149
#elif defined (__ICCARM__) /* IAR Compiler */
138150
#define __ALIGN_BEGIN
@@ -143,9 +155,9 @@ typedef enum
143155
/**
144156
* @brief __NOINLINE definition
145157
*/
146-
#if defined ( __CC_ARM ) || defined ( __GNUC__ )
147-
/* ARM & GNUCompiler
148-
----------------
158+
#if defined ( __CC_ARM ) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) || defined ( __GNUC__ )
159+
/* ARM V4/V5 and V6 & GNU Compiler
160+
-------------------------------
149161
*/
150162
#define __NOINLINE __attribute__ ( (noinline) )
151163

system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_exti.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -278,20 +278,20 @@ typedef struct
278278
/** @defgroup EXTI_Private_Macros EXTI Private Macros
279279
* @{
280280
*/
281-
#define IS_EXTI_LINE(__LINE__) ((((__LINE__) & ~(EXTI_PROPERTY_MASK | EXTI_PIN_MASK)) == 0x00u) && \
282-
((((__LINE__) & EXTI_PROPERTY_MASK) == EXTI_DIRECT) || \
283-
(((__LINE__) & EXTI_PROPERTY_MASK) == EXTI_CONFIG) || \
284-
(((__LINE__) & EXTI_PROPERTY_MASK) == EXTI_GPIO)) && \
285-
(((__LINE__) & EXTI_PIN_MASK) < EXTI_LINE_NB))
281+
#define IS_EXTI_LINE(__EXTI_LINE__) ((((__EXTI_LINE__) & ~(EXTI_PROPERTY_MASK | EXTI_PIN_MASK)) == 0x00u) && \
282+
((((__EXTI_LINE__) & EXTI_PROPERTY_MASK) == EXTI_DIRECT) || \
283+
(((__EXTI_LINE__) & EXTI_PROPERTY_MASK) == EXTI_CONFIG) || \
284+
(((__EXTI_LINE__) & EXTI_PROPERTY_MASK) == EXTI_GPIO)) && \
285+
(((__EXTI_LINE__) & EXTI_PIN_MASK) < EXTI_LINE_NB))
286286

287-
#define IS_EXTI_MODE(__LINE__) ((((__LINE__) & EXTI_MODE_MASK) != 0x00u) && \
288-
(((__LINE__) & ~EXTI_MODE_MASK) == 0x00u))
287+
#define IS_EXTI_MODE(__EXTI_LINE__) ((((__EXTI_LINE__) & EXTI_MODE_MASK) != 0x00u) && \
288+
(((__EXTI_LINE__) & ~EXTI_MODE_MASK) == 0x00u))
289289

290-
#define IS_EXTI_TRIGGER(__LINE__) (((__LINE__) & ~EXTI_TRIGGER_MASK) == 0x00u)
290+
#define IS_EXTI_TRIGGER(__EXTI_LINE__) (((__EXTI_LINE__) & ~EXTI_TRIGGER_MASK) == 0x00u)
291291

292-
#define IS_EXTI_PENDING_EDGE(__LINE__) ((__LINE__) == EXTI_TRIGGER_RISING_FALLING)
292+
#define IS_EXTI_PENDING_EDGE(__EXTI_LINE__) ((__EXTI_LINE__) == EXTI_TRIGGER_RISING_FALLING)
293293

294-
#define IS_EXTI_CONFIG_LINE(__LINE__) (((__LINE__) & EXTI_CONFIG) != 0x00u)
294+
#define IS_EXTI_CONFIG_LINE(__EXTI_LINE__) (((__EXTI_LINE__) & EXTI_CONFIG) != 0x00u)
295295

296296
#if defined (GPIOE)
297297
#define IS_EXTI_GPIO_PORT(__PORT__) (((__PORT__) == EXTI_GPIOA) || \

system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2s.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ uint32_t HAL_I2S_GetError(I2S_HandleTypeDef *hi2s);
462462
*/
463463

464464
/** @brief Check whether the specified SPI flag is set or not.
465-
* @param __SR__ copy of I2S SR regsiter.
465+
* @param __SR__ copy of I2S SR register.
466466
* @param __FLAG__ specifies the flag to check.
467467
* This parameter can be one of the following values:
468468
* @arg I2S_FLAG_RXNE: Receive buffer not empty flag
@@ -477,7 +477,7 @@ uint32_t HAL_I2S_GetError(I2S_HandleTypeDef *hi2s);
477477
& ((__FLAG__) & I2S_FLAG_MASK)) == ((__FLAG__) & I2S_FLAG_MASK)) ? SET : RESET)
478478

479479
/** @brief Check whether the specified SPI Interrupt is set or not.
480-
* @param __CR2__ copy of I2S CR2 regsiter.
480+
* @param __CR2__ copy of I2S CR2 register.
481481
* @param __INTERRUPT__ specifies the SPI interrupt source to check.
482482
* This parameter can be one of the following values:
483483
* @arg I2S_IT_TXE: Tx buffer empty interrupt enable

system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_irda.h

Lines changed: 37 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ typedef struct
7676

7777
/**
7878
* @brief HAL IRDA State definition
79-
* @note HAL IRDA State value is a combination of 2 different substates: gState and RxState (see @ref IRDA_State_Definition).
79+
* @note HAL IRDA State value is a combination of 2 different substates:
80+
* gState and RxState (see @ref IRDA_State_Definition).
8081
* - gState contains IRDA state information related to global Handle management
8182
* and also information related to Tx operations.
8283
* gState value coding follow below described bitmap :
@@ -87,7 +88,7 @@ typedef struct
8788
* 11 : Error
8889
* b5 Peripheral initialization status
8990
* 0 : Reset (Peripheral not initialized)
90-
* 1 : Init done (Peripheral not initialized. HAL IRDA Init function already called)
91+
* 1 : Init done (Peripheral initialized. HAL IRDA Init function already called)
9192
* b4-b3 (not used)
9293
* xx : Should be set to 00
9394
* b2 Intrinsic process state
@@ -104,7 +105,7 @@ typedef struct
104105
* xx : Should be set to 00
105106
* b5 Peripheral initialization status
106107
* 0 : Reset (Peripheral not initialized)
107-
* 1 : Init done (Peripheral not initialized)
108+
* 1 : Init done (Peripheral initialized)
108109
* b4-b2 (not used)
109110
* xxx : Should be set to 000
110111
* b1 Rx state
@@ -245,7 +246,8 @@ typedef void (*pIRDA_CallbackTypeDef)(IRDA_HandleTypeDef *hirda); /*!< pointer
245246
Value is allowed for RxState only */
246247
#define HAL_IRDA_STATE_BUSY_TX_RX 0x00000023U /*!< Data Transmission and Reception process is ongoing
247248
Not to be used for neither gState nor RxState.
248-
Value is result of combination (Or) between gState and RxState values */
249+
Value is result of combination (Or) between
250+
gState and RxState values */
249251
#define HAL_IRDA_STATE_TIMEOUT 0x000000A0U /*!< Timeout state
250252
Value is allowed for gState only */
251253
#define HAL_IRDA_STATE_ERROR 0x000000E0U /*!< Error
@@ -257,15 +259,15 @@ typedef void (*pIRDA_CallbackTypeDef)(IRDA_HandleTypeDef *hirda); /*!< pointer
257259
/** @defgroup IRDA_Error_Definition IRDA Error Code Definition
258260
* @{
259261
*/
260-
#define HAL_IRDA_ERROR_NONE ((uint32_t)0x00000000U) /*!< No error */
261-
#define HAL_IRDA_ERROR_PE ((uint32_t)0x00000001U) /*!< Parity error */
262-
#define HAL_IRDA_ERROR_NE ((uint32_t)0x00000002U) /*!< Noise error */
263-
#define HAL_IRDA_ERROR_FE ((uint32_t)0x00000004U) /*!< frame error */
264-
#define HAL_IRDA_ERROR_ORE ((uint32_t)0x00000008U) /*!< Overrun error */
265-
#define HAL_IRDA_ERROR_DMA ((uint32_t)0x00000010U) /*!< DMA transfer error */
266-
#define HAL_IRDA_ERROR_BUSY ((uint32_t)0x00000020U) /*!< Busy Error */
262+
#define HAL_IRDA_ERROR_NONE (0x00000000U) /*!< No error */
263+
#define HAL_IRDA_ERROR_PE (0x00000001U) /*!< Parity error */
264+
#define HAL_IRDA_ERROR_NE (0x00000002U) /*!< Noise error */
265+
#define HAL_IRDA_ERROR_FE (0x00000004U) /*!< frame error */
266+
#define HAL_IRDA_ERROR_ORE (0x00000008U) /*!< Overrun error */
267+
#define HAL_IRDA_ERROR_DMA (0x00000010U) /*!< DMA transfer error */
268+
#define HAL_IRDA_ERROR_BUSY (0x00000020U) /*!< Busy Error */
267269
#if (USE_HAL_IRDA_REGISTER_CALLBACKS == 1)
268-
#define HAL_IRDA_ERROR_INVALID_CALLBACK ((uint32_t)0x00000040U) /*!< Invalid Callback error */
270+
#define HAL_IRDA_ERROR_INVALID_CALLBACK (0x00000040U) /*!< Invalid Callback error */
269271
#endif /* USE_HAL_IRDA_REGISTER_CALLBACKS */
270272
/**
271273
* @}
@@ -549,9 +551,14 @@ typedef void (*pIRDA_CallbackTypeDef)(IRDA_HandleTypeDef *hirda); /*!< pointer
549551
* @arg @ref IRDA_IT_ERR Error interrupt(Frame error, noise error, overrun error)
550552
* @retval None
551553
*/
552-
#define __HAL_IRDA_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 1U)? ((__HANDLE__)->Instance->CR1 |= ((uint32_t)1U << ((__INTERRUPT__) & IRDA_IT_MASK))): \
553-
((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 2U)? ((__HANDLE__)->Instance->CR2 |= ((uint32_t)1U << ((__INTERRUPT__) & IRDA_IT_MASK))): \
554-
((__HANDLE__)->Instance->CR3 |= ((uint32_t)1U << ((__INTERRUPT__) & IRDA_IT_MASK))))
554+
#define __HAL_IRDA_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 1U)? \
555+
((__HANDLE__)->Instance->CR1 |= (1U << \
556+
((__INTERRUPT__) & IRDA_IT_MASK))):\
557+
((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 2U)? \
558+
((__HANDLE__)->Instance->CR2 |= (1U << \
559+
((__INTERRUPT__) & IRDA_IT_MASK))):\
560+
((__HANDLE__)->Instance->CR3 |= (1U << \
561+
((__INTERRUPT__) & IRDA_IT_MASK))))
555562

556563
/** @brief Disable the specified IRDA interrupt.
557564
* @param __HANDLE__ specifies the IRDA Handle.
@@ -565,10 +572,14 @@ typedef void (*pIRDA_CallbackTypeDef)(IRDA_HandleTypeDef *hirda); /*!< pointer
565572
* @arg @ref IRDA_IT_ERR Error interrupt(Frame error, noise error, overrun error)
566573
* @retval None
567574
*/
568-
#define __HAL_IRDA_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 1U)? ((__HANDLE__)->Instance->CR1 &= ~ ((uint32_t)1U << ((__INTERRUPT__) & IRDA_IT_MASK))): \
569-
((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 2U)? ((__HANDLE__)->Instance->CR2 &= ~ ((uint32_t)1U << ((__INTERRUPT__) & IRDA_IT_MASK))): \
570-
((__HANDLE__)->Instance->CR3 &= ~ ((uint32_t)1U << ((__INTERRUPT__) & IRDA_IT_MASK))))
571-
575+
#define __HAL_IRDA_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 1U)? \
576+
((__HANDLE__)->Instance->CR1 &= ~ (1U << \
577+
((__INTERRUPT__) & IRDA_IT_MASK))): \
578+
((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 2U)? \
579+
((__HANDLE__)->Instance->CR2 &= ~ (1U << \
580+
((__INTERRUPT__) & IRDA_IT_MASK))): \
581+
((__HANDLE__)->Instance->CR3 &= ~ (1U << \
582+
((__INTERRUPT__) & IRDA_IT_MASK))))
572583

573584
/** @brief Check whether the specified IRDA interrupt has occurred or not.
574585
* @param __HANDLE__ specifies the IRDA Handle.
@@ -584,8 +595,8 @@ typedef void (*pIRDA_CallbackTypeDef)(IRDA_HandleTypeDef *hirda); /*!< pointer
584595
* @arg @ref IRDA_IT_PE Parity Error interrupt
585596
* @retval The new state of __IT__ (SET or RESET).
586597
*/
587-
#define __HAL_IRDA_GET_IT(__HANDLE__, __INTERRUPT__) ((((__HANDLE__)->Instance->ISR\
588-
& (0x01U << (((__INTERRUPT__) & IRDA_ISR_MASK)>> IRDA_ISR_POS))) != 0U) ? SET : RESET)
598+
#define __HAL_IRDA_GET_IT(__HANDLE__, __INTERRUPT__) \
599+
((((__HANDLE__)->Instance->ISR& (0x01U << (((__INTERRUPT__) & IRDA_ISR_MASK)>>IRDA_ISR_POS))) != 0U) ? SET : RESET)
589600

590601
/** @brief Check whether the specified IRDA interrupt source is enabled or not.
591602
* @param __HANDLE__ specifies the IRDA Handle.
@@ -599,9 +610,10 @@ typedef void (*pIRDA_CallbackTypeDef)(IRDA_HandleTypeDef *hirda); /*!< pointer
599610
* @arg @ref IRDA_IT_PE Parity Error interrupt
600611
* @retval The new state of __IT__ (SET or RESET).
601612
*/
602-
#define __HAL_IRDA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) ((((((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 0x01U)? (__HANDLE__)->Instance->CR1 : \
603-
(((((__INTERRUPT__) & IRDA_CR_MASK) >> IRDA_CR_POS) == 0x02U)? (__HANDLE__)->Instance->CR2 : \
604-
(__HANDLE__)->Instance->CR3)) & ((uint32_t)0x01U << (((uint16_t)(__INTERRUPT__)) & IRDA_IT_MASK))) != 0U) ? SET : RESET)
613+
#define __HAL_IRDA_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) \
614+
((((((((__INTERRUPT__) & IRDA_CR_MASK) >>IRDA_CR_POS) == 0x01U)? (__HANDLE__)->Instance->CR1 :(((((__INTERRUPT__) \
615+
& IRDA_CR_MASK) >> IRDA_CR_POS)== 0x02U)? (__HANDLE__)->Instance->CR2 :(__HANDLE__)->Instance->CR3)) \
616+
& (0x01U <<(((uint16_t)(__INTERRUPT__)) & IRDA_IT_MASK))) != 0U) ? SET : RESET)
605617

606618
/** @brief Clear the specified IRDA ISR flag, in setting the proper ICR register flag.
607619
* @param __HANDLE__ specifies the IRDA Handle.
@@ -833,7 +845,7 @@ uint32_t HAL_IRDA_GetError(IRDA_HandleTypeDef *hirda);
833845
/**
834846
* @}
835847
*/
836-
#endif /* USART_IRDA_SUPPORT */
848+
#endif /* USART_IRDA_SUPPORT */
837849

838850
#ifdef __cplusplus
839851
}

system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_irda_ex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ extern "C" {
5353
#define IRDA_WORDLENGTH_9B USART_CR1_M0 /*!< 9-bit long frame */
5454
#elif defined(USART_CR1_M)
5555
#define IRDA_WORDLENGTH_8B (0x00000000U) /*!< 8-bit long frame */
56-
#define IRDA_WORDLENGTH_9B ((uint32_t)USART_CR1_M) /*!< 9-bit long frame */
56+
#define IRDA_WORDLENGTH_9B USART_CR1_M /*!< 9-bit long frame */
5757
#endif
5858
/**
5959
* @}

system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,14 +1987,14 @@ typedef struct
19871987
#define __HAL_RCC_CRS_FREQ_ERROR_COUNTER_DISABLE() CLEAR_BIT(CRS->CR, CRS_CR_CEN)
19881988

19891989
/**
1990-
* @brief Enable the automatic hardware adjustement of TRIM bits.
1990+
* @brief Enable the automatic hardware adjustment of TRIM bits.
19911991
* @note When the AUTOTRIMEN bit is set the CRS_CFGR register becomes write-protected.
19921992
* @retval None
19931993
*/
19941994
#define __HAL_RCC_CRS_AUTOMATIC_CALIB_ENABLE() SET_BIT(CRS->CR, CRS_CR_AUTOTRIMEN)
19951995

19961996
/**
1997-
* @brief Disable the automatic hardware adjustement of TRIM bits.
1997+
* @brief Disable the automatic hardware adjustment of TRIM bits.
19981998
* @retval None
19991999
*/
20002000
#define __HAL_RCC_CRS_AUTOMATIC_CALIB_DISABLE() CLEAR_BIT(CRS->CR, CRS_CR_AUTOTRIMEN)

system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rtc.h

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,11 @@ typedef struct
106106
with [1 Sec / SecondFraction +1] granularity.
107107
This field will be used only by HAL_RTC_GetTime function */
108108

109-
uint32_t DayLightSaving; /*!< Specifies RTC_DayLightSaveOperation: the value of hour adjustment.
110-
This parameter can be a value of @ref RTC_DayLightSaving_Definitions */
109+
uint32_t DayLightSaving; /*!< This interface is deprecated. To manage Daylight
110+
Saving Time, please use HAL_RTC_DST_xxx functions */
111111

112-
uint32_t StoreOperation; /*!< Specifies RTC_StoreOperation value to be written in the BCK bit
113-
in CR register to store the operation.
114-
This parameter can be a value of @ref RTC_StoreOperation_Definitions */
112+
uint32_t StoreOperation; /*!< This interface is deprecated. To manage Daylight
113+
Saving Time, please use HAL_RTC_DST_xxx functions */
115114
} RTC_TimeTypeDef;
116115

117116
/**
@@ -674,6 +673,14 @@ HAL_StatusTypeDef HAL_RTC_SetTime(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTim
674673
HAL_StatusTypeDef HAL_RTC_GetTime(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format);
675674
HAL_StatusTypeDef HAL_RTC_SetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format);
676675
HAL_StatusTypeDef HAL_RTC_GetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format);
676+
677+
678+
/* RTC Daylight Saving Time functions *****************************************/
679+
void HAL_RTC_DST_Add1Hour(RTC_HandleTypeDef *hrtc);
680+
void HAL_RTC_DST_Sub1Hour(RTC_HandleTypeDef *hrtc);
681+
void HAL_RTC_DST_SetStoreOperation(RTC_HandleTypeDef *hrtc);
682+
void HAL_RTC_DST_ClearStoreOperation(RTC_HandleTypeDef *hrtc);
683+
uint32_t HAL_RTC_DST_ReadStoreOperation(RTC_HandleTypeDef *hrtc);
677684
/**
678685
* @}
679686
*/

0 commit comments

Comments
 (0)