my fork

Dependents:   Nucleo_blueNRG

Fork of mbed by mbed official

Revision:
44:24d45a770a51
Parent:
40:976df7c37ad5
Child:
46:890817bdcffb
--- a/LPC11U24/power_api.h	Fri Oct 26 17:40:46 2012 +0100
+++ b/LPC11U24/power_api.h	Wed Nov 21 10:49: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