ezhal_impl.h

来自「嵌入式实时内核源代码」· C头文件 代码 · 共 30 行

H
30
字号
//
// $Id: ezhal_impl.h,v 1.2 2005/05/26 11:34:09 weihan Exp $
//
//      HAL layer internal header file.
//
#ifndef _EZHAL_IMPL_H_
#define _EZHAL_IMPL_H_

#include "eztypes.h"

#ifdef _GNUC
#define ASM_VOLATILE    __asm__ __volatile__
#define ASM             ASM_VOLATILE

#define DECL_ASMENTRY(lable) \
        ASM(".global _"#lable";" \
            ".align;" \
            "_"#lable":");

#define DECL_ASMLINKAGE         EXTERN_C
#define DECL_ALIGN(n)           __attribute__ ((aligned(n)))
#define DECL_PACKED             __attribute__ ((packed))

#else
#error Compiler not supported.
#endif


#endif //_EZHAL_IMPL_H_

⌨️ 快捷键说明

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