Docs

You are here:
PWR module

Macros

#define CORE_SetPowerMode(mode)   CORE_PORT_SetPowerMode(mode)
 
#define CORE_GetPowerMode()   CORE_PORT_GetPowerMode()
 
#define CORE_RefreshPowerMode()   CORE_PORT_RefreshPowerMode()
 

Detailed Description

Introduction.

This module handles power mode switching.

TODO!

Macro Definition Documentation

#define CORE_GetPowerMode ( )    CORE_PORT_GetPowerMode()

Gets processor power mode

#define CORE_RefreshPowerMode ( )    CORE_PORT_RefreshPowerMode()

Refreshes processor power mode

#define CORE_SetPowerMode (   mode)    CORE_PORT_SetPowerMode(mode)

Default power mode for the port. This usually maps to ACTIVE mode. Check port documentation for details. The core can be waken up just by reset or any other event with this same result. After wake-up the program starts from the beginning. Sets processor power mode This function should never be called from an interrupt!

Parameters
modepower mode that we want to set
Returns
set mode or -1 if this operation was not possible
Go to Top