STM32 GPIO LLD register naming issue Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Thargon
Posts: 135
Joined: Wed Feb 04, 2015 5:03 pm
Location: CITEC, Bielefeld University, germany
Has thanked: 15 times
Been thanked: 24 times
Contact:

STM32 GPIO LLD register naming issue  Topic is solved

Postby Thargon » Mon Oct 14, 2019 11:46 am

Hi,

I just encountered a compilation error when calling palIsLineEventEnabledX() using an STM32L476.

The function is defined identically in all three GPIO LLD versions:

Code: Select all

#define pal_lld_ispadeventenabled(port, pad)                                \
  (bool)((EXTI->IMR & (1U << (uint32_t)pad)) != 0U)

Now the issue is, that IMR is not defined for this microcontroller.
Looking up the EXTI_TypeDef struct in the stm32l476xx.h file reveals that there are in fact two register sets, which include IMR1 and IMR2.
A brief search indicates, that there are probably several microcontrollers affected by this:
  • STM32F3
  • STM32H7
  • STM32L4
Can you confirm the issue, or am I missing something here?

Thomas

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

Re: STM32 GPIO LLD register naming issue

Postby Giovanni » Mon Oct 14, 2019 12:10 pm

Thanks, I need to verify, those headers have a lot of naming differences.

Giovanni

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

Re: STM32 GPIO LLD register naming issue

Postby Giovanni » Sat Oct 19, 2019 9:17 am

Hi,

Fixed as bug #1051 on trunk and 19.1.4. Could you please verify?

Giovanni

Thargon
Posts: 135
Joined: Wed Feb 04, 2015 5:03 pm
Location: CITEC, Bielefeld University, germany
Has thanked: 15 times
Been thanked: 24 times
Contact:

Re: STM32 GPIO LLD register naming issue

Postby Thargon » Tue Oct 22, 2019 12:51 pm

Hi,

the fix works fine for me. Thank you!


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 66 guests