sailyugang 发表于 2014-10-9 18:28:40

关于stm8s的enum求助

今天看到一段这样的代码
typedef enum
{
    MB_ENOERR,                  /*!< no error. */
    MB_ENOREG,                  /*!< illegal register address. */
    MB_EINVAL,                  /*!< illegal argument. */
    MB_EPORTERR,                /*!< porting layer error. */
    MB_ENORES,                  /*!< insufficient resources. */
    MB_EIO,                     /*!< I/O error. */
    MB_EILLSTATE,               /*!< protocol stack in illegal state. */
    MB_ETIMEDOUT                /*!< timeout error occurred. */
} eMBErrorCode;
eMBErrorCode   eMBRegDiscreteCB( UCHAR * pucRegBuffer, USHORT usAddress,
                                  USHORT usNDiscrete );
但是st的编译器ST Visual Develop 总是提示symbol _eMBRegDiscreteCB not defined;
求专家解释;010:'(:'(
 

sailyugang 发表于 2014-10-10 09:52:10

RE:关于stm8s的enum求助

问题已经解决!!
页: [1]
查看完整版本: 关于stm8s的enum求助