TI中文支持网
TI专业的中文技术问题搜集分享网站

Type #169-D argument of type "USER_Params *" is incompatible with parameter of type "uint16_t *" 这个警告怎样消除?

#ifndef _STDINT_H_
#define _STDINT_H_

/* 7.18.1.1 Exact-width integer types */

#if defined(__TMS320C28XX_CLA__)
    typedef          short  int16_t;
    typedef unsigned short uint16_t;
    typedef          int    int32_t;
    typedef unsigned int   uint32_t;
#else
    typedef          int    int16_t;
    typedef unsigned int   uint16_t;
    typedef          long   int32_t;
    typedef unsigned long  uint32_t;
#endif

#if defined(__TMS320C28X__)
    typedef          long long  int64_t;
    typedef unsigned long long uint64_t;
#endif

stdint.h

#ifndef FLASH2802X_API_LIBRARY_H
#define FLASH2802X_API_LIBRARY_H

#include "Flash2802x_API_Config.h"

#ifdef __cplusplus
extern "C" {
#endif

/*—————————————————————————
 28x Datatypes

 For Portability, User Is Recommended To Use Following Data Type Size
 Definitions For 16/32/64-Bit Signed/Unsigned Integers and floating point
 variables:
—————————————————————————*/

#ifndef DSP28_DATA_TYPES
#define DSP28_DATA_TYPES
typedef int                 int16;
typedef long                int32;
//typedef long long           int64;  typedef unsigned int        Uint16;
typedef unsigned long       Uint32;
//typedef unsigned long long  Uint64;
typedef float               float32;
typedef long double         float64;
#endif

调用flashApi  就出现

Type #169-D argument of type "USER_Params *" is incompatible with parameter of type "uint16_t * 警告,怎样消除它?

 

 

 

Johnson Chen1:

USER_Params  是定义为uint16_t ?从警告看应该是数据类型定义有冲突。

赞(0)
未经允许不得转载:TI中文支持网 » Type #169-D argument of type "USER_Params *" is incompatible with parameter of type "uint16_t *" 这个警告怎样消除?
分享到: 更多 (0)