Master Thesis  V1.0
Research and Design of Sensor Node for NMSD Treatment
timer.c File Reference

millis and micros functionality More...

#include <timer.h>
#include "em_rtc.h"
#include "rtcdriver.h"
#include "rtcdrv_config.h"
#include <stdint.h>
#include <stdbool.h>
#include "stdio.h"
Include dependency graph for timer.c:

Go to the source code of this file.

Functions

uint32_t millis (void)
 Millis Arduino like functionality for EFM32HG. More...
 
uint32_t micros (void)
 Micros Arduino like functionality for EFM32HG. More...
 

Detailed Description

millis and micros functionality

Version
1.0
Author
Jona Cappelle

Definition in file timer.c.

Function Documentation

◆ micros()

uint32_t micros ( void  )

Micros Arduino like functionality for EFM32HG.

Returns
micros

Definition at line 47 of file timer.c.

48 {
49  return 1000 * RTCDRV_TicksToMsec(RTCDRV_GetWallClockTicks64());
50 }

◆ millis()

uint32_t millis ( void  )

Millis Arduino like functionality for EFM32HG.

Returns
millis

Definition at line 33 of file timer.c.

34 {
35  return RTCDRV_TicksToMsec(RTCDRV_GetWallClockTicks64());
36 }

Referenced by ICM_20948_min_max_mag().