CubeMon-Vue-Demo-STM32F407VGT6U
swo.c File Reference
#include <stdio.h>
#include <string.h>
#include <sys/_stdint.h>
#include <lib/uti/swo.h>

Functions

retStatus swo_init (swoType type)
 Initialize the SWO message type, without initialization the type defaults to /ref SWO_NOT_ACTIVE. More...
 
void swo_print (char text[])
 Print a SWO message. More...
 

Variables

swoType swo_type = SWO_NOT_ACTIVE
 

Detailed Description

Author
panvicka
Date
2.1.2022

Function Documentation

◆ swo_init()

retStatus swo_init ( swoType  type)

Initialize the SWO message type, without initialization the type defaults to /ref SWO_NOT_ACTIVE.

Parameters
[in]typetype of the SWO messages
Returns
/ref EOK if the initialization succeeded /ref ENODEV in case the /p type is invalid

◆ swo_print()

void swo_print ( char  text[])

Print a SWO message.

Parameters
[in]texttext to print
Note
an \n character to appended to each message to prevent SVN console bug