Macro rccDisableTIMx Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
omcdr
Posts: 89
Joined: Wed Aug 17, 2016 3:25 pm
Has thanked: 7 times
Been thanked: 7 times

Macro rccDisableTIMx

Post by omcdr »

In file community\os\hal\ports\STM32\LLD\TIMv1\hal_eicu_lld.c there is macros rccDisableTIMx with parametr FALSE

Code: Select all

#if STM32_EICU_USE_TIM2
    if (&EICUD2 == eicup) {
      nvicDisableVector(STM32_TIM2_NUMBER);
      rccDisableTIM2(FALSE);
    }


but in file os\hal\ports\STM32\STM32F4xx\stm32_rcc.h there is macro without argument

Code: Select all

#define rccDisableTIM2() rccDisableAPB1(RCC_APB1ENR_TIM2EN)
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Macro rccDisableTIMx

Post by Giovanni »

Hi,

That code is community-maintained, the best thing to do is to make a pull request to the github project with fixes.

Giovanni
Post Reply