mbed libraries for KL25Z

Dependents:   FRDM_RGBLED

Revision:
8:c14af7958ef5
Parent:
3:aff886a69715
Child:
9:663789d7729f
--- a/pwmout_api.h	Tue Oct 23 09:20:18 2012 +0000
+++ b/pwmout_api.h	Fri Nov 09 11:33:53 2012 +0000
@@ -1,7 +1,6 @@
 /* mbed Microcontroller Library - pwmout_api
  * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
- */ 
-
+ */
 #ifndef MBED_PWMOUT_API_H
 #define MBED_PWMOUT_API_H
 
@@ -9,26 +8,11 @@
 
 #if DEVICE_PWMOUT
 
-#include "PinNames.h"
-#include "PeripheralNames.h"
-
 #ifdef __cplusplus
 extern "C" {
 #endif 
 
-// Todo: Remove the lookup tables and add the actual values in the object
-typedef struct {
-#if defined(TARGET_LPC1768) || defined(TARGET_LPC2368)
-    __IO uint32_t *MR;
-    PWMName pwm;
-#elif defined(TARGET_LPC11U24)
-    PWMName pwm;
-#elif defined(TARGET_KL25Z)
-    __IO uint32_t *MOD;
-    __IO uint32_t *CNT;
-    __IO uint32_t *CnV;
-#endif
-} pwmout_object;
+typedef struct pwmout_object_s pwmout_object;
 
 void pwmout_init         (pwmout_object* obj, PinName pin);
 void pwmout_free         (pwmout_object* obj);
@@ -46,7 +30,7 @@
 
 #ifdef __cplusplus
 }
-#endif 
+#endif
 
 #endif