Home
last modified time | relevance | path

Searched refs:hrtc (Results 1 – 16 of 16) sorted by relevance

/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L4A6RG/Drivers/STM32L4xx_HAL_Driver/Src/
Dstm32l4xx_hal_rtc_ex.c203 HAL_StatusTypeDef HAL_RTCEx_SetTimeStamp(RTC_HandleTypeDef *hrtc, uint32_t TimeStampEdge, uint32_t … in HAL_RTCEx_SetTimeStamp() argument
212 __HAL_LOCK(hrtc); in HAL_RTCEx_SetTimeStamp()
214 hrtc->State = HAL_RTC_STATE_BUSY; in HAL_RTCEx_SetTimeStamp()
217 tmpreg = (uint32_t)(hrtc->Instance->CR & (uint32_t)~(RTC_CR_TSEDGE | RTC_CR_TSE)); in HAL_RTCEx_SetTimeStamp()
222 __HAL_RTC_WRITEPROTECTION_DISABLE(hrtc); in HAL_RTCEx_SetTimeStamp()
225 hrtc->Instance->CR = (uint32_t)tmpreg; in HAL_RTCEx_SetTimeStamp()
227 __HAL_RTC_TIMESTAMP_ENABLE(hrtc); in HAL_RTCEx_SetTimeStamp()
230 __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); in HAL_RTCEx_SetTimeStamp()
233 hrtc->State = HAL_RTC_STATE_READY; in HAL_RTCEx_SetTimeStamp()
236 __HAL_UNLOCK(hrtc); in HAL_RTCEx_SetTimeStamp()
[all …]
Dstm32l4xx_hal_rtc.c184 HAL_StatusTypeDef HAL_RTC_Init(RTC_HandleTypeDef *hrtc) in HAL_RTC_Init() argument
187 if(hrtc == NULL) in HAL_RTC_Init()
193 assert_param(IS_RTC_ALL_INSTANCE(hrtc->Instance)); in HAL_RTC_Init()
194 assert_param(IS_RTC_HOUR_FORMAT(hrtc->Init.HourFormat)); in HAL_RTC_Init()
195 assert_param(IS_RTC_ASYNCH_PREDIV(hrtc->Init.AsynchPrediv)); in HAL_RTC_Init()
196 assert_param(IS_RTC_SYNCH_PREDIV(hrtc->Init.SynchPrediv)); in HAL_RTC_Init()
197 assert_param(IS_RTC_OUTPUT(hrtc->Init.OutPut)); in HAL_RTC_Init()
198 assert_param(IS_RTC_OUTPUT_REMAP(hrtc->Init.OutPutRemap)); in HAL_RTC_Init()
199 assert_param(IS_RTC_OUTPUT_POL(hrtc->Init.OutPutPolarity)); in HAL_RTC_Init()
200 assert_param(IS_RTC_OUTPUT_TYPE(hrtc->Init.OutPutType)); in HAL_RTC_Init()
[all …]
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L476RG/Drivers/STM32L4xx_HAL_Driver/Src/
Dstm32l4xx_hal_rtc_ex.c203 HAL_StatusTypeDef HAL_RTCEx_SetTimeStamp(RTC_HandleTypeDef *hrtc, uint32_t TimeStampEdge, uint32_t … in HAL_RTCEx_SetTimeStamp() argument
212 __HAL_LOCK(hrtc); in HAL_RTCEx_SetTimeStamp()
214 hrtc->State = HAL_RTC_STATE_BUSY; in HAL_RTCEx_SetTimeStamp()
217 tmpreg = (uint32_t)(hrtc->Instance->CR & (uint32_t)~(RTC_CR_TSEDGE | RTC_CR_TSE)); in HAL_RTCEx_SetTimeStamp()
222 __HAL_RTC_WRITEPROTECTION_DISABLE(hrtc); in HAL_RTCEx_SetTimeStamp()
225 hrtc->Instance->CR = (uint32_t)tmpreg; in HAL_RTCEx_SetTimeStamp()
227 __HAL_RTC_TIMESTAMP_ENABLE(hrtc); in HAL_RTCEx_SetTimeStamp()
230 __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); in HAL_RTCEx_SetTimeStamp()
233 hrtc->State = HAL_RTC_STATE_READY; in HAL_RTCEx_SetTimeStamp()
236 __HAL_UNLOCK(hrtc); in HAL_RTCEx_SetTimeStamp()
[all …]
Dstm32l4xx_hal_rtc.c184 HAL_StatusTypeDef HAL_RTC_Init(RTC_HandleTypeDef *hrtc) in HAL_RTC_Init() argument
187 if(hrtc == NULL) in HAL_RTC_Init()
193 assert_param(IS_RTC_ALL_INSTANCE(hrtc->Instance)); in HAL_RTC_Init()
194 assert_param(IS_RTC_HOUR_FORMAT(hrtc->Init.HourFormat)); in HAL_RTC_Init()
195 assert_param(IS_RTC_ASYNCH_PREDIV(hrtc->Init.AsynchPrediv)); in HAL_RTC_Init()
196 assert_param(IS_RTC_SYNCH_PREDIV(hrtc->Init.SynchPrediv)); in HAL_RTC_Init()
197 assert_param(IS_RTC_OUTPUT(hrtc->Init.OutPut)); in HAL_RTC_Init()
198 assert_param(IS_RTC_OUTPUT_REMAP(hrtc->Init.OutPutRemap)); in HAL_RTC_Init()
199 assert_param(IS_RTC_OUTPUT_POL(hrtc->Init.OutPutPolarity)); in HAL_RTC_Init()
200 assert_param(IS_RTC_OUTPUT_TYPE(hrtc->Init.OutPutType)); in HAL_RTC_Init()
[all …]
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L476RG/Drivers/STM32L4xx_HAL_Driver/Inc/
Dstm32l4xx_hal_rtc_ex.h898 HAL_StatusTypeDef HAL_RTCEx_SetTimeStamp(RTC_HandleTypeDef *hrtc, uint32_t TimeStampEdge, uint32_t …
899 HAL_StatusTypeDef HAL_RTCEx_SetTimeStamp_IT(RTC_HandleTypeDef *hrtc, uint32_t TimeStampEdge, uint32…
900 HAL_StatusTypeDef HAL_RTCEx_DeactivateTimeStamp(RTC_HandleTypeDef *hrtc);
901 HAL_StatusTypeDef HAL_RTCEx_SetInternalTimeStamp(RTC_HandleTypeDef *hrtc);
902 HAL_StatusTypeDef HAL_RTCEx_DeactivateInternalTimeStamp(RTC_HandleTypeDef *hrtc);
903 HAL_StatusTypeDef HAL_RTCEx_GetTimeStamp(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTimeStamp, RTC_…
905 HAL_StatusTypeDef HAL_RTCEx_SetTamper(RTC_HandleTypeDef *hrtc, RTC_TamperTypeDef* sTamper);
906 HAL_StatusTypeDef HAL_RTCEx_SetTamper_IT(RTC_HandleTypeDef *hrtc, RTC_TamperTypeDef* sTamper);
907 HAL_StatusTypeDef HAL_RTCEx_DeactivateTamper(RTC_HandleTypeDef *hrtc, uint32_t Tamper);
908 void HAL_RTCEx_TamperTimeStampIRQHandler(RTC_HandleTypeDef *hrtc);
[all …]
Dstm32l4xx_hal_rtc.h654 HAL_StatusTypeDef HAL_RTC_Init(RTC_HandleTypeDef *hrtc);
655 HAL_StatusTypeDef HAL_RTC_DeInit(RTC_HandleTypeDef *hrtc);
656 void HAL_RTC_MspInit(RTC_HandleTypeDef *hrtc);
657 void HAL_RTC_MspDeInit(RTC_HandleTypeDef *hrtc);
666 HAL_StatusTypeDef HAL_RTC_SetTime(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format);
667 HAL_StatusTypeDef HAL_RTC_GetTime(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format);
668 HAL_StatusTypeDef HAL_RTC_SetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format);
669 HAL_StatusTypeDef HAL_RTC_GetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format);
678 HAL_StatusTypeDef HAL_RTC_SetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Form…
679 HAL_StatusTypeDef HAL_RTC_SetAlarm_IT(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t F…
[all …]
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L4A6RG/Drivers/STM32L4xx_HAL_Driver/Inc/
Dstm32l4xx_hal_rtc_ex.h898 HAL_StatusTypeDef HAL_RTCEx_SetTimeStamp(RTC_HandleTypeDef *hrtc, uint32_t TimeStampEdge, uint32_t …
899 HAL_StatusTypeDef HAL_RTCEx_SetTimeStamp_IT(RTC_HandleTypeDef *hrtc, uint32_t TimeStampEdge, uint32…
900 HAL_StatusTypeDef HAL_RTCEx_DeactivateTimeStamp(RTC_HandleTypeDef *hrtc);
901 HAL_StatusTypeDef HAL_RTCEx_SetInternalTimeStamp(RTC_HandleTypeDef *hrtc);
902 HAL_StatusTypeDef HAL_RTCEx_DeactivateInternalTimeStamp(RTC_HandleTypeDef *hrtc);
903 HAL_StatusTypeDef HAL_RTCEx_GetTimeStamp(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTimeStamp, RTC_…
905 HAL_StatusTypeDef HAL_RTCEx_SetTamper(RTC_HandleTypeDef *hrtc, RTC_TamperTypeDef* sTamper);
906 HAL_StatusTypeDef HAL_RTCEx_SetTamper_IT(RTC_HandleTypeDef *hrtc, RTC_TamperTypeDef* sTamper);
907 HAL_StatusTypeDef HAL_RTCEx_DeactivateTamper(RTC_HandleTypeDef *hrtc, uint32_t Tamper);
908 void HAL_RTCEx_TamperTimeStampIRQHandler(RTC_HandleTypeDef *hrtc);
[all …]
Dstm32l4xx_hal_rtc.h654 HAL_StatusTypeDef HAL_RTC_Init(RTC_HandleTypeDef *hrtc);
655 HAL_StatusTypeDef HAL_RTC_DeInit(RTC_HandleTypeDef *hrtc);
656 void HAL_RTC_MspInit(RTC_HandleTypeDef *hrtc);
657 void HAL_RTC_MspDeInit(RTC_HandleTypeDef *hrtc);
666 HAL_StatusTypeDef HAL_RTC_SetTime(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format);
667 HAL_StatusTypeDef HAL_RTC_GetTime(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format);
668 HAL_StatusTypeDef HAL_RTC_SetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format);
669 HAL_StatusTypeDef HAL_RTC_GetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format);
678 HAL_StatusTypeDef HAL_RTC_SetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Form…
679 HAL_StatusTypeDef HAL_RTC_SetAlarm_IT(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t F…
[all …]
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L4A6RG/Src/
Dmain.c66 RTC_HandleTypeDef hrtc; variable
258 hrtc.Instance = RTC; in MX_RTC_Init()
259 if(HAL_RTCEx_BKUPRead(&hrtc, RTC_BKP_DR0) != 0x32F2){ in MX_RTC_Init()
260 hrtc.Init.HourFormat = RTC_HOURFORMAT_24; in MX_RTC_Init()
261 hrtc.Init.AsynchPrediv = 127; in MX_RTC_Init()
262 hrtc.Init.SynchPrediv = 255; in MX_RTC_Init()
263 hrtc.Init.OutPut = RTC_OUTPUT_DISABLE; in MX_RTC_Init()
264 hrtc.Init.OutPutRemap = RTC_OUTPUT_REMAP_NONE; in MX_RTC_Init()
265 hrtc.Init.OutPutPolarity = RTC_OUTPUT_POLARITY_HIGH; in MX_RTC_Init()
266 hrtc.Init.OutPutType = RTC_OUTPUT_TYPE_OPENDRAIN; in MX_RTC_Init()
[all …]
Dstm32l4xx_hal_msp.c125 void HAL_RTC_MspInit(RTC_HandleTypeDef* hrtc) in HAL_RTC_MspInit() argument
128 if(hrtc->Instance==RTC) in HAL_RTC_MspInit()
142 void HAL_RTC_MspDeInit(RTC_HandleTypeDef* hrtc) in HAL_RTC_MspDeInit() argument
145 if(hrtc->Instance==RTC) in HAL_RTC_MspDeInit()
Dusbd_cdc_if.c114 extern RTC_HandleTypeDef hrtc;
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/L476RG/Src/
Dmain.c66 RTC_HandleTypeDef hrtc; variable
265 hrtc.Instance = RTC; in MX_RTC_Init()
266 if(HAL_RTCEx_BKUPRead(&hrtc, RTC_BKP_DR0) != 0x32F2){ in MX_RTC_Init()
267 hrtc.Init.HourFormat = RTC_HOURFORMAT_24; in MX_RTC_Init()
268 hrtc.Init.AsynchPrediv = 127; in MX_RTC_Init()
269 hrtc.Init.SynchPrediv = 255; in MX_RTC_Init()
270 hrtc.Init.OutPut = RTC_OUTPUT_DISABLE; in MX_RTC_Init()
271 hrtc.Init.OutPutRemap = RTC_OUTPUT_REMAP_NONE; in MX_RTC_Init()
272 hrtc.Init.OutPutPolarity = RTC_OUTPUT_POLARITY_HIGH; in MX_RTC_Init()
273 hrtc.Init.OutPutType = RTC_OUTPUT_TYPE_OPENDRAIN; in MX_RTC_Init()
[all …]
Dstm32l4xx_hal_msp.c125 void HAL_RTC_MspInit(RTC_HandleTypeDef* hrtc) in HAL_RTC_MspInit() argument
128 if(hrtc->Instance==RTC) in HAL_RTC_MspInit()
142 void HAL_RTC_MspDeInit(RTC_HandleTypeDef* hrtc) in HAL_RTC_MspDeInit() argument
145 if(hrtc->Instance==RTC) in HAL_RTC_MspDeInit()
Dusbd_cdc_if.c114 extern RTC_HandleTypeDef hrtc;
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/Shared/TPMDevice/src/
DStmUtil.c10 extern RTC_HandleTypeDef hrtc;
75 HAL_RTC_GetTime(&hrtc, &time, RTC_FORMAT_BIN); in GetLogStamp()
76 HAL_RTC_GetDate(&hrtc, &date, RTC_FORMAT_BIN); in GetLogStamp()
107 HAL_RTC_SetTime(&hrtc, &time, RTC_FORMAT_BIN); in SetRealTimeClock()
108 HAL_RTC_SetDate(&hrtc, &date, RTC_FORMAT_BIN); in SetRealTimeClock()
/external/ms-tpm-20-ref/Samples/Nucleo-TPM/Shared/
Dsyscalls.c44 extern RTC_HandleTypeDef hrtc;
79 if((HAL_RTC_GetTime(&hrtc, &time, RTC_FORMAT_BIN) != HAL_OK) || in _gettimeofday()
80 (HAL_RTC_GetDate(&hrtc, &date, RTC_FORMAT_BIN) != HAL_OK)) in _gettimeofday()
244 if((HAL_RTC_GetTime(&hrtc, &time, RTC_FORMAT_BIN) != HAL_OK) || in _times()
245 (HAL_RTC_GetDate(&hrtc, &date, RTC_FORMAT_BIN) != HAL_OK)) in _times()