mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-06-12 01:25:59 +00:00
+Define guards
-redundant getter for can controller
This commit is contained in:
parent
b60ddccad5
commit
bfba17245f
@ -138,11 +138,8 @@ namespace sta
|
|||||||
Watchdog::instance()->start();
|
Watchdog::instance()->start();
|
||||||
}
|
}
|
||||||
#endif // STA_TACOS_WATCHDOG_ENABLED
|
#endif // STA_TACOS_WATCHDOG_ENABLED
|
||||||
STA_WEAK
|
|
||||||
CanController * getCanController(){
|
#ifdef STA_CAN_BUS_ENABLE
|
||||||
extern CAN_HandleTypeDef hcan1;
|
|
||||||
return new STM32CanController(&hcan1);
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* @brief Function that is called before the Can Bus task is started. Override it to adjust
|
* @brief Function that is called before the Can Bus task is started. Override it to adjust
|
||||||
* the Can bus to your specifications.
|
* the Can bus to your specifications.
|
||||||
@ -159,7 +156,7 @@ namespace sta
|
|||||||
|
|
||||||
CanBus::instance(getCanController())->start();
|
CanBus::instance(getCanController())->start();
|
||||||
}
|
}
|
||||||
|
#endif //STA_CAN_BUS_ENABLE
|
||||||
} // namespace tacos
|
} // namespace tacos
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user