void debug_putc(int c)
{
+ if (c == '\n')
+ debug_putc('\r');
while (!LL_USART_IsActiveFlag_TXE(USART2))
;
LL_USART_TransmitData8(USART2, c);
for (;;)
{
- debug_printf(">>> %d\r\n", cnt);
+ debug_printf(">>> %d\n", cnt);
cnt++;
LL_GPIO_SetOutputPin(LD2_GPIO_Port, LD2_Pin);
LL_GPIO_SetOutputPin(MEGGY1_GPIO_Port, MEGGY1_Pin);