Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of X_NUCLEO_IHM01A1 by
Diff: Components/l6474/l6474_class.cpp
- 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();