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:
- 19:591ef53bc983
- Parent:
- 15:31785d1acd4b
- Child:
- 20:9821a6a2ca62
--- a/BSP/x_nucleo_ihm02a1_class.cpp Fri Apr 08 13:02:16 2016 +0000 +++ b/BSP/x_nucleo_ihm02a1_class.cpp Tue Jul 26 15:17:40 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); - components[1] = l6470_1 = new L6470(flag_irq, busy_irq, standby_reset, 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); /* 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); - components[1] = l6470_1 = new L6470(flag_irq, busy_irq, standby_reset, 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); /* Initializing the components. */ init_components[0] = init_0;