Is there a potential bug in HAL_StatusTypeDef enum definition?
typedef enum { HAL_OK = 0x00U, HAL_ERROR = 0x01U, HAL_BUSY = 0x02U, HAL_TIMEOUT = 0x03U, } HAL_StatusTypeDef;This is the actual defintion of the HAL_StatusTypeDef. Other status codes are defined in other modules headers ...