Landtiger LPC1768 C BigLib
1
A self made, custom C library for the LandTiger board.
Loading...
Searching...
No Matches
power_types.h
Go to the documentation of this file.
1
#ifndef __POWER_TYPES_H
2
#define __POWER_TYPES_H
3
4
typedef
enum
5
{
6
POWR_CFG_DEEP
= 0x4,
// BIT 2 in the SCB->SCR
7
POWR_CFG_SLEEP_ON_EXIT
= 0x2
// BIT 1 in the SCB->SCR
8
}
POWER_Config
;
9
10
// Refer to the user manual @ Table 46 for more peripherals.
11
// Each enum constant equals to the BIT in the PCONP register associated to that peripheral.
12
typedef
enum
13
{
14
POW_PCTIM0
= 1,
15
POW_PCTIM1
= 2,
16
POW_PCSSP1
= 10,
17
POW_PCADC
= 12,
18
POW_PCCAN1
= 13,
19
POW_PCCAN2
= 14,
20
POW_PCGPIO
= 15,
21
POW_PCRIT
= 16,
22
POW_PCTIM2
= 22,
23
POW_PCTIM3
= 23
24
}
POWER_Peripheral
;
25
26
#endif
POWER_Config
POWER_Config
Definition
power_types.h:5
POWR_CFG_SLEEP_ON_EXIT
@ POWR_CFG_SLEEP_ON_EXIT
Definition
power_types.h:7
POWR_CFG_DEEP
@ POWR_CFG_DEEP
Definition
power_types.h:6
POWER_Peripheral
POWER_Peripheral
Definition
power_types.h:13
POW_PCTIM3
@ POW_PCTIM3
Definition
power_types.h:23
POW_PCTIM0
@ POW_PCTIM0
Definition
power_types.h:14
POW_PCTIM2
@ POW_PCTIM2
Definition
power_types.h:22
POW_PCGPIO
@ POW_PCGPIO
Definition
power_types.h:20
POW_PCTIM1
@ POW_PCTIM1
Definition
power_types.h:15
POW_PCCAN2
@ POW_PCCAN2
Definition
power_types.h:19
POW_PCSSP1
@ POW_PCSSP1
Definition
power_types.h:16
POW_PCRIT
@ POW_PCRIT
Definition
power_types.h:21
POW_PCADC
@ POW_PCADC
Definition
power_types.h:17
POW_PCCAN1
@ POW_PCCAN1
Definition
power_types.h:18
Keil
Include
Peripherals
power_types.h
Generated by
1.9.8