motor board library

Dependencies:   ST_INTERFACES X_NUCLEO_COMMON

Dependents:   selfbalansingcar

Fork of X_NUCLEO_IHM02A1 by ST

Files at this revision

API Documentation at this revision

Comitter:
Davidroid
Date:
Fri Jan 15 17:05:43 2016 +0000
Parent:
11:1aca63b2f034
Child:
13:25a579b9b7c3
Commit message:
+ Typos corrected.

Changed in this revision

Components/Interfaces/Component_class.h Show annotated file Show diff for this revision Revisions of this file
Components/Interfaces/StepperMotor_class.h Show annotated file Show diff for this revision Revisions of this file
Components/l6470/l6470_class.cpp Show annotated file Show diff for this revision Revisions of this file
Components/l6470/l6470_class.h Show annotated file Show diff for this revision Revisions of this file
--- a/Components/Interfaces/Component_class.h	Thu Jan 14 10:00:31 2016 +0000
+++ b/Components/Interfaces/Component_class.h	Fri Jan 15 17:05:43 2016 +0000
@@ -1,7 +1,7 @@
 /**
  ******************************************************************************
  * @file    Component_class.h
- * @author  Davide Aliprandi, STMicrolectronics
+ * @author  Davide Aliprandi, STMicroelectronics
  * @version V1.0.0
  * @date    April 13th, 2015
  * @brief   This file contains the abstract class describing the interface of a
--- a/Components/Interfaces/StepperMotor_class.h	Thu Jan 14 10:00:31 2016 +0000
+++ b/Components/Interfaces/StepperMotor_class.h	Fri Jan 15 17:05:43 2016 +0000
@@ -1,7 +1,7 @@
 /**
  ******************************************************************************
  * @file    StepperMotor_class.h
- * @author  Davide Aliprandi, STMicrolectronics
+ * @author  Davide Aliprandi, STMicroelectronics
  * @version V1.0.0
  * @date    November 12th, 2015
  * @brief   This file contains the abstract class describing the interface of a
--- a/Components/l6470/l6470_class.cpp	Thu Jan 14 10:00:31 2016 +0000
+++ b/Components/l6470/l6470_class.cpp	Fri Jan 15 17:05:43 2016 +0000
@@ -1443,10 +1443,9 @@
 
 /**
   * @brief  Configures the L6470 registers.
-  * @param  StepperMotorDriverHandle_t* The pointer to the stepper motor driver handle structure.
-  * @param  MotorParameterData_t* The pointer to the related parameter data structure.
+  * @param  init The pointer to the initialization structure.
   */
-DrvStatusTypeDef L6470::L6470_Config(L6470_InitTypeDef *MotorParameterData)
+DrvStatusTypeDef L6470::L6470_Config(void *init)
 {
   /* Disable the L6470. */
   L6470_DISABLE();
@@ -1461,6 +1460,7 @@
   GetStatus();
 
   /* Prepare the 'Register' field of StepperMotorDriverHandle */
+  L6470_InitTypeDef *MotorParameterData = (L6470_InitTypeDef *) init;
   StepperMotorRegister.ACC = L6470_Step_s2_2_Acc(MotorParameterData->acc);
   StepperMotorRegister.DEC = L6470_Step_s2_2_Dec(MotorParameterData->dec);
   StepperMotorRegister.MAX_SPEED = L6470_Step_s_2_MaxSpeed(MotorParameterData->maxspeed);
--- a/Components/l6470/l6470_class.h	Thu Jan 14 10:00:31 2016 +0000
+++ b/Components/l6470/l6470_class.h	Fri Jan 15 17:05:43 2016 +0000
@@ -1,7 +1,7 @@
 /**
  ******************************************************************************
  * @file    l6470_class.h
- * @author  Davide Aliprandi, STMicrolectronics
+ * @author  Davide Aliprandi, STMicroelectronics
  * @version V1.0.0
  * @date    November 12th, 2015
  * @brief   This file contains the class of an L6470 Motor Control component.