⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hello.c

📁 此程序运行在Tornado环境中,里面包含了tornado入门的基本程序,也是Vxworks入门非常好的资料,里面包括信号量,消息,队列,中断,事件,等等的示例,还有tornado环境工具如windv
💻 C
字号:
/* hello.c -- hello "world" function */

#include "vxWorks.h"
#include "stdio.h"
#include "semLib.h"
#include "taskLib.h"

SEM_ID semM;


int hello(void)
{
	printf("hello world!\n");
	return OK;
}

void test(void)
{
	semM = semMCreate(0);
	
}

int test1(void)
{
	semTake(semM,-1);
	printf(" take a semM \n");
	semGive(semM);
	return OK;
}
	
	

⌨️ 快捷键说明

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