cconfig.h

来自「vt6528芯片交换机API函数和文档运行程序」· C头文件 代码 · 共 64 行

H
64
字号
/*
 * File:    cconfig.h
 */


#ifndef __CCONFIG_H__
#define __CCONFIG_H__

#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif




/******* Platform Generic Configuration **************************************/

//--------------------------------------
// Define to insure proper alignment for the structure member
//--------------------------------------
#define __PAD_ALGN_1        1
#define __PAD_ALGN_2        2
#define __PAD_ALGN_3        3


#ifdef __TOOLS_ADS
    #define __PACKED            __packed
    #define __PACKED_GCC
#else
    #define __PACKED
    #define __PACKED_GCC        __attribute__((packed))
#endif


#define STRUCT_PACK_BEGIN(strctname)    __PACKED struct strctname {
#define STRUCT_PACK_END(strctname)      } __PACKED_GCC;




/******* User configuration **************************************************/

//--------------------------------------
// Define for debug, uncomment some of the following lines, if want to debug
//--------------------------------------
#define __DEBUG                 0       // on/off for debug code
#define __DEBUG_PRN_PANIC       1       // on/off for print severe error message, aka panic message
#define __DEBUG_PRN             1       // on/off for print debug message
#define __DEBUG_BREAK           0       // on/off for break point




//--------------------------------------
// This section is for user configuration, defined as your wish
//--------------------------------------




#endif /* __CCONFIG_H__ */


⌨️ 快捷键说明

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