This commit is contained in:
rusefillc 2023-03-04 20:34:43 -05:00
parent 180ae9b593
commit 0e39ace44d
1 changed files with 3 additions and 0 deletions

View File

@ -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);