Vxworksdemo

所属分类:Linux/Unix编程
开发工具:C/C++
文件大小:6442KB
下载次数:16
上传日期:2008-12-04 10:11:12
上 传 者lusongbo
说明:  Vxworks 官方demo源代码,对于嵌入式系统开发学习的人,非常有用.
(Vxworks official demo source code, for the embedded system development study, and very useful.)

文件列表:
Vxworks 官方demo源代码\1.Multi-Processing\1.VMEbus interrupts\intGen.c (3921, 2003-12-11)
Vxworks 官方demo源代码\1.Multi-Processing\1.VMEbus interrupts\intGen.h (1041, 2003-12-11)
Vxworks 官方demo源代码\1.Multi-Processing\1.VMEbus interrupts\intSync.c (3767, 2003-12-11)
Vxworks 官方demo源代码\1.Multi-Processing\1.VMEbus interrupts (0, 2005-12-29)
Vxworks 官方demo源代码\1.Multi-Processing\2.Shared memory System Partition\buffProtocol.h (894, 2003-12-11)
Vxworks 官方demo源代码\1.Multi-Processing\2.Shared memory System Partition\buffReceive.c (1341, 2003-12-11)
Vxworks 官方demo源代码\1.Multi-Processing\2.Shared memory System Partition\buffSend.c (1439, 2003-12-11)
Vxworks 官方demo源代码\1.Multi-Processing\2.Shared memory System Partition (0, 2005-12-29)
Vxworks 官方demo源代码\1.Multi-Processing\3.Shared Semaphore\semExample.h (845, 2003-12-11)
Vxworks 官方demo源代码\1.Multi-Processing\3.Shared Semaphore\semTask1.c (1201, 2003-12-11)
Vxworks 官方demo源代码\1.Multi-Processing\3.Shared Semaphore\semTask2.c (1105, 2003-12-11)
Vxworks 官方demo源代码\1.Multi-Processing\3.Shared Semaphore (0, 2005-12-29)
Vxworks 官方demo源代码\1.Multi-Processing\4.Shared Memory System Partition\memPartExample.h (844, 2003-12-11)
Vxworks 官方demo源代码\1.Multi-Processing\4.Shared Memory System Partition\memPartReceive.c (1361, 2003-12-11)
Vxworks 官方demo源代码\1.Multi-Processing\4.Shared Memory System Partition\memPartSend.c (1992, 2003-12-11)
Vxworks 官方demo源代码\1.Multi-Processing\4.Shared Memory System Partition (0, 2005-12-29)
Vxworks 官方demo源代码\1.Multi-Processing (0, 2005-12-29)
Vxworks 官方demo源代码\2.Networking\1.FAQ - WindNet SNMPv1v2c 1.0\snmp-faq-1.1.ascii (66429, 2003-12-11)
Vxworks 官方demo源代码\2.Networking\1.FAQ - WindNet SNMPv1v2c 1.0 (0, 2005-12-29)
Vxworks 官方demo源代码\2.Networking\10.Reading a remote file on the UNIX host using FTP commands\ftpData.txt (15, 2003-12-11)
Vxworks 官方demo源代码\2.Networking\10.Reading a remote file on the UNIX host using FTP commands\vxFtpClient.c (2927, 2003-12-11)
Vxworks 官方demo源代码\2.Networking\10.Reading a remote file on the UNIX host using FTP commands (0, 2005-12-29)
Vxworks 官方demo源代码\2.Networking\11.Write data to NFS file on UNIX host\nfsWrite.c (2477, 2003-12-11)
Vxworks 官方demo源代码\2.Networking\11.Write data to NFS file on UNIX host (0, 2005-12-29)
Vxworks 官方demo源代码\2.Networking\12.Use zbuf interface library to create and display data\zbufManip.c (4098, 2003-12-11)
Vxworks 官方demo源代码\2.Networking\12.Use zbuf interface library to create and display data (0, 2005-12-29)
Vxworks 官方demo源代码\2.Networking\13.Extending the 5.2 VxWorks SNMPv1v2 agent with a MIB\k_vxdemo.c (27830, 2003-12-11)
Vxworks 官方demo源代码\2.Networking\13.Extending the 5.2 VxWorks SNMPv1v2 agent with a MIB\vxdemo.my (18451, 2003-12-11)
Vxworks 官方demo源代码\2.Networking\13.Extending the 5.2 VxWorks SNMPv1v2 agent with a MIB\v_vxdemo.c (52872, 2003-12-11)
Vxworks 官方demo源代码\2.Networking\13.Extending the 5.2 VxWorks SNMPv1v2 agent with a MIB (0, 2005-12-29)
Vxworks 官方demo源代码\2.Networking\14.Extending the SNMPv1v2c agent with a scalar MIB\demo.c (9243, 2003-12-11)
... ...

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
近期下载者

相关文件


收藏者