EFR32 Blue Gecko 1 Software Documentation  efr32bg1-doc-5.1.2
util_sleep.c File Reference

Detailed Description

Utility Functions for the Thunderboard Sense.

Version
5.1.1

License

Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com

This file is licensed under the Silicon Labs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.

Definition in file util_sleep.c.

#include "thunderboard/util.h"
#include "rtcdriver.h"
#include "em_emu.h"

Go to the source code of this file.

Functions

static void rtcCb (RTCDRV_TimerID_t id, void *user)
 RTC callback function, called when the timer expired. More...
 
void SysTick_Handler (void)
 Interrupt Service Routine for system tick counter. More...
 
void UTIL_sleep (uint32_t ms)
 Delays number of milliseconds in sleep mode (EM2) using the RTC. More...
 
uint32_t UTIL_sleepInit (void)
 Sets up the RTC timer used for sleep functions. More...
 
uint32_t UTIL_waitForEvent (uint32_t timeout)
 Delays number of milliseconds in sleep mode (EM2) using the RTC but but returns if an event wakes up the MCU. More...
 

Variables

static volatile bool rtcComplete
 
static RTCDRV_TimerID_t rtcId