refactoring: inline method
This commit is contained in:
parent
7d769904e6
commit
50d8aa37b4
|
@ -211,12 +211,6 @@ static void adcConfigListener(Engine *engine) {
|
||||||
calcFastAdcIndexes();
|
calcFastAdcIndexes();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void turnOnHardware() {
|
|
||||||
#if EFI_PROD_CODE && EFI_SHAFT_POSITION_INPUT
|
|
||||||
turnOnTriggerInputPins();
|
|
||||||
#endif /* EFI_SHAFT_POSITION_INPUT */
|
|
||||||
}
|
|
||||||
|
|
||||||
void stopSpi(spi_device_e device) {
|
void stopSpi(spi_device_e device) {
|
||||||
#if HAL_USE_SPI
|
#if HAL_USE_SPI
|
||||||
if (!isSpiInitialized[device]) {
|
if (!isSpiInitialized[device]) {
|
||||||
|
@ -559,7 +553,9 @@ void initHardware() {
|
||||||
// init_adc_mcp3208(&adcState, &SPID2);
|
// init_adc_mcp3208(&adcState, &SPID2);
|
||||||
// requestAdcValue(&adcState, 0);
|
// requestAdcValue(&adcState, 0);
|
||||||
|
|
||||||
turnOnHardware();
|
#if EFI_PROD_CODE && EFI_SHAFT_POSITION_INPUT
|
||||||
|
turnOnTriggerInputPins();
|
||||||
|
#endif /* EFI_SHAFT_POSITION_INPUT */
|
||||||
|
|
||||||
#if EFI_HIP_9011
|
#if EFI_HIP_9011
|
||||||
initHip9011();
|
initHip9011();
|
||||||
|
|
Loading…
Reference in New Issue