_const.h

来自「AVR megal128下的ucos_ii」· C头文件 代码 · 共 17 行

H
17
字号
#ifndef __CONST_H
#define __CONST_H

/* For AVR, const means program memory object. For the Standard C libray,
 * const often simply means that the function will not modify the argument
 * so these two uses are not compatible.
 * Using this macro in the standard header file makes them compatible
 * with all targets
 */
#if defined(_AVR) || defined(_M8C)
#define CONST
#else
#define CONST const
#endif

#endif

⌨️ 快捷键说明

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