| /**
|
| *
|
| * @file amt_custom_test.c
|
| * @brief
|
| * This file is part of FTM.
|
| * AMT´úÀíÓ¦Óòã
|
| *
|
| * @details
|
| * @author Tools Team.
|
| * @email
|
| * @copyright Copyright (C) 2013 Sanechips Technology Co., Ltd.
|
| * @warning
|
| * @date 2019/02/02
|
| * @version 1.1
|
| * @pre
|
| * @post
|
| *
|
| * @par
|
| * Change History :
|
| * ---------------------------------------------------------------------------
|
| * date version author description
|
| * ---------------------------------------------------------------------------
|
| * 2015/04/28 1.0 lu.xieji Create file
|
| * 2019/02/02 1.1 jiang.fenglin ÐÞ¸Ä×¢ÊÍ·½Ê½Îªdoxygen
|
| * ---------------------------------------------------------------------------
|
| *
|
| *
|
| */
|
|
|
|
|
| #include <stdlib.h>
|
| #include <stdio.h>
|
| #include <string.h>
|
| #include <fcntl.h>
|
| #include <sys/stat.h>
|
| #include "amt.h"
|
|
|
| /**
|
| * @brief AMT×Ô¶¨Òå²âÊÔ³õʼ»¯
|
| * @return ³É¹¦·µ»Ø0, ʧ°Ü·µ»Ø-1
|
| * @note
|
| * @see
|
| */
|
| int Amt_Custom_Init(void)
|
| {
|
| return 0;
|
| }
|
|
|
|
|
| /**
|
| * @brief AMT×Ô¶¨ÒåÏûÏ¢´¦Àíº¯Êý
|
| * @param[in] msg_id FID
|
| * @param[in] msg_buf ½ÓÊÕÊý¾Ýbuffer
|
| * @param[in] msg_len ½ÓÊÕÊý¾Ýbuffer³¤¶È
|
| * @return ³É¹¦·µ»Ø0, ʧ°Ü·µ»Ø-1
|
| * @note
|
| * @see
|
| */
|
| int Amt_Custom_ProcessMsg(unsigned int msg_id, unsigned char* msg_buf, unsigned int msg_len)
|
| {
|
| UNUSED(msg_buf);
|
| UNUSED(msg_len);
|
|
|
| AmtPrintf(AMT_INFO "%s: Custom message: %#04x.\n", __FUNCTION__, msg_id);
|
| //Amt_CreateResponse(msg_id, NULL, 0);
|
| return 0;
|
| }
|
|
|
|
|