Vxworks_demo
所属分类:VxWorks
开发工具:Others
文件大小:644KB
下载次数:80
上传日期:2009-02-08 16:03:34
上 传 者:
azheng757
说明: 官方源码,十分难得,具有很好的风格和内涵,特别适用于初学者!
(It is WRS source code,very precious,with perfect style and contents especially for beginner!)
文件列表:
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Document.files\Blank.files\Style.css (4624, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Document.files\Blank.htm (528, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Document.files\Corner.files\left_edge.gif (51, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Document.files\Corner.files\right_edge.gif (51, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Document.files\Corner.files\Style.css (4624, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Document.files\Corner.htm (891, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Document.files\Documents.files\sp.gif (3963, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Document.files\Documents.files\Style.css (4624, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Document.files\Documents.files\welcome.gif (2042, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Document.files\Documents.htm (72571, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Document.htm (1092, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\footer.files\Style.css (4624, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\footer.htm (855, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Header.files\bgfill.jpg (839, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Header.files\docsafe.gif (1034, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Header.files\head.gif (26656, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Header.files\house_small.gif (1032, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Header.files\question_small.gif (1009, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Header.files\Style.css (4624, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Header.files\word_balloon_small.gif (1027, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\docSAFE - Documents.files\Header.htm (4475, 2004-05-12)
Vxworks_demo\Vxworks 官方demo源代码\netinet\if.c (22675, 2000-08-02)
Vxworks_demo\Vxworks 官方demo源代码\netinet\if_ether.c (35240, 2000-10-10)
Vxworks_demo\Vxworks 官方demo源代码\netinet\if_subr.c (27530, 2000-08-02)
Vxworks_demo\Vxworks 官方demo源代码\netinet\igmp.c (10053, 2000-08-02)
Vxworks_demo\Vxworks 官方demo源代码\netinet\in.c (25452, 2000-10-12)
Vxworks_demo\Vxworks 官方demo源代码\netinet\in_cksum.c (5426, 2000-08-02)
Vxworks_demo\Vxworks 官方demo源代码\netinet\in_pcb.c (18528, 2000-09-17)
Vxworks_demo\Vxworks 官方demo源代码\netinet\in_proto.c (4406, 2000-08-02)
Vxworks_demo\Vxworks 官方demo源代码\netinet\ip_icmp.c (16509, 2000-08-02)
Vxworks_demo\Vxworks 官方demo源代码\netinet\ip_input.c (34299, 2000-10-03)
Vxworks_demo\Vxworks 官方demo源代码\netinet\ip_mroute.c (21802, 2000-08-02)
Vxworks_demo\Vxworks 官方demo源代码\netinet\ip_output.c (31887, 2000-08-02)
Vxworks_demo\Vxworks 官方demo源代码\netinet\Makefile (903, 2000-10-12)
Vxworks_demo\Vxworks 官方demo源代码\netinet\ppp\auth.c (23058, 2000-08-02)
Vxworks_demo\Vxworks 官方demo源代码\netinet\ppp\chap.c (21006, 2000-08-02)
Vxworks_demo\Vxworks 官方demo源代码\netinet\ppp\crypt.c (29393, 2000-08-02)
Vxworks_demo\Vxworks 官方demo源代码\netinet\ppp\fsm.c (17760, 2000-08-02)
Vxworks_demo\Vxworks 官方demo源代码\netinet\ppp\if_ppp.c (50299, 2000-08-02)
Vxworks_demo\Vxworks 官方demo源代码\netinet\ppp\ipcp.c (31392, 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
近期下载者:
相关文件:
收藏者: