Design-in of LPC11U24 (lqfp48) of mbed as Steppermotor controller with USB control.

Dependencies:   USBDevice mbed

Mbed repository of Stepper Motor Control board. Using mbed LPC11U24 chip with HID USB.

Hardware in copy repo on bitbucket https://bitbucket.org/jeroen3/stepper-motor-board

Files at this revision

API Documentation at this revision

Comitter:
jeroen3
Date:
Mon Oct 28 18:27:20 2013 +0000
Parent:
0:d0306c0cbee6
Child:
2:ddae311a4533
Commit message:
+

Changed in this revision

CT32B0_PWM.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/CT32B0_PWM.cpp	Mon Oct 28 18:26:28 2013 +0000
+++ b/CT32B0_PWM.cpp	Mon Oct 28 18:27:20 2013 +0000
@@ -24,11 +24,11 @@
 #define CT32B0_PRESCALER 48		/**< @brief Timer prescaler from AHBCLK */	
 
 /* Static makes them private to this module */
-volatile static uint8_t  stage 		= 0;		   /**< @brief Stage identifier for mat2/3 swap */
-volatile static uint32_t period 	= 0;       /**< @brief PWM Period register */
-volatile static uint32_t mat[4];             /**< @brief PWM Mat output registers */
-volatile static uint32_t default_period_us;  /**< @brief Given period in us */
-volatile static uint32_t defaultstate;       /**< @brief Default PWM state on init */
+volatile static uint8_t  stage 		= 0;	/**< @brief Stage identifier for mat2/3 swap */
+volatile static uint32_t period 	= 0;    /**< @brief PWM Period register */
+volatile static uint32_t mat[4];            /**< @brief PWM Mat output registers */
+volatile static uint32_t default_period_us; /**< @brief Given period in us */
+volatile static uint32_t defaultstate;      /**< @brief Default PWM state on init */
 
 /**
  * @brief   Initializes PWM