STMicroelectronics / stm32-mw-fatfs

Provides the FatFS library part of the STM32Cube MCU Component "middleware" for all STM32xx series.
BSD 3-Clause "New" or "Revised" License
16 stars 8 forks source link

fix: replacing NULL by 0 in osMessageQueuePut call #6

Closed motla closed 11 months ago

motla commented 1 year ago

Hi,

As staten in the CMSIS-RTOS V2 docs, osMessageQueuePut() takes an uint8_t for its msg_prio argument. The code supplied a NULL pointer instead of 0, which triggers the following warning when compiling with STM32CubeIDE:

warning: passing argument 3 of 'osMessageQueuePut' makes integer from pointer without a cast [-Wint-conversion]

I don't know if this change will apply automatically on the code generated by STM32CubeMX when FreeRTOS is enabled. Could you make sure it does?

Fixes #4

HBOSTM commented 1 year ago

ST Internal Reference: 97597

ALABSTM commented 11 months ago

Hi @motla,

Thank you for this contribution. Approved.

With regards,