EFM32 Gecko Software Documentation  efm32g-doc-4.2.1
rtcdrv.h
Go to the documentation of this file.
1 /***************************************************************************/
18 #ifndef __RTCDRV_H
19 #define __RTCDRV_H
20 
21 #include "em_device.h"
22 #include "em_cmu.h"
23 
24 /***************************************************************************/
29 /***************************************************************************/
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 void RTCDRV_Delay(uint32_t msec, bool useEM2);
39 void RTCDRV_Trigger(uint32_t msec, void (*cb)(void));
40 void RTCDRV_Setup(CMU_Select_TypeDef lfaClockSrc, CMU_ClkDiv_TypeDef rtcPrescale);
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
49 #endif
50 
Clock management unit (CMU) API.
CMU_Select_TypeDef
Definition: em_cmu.h:950
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
uint32_t CMU_ClkDiv_TypeDef
Definition: em_cmu.h:166
Ecode_t RTCDRV_Delay(uint32_t ms)
Millisecond delay function.
Definition: rtcdriver.c:266