STMicroelectronics / STM32CubeF7

STM32Cube MCU Full Package for the STM32F7 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
320 stars 191 forks source link

Changed macro IS_GPIO_PIN. #84

Closed KamilDuljas closed 10 months ago

KamilDuljas commented 1 year ago

This macro has not fully test coverage for GPIO pin. For example, if I defined my pin manually:

define MY_GPIO_PIN 0x0003U

and use IS_GPIO_PIN(MY_GPIO_PIN), then it return true, but it should not

TOUNSTM commented 1 year ago

Hello @KamilDuljas,

Thank you for your report. In fact, MY_GPIO_PIN 0x0003U is a valid parameter for the IS_GPIO_PIN macro as this macro accepts any combination of GPIO_PIN_x where x can be (0..15). We'll add this information in a comment to clarify things.

With Regards,

TOUNSTM commented 1 year ago

ST Internal Reference: 153705