引用函数extern Fapi_StatusType Fapi_doMarginRead(
uint32 *pu32StartAddress,
uint32 *pu32ReadBuffer,
uint32 u32Length,
Fapi_FlashReadMarginModeType oReadMode
);
时,出现如下报警:
Description Resource Path Location Type#190-D enumerated type mixed with another type
引用方式如下:
原因是第四个参数是枚举:
typedef enum
{
Fapi_NormalRead = 0x0,
Fapi_RM0 = 0x1,
Fapi_RM1 = 0x2
} ATTRIBUTE_PACKED Fapi_FlashReadMarginModeType;
对枚举的引用,只能在枚举列举的范围内选择枚举定义的标识符,即使数值一样,也要写标识符,不能写数值。不然就会给出这个警告。改成如下就没问题了: