mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-06-12 01:25:59 +00:00
Proper getCanController init
This commit is contained in:
parent
2dc3299186
commit
becb501438
@ -40,6 +40,10 @@ extern osMutexId_t uartMutexHandle;
|
|||||||
* @brief Functions that are called during startup.
|
* @brief Functions that are called during startup.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// CAN Handle
|
||||||
|
#ifdef STA_RTOS_CAN_BUS_ENABLE
|
||||||
|
extern CAN_HandleTypeDef hcan1;
|
||||||
|
#endif /* STA_RTOS_CAN_BUS_ENABLE */
|
||||||
|
|
||||||
namespace sta
|
namespace sta
|
||||||
{
|
{
|
||||||
@ -150,6 +154,14 @@ namespace sta
|
|||||||
tacos::initWatchdog();
|
tacos::initWatchdog();
|
||||||
#endif // STA_TACOS_WATCHDOG_ENABLED
|
#endif // STA_TACOS_WATCHDOG_ENABLED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef STA_RTOS_CAN_BUS_ENABLE
|
||||||
|
STA_WEAK
|
||||||
|
CAN_HandleTypeDef * getCanController(){
|
||||||
|
return &hcan1;
|
||||||
|
}
|
||||||
|
#endif /* STA_RTOS_CAN_BUS_ENABLE */
|
||||||
|
|
||||||
} // namespace rtos
|
} // namespace rtos
|
||||||
} // namespace sta
|
} // namespace sta
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user