mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-06-10 16:45:59 +00:00
made startup.cpp independent of hcan
This commit is contained in:
parent
b403559933
commit
43a8d19d08
@ -31,9 +31,6 @@
|
||||
#include <sta/tacos/watchdog.hpp>
|
||||
#include <sta/tacos/can_bus.hpp>
|
||||
|
||||
// TODO: WHY DO I HAVE TO PUT THIS HERE???? DO YOU THINK YOU ARE SPECIAL, HUH MR. HCAN1? WHY CAN'T YOU BE NORMAL LIKE HUART
|
||||
extern CAN_HandleTypeDef hcan1;
|
||||
|
||||
// The UART mutex defined in freertos.c
|
||||
extern osMutexId_t uartMutexHandle;
|
||||
|
||||
@ -60,18 +57,6 @@ namespace sta
|
||||
return &STA_STM32_USART_HANDLE;
|
||||
}
|
||||
|
||||
#if defined(STA_CAN_BUS_ENABLE) || defined(DOXYGEN)
|
||||
/**
|
||||
* @brief Function that returns the CAN handle used for the CAN bus. Override it in userspace to adjust.
|
||||
*
|
||||
* @ingroup tacos_startup
|
||||
*/
|
||||
STA_WEAK
|
||||
CAN_HandleTypeDef * getCanController(){
|
||||
return &STA_STM32_CAN_HANDLE;
|
||||
}
|
||||
#endif /* STA_CAN_BUS_ENABLE */
|
||||
|
||||
/**
|
||||
* @brief Function that initializes the printable object given by getUARThandle().
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user