73 lines
1.9 KiB
C
73 lines
1.9 KiB
C
#ifndef UDS_CONFIG_H
|
|
#define UDS_CONFIG_H
|
|
|
|
#include "sys.h"
|
|
|
|
#include <stdint.h>
|
|
#include <stddef.h> /* This header is included for bool type */
|
|
#include <stdbool.h>
|
|
#include <stdio.h>
|
|
#include <math.h>
|
|
#include <string.h>
|
|
|
|
#include "uds_types.h"
|
|
#include "bootloader.h"
|
|
|
|
// #include "config.h"
|
|
#include "uds_did.h"
|
|
#include "uds_dtc.h"
|
|
#include "uds_can_interface.h"
|
|
#include "diagnosis_mid.h"
|
|
#include "tp_15765_2.h"
|
|
#include "tp_config.h"
|
|
#include "uds_interface.h"
|
|
#include "uds_manage.h"
|
|
#include "uds_services.h"
|
|
#include "uds_api.h"
|
|
#include "crc.h"
|
|
|
|
|
|
#define ECU_APP_FLAG "DCBMSQiruiB30C42"
|
|
|
|
/*!
|
|
* @file uds_config.h
|
|
* @brief UDS configuration file.
|
|
*
|
|
* misra_violations MISRA-C:2012 violations
|
|
*/
|
|
|
|
#define CAN_STD ((S16)0) /*!< standard type ID */
|
|
#define CAN_XTD ((S16)1) /*!< extended type ID */
|
|
|
|
#define CAN_RX ((S16)0) /*!< receive type */
|
|
#define CAN_TX ((S16)1) /*!< transmit type */
|
|
|
|
|
|
/**********************************************************************
|
|
* UDS information configuration
|
|
**********************************************************************/
|
|
/*! @brief PHYSICAL TRANSMIT ID. */
|
|
//#define UDS_PHY_TX_ID 0x075C//0x18DAF100
|
|
|
|
#define UDS_PHY_TX_ID 0x0777
|
|
|
|
/*! @brief PHYSICAL TRANSMIT ID TYPE, CAN_STD or CAN_XTD */
|
|
#define UDS_PHY_TX_TYPE CAN_XTD
|
|
/*! @brief PHYSICAL TRANSMIT ID DIRECTION, CAN_TX or CAN_RX */
|
|
#define UDS_PHY_TX_DIR CAN_TX
|
|
|
|
/*! @brief PHYSICAL RECEIVE ID. */
|
|
#define UDS_PHY_RX_ID 0x077F
|
|
/*! @brief PHYSICAL RECEIVE ID TYPE, CAN_STD or CAN_XTD */
|
|
#define UDS_PHY_RX_TYPE CAN_XTD
|
|
/*! @brief PHYSICAL RECEIVE ID DIRECTION, CAN_TX or CAN_RX */
|
|
#define UDS_PHY_RX_DIR CAN_RX
|
|
|
|
/*! @brief FUNCTIONAL TRANSMIT ID. */
|
|
#define UDS_FUN_TX_ID 0x07DF//0x18DB33F1
|
|
/*! @brief FUNCTIONAL TRANSMIT ID TYPE, CAN_STD or CAN_XTD */
|
|
#define UDS_FUN_TX_TYPE CAN_XTD
|
|
/*! @brief FUNCTIONAL TRANSMIT ID DIRECTION, CAN_TX or CAN_RX */
|
|
#define UDS_FUN_TX_DIR CAN_TX
|
|
#endif
|