SWO messages handling.
More...
Go to the source code of this file.
SWO messages handling.
- Author
- panvicka
- Date
- 2.1.2022
◆ swoType
Enumerator |
---|
SWO_NOT_ACTIVE | SWO messages turned off.
|
SWO_PLAIN_MESSAGES | SWO messages printed as they are.
|
SWO_RTC_SUPPORT | SWO messages printed with date and time.
|
SWO_NONE | dummy, so we always know the enum length
|
◆ swo_init()
Initialize the SWO message type, without initialization the type defaults to /ref SWO_NOT_ACTIVE.
- Parameters
-
[in] | type | type 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
-
- Note
- an
\n
character to appended to each message to prevent SVN console bug