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

millis and micros functionality More...

#include <stdint.h>
#include <stdbool.h>
#include "stdio.h"
Include dependency graph for timer.h:
This graph shows which files directly or indirectly include this file:

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.h.

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().