made startup.cpp independent of hcan

This commit is contained in:
@CarlWachter 2024-02-28 13:23:13 +01:00
parent b403559933
commit 43a8d19d08

View File

@ -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().
*