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

📄 readme_pipeserver

📁 vxworks中的demo
💻
字号:
FILE LIST -	      pipeServer.cDESCRIPTION -	     This demo demonstrates intertask communication using pipes.	     ServerStart() initializes a server task to execute functions	     at a low priority and uses pipes as the communication	     mechanism.	     serverSend() sends a request to the server to execute a	     function at the server's  priority using pipe device.	     To run the code invoke the function serverStart().RUNNING DEMO -	     Place the pipeServer.c file in your <Tornado> dir. Depending	     on the target you have, define the CPU in your compile line 	     and use the Makefile in the BSP dir. to compile.	     A host function such as i() cannot be used as the function	     argument to serveSend.	     eg: -> serverSend(i,"tShell") will not work	     However if you wish to do that then make sure to add	     INCLUDE_CONFIGURATION_5_2 and INCLUDE_DEBUG in configAll.h and	     re-make vxWorks.TESTED ON -   Host/Target : Solaris 2.5.1 / mv1604	      VxWorks     : 5.3.1	      EXAMPLE COMPILE LINE - (use the MakeFile in the BSP)			    make CPU=PPC604 pipeServer.o		     % make pipeServer.occppc -B/petaluma1/mayur/tor101-ppc/host/sun4-solaris2/lib/gcc-lib/ -mstrict-align -ansi -nostdinc -O2 -fvolatile -fno-builtin -fno-for-scope -Wall -I/h   -I. -I/petaluma1/mayur/tor101-ppc/target/config/all -I/petaluma1/mayur/tor101-ppc/target/h -I/petaluma1/mayur/tor101-ppc/target/src/config -I/petaluma1/mayur/tor101-ppc/target/src/drv -DCPU=PPC604  -DMV1600 -DTARGET_DIR="\"mv1604\""   -c pipeServer.cOUTPUTS/LOGFILE -On VxWorks target:==================-> ld <pipeServer.ovalue = 2578392 = 0x2757d8-> serverStart   value = 0 = 0x0-> serverSend (printf,"Hello World. \n")value = 0 = 0x0The Output on Console:======================Hello World.	      

⌨️ 快捷键说明

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