blob: bf9f2960dc1eb282df80d7737bcefa784376ce38 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/**
2 *
3 * @file amt_custom_test.c
4 * @brief
5 * This file is part of FTM.
6 * AMT´úÀíÓ¦Óòã
7 *
8 * @details
9 * @author Tools Team.
10 * @email
11 * @copyright Copyright (C) 2013 Sanechips Technology Co., Ltd.
12 * @warning
13 * @date 2019/02/02
14 * @version 1.1
15 * @pre
16 * @post
17 *
18 * @par
19 * Change History :
20 * ---------------------------------------------------------------------------
21 * date version author description
22 * ---------------------------------------------------------------------------
23 * 2015/04/28 1.0 lu.xieji Create file
24 * 2019/02/02 1.1 jiang.fenglin ÐÞ¸Ä×¢ÊÍ·½Ê½Îªdoxygen
25 * ---------------------------------------------------------------------------
26 *
27 *
28 */
29
30
31#include <stdlib.h>
32#include <stdio.h>
33#include <string.h>
34#include <fcntl.h>
35#include <sys/stat.h>
36#include "amt.h"
37
38/**
39 * @brief AMT×Ô¶¨Òå²âÊÔ³õʼ»¯
40 * @return ³É¹¦·µ»Ø0, ʧ°Ü·µ»Ø-1
41 * @note
42 * @see
43 */
44int Amt_Custom_Init(void)
45{
46 return 0;
47}
48
49
50/**
51 * @brief AMT×Ô¶¨ÒåÏûÏ¢´¦Àíº¯Êý
52 * @param[in] msg_id FID
53 * @param[in] msg_buf ½ÓÊÕÊý¾Ýbuffer
54 * @param[in] msg_len ½ÓÊÕÊý¾Ýbuffer³¤¶È
55 * @return ³É¹¦·µ»Ø0, ʧ°Ü·µ»Ø-1
56 * @note
57 * @see
58 */
59int Amt_Custom_ProcessMsg(unsigned int msg_id, unsigned char* msg_buf, unsigned int msg_len)
60{
61 UNUSED(msg_buf);
62 UNUSED(msg_len);
63
64 AmtPrintf(AMT_INFO "%s: Custom message: %#04x.\n", __FUNCTION__, msg_id);
65 //Amt_CreateResponse(msg_id, NULL, 0);
66 return 0;
67}
68
69