CAN Bus is no longer RTOS

This commit is contained in:
CarlWachter 2024-01-30 15:25:35 +01:00 committed by @CarlWachter
parent e90620c2d8
commit 16f33857f7
3 changed files with 5 additions and 8 deletions

View File

@ -19,12 +19,12 @@
*
* @ingroup STA_RTOS_BuildConfig
*/
# define STA_RTOS_CAN_BUS_ENABLE
# define STA_CAN_BUS_ENABLE
#endif // DOXYGEN
#include <sta/config.hpp>
#ifdef STA_RTOS_CAN_BUS_ENABLE
#ifdef STA_CAN_BUS_ENABLE
#include <sta/bus/can/controller.hpp>
#include <sta/devices/stm32/can.hpp>
@ -210,6 +210,6 @@ namespace debug
void printPayloadHex(const uint8_t * payload, uint8_t size);
} // namespace debug
#endif // STA_RTOS_CAN_BUS_ENABLE
#endif // STA_CAN_BUS_ENABLE
#endif // STA_RTOS_SYSTEM_CAN_BUS_HPP

View File

@ -4,7 +4,7 @@
*/
#include <sta/config.hpp>
#ifdef STA_RTOS_CAN_BUS_ENABLE
#ifdef STA_CAN_BUS_ENABLE
#include <sta/debug/assert.hpp>
#include <sta/debug/debug.hpp>
@ -220,4 +220,4 @@ namespace sta
}
} // namespace sta
#endif // STA_RTOS_CAN_BUS_ENABLE
#endif // STA_CAN_BUS_ENABLE

View File

@ -32,9 +32,6 @@ namespace sta
initWatchdog();
#endif // STA_RTOS_WATCHDOG_ENABLE
#ifdef STA_RTOS_CAN_BUS_ENABLE
initCanBus();
#endif // STA_RTOS_CAN_BUS_ENABLE
}
} // namespace rtos
} // namespace sta