Personal fork of the library
Fork of X_NUCLEO_IHM01A1 by
Diff: Components/l6474/l6474_class.cpp
- Revision:
- 22:ed3a6990a6eb
- Parent:
- 21:83138e702683
- Child:
- 23:58264db10a17
--- a/Components/l6474/l6474_class.cpp Tue Jan 19 15:57:24 2016 +0000 +++ b/Components/l6474/l6474_class.cpp Tue Feb 09 10:53:31 2016 +0000 @@ -52,7 +52,6 @@ /* Includes ------------------------------------------------------------------*/ #include "l6474_class.h" -#include "l6474.h" /* Definitions ---------------------------------------------------------------*/ @@ -107,7 +106,7 @@ * @param init Initialization structure. * @retval COMPONENT_OK in case of success. **********************************************************/ -DrvStatusTypeDef L6474::L6474_Init(void *init) +Status_t L6474::L6474_Init(void *init) { /* Initialise the PWMs used for the Step clocks ----------------------------*/ L6474_PwmInit(); @@ -128,7 +127,7 @@ L6474_SetRegisterToPredefinedValues(); else /* Set device registers to the passed initialization values. */ - L6474_SetRegisterToInitializationValues((L6474_InitTypeDef *) init); + L6474_SetRegisterToInitializationValues((L6474_Init_t *) init); /* Disable L6474 powerstage */ L6474_CmdDisable(); @@ -144,7 +143,7 @@ * @param id pointer to the identifier to be read. * @retval COMPONENT_OK in case of success. **********************************************************/ -DrvStatusTypeDef L6474::L6474_ReadID(uint8_t *id) +Status_t L6474::L6474_ReadID(uint8_t *id) { *id = device_instance; @@ -1098,7 +1097,7 @@ * @param init Initialization structure. * @retval None. **********************************************************/ -void L6474::L6474_SetRegisterToInitializationValues(L6474_InitTypeDef *init) +void L6474::L6474_SetRegisterToInitializationValues(L6474_Init_t *init) { L6474_CmdSetParam( L6474_ABS_POS,