Compile Error GPT TIM1 Topic is solved

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

Compile Error GPT TIM1  Topic is solved

Postby Flautz » Sun Aug 26, 2018 9:52 pm

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: 276
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 32 times
Contact:

Re: Compile Error GPT TIM1

Postby alexblack » Wed Aug 29, 2018 11:07 pm

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: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Compile Error GPT TIM1

Postby Giovanni » Thu Sep 06, 2018 1:56 pm

Fix committed, thanks.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 18 guests