Library to handle the X_NUCLEO_IHM02A1 Motor Control Expansion Board based on the L6470 component.
Fork of X_NUCLEO_IHM02A1 by
Diff: BSP/x_nucleo_ihm02a1_class.cpp
- Revision:
- 20:9821a6a2ca62
- Parent:
- 19:591ef53bc983
diff -r 591ef53bc983 -r 9821a6a2ca62 BSP/x_nucleo_ihm02a1_class.cpp --- a/BSP/x_nucleo_ihm02a1_class.cpp Tue Jul 26 15:17:40 2016 +0000 +++ b/BSP/x_nucleo_ihm02a1_class.cpp Wed Jul 27 09:15:53 2016 +0000 @@ -89,8 +89,8 @@ * component_1 = new COMPONENT_1(ssel, *dev_spi); * * component_2 = new COMPONENT_2(ssel, *dev_spi); * *------------------------------------------------------------------------*/ - components[0] = l6470_0 = new L6470(flag_irq, busy_irq, standby_reset, ssel, *dev_spi, X_NUCLEO_IHM02A1_Id); - components[1] = l6470_1 = new L6470(flag_irq, busy_irq, standby_reset, ssel, *dev_spi, X_NUCLEO_IHM02A1_Id); + components[0] = l6470_0 = new L6470(flag_irq, busy_irq, standby_reset, ssel, *dev_spi); + components[1] = l6470_1 = new L6470(flag_irq, busy_irq, standby_reset, ssel, *dev_spi); /* Initializing the components. */ init_components[0] = init_0; @@ -129,8 +129,8 @@ * component_1 = new COMPONENT_1(ssel, *dev_spi); * * component_2 = new COMPONENT_2(ssel, *dev_spi); * *------------------------------------------------------------------------*/ - components[0] = l6470_0 = new L6470(flag_irq, busy_irq, standby_reset, ssel, *dev_spi, X_NUCLEO_IHM02A1_Id); - components[1] = l6470_1 = new L6470(flag_irq, busy_irq, standby_reset, ssel, *dev_spi, X_NUCLEO_IHM02A1_Id); + components[0] = l6470_0 = new L6470(flag_irq, busy_irq, standby_reset, ssel, *dev_spi); + components[1] = l6470_1 = new L6470(flag_irq, busy_irq, standby_reset, ssel, *dev_spi); /* Initializing the components. */ init_components[0] = init_0;