From 6c9f59fd561b3febdce339f47439b02b4ce1155d Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sun, 20 Nov 2022 19:15:07 -0500 Subject: [PATCH] big delete ICU #4270 random doc --- firmware/hw_layer/ports/stm32/stm32_common.cpp | 3 +++ firmware/hw_layer/ports/stm32/stm32_icu.cpp | 1 + 2 files changed, 4 insertions(+) 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) {