EFM32 Leopard Gecko Software Documentation  efm32lg-doc-4.2.1
ustimer.h
Go to the documentation of this file.
1 /**************************************************************************/
15 #ifndef __SILICON_LABS_USTIMER_H
16 #define __SILICON_LABS_USTIMER_H
17 
18 #include <stdint.h>
19 #include "ecode.h"
20 #include "ustimer_config.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 /***************************************************************************/
31 /***************************************************************************/
38 #define ECODE_EMDRV_USTIMER_OK ( ECODE_OK )
39 
40 Ecode_t USTIMER_Init( void );
41 Ecode_t USTIMER_DeInit( void );
42 Ecode_t USTIMER_Delay( uint32_t usec );
43 Ecode_t USTIMER_DelayIntSafe( uint32_t usec );
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
52 #endif
Energy Aware drivers error code definitions.
Ecode_t USTIMER_Init(void)
Activate and initialize the hardware timer used to pace the 1 microsecond delay functions.
Definition: ustimer.c:86
Ecode_t USTIMER_DeInit(void)
Deinitialize USTIMER driver.
Definition: ustimer.c:137
Ecode_t USTIMER_DelayIntSafe(uint32_t usec)
Delay a given number of microseconds.
Definition: ustimer.c:203
uint32_t Ecode_t
Typedef for API function errorcode return values.
Definition: ecode.h:31
Ecode_t USTIMER_Delay(uint32_t usec)
Delay a given number of microseconds.
Definition: ustimer.c:168