Lab 1 Program C

Dependents:   Lab1C

Fork of mbed by -deleted-

Revision:
28:667d61c9177b
Parent:
27:7110ebee3484
Child:
29:078e4b97a13e
--- a/PeripheralNames.h	Tue Nov 29 14:59:27 2011 +0000
+++ b/PeripheralNames.h	Thu Dec 08 12:04:01 2011 +0000
@@ -77,9 +77,6 @@
 }; 
 typedef enum CANName CANName;
 
-#define STDIO_UART_TX     USBTX
-#define STDIO_UART_RX     USBRX
-#define STDIO_UART        UART_0
 #define US_TICKER_TIMER TIMER_3
 #define US_TICKER_TIMER_IRQn TIMER3_IRQn
 
@@ -96,8 +93,8 @@
 typedef enum I2CName I2CName;
 
 enum TimerName {
-    TIMER_0 = (int)LPC_CT32B0_BASE  
-    , TIMER_1 = (int)LPC_CT32B1_BASE       
+    TIMER_0 = (int)LPC_CT32B0_BASE
+    , TIMER_1 = (int)LPC_CT32B1_BASE
 };
 typedef enum TimerName TimerName;
 
@@ -119,15 +116,22 @@
 };
 typedef enum SPIName SPIName;
 
+#define US_TICKER_TIMER TIMER_1
+#define US_TICKER_TIMER_IRQn     TIMER_32_1_IRQn 
+
+typedef enum PWMName {
+    PWM_1 = 0
+    , PWM_2
+    , PWM_3
+    , PWM_4
+} PWMName;
+
+#endif
+
 #define STDIO_UART_TX     USBTX
 #define STDIO_UART_RX     USBRX
 #define STDIO_UART        UART_0
 
-#define US_TICKER_TIMER TIMER_1
-#define US_TICKER_TIMER_IRQn     TIMER_32_1_IRQn 
-
-#endif
-
 #ifdef __cplusplus
 }
 #endif