Moved doxygen to weak implementation and added tacos defgroup

This commit is contained in:
dario 2024-01-02 12:51:22 +01:00
parent 08ed271f13
commit ada57bc36e

View File

@ -5,6 +5,12 @@
* Author: Dario
*/
/**
* @defgroup tacos
* @brief TACOS library.
*/
#include <sta/config.hpp>
#include <cmsis_os2.h>
@ -32,7 +38,8 @@ namespace sta
// Here the printable used for debugging is defined.
Printable * Debug;
namespace tacos {
namespace tacos
{
void initPrintable()
{
// Initialize the mutex for UART communication.
@ -50,11 +57,14 @@ namespace sta
namespace tacos
{
/**
* @brief Function that is called before the statemachine task is started. Override it to
* adjust the statemachine to your specifications.
*/
STA_WEAK
void onStatemachineInit()
{}
void initStatemachine()
{
onStatemachineInit();
@ -62,12 +72,14 @@ namespace sta
Statemachine::instance()->start();
}
/**
* @brief Function that is called before the manager task is started. Override it to adjust
* the manager to your specifications.
*/
STA_WEAK
void onManagerInit()
{}
void initManager()
{
onManagerInit();