Controlls of IHM01A1 by Joystick shield
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_IHM01A1 by
Revision 12:9f4b9540ff3e, committed 2015-11-27
- Comitter:
- Davidroid
- Date:
- Fri Nov 27 11:25:21 2015 +0000
- Parent:
- 11:b4d365138c21
- Child:
- 13:ba2728afe4c2
- Commit message:
- + Updated to initialize the motor to 1/16 Microstepping mode.
Changed in this revision
| Components/l6474/l6474_class.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Components/l6474/l6474_class.h Fri Nov 27 10:00:22 2015 +0000
+++ b/Components/l6474/l6474_class.h Fri Nov 27 11:25:21 2015 +0000
@@ -143,17 +143,13 @@
* } *
*------------------------------------------------------------------------*/
/**
- * @brief Initializing the component in FULL STEP mode.
+ * @brief Initializing the component in 1/16 Microstepping mode.
* @param init Pointer to device specific initalization structure.
* @retval "0" in case of success, an error code otherwise.
*/
virtual int Init(void *init)
{
- DrvStatusTypeDef ret = L6474_Init((MOTOR_InitTypeDef *) init);
- if (ret != COMPONENT_OK)
- return (int) ret;
- L6474_SelectStepMode(STEP_MODE_FULL);
- return (int) COMPONENT_OK;
+ return (int) L6474_Init((MOTOR_InitTypeDef *) init);
}
/**
