readme_posixtimerstartdemo

来自「This is the demo source code for embedde」· 代码 · 共 202 行

TXT
202
字号
FILE LIST -	    posixTimerStartDemo.cDESCRIPTION -	    Demo for executing a signal handler connected to a POSIX TIMER upon	    expiration of a delay 	 in seconds.DESCRIPTION -	    Place the posixTimerStartDemo.c 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.	    Make sure that the following are INCLUDED in your configAll.h file:	    #define INCLUDE_POSIX_SIGNALS    ** POSIX queued signals **	    #define INCLUDE_POSIX_TIMERS     ** POSIX timers **	    To run posixTimerStartDemo code invoke the function 	    posixTimerStartDemo().CAVEAT    - This code fails on a mv1604 board and a hkv960 board.TESTED ON - Host/Target : Solaris 2.5.1 / mv177	    VxWorks     : 5.3.1EXAMPLE COMPILE LINE -	    make CPU=PPC604 posixTimerStartDemo.o%make CPU=PPC604 posixTimerStartDemo.o cc68k -B/petaluma1/mayur/tor101-ppc/host/sun4-solaris2/lib/gcc-lib/ -m68040 -ansi -nostdinc -O2 -fvolatile -fno-builtin -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=MC68060     -c posixTimerStartDemo.cOUTPUTS/LOGFILE -On VxWorks target:==================-> ld <posixTimerStartDemo.ovalue = 663408 = 0xa1f70-> sp (posixTimerStartDemo)task spawned: id = 1fb54e8, name = u0value = 33248488 = 0x1fb54e8The Output on Console:======================demoTask: Waiting to be synchronized by posix timer SIGALRM signalposixTimerStart: Unblock the demoTask in 5 seconds0x1fadc70 (posixTimerStart): Signal SIGALRM raiseddemoTask: Synchronization donedemoTask: RUNNINGTESTED ON -   Host/Target : Solaris 2.5.1 / mv2603	      VxWorks     : 5.3.1	      The mv2600_collective3 collective patch was installed before	      it was tested on a mv2603 BSPEXAMPLE COMPILE LINE -	      make posixTimerStartDemo.o	       %make posixTimerStartDemo.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=PPC603  -DMV2600 -DTARGET_DIR="\"mv2603\""   -c posixTimerStartDemo.cOUTPUTS/LOGFILE -On VxWorks target:==================-> ld <posixTimerStartDemo.ovalue = 662152 = 0xa1a88-> sp (posixTimerStartDemo)task spawned: id = bed0f0, name = u0value = 12505328 = 0xbed0f0The Output on Console:======================demoTask: Waiting to be synchronized by posix timer SIGALRM signalposixTimerStart: Unblock the demoTask in 5 seconds0xbe80c8 (posixTimerStart): Signal SIGALRM raiseddemoTask: Synchronization donedemoTask: RUNNINGTESTED ON -   Host/Target : Solaris 2.5.1 / mv1603	      VxWorks     : 5.3.1EXAMPLE COMPILE LINE -	      make posixTimerStartDemo.o% make posixTimerStartDemo.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=PPC603  -DMV1600 -DTARGET_DIR="\"mv1603\""   -c posixTimerStartDemo.cOUTPUTS/LOGFILE -On VxWorks target:==================-> ld <posixTimerStartDemo.ovalue = 662096 = 0xa1a50-> sp (posixTimerStartDemo)task spawned: id = 5d1ca0, name = u0value = 6102176 = 0x5d1ca0The Output on Console:======================demoTask: Waiting to be synchronized by posix timer SIGALRM signalposixTimerStart: Unblock the demoTask in 5 seconds0x5ccc78 (posixTimerStart): Signal SIGALRM raiseddemoTask: Synchronization donedemoTask: RUNNINGTESTED ON -   Host/Target : Solaris 2.5.1 / pc486	      VxWorks     : 5.3.1%make posixTimerStartDemo.occ386 -B/petaluma1/mayur/tor101-ppc/host/sun4-solaris2/lib/gcc-lib/ -m486 -ansi -nostdinc -O -fvolatile -nostdlib -fno-builtin -fno-defer-pop -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=I80486     -c posixTimerStartDemo.cOUTPUTS/LOGFILE -On VxWorks target:==================-> ld < posixTimerStartDemo.ovalue = 3208112 = 0x30f3b0-> posixTimerStartDemovalue = 0 = 0x0The Output on Console:======================demoTask: Waiting to be synchronized by posix timer SIGALRM signalposixTimerStart: Unblock the demoTask in 5 secondsdemoTask: Synchronization donedemoTask: RUNNINGTESTED ON -  Host/Target : Solaris 2.5.1 / mv2603	     VxWorks     : 5.3.1EXAMPLE COMPILE LINE -	     make CPU=PPC603 posixTimerStartDemo.o%make CPU=PPC603 posixTimerStartDemo.occppc -B/petaluma1/mayur/tor101/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/target/config/all -I/petaluma1/mayur/tor101/target/h -I/petaluma1/mayur/tor101/target/src/config -I/petaluma1/mayur/tor101/target/src/drv -DCPU=PPC603  -DMV2600 -DTARGET_DIR="\"mv2603\""   -c posixTimerStartDemo.cOUTPUTS/LOGFILE -On VxWorks target:==================-> ld <posixTimerStartDemo.ovalue = 662440 = 0xa1ba8-> sp (posixTimerStartDemo)task spawned: id = be7d28, name = u0value = 12483880 = 0xbe7d28The Output on Console:======================demoTask: Waiting to be synchronized by posix timer SIGALRM signalposixTimerStart: Unblock the demoTask in 5 seconds0xbe2d00 (posixTimerStart): Signal SIGALRM raiseddemoTask: Synchronization donedemoTask: RUNNING

⌨️ 快捷键说明

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