todo?
This commit is contained in:
parent
180ae9b593
commit
0e39ace44d
|
@ -334,16 +334,19 @@ void startSmartCsPins() {
|
||||||
tle8888Cs.setValue(true);
|
tle8888Cs.setValue(true);
|
||||||
#endif /* BOARD_TLE8888_COUNT */
|
#endif /* BOARD_TLE8888_COUNT */
|
||||||
#if (BOARD_TLE6240_COUNT > 0)
|
#if (BOARD_TLE6240_COUNT > 0)
|
||||||
|
// todo: any way to reduce copy-paste? some convention between pin property name and pin mode property name?
|
||||||
tle6240Cs.initPin("tle6240 CS", engineConfiguration->tle6240_cs,
|
tle6240Cs.initPin("tle6240 CS", engineConfiguration->tle6240_cs,
|
||||||
&engineConfiguration->tle6240_csPinMode);
|
&engineConfiguration->tle6240_csPinMode);
|
||||||
tle6240Cs.setValue(true);
|
tle6240Cs.setValue(true);
|
||||||
#endif /* BOARD_TLE6240_COUNT */
|
#endif /* BOARD_TLE6240_COUNT */
|
||||||
#if (BOARD_MC33972_COUNT > 0)
|
#if (BOARD_MC33972_COUNT > 0)
|
||||||
|
// todo: any way to reduce copy-paste? some convention between pin property name and pin mode property name?
|
||||||
mc33972Cs.initPin("mc33972 CS", engineConfiguration->mc33972_cs,
|
mc33972Cs.initPin("mc33972 CS", engineConfiguration->mc33972_cs,
|
||||||
&engineConfiguration->mc33972_csPinMode);
|
&engineConfiguration->mc33972_csPinMode);
|
||||||
mc33972Cs.setValue(true);
|
mc33972Cs.setValue(true);
|
||||||
#endif /* BOARD_MC33972_COUNT */
|
#endif /* BOARD_MC33972_COUNT */
|
||||||
#if (BOARD_DRV8860_COUNT > 0)
|
#if (BOARD_DRV8860_COUNT > 0)
|
||||||
|
// todo: any way to reduce copy-paste? some convention between pin property name and pin mode property name?
|
||||||
drv8860Cs.initPin("drv8860 CS", engineConfiguration->drv8860_cs,
|
drv8860Cs.initPin("drv8860 CS", engineConfiguration->drv8860_cs,
|
||||||
&engineConfiguration->drv8860_csPinMode);
|
&engineConfiguration->drv8860_csPinMode);
|
||||||
drv8860Cs.setValue(true);
|
drv8860Cs.setValue(true);
|
||||||
|
|
Loading…
Reference in New Issue