From 43a8d19d08f6c8ceb0e890dd407d88e3b61f5db5 Mon Sep 17 00:00:00 2001 From: "@CarlWachter" Date: Wed, 28 Feb 2024 13:23:13 +0100 Subject: [PATCH] made startup.cpp independent of hcan --- src/startup.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/startup.cpp b/src/startup.cpp index 8acfc29..a841f00 100644 --- a/src/startup.cpp +++ b/src/startup.cpp @@ -31,9 +31,6 @@ #include #include -// 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(). *