HALFRED
0.4.0
Main Page
Modules
Files
Index
trunk
src
hal
inc
hal_pwr.h
Go to the documentation of this file.
1
10
#ifndef HAL_PWR_H
11
#define HAL_PWR_H
12
13
#include <stdint.h>
14
#include "hal_config.h"
15
#include "
hal_defs.h
"
16
26
27
// -----------------------------------------------------------------------------
28
// PUBLIC TYPEDEFS
29
// -----------------------------------------------------------------------------
30
31
//typedef enum {
32
// /**
33
// * Default power mode for the port. This usually maps to ACTIVE mode.
34
// * Check port documentation for details.
35
// */
36
// HAL_CORE_POWER_MODE_DEFAULT = 0,
37
// /**
38
// *
39
// */
40
// HAL_CORE_POWER_MODE_ACTIVE,
41
// /**
42
// *
43
// */
44
// HAL_CORE_POWER_MODE_LOW_POWER,
45
// /**
46
// *
47
// */
48
// HAL_CORE_POWER_MODE_SLEEP,
49
// /**
50
// *
51
// */
52
// HAL_CORE_POWER_MODE_HIBERNATE,
53
// /**
54
// * The core can be waken up just by reset or any other event
55
// * with this same result. After wake-up the program starts from
56
// * the beginning.
57
// */
58
// HAL_CORE_POWER_MODE_STOP
59
//} HAL_CORE_POWER_MODES;
60
61
// -----------------------------------------------------------------------------
62
// PUBLIC API
63
// -----------------------------------------------------------------------------
64
72
#define CORE_SetPowerMode(mode) CORE_PORT_SetPowerMode(mode)
73
77
#define CORE_GetPowerMode() CORE_PORT_GetPowerMode()
78
82
#define CORE_RefreshPowerMode() CORE_PORT_RefreshPowerMode()
83
84
89
#endif
/* HAL_PWR_H */
hal_defs.h
Various HAL definitions.
Generated on Mon Feb 25 2019 13:43:42 for HALFRED by
1.8.7