30 lines
339 B
C
30 lines
339 B
C
#ifndef __LIN_USER_H__
|
|
#define __LIN_USER_H__
|
|
|
|
#include "r_cg_macrodriver.h"
|
|
|
|
//config
|
|
#define MSG_NUM 2
|
|
|
|
extern uint8_t g_rxbuf[8],g_txbuf[8];
|
|
|
|
|
|
|
|
//定义
|
|
typedef struct
|
|
{
|
|
uint8_t pid;
|
|
uint8_t len;
|
|
uint8_t dir;
|
|
uint8_t *buf;
|
|
}MSGTYPE;
|
|
|
|
#define MSG_DIR_RX 0
|
|
#define MSG_DIR_TX 1
|
|
|
|
|
|
extern MSGTYPE LIN_cfg_arr[];
|
|
|
|
#endif
|
|
|