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:
Tue Jan 19 16:07:00 2016 +0000
Parent:
12:a942d51c488b
Child:
14:e614697ebf34
Commit message:
+ "L6470_Config()" function's prototype updated to be consistent with the "MICROSTEPPING_MOTOR_DrvVTableTypeDef" type.

Changed in this revision

Components/l6470/l6470_class.h Show annotated file Show diff for this revision Revisions of this file
--- a/Components/l6470/l6470_class.h	Fri Jan 15 17:05:43 2016 +0000
+++ b/Components/l6470/l6470_class.h	Tue Jan 19 16:07:00 2016 +0000
@@ -170,7 +170,7 @@
      */
     virtual int Init(void *init)
     {
-        return (int) L6470_Config((L6470_InitTypeDef *) init);
+        return (int) L6470_Config((void *) init);
     }
 
     /**
@@ -1185,7 +1185,7 @@
     uint8_t  L6470_mA_2_OcdTh(float mA);
     float    L6470_StallTh_2_mA(uint8_t StallTh);
     uint8_t  L6470_mA_2_StallTh(float mA);
-    DrvStatusTypeDef L6470_Config(L6470_InitTypeDef *MotorParameterData);
+    DrvStatusTypeDef L6470_Config(void *init);
     void     L6470_SetParam(eL6470_RegId_t L6470_RegId, uint32_t Value);
     uint32_t L6470_GetParam(eL6470_RegId_t L6470_RegId);
     void     L6470_Run(eL6470_DirId_t L6470_DirId, uint32_t Speed);