smtportmapping.c

来自「GM5621原代码」· C语言 代码 · 共 36 行

C
36
字号
//******************************************************************
//
//      Copyright (C) 2005.  GENESIS MICROCHIP INC.
// All rights reserved.  No part of this program may be reproduced
//
//   Genesis Microchip Inc., 165 Commerce Valley Dr. West
//      Thornhill, Ontario, Canada, L3T 7V8
//
//================================================================
//
// MODULE:      SMT_PortMapping.c
//
//******************************************************************

#include "inc\all.h"

#if USE_SMT
//*************************************************************************
// Streaming Message Transport Protocol PortID <-> Handler mapping
//*************************************************************************
// IMPORTANT!
// To add a new port handling 3 parts should be modified
// 1. Table SMT_Port2HandlerTable below 
// 2. Type SMT_Port_t in SMT.h
// 3. Define SMT_MAX_BUF_SIZE in SMT.h
SMT_PortMapping_t ROM SMT_Port2HandlerTable[  ] = // SMT_NUM_PORT_MAPPED
{
#if USE_ACM_3D
	{ SMTPORT_ACM3, (FPT_SMT_MsgHandler)ACM3_SMT_MsgHandler },
#endif
// end mark of the table, make all additions to table before this line
	{ MAX_SMTPORT, NULL_PTR }
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?