Serial Wire Output (SWO) viewer for tracing purposes. Tested on F401 and ST-LINK Utility as well as for F103 and Segger J-Link SWO viewer.
Dependents: WiFi_Scanner mbed_nucleo_swo DISCO-F429ZI_LCDTS_demo_richard TEST_SM_SPEED
SWO.h@0:0fd55660fc26, 2014-03-28 (annotated)
- Committer:
- wim
- Date:
- Fri Mar 28 19:32:13 2014 +0000
- Revision:
- 0:0fd55660fc26
- Child:
- 1:bae4cff278f6
First Test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wim | 0:0fd55660fc26 | 1 | /*---------------------------------------------------------------------- |
wim | 0:0fd55660fc26 | 2 | File : SWO.h |
wim | 0:0fd55660fc26 | 3 | Purpose : Simple implementation for output via SWO for Cortex-M processors. |
wim | 0:0fd55660fc26 | 4 | It can be used with any IDE. This sample implementation ensures that |
wim | 0:0fd55660fc26 | 5 | output via SWO is enabled in order to guarantee that the application |
wim | 0:0fd55660fc26 | 6 | does not hang. |
wim | 0:0fd55660fc26 | 7 | |
wim | 0:0fd55660fc26 | 8 | */ |
wim | 0:0fd55660fc26 | 9 | #ifndef _SWO_H |
wim | 0:0fd55660fc26 | 10 | #define _SWO_H |
wim | 0:0fd55660fc26 | 11 | |
wim | 0:0fd55660fc26 | 12 | /** Prototypes |
wim | 0:0fd55660fc26 | 13 | */ |
wim | 0:0fd55660fc26 | 14 | void SWO_PrintChar (char c); |
wim | 0:0fd55660fc26 | 15 | void SWO_PrintString(const char *s); |
wim | 0:0fd55660fc26 | 16 | |
wim | 0:0fd55660fc26 | 17 | |
wim | 0:0fd55660fc26 | 18 | #endif |