Disabled printable initialization if debugging is disabled

This commit is contained in:
dario 2024-01-02 01:00:43 +01:00
parent 550ec32076
commit 08ed271f13
2 changed files with 1 additions and 38 deletions

View File

@ -1,36 +0,0 @@
/*
* startup.hpp
*
* Created on: 22 Sep 2023
* Author: Dario
*/
#ifndef INCLUDE_STA_TACOS_STARTUP_HPP_
#define INCLUDE_STA_TACOS_STARTUP_HPP_
/**
* @defgroup tacos TACOS
* @brief TACOS library.
*/
namespace sta
{
namespace tacos
{
/**
* @brief Function that is called before the statemachine task is started.
* Override it to adjust the statemachine to your specifications.
*/
void onStatemachineInit();
/**
* @brief Function that is called before the manager task is started.
* Override it to adjust the manager to your specifications.
*/
void onManagerInit();
} // namespace tacos
} // namespace sta
#endif /* INCLUDE_STA_TACOS_STARTUP_HPP_ */

View File

@ -20,7 +20,6 @@
// Tacos-specific includes.
#include <sta/tacos/manager.hpp>
#include <sta/tacos/statemachine.hpp>
#include <sta/tacos/startup.hpp>
// The UART mutex defined in freertos.c
@ -37,7 +36,7 @@ namespace sta
void initPrintable()
{
// Initialize the mutex for UART communication.
RtosMutex * mutex = new RtosMutex(&uartMutexHandle);
RtosMutex * mutex = new RtosMutex("uart");
// Initialize the UART interface and printable object.
UARTSettings settings = { .mode = UARTMode::RX_TX };