parent
29f4216c9b
commit
fae84c2a61
|
@ -230,6 +230,9 @@ private:
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Could this be unified with getIcuParams() method?
|
||||||
|
*/
|
||||||
static expected<stm32_pwm_config> getConfigForPin(brain_pin_e pin) {
|
static expected<stm32_pwm_config> getConfigForPin(brain_pin_e pin) {
|
||||||
switch (pin) {
|
switch (pin) {
|
||||||
#if STM32_PWM_USE_TIM1
|
#if STM32_PWM_USE_TIM1
|
||||||
|
|
|
@ -110,6 +110,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ChibiOS limitation is that only channels #1 and #2 could be used for input capture
|
* 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)
|
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