Robotique FIP / X_NUCLEO_IHM01A1

Fork of X_NUCLEO_IHM01A1 by ST

Revision:
21:83138e702683
Parent:
18:2d6ab2b93685
Child:
22:ed3a6990a6eb
--- a/Components/l6474/l6474_class.cpp	Fri Jan 15 16:42:39 2016 +0000
+++ b/Components/l6474/l6474_class.cpp	Tue Jan 19 15:57:24 2016 +0000
@@ -107,7 +107,7 @@
  * @param  init Initialization structure.
  * @retval COMPONENT_OK in case of success.
  **********************************************************/
-DrvStatusTypeDef L6474::L6474_Init(L6474_InitTypeDef *init)
+DrvStatusTypeDef L6474::L6474_Init(void *init)
 {
   /* Initialise the PWMs used for the Step clocks ----------------------------*/
   L6474_PwmInit();
@@ -128,7 +128,7 @@
     L6474_SetRegisterToPredefinedValues();
   else
     /* Set device registers to the passed initialization values. */
-    L6474_SetRegisterToInitializationValues(init);
+    L6474_SetRegisterToInitializationValues((L6474_InitTypeDef *) init);
   
   /* Disable L6474 powerstage */
   L6474_CmdDisable();