Skip to content

Commit d2c0e78

Browse files
committed
Remove Timer and UART debug prints to save code space
1 parent 6d35237 commit d2c0e78

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cores/arduino/stm32/timer.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ uint32_t getTimerIrq(TIM_TypeDef* tim)
544544
#endif
545545
break;
546546
default:
547-
printf("TIM: Unknown timer IRQn");
547+
//printf("TIM: Unknown timer IRQn");
548548
break;
549549
}
550550
}
@@ -652,7 +652,7 @@ uint8_t getTimerClkSrc(TIM_TypeDef* tim)
652652
clkSrc = 2;
653653
break;
654654
default:
655-
printf("TIM: Unknown timer instance");
655+
//printf("TIM: Unknown timer instance");
656656
break;
657657
}
658658
}
@@ -686,7 +686,7 @@ uint32_t getTimerClkFreq(TIM_TypeDef* tim)
686686
#endif
687687
default:
688688
case 0:
689-
printf("TIM: Unknown clock source");
689+
//printf("TIM: Unknown clock source");
690690
break;
691691
}
692692
/* When TIMPRE bit of the RCC_DCKCFGR register is reset,

cores/arduino/stm32/uart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ void uart_init(serial_t *obj)
114114

115115
//Pins Rx/Tx must not be NP
116116
if(uart_rx == NP || uart_tx == NP) {
117-
printf("ERROR: at least one UART pin has no peripheral\n");
117+
//printf("ERROR: at least one UART pin has no peripheral\n");
118118
return;
119119
}
120120

121121
// Get the peripheral name (UART_1, UART_2, ...) from the pin and assign it to the object
122122
obj->uart = pinmap_merge_peripheral(uart_tx, uart_rx);
123123

124124
if(obj->uart == NP) {
125-
printf("ERROR: UART pins mismatch\n");
125+
//printf("ERROR: UART pins mismatch\n");
126126
return;
127127
}
128128
// Enable USART clock

0 commit comments

Comments
 (0)