Lesson 04 - Debug/debug_swo.c
static void PrintChar(char data)
{
    /* wait for TX ready */
    while (ITM->PORT[CHANNEL_DEBUG].u32 == 0);
    /* TX debug character */
    ITM->PORT[CHANNEL_DEBUG].u8 = (uint8_t)data;
}
/* print single character over SWO debug interface */
print single character over SWO debug interface
print single character over SWO debug interface
static void PrintChar(char data)
{
    while (ITM->PORT[CHANNEL_DEBUG].u32 == 0);
    ITM->PORT[CHANNEL_DEBUG].u8 = (uint8_t)data;
}
static void PrintChar ( char data ) { while ( ITM -> PORT [ CHANNEL_DEBUG ] . u32 == 0 ) ; ITM -> PORT [ CHANNEL_DEBUG ] . u8 = ( uint8_t ) data ; }
print single character over SWO debug interface
print single character over SWO debug interface
/* wait for TX ready */ /* TX debug character */