AnsweredAssumed Answered

STM32Cube F4 FW 1.5.0 -- USBD_StatusTypeDef not used where appropriate

Question asked by Mike Duffy on May 19, 2015
Latest reply on Jan 14, 2017 by katzenberger.michael
Functions in usbd_cdc.c which return values of USBD_StatusTypeDef as defined in usbd_def.h (e.g USBD_OK) are defined as uint_8.

This causes IAR to issue "enumerated type mixed with another type" errors when properly typing variables to hold the return value of these functions.  Yes, it is possible to cast the result to eliminate the warning, but the source should be corrected (IMNSHO).