HAL_GPT_LLD.C TIMv1 - dublicate code block Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
alexblack
Posts: 211
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 16 times
Contact:

HAL_GPT_LLD.C TIMv1 - dublicate code block  Topic is solved

Postby alexblack » Thu Jan 16, 2020 6:36 pm

Hi.
ChibiOS stable19.1.x branch.
File ../os/hal/ports/STM32/LLD/TIMv1/hal_gpt_lld.c :

Code: Select all

...
802 #if STM32_GPT_USE_TIM15
803     if (&GPTD15 == gptp) {
804       rccEnableTIM15(true);
805       rccResetTIM15();
806 #if defined(STM32_TIM15CLK)
807       gptp->clock = STM32_TIM15CLK;
808 #else
809       gptp->clock = STM32_TIMCLK2;
810 #endif
811     }
812 #endif
813
814 #if STM32_GPT_USE_TIM15
815     if (&GPTD15 == gptp) {
816       rccEnableTIM15(true);
817       rccResetTIM15();
818 #if defined(STM32_TIM15CLK)
819       gptp->clock = STM32_TIM15CLK;
820 #else
821       gptp->clock = STM32_TIMCLK2;
822 #endif
823     }
824 #endif
...

Lines 802-813 and 815-825 are identical.

User avatar
Giovanni
Site Admin
Posts: 12400
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 612 times
Been thanked: 518 times
Contact:

Re: HAL_GPT_LLD.C TIMv1 - dublicate code block

Postby Giovanni » Thu Jan 16, 2020 7:03 pm

Hi,

Moving to bug reports.

Giovanni

User avatar
Giovanni
Site Admin
Posts: 12400
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 612 times
Been thanked: 518 times
Contact:

Re: HAL_GPT_LLD.C TIMv1 - dublicate code block

Postby Giovanni » Fri Jan 17, 2020 9:58 am

Fixed (in trunk) as bug #1067.

Will backport later.

Giovanni

User avatar
Giovanni
Site Admin
Posts: 12400
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 612 times
Been thanked: 518 times
Contact:

Re: HAL_GPT_LLD.C TIMv1 - dublicate code block

Postby Giovanni » Sat Jan 18, 2020 11:16 am

Backported to 19.1 and 18.2.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest