论坛» 嵌入式开发» MCU

vxworks入门疑问

菜鸟
2005-10-22 00:48 1楼
请教各位,vxworks里面经常出现的:LOCAL STATUS FUNCPTR等等到底表示什么啊/谢谢了。
菜鸟
2005-10-22 19:04 2楼

在vxWorks.h里有啊,

LOCAL=static

菜鸟
2005-10-25 00:11 3楼
就是在vxWorks.h中定义了很多宏,读起来有点麻烦
菜鸟
2005-11-12 04:13 4楼

STATUS 其实是int, vxworks里面重新定义了一些类型, 是为了理解方便.

FUNCPTR 就是函数指针了, 应该就是 (void *)了

菜鸟
2005-11-12 05:25 5楼

很多朋友都问过这种问题:

vxWorks.h

/* storage class specifier definitions */

#define FAST register
#define IMPORT extern
#define LOCAL static

vxTypesOld.h

typedef int (*FUNCPTR) (); /* ptr to function returning int */
typedef void (*VOIDFUNCPTR) (); /* ptr to function returning void */
typedef double (*DBLFUNCPTR) (); /* ptr to function returning double*/
typedef float (*FLTFUNCPTR) (); /* ptr to function returning float */

菜鸟
2005-11-12 17:39 6楼

感激不尽!!多谢各位达人了:)

共6条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册]