In McuSWO.c, in SWO_PrintChar, the port number is provided as a parameter, the the code always sends the character to port 0.
while (ITM->PORT[0].u32 == 0) {
/ Wait until STIMx is ready, then send data /
timeout--;
if (timeout==0) {
return; / not able to send /
}
}
ITM->PORT[0].u8 = c;
In McuSWO.c, in SWO_PrintChar, the port number is provided as a parameter, the the code always sends the character to port 0.
while (ITM->PORT[0].u32 == 0) { / Wait until STIMx is ready, then send data / timeout--; if (timeout==0) { return; / not able to send / } } ITM->PORT[0].u8 = c;