Compile Error GPT TIM1 Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
Flautz
Posts: 8
Joined: Sun Jun 02, 2013 9:32 pm
Been thanked: 1 time

Compile Error GPT TIM1

Post by Flautz »

Hello,

see the following bug:

- ChibiOS version or subversion revision number: Chibios 17.6 ID 1b08f1048f57587545f3854409dacccb91466fed
- Compiler: GCC 6.3
- Platform and board: STM32F40X
- Nature of the problem

When using GPT with TIM1 in chibios, there is a compiler error since commit 1b08f1048f57587545f3854409dacccb91466fed:

Compiling hal_gpt_lld.c
In file included from ../../chibios176/os/hal/ports/STM32/STM32F4xx/hal_lld.h:1995:0,
from ../../chibios176/os/hal/include/hal.h:110,
from ../../chibios176/os/hal/ports/STM32/LLD/TIMv1/hal_gpt_lld.c:25:
../../chibios176/os/hal/ports/STM32/LLD/TIMv1/hal_gpt_lld.c: In function 'gpt_lld_stop':
../../chibios176/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h:117:9: error: expected expression before ')' token
if (lp) \
^
../../chibios176/os/hal/ports/STM32/STM32F4xx/stm32_rcc.h:956:28: note: in expansion of macro 'rccDisableAPB2'
#define rccDisableTIM1(lp) rccDisableAPB2(RCC_APB2ENR_TIM1EN, lp)
^~~~~~~~~~~~~~
../../chibios176/os/hal/ports/STM32/LLD/TIMv1/hal_gpt_lld.c:707:7: note: in expansion of macro 'rccDisableTIM1'
rccDisableTIM1();
^~~~~~~~~~~~~~
make: *** [build/obj/hal_gpt_lld.o] Error 1
alexblack
Posts: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Re: Compile Error GPT TIM1

Post by alexblack »

Hi.
This error is for the TIM2, TIM3, TIM4 also, because "FALSE" was lost:
[img]
Clip2net_180812101407.jpg
[/img]
Attachments
Clip2net_180812101407.jpg
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Compile Error GPT TIM1

Post by Giovanni »

Fix committed, thanks.

Giovanni
Post Reply