Page 1 of 1

Macro rccDisableTIMx

Posted: Thu Mar 15, 2018 8:59 am
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)

Re: Macro rccDisableTIMx

Posted: Sat Mar 17, 2018 11:35 am
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