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
Compile Error GPT TIM1 Topic is solved
-
- Posts: 276
- Joined: Mon Sep 24, 2012 3:52 pm
- Location: Donetsk
- Been thanked: 32 times
- Contact:
Re: Compile Error GPT TIM1
Hi.
This error is for the TIM2, TIM3, TIM4 also, because "FALSE" was lost:
[img] [/img]
This error is for the TIM2, TIM3, TIM4 also, because "FALSE" was lost:
[img] [/img]
- 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:
Who is online
Users browsing this forum: No registered users and 18 guests