my fork

Dependents:   Nucleo_blueNRG

Fork of mbed by mbed official

Revision:
46:890817bdcffb
Parent:
44:24d45a770a51
Child:
54:71b101360fb9
diff -r 3d775a932e1d -r 890817bdcffb LPC11U24/power_api.h
--- a/LPC11U24/power_api.h	Thu Nov 22 16:04:31 2012 +0000
+++ b/LPC11U24/power_api.h	Mon Nov 26 10:13:56 2012 +0000
@@ -26,12 +26,12 @@
 
 #define PWRROMD_PRESENT
 
-typedef    struct _PWRD {
+typedef struct _PWRD {
   void (*set_pll)(unsigned int cmd[], unsigned int resp[]);
   void (*set_power)(unsigned int cmd[], unsigned int resp[]);
 }  PWRD;
 
-typedef    struct _ROM {
+typedef struct _ROM {
 #ifdef USBROMD_PRESENT
    const USB * pUSBD;
 #else
@@ -51,26 +51,26 @@
 }  ROM;
 
 //PLL setup related definitions
-#define    CPU_FREQ_EQU          0       //main PLL freq must be equal to the specified 
-#define    CPU_FREQ_LTE        1       //main PLL freq must be less than or equal the specified
-#define    CPU_FREQ_GTE        2       //main PLL freq must be greater than or equal the specified
-#define    CPU_FREQ_APPROX        3       //main PLL freq must be as close as possible the specified
+#define CPU_FREQ_EQU  		0       //main PLL freq must be equal to the specified 
+#define CPU_FREQ_LTE		1       //main PLL freq must be less than or equal the specified
+#define CPU_FREQ_GTE		2       //main PLL freq must be greater than or equal the specified
+#define CPU_FREQ_APPROX		3       //main PLL freq must be as close as possible the specified
 
-#define    PLL_CMD_SUCCESS        0       //PLL setup successfully found
-#define    PLL_INVALID_FREQ    1       //specified freq out of range (either input or output)
-#define    PLL_INVALID_MODE    2       //invalid mode (see above for valid) specified
-#define    PLL_FREQ_NOT_FOUND    3       //specified freq not found under specified conditions
-#define    PLL_NOT_LOCKED        4       //PLL not locked => no changes to the PLL setup
+#define PLL_CMD_SUCCESS		0       //PLL setup successfully found
+#define PLL_INVALID_FREQ	1       //specified freq out of range (either input or output)
+#define PLL_INVALID_MODE	2       //invalid mode (see above for valid) specified
+#define PLL_FREQ_NOT_FOUND	3       //specified freq not found under specified conditions
+#define PLL_NOT_LOCKED		4       //PLL not locked => no changes to the PLL setup
 
 //power setup elated definitions
-#define    PARAM_DEFAULT            0   //default power settings (voltage regulator, flash interface)
-#define    PARAM_CPU_PERFORMANCE    1   //setup for maximum CPU performance (higher current, more computation)
-#define    PARAM_EFFICIENCY        2   //balanced setting (power vs CPU performance)
-#define    PARAM_LOW_CURRENT        3   //lowest active current, lowest CPU performance
+#define PARAM_DEFAULT			0   //default power settings (voltage regulator, flash interface)
+#define PARAM_CPU_PERFORMANCE	1   //setup for maximum CPU performance (higher current, more computation)
+#define PARAM_EFFICIENCY		2   //balanced setting (power vs CPU performance)
+#define PARAM_LOW_CURRENT		3   //lowest active current, lowest CPU performance
 
-#define    PARAM_CMD_SUCCESS        0   //power setting successfully found
-#define    PARAM_INVALID_FREQ        1   //specified freq out of range (=0 or > 50 MHz)
-#define    PARAM_INVALID_MODE        2   //specified mode not valid (see above for valid)
+#define PARAM_CMD_SUCCESS		0   //power setting successfully found
+#define PARAM_INVALID_FREQ		1   //specified freq out of range (=0 or > 50 MHz)
+#define PARAM_INVALID_MODE		2   //specified mode not valid (see above for valid)
 
 #define MAX_CLOCK_KHZ_PARAM                50000