diff --git a/firmware/hw_layer/ports/stm32/stm32_common.cpp b/firmware/hw_layer/ports/stm32/stm32_common.cpp index ba470e0afb..30fc913899 100644 --- a/firmware/hw_layer/ports/stm32/stm32_common.cpp +++ b/firmware/hw_layer/ports/stm32/stm32_common.cpp @@ -230,6 +230,9 @@ private: }; } +/** + * Could this be unified with getIcuParams() method? + */ static expected getConfigForPin(brain_pin_e pin) { switch (pin) { #if STM32_PWM_USE_TIM1 diff --git a/firmware/hw_layer/ports/stm32/stm32_icu.cpp b/firmware/hw_layer/ports/stm32/stm32_icu.cpp index e2bb2bfba1..209077e115 100644 --- a/firmware/hw_layer/ports/stm32/stm32_icu.cpp +++ b/firmware/hw_layer/ports/stm32/stm32_icu.cpp @@ -110,6 +110,7 @@ /** * ChibiOS limitation is that only channels #1 and #2 could be used for input capture + * Could this be unified with getConfigForPin() method? */ bool getIcuParams(brain_pin_e hwPin, iomode_t *af_ptr, ICUDriver ** icu_ptr, icuchannel_t *channel_ptr, uint32_t *clock_ptr) {