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