WindriverGovernmentExempleRoutineFoutainCode

所属分类:VxWorks
开发工具:Others
文件大小:614KB
下载次数:46
上传日期:2006-10-30 12:07:12
上 传 者dankey
说明:  这里包含了风河vxworks系统中的官方例程的C源代码
(here includes Wind River Systems vxworks official routines of C source code)

文件列表:
docSAFE - Documents.files\Document.files\Blank.files\Style.css (4624, 2004-05-12)
docSAFE - Documents.files\Document.files\Blank.files (0, 2004-05-12)
docSAFE - Documents.files\Document.files\Blank.htm (528, 2004-05-12)
docSAFE - Documents.files\Document.files\Corner.files\left_edge.gif (51, 2004-05-12)
docSAFE - Documents.files\Document.files\Corner.files\right_edge.gif (51, 2004-05-12)
docSAFE - Documents.files\Document.files\Corner.files\Style.css (4624, 2004-05-12)
docSAFE - Documents.files\Document.files\Corner.files (0, 2004-05-12)
docSAFE - Documents.files\Document.files\Corner.htm (891, 2004-05-12)
docSAFE - Documents.files\Document.files\Documents.files\sp.gif (3963, 2004-05-12)
docSAFE - Documents.files\Document.files\Documents.files\Style.css (4624, 2004-05-12)
docSAFE - Documents.files\Document.files\Documents.files\welcome.gif (2042, 2004-05-12)
docSAFE - Documents.files\Document.files\Documents.files (0, 2004-05-12)
docSAFE - Documents.files\Document.files\Documents.htm (72571, 2004-05-12)
docSAFE - Documents.files\Document.files (0, 2004-05-12)
docSAFE - Documents.files\Document.htm (1092, 2004-05-12)
docSAFE - Documents.files\footer.files\Style.css (4624, 2004-05-12)
docSAFE - Documents.files\footer.files (0, 2004-05-12)
docSAFE - Documents.files\footer.htm (855, 2004-05-12)
docSAFE - Documents.files\Header.files\bgfill.jpg (839, 2004-05-12)
docSAFE - Documents.files\Header.files\docsafe.gif (1034, 2004-05-12)
docSAFE - Documents.files\Header.files\head.gif (26656, 2004-05-12)
docSAFE - Documents.files\Header.files\house_small.gif (1032, 2004-05-12)
docSAFE - Documents.files\Header.files\question_small.gif (1009, 2004-05-12)
docSAFE - Documents.files\Header.files\Style.css (4624, 2004-05-12)
docSAFE - Documents.files\Header.files\word_balloon_small.gif (1027, 2004-05-12)
docSAFE - Documents.files\Header.files (0, 2004-05-12)
docSAFE - Documents.files\Header.htm (4475, 2004-05-12)
docSAFE - Documents.files (0, 2004-05-12)
netinet\if.c (22675, 2000-08-02)
netinet\if_ether.c (35240, 2000-10-10)
netinet\if_subr.c (27530, 2000-08-02)
netinet\igmp.c (10053, 2000-08-02)
netinet\in.c (25452, 2000-10-12)
netinet\in_cksum.c (5426, 2000-08-02)
netinet\in_pcb.c (18528, 2000-09-17)
netinet\in_proto.c (4406, 2000-08-02)
netinet\ip_icmp.c (16509, 2000-08-02)
netinet\ip_input.c (34299, 2000-10-03)
netinet\ip_mroute.c (21802, 2000-08-02)
netinet\ip_output.c (31887, 2000-08-02)
... ...

FILE LIST - semTask1.c semTask2.c DESCRIPTION - The following code example creates two tasks executing on different CPUs and using shared semaphores. The routine semTask1( ) creates the shared semaphore, initializing the state to full. It adds the semaphore to the name database (to enable the task on the other CPU to access it), takes the semaphore, does some processing, and gives the semaphore. The task semTask2( ) gets the semaphore ID from the database, takes the semaphore, does some processing, and gives the semaphore. RUNNING DEMO - Place semTask1.c and semTask2.c in your dir. Depending on the target you have, define the CPU in your compile line and use the Makefile in the BSP dir. to compile. Add INCLUDE_SM_NET , INCLUDE_SM_SEQ_ADDR and INCLUDE_SM_OBJ in the config.h file in the BSP Install VxMP into your Tornado tree before running this code. Re-make vxWorks and reboot your board, before running. To run this demo invoke the semTask1() first followed by the semTask2(). 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 semTask1.o make CPU=PPC604 semTask2.o % make semTask1.o iccppc -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 semTask1.c iccppc -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 semTask2.c OUTPUTS/LOGFILE - On VxWorks target: ================= -> ld ld
近期下载者

相关文件


收藏者