mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-08-02 08:41:54 +00:00
Disabled printable initialization if debugging is not enabled
This commit is contained in:
parent
90843468a8
commit
550ec32076
@ -5,6 +5,7 @@
|
||||
* Author: Dario
|
||||
*/
|
||||
|
||||
#include <sta/config.hpp>
|
||||
|
||||
#include <cmsis_os2.h>
|
||||
#include <usart.h>
|
||||
@ -28,11 +29,11 @@ extern osMutexId_t uartMutexHandle;
|
||||
|
||||
namespace sta
|
||||
{
|
||||
#ifdef STA_DEBUGGING_ENABLED
|
||||
// Here the printable used for debugging is defined.
|
||||
Printable * Debug;
|
||||
|
||||
namespace tacos
|
||||
{
|
||||
namespace tacos {
|
||||
void initPrintable()
|
||||
{
|
||||
// Initialize the mutex for UART communication.
|
||||
@ -45,8 +46,11 @@ namespace sta
|
||||
|
||||
STA_DEBUG_PRINTLN("UART SUCCESSFULLY INITIALIZED");
|
||||
}
|
||||
}
|
||||
#endif // STA_DEBUGGING_ENABLED
|
||||
|
||||
|
||||
namespace tacos
|
||||
{
|
||||
STA_WEAK
|
||||
void onStatemachineInit()
|
||||
{}
|
||||
@ -79,7 +83,9 @@ namespace sta
|
||||
// Override the weak implementation of startupExtras provided in rtos2-utils.
|
||||
void startupExtras(void * argument)
|
||||
{
|
||||
#ifdef STA_DEBUGGING_ENABLED
|
||||
tacos::initPrintable();
|
||||
#endif // STA_DEBUGGING_ENABLED
|
||||
|
||||
tacos::initStatemachine();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user