parent
dba737e9d5
commit
6c9f59fd56
|
@ -230,6 +230,9 @@ private:
|
|||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Could this be unified with getIcuParams() method?
|
||||
*/
|
||||
static expected<stm32_pwm_config> getConfigForPin(brain_pin_e pin) {
|
||||
switch (pin) {
|
||||
#if STM32_PWM_USE_TIM1
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue