chg-stn-motherboard-ti-mcu/ivec_BSW/ivec_bsw_common/inc/ivec_bsw_common.h

48 lines
1.1 KiB
C

#ifndef IVEC_BSW_COMMON_H
#define IVEC_BSW_COMMON_H
#include "ivec_ecu_common.h"
typedef enum
{
//common
commonBSW_SUCCESS = 0,
commonBSW_WAIT,
commonBSW_INVALID_PARAM=-7,
commonBSW_FAIL = -6,
commonBSW_INIT_FAIL = -5,
commonBSW_DEINIT_FAIL,
commonBSW_CONFIG_FAIL,
commonBSW_READ_FAIL,
commonBSW_WRITE_FAIL,
commonBSW_ALREADY_INIT=-20,
commonBSW_ALREADY_DEINIT,
commonBSW_NOT_IMPLEMENTED
}IVEC_BswCommonErr_e;
typedef IVEC_EcuCommonCanFrame_s IVEC_BswCommonCanFrame_s;
#define IVEC_DELAY_MS(x)
#define BSW_LOG_ENABLE 0
#if BSW_LOG_ENABLE==1
#define IVEC_BSW_LOG(LOG_STRING, msg ,...) QL_LOG(QL_LOG_LEVEL_INFO, LOG_STRING, msg, ##__VA_ARGS__)
#else
#define IVEC_BSW_LOG(LOG_STRING,msg, ...)
#endif
#if 0
#define IVEC_BSW_FUNC_ENTRY(LOG_STRING,...) QL_LOG(QL_LOG_LEVEL_INFO, LOG_STRING, "BSW Entry", ##__VA_ARGS__)
#else
#define IVEC_BSW_FUNC_ENTRY(LOG_STRING, ...)
#endif
#if 0
#define IVEC_BSW_FUNC_EXIT(LOG_STRING,...) QL_LOG(QL_LOG_LEVEL_INFO, LOG_STRING, "BSW Exit:%d", ##__VA_ARGS__)
#else
#define IVEC_BSW_FUNC_EXIT(LOG_STRING, ...)
#endif
#endif /* IVEC_BSW_COMMON_H */