summaryrefslogtreecommitdiffstats
path: root/Bachelor/Mikroprozessorsysteme2/mi2/h/pmc.h
diff options
context:
space:
mode:
authorSven Eisenhauer <sven@sven-eisenhauer.net>2023-11-10 15:11:48 +0100
committerSven Eisenhauer <sven@sven-eisenhauer.net>2023-11-10 15:11:48 +0100
commit33613a85afc4b1481367fbe92a17ee59c240250b (patch)
tree670b842326116b376b505ec2263878912fca97e2 /Bachelor/Mikroprozessorsysteme2/mi2/h/pmc.h
downloadStudium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.gz
Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.bz2
add new repoHEADmaster
Diffstat (limited to 'Bachelor/Mikroprozessorsysteme2/mi2/h/pmc.h')
-rw-r--r--Bachelor/Mikroprozessorsysteme2/mi2/h/pmc.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/Bachelor/Mikroprozessorsysteme2/mi2/h/pmc.h b/Bachelor/Mikroprozessorsysteme2/mi2/h/pmc.h
new file mode 100644
index 0000000..4a7ab8b
--- /dev/null
+++ b/Bachelor/Mikroprozessorsysteme2/mi2/h/pmc.h
@@ -0,0 +1,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 */