summaryrefslogtreecommitdiffstats
path: root/Bachelor/Mikroprozessorsysteme2/mi2/h/pmc.h
blob: 4a7ab8b0241bfe6e215c7248eb3e4a1ac6808878 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//----------------------------------------------------------------------------
// File Name           : pmc.h
// Object              : Power Management Controller Header File.
//
// 1.0 27/10/02 GR     : Creation
//----------------------------------------------------------------------------
#ifndef pmc_h
#define pmc_h

#include "std_c.h"

/*--------------------------------------------------*/
/* Power Management Controller Structure Definition */
/*--------------------------------------------------*/

typedef struct
{
    at91_reg    PMC_SCER ;  /* System Clock Enable  Register */
    at91_reg    PMC_SCDR ;  /* System Clock Disable Register */
    at91_reg    PMC_SCSR ;  /* System Clock Status  Register */
    at91_reg    Reserved0 ;
    at91_reg    PMC_PCER ;  /* Peripheral Clock Enable  Register */
    at91_reg    PMC_PCDR ;  /* Peripheral Clock Disable Register */
    at91_reg    PMC_PCSR ;  /* Peripheral Clock Status  Register */
} StructPMC ;

/*-----------------------------------------------*/
/* Power Saving Control Register Bits Definition */
/*-----------------------------------------------*/
    
#define PMC_ARM7DIS         0x1
#define PMC_US0             0x4
#define PMC_PCSR_ALL        0xffff

/*------------------------------------------*/ 
/* Power Management Controller Base Address */
/*------------------------------------------*/ 

#define PMC_BASE        (( StructPMC *) 0xFFFF4000)


#endif /* pmc_h */