Master Thesis
V1.0
Research and Design of Sensor Node for NMSD Treatment
timer.c
Go to the documentation of this file.
1
/***************************************************************************/
8
/*
9
* timer.c
10
*
11
* Created on: Feb 25, 2020
12
* Author: jonac
13
*/
14
15
#include <
timer.h
>
16
#include "em_rtc.h"
17
#include "rtcdriver.h"
18
#include "
rtcdrv_config.h
"
// voor millis(); config file
19
20
/* Needed to use uintx_t */
21
#include <stdint.h>
22
#include <stdbool.h>
23
#include "stdio.h"
24
25
/**************************************************************************/
33
uint32_t
millis
(
void
)
34
{
35
return
RTCDRV_TicksToMsec(RTCDRV_GetWallClockTicks64());
36
}
37
38
39
/**************************************************************************/
47
uint32_t
micros
(
void
)
48
{
49
return
1000 * RTCDRV_TicksToMsec(RTCDRV_GetWallClockTicks64());
50
}
rtcdrv_config.h
RTC timer config file.
millis
uint32_t millis(void)
Millis Arduino like functionality for EFM32HG.
Definition:
timer.c:33
timer.h
millis and micros functionality
micros
uint32_t micros(void)
Micros Arduino like functionality for EFM32HG.
Definition:
timer.c:47
delay
timer.c
Generated by
1.8.16