37 volatile uint32_t msTickCount;
65 stat = SysTick_Config( ticks );
102 curTicks = msTickCount;
103 while( ( msTickCount - curTicks ) < ms ) {
121 EMU_EM4Init_TypeDef em4Init = EMU_EM4INIT_DEFAULT;
123 em4Init.pinRetentionMode = emuPinRetentionEm4Exit;
124 EMU_EM4Init( &em4Init );
Clock management unit (CMU) API.
void EMU_EnterEM4(void)
Enter energy mode 4 (EM4).
void UTIL_delay(uint32_t ms)
Delays number of msTick Systicks (1 ms)
#define BOARD_BUTTON_LEFT_PIN
void GPIO_EM4EnablePinWakeup(uint32_t pinmask, uint32_t polaritymask)
Enable GPIO pin wake-up from EM4. When the function exits, EM4 mode can be safely entered...
#define _GPIO_EM4WUEN_EM4WUEN_SHIFT
void GPIO_PinModeSet(GPIO_Port_TypeDef port, unsigned int pin, GPIO_Mode_TypeDef mode, unsigned int out)
Set the mode for a GPIO pin.
__STATIC_INLINE void EMU_EnterEM1(void)
Enter energy mode 1 (EM1).
General Purpose IO (GPIO) peripheral API.
uint32_t UTIL_init(void)
Sets up the SysTick timer for 1ms interrupts and initializes and starts the RTC timer.
Utility Functions for the Thunderboard Sense.
Energy management unit (EMU) peripheral API.
void SysTick_Handler(void)
Interrupt Service Routine for system tick counter.
#define BOARD_BUTTON_PORT
uint32_t CMU_ClockFreqGet(CMU_Clock_TypeDef clock)
Get clock frequency for a clock point.
BOARD module header file.
void UTIL_shutdown(void)
Enter lowest power shutdown mode, EM4S.