altos/lpc: Remove spurious semicolon
[fw/altos] / src / lpc / lpc.h
index 2493a1ff4c1b2360b8beebb0f88b2bbe58ec2bf3..d66f0dd00bdf2b98d328a6a06713bfbe62be0b8b 100644 (file)
@@ -131,7 +131,7 @@ extern struct lpc_ioconf lpc_ioconf;
 /* PIO0_6 */
 #define  LPC_IOCONF_FUNC_PIO0_6                0
 #define  LPC_IOCONF_FUNC_USB_CONNECT   1
-#define  LPC_IOCONF_FUNC_SCK0          2
+#define  LPC_IOCONF_FUNC_PIO0_6_SCK0   2
 
 /* PIO0_7 */
 #define  LPC_IOCONF_FUNC_PIO0_7                0
@@ -150,7 +150,7 @@ extern struct lpc_ioconf lpc_ioconf;
 /* PIO0_10 */
 #define  LPC_IOCONF_FUNC_SWCLK         0
 #define  LPC_IOCONF_FUNC_PIO0_10       1
-#define  LPC_IOCONF_FUNC_SCK0          2
+#define  LPC_IOCONF_FUNC_PIO0_10_SCK0  2
 #define  LPC_IOCONF_FUNC_CT16B0_MAT2   3
 
 /* PIO0_11 */
@@ -1169,6 +1169,13 @@ extern struct lpc_adc lpc_adc;
 #define  LPC_ADC_CR_CLKS_6             5
 #define  LPC_ADC_CR_CLKS_5             6
 #define  LPC_ADC_CR_CLKS_4             7
+#define LPC_ADC_CR_START       24
+#define  LPC_ADC_CR_START_NONE         0
+#define  LPC_ADC_CR_START_NOW          1
+
+#define LPC_ADC_GDR_CHN                        24
+#define LPC_ADC_GDR_OVERRUN            30
+#define LPC_ADC_GDR_DONE               31
 
 #define LPC_ADC_INTEN_ADINTEN  0
 #define LPC_ADC_INTEN_ADGINTEN 8
@@ -1212,4 +1219,14 @@ extern struct lpc_ct32b lpc_ct32b0, lpc_ct32b1;
 #define LPC_CT32B_PWMC_PWMEN2  2
 #define LPC_CT32B_PWMC_PWMEN3  3
 
+#define LPC_CT32B_EMR_EMC0     4
+#define LPC_CT32B_EMR_EMC1     6
+#define LPC_CT32B_EMR_EMC2     8
+#define LPC_CT32B_EMR_EMC3     10
+
+#define LPC_CT32B_EMR_EMC_NOTHING      0
+#define LPC_CT32B_EMR_EMC_CLEAR                1
+#define LPC_CT32B_EMR_EMC_SET          2
+#define LPC_CT32B_EMR_EMC_TOGGLE       3
+
 #endif /* _LPC_H_ */