[uCsimm] RT interrupt example

From: 권석근 (kwonsk@mutech.co.kr)
Date: Sun Feb 20 2000 - 23:59:02 EST


Hi, all

I've tested RT interrupt task and got success.
This simple RT application program catch EZ328's SAMPLER interrupt.
RT interrupt handler was registered using request_RTirq for SAM6 interrupt.
(256Hz sampling freq, ~4 msec)
This may be useful as an example of real interrupt handling with RTL.
Output was checked with oscilloscope and linux load was simulated using
ping flood from another host.
Some days later i'll trying to correct interrupt priority handling part.
(i've mentioned this before)

(i'm late because there was some network problem on my network provider
so i could not get in touch with this mailing list. Problem was solved
today
and glad to meed you again :-) )

Thanks
kwonsk.

begin 666 sampler.c
M+RH@<V%M<&QE<BYC"B J('1E<W1I;F<@4E0@:6YT97)R=7!T(&AA;F1L97(N
M"B J(#8X15HS,C@@:&%S(&EN=&5R;F%L('-A;7!L:6YG(&EN=&5R<G5P="!G
M96YE<F%T;W(*("H@5&AI<R!T97-T('!R;V=R86T@=VEL;"!C871C:"!T:&ES
M(&EN=&5R<G5P="!A;F0@9&\@82!S:6UP;&4@:F]B+@H@*B!K=V]N<VL*("HO
M"@HC:6YC;'5D92 \;&EN=7@O:V5R;F5L+F@^"B-I;F-L=61E(#QL:6YU>"]V
M97)S:6]N+F@^"B-I;F-L=61E(#QL:6YU>"]E<G)N;RYH/@HC:6YC;'5D92 \
M87-M+W-Y<W1E;2YH/@H*(VEN8VQU9&4@/&%S;2]R=%]I<G$N:#X*(VEN8VQU
M9&4@/')T;"]R=&Q?<V-H960N:#X*(VEN8VQU9&4@/&%S;2]R=%]T:6UE+F@^
M"B-I;F-L=61E(#QA<VTO34,V.$5:,S(X+F@^"@IS=&%T:6,@=6YS:6=N960@
M;&]N9R!D871A.PIS=&%T:6,@4E1?5$%32R!T87-K.PH*=F]I9"!F=6XH:6YT
M('0I('L*"7=H:6QE("@Q*2!["@D@(" @9&%T82!>/2 P>#@P.PH@(" @"2 @
M("!01$1!5$$@/2!D871A.PH)(" @(')T7W1A<VM?=V%I="@I.PH)?0I]"@IV
M;VED(')T7W-A;7!L97)?:7)Q*'9O:60I"GL*(" @(&5X=&5R;B!U;G-I9VYE
M9"!L;VYG(%-&4D51.PH@(" @:6YT(&9L86=S.PH*(" @("\J(&-L96%R(&EN
M=&5R<G5P="!S;W5R8V4@*B\*(" @(%)40TE34B!\/2!25$-)4U)?4T%--CL*
M(" @( H@(" @+RH@9&\@;F]T('-E;F0@=&AI<R!I;G1E<G)U<'0@<F5Q=65S
M="!T;R!L:6YU>" J+PH@(" @+RH@:68@=&AE<F4@97AI<W0@;&EN=7@@9&5V
M:6-E(&1R:79E<B!T:&5N('1H:7,@;6EG:'0@8F4@<F5M;W9E9" J+R *(" @
M("\J(&EF(&QI;G5X(&-A=&-H('1H:7,@:6YT<B!T:&5N($E-4B!W:6QL(&)E
M(&-L96%R960@8V]R<F5C=&QY(&%L<V\@*B\*(" @(')?<V%V95]F;&%G<RAF
M;&%G<RD["B @("!R7V-L:2@I.PH@(" @4T9215$@("8]('XH,3P\4T%-7TE2
M45].54TI.PH@(" @24U2(" @("8]('XH,3P\4T%-7TE245].54TI.PH@(" @
M<E]R97-T;W)E7V9L86=S*&9L86=S*3L*"B @("!D871A(%X](#!X-# ["B @
M("!01$1!5$$@/2!D871A.PI]"@IV;VED(')T;%]A<'!L:6-A=&EO;E]I;FET
M*'9O:60I"GL*(" @( EI;G0@9FQA9W,["B @(" )4E1)344@;F]W.PH)"@ED
M871A(#T@,#L*"6YO=R ](')T7V=E=%]T:6UE*"D["@H)+RH@<V5T=7 @=&5S
M="!P;W)T("HO"B @(" )4$1314P@?#T@,'A#,#L@+RH@<V5L96-T($DO3R!F
M=6YC=&EO;G,@9F]R(%!$-BP@4$0W("HO"@E01$1)4B!\/2 P>$,P.R O*B!S
M970@4$0V+"!01#<@=&\@;W5T<'5T("HO"@H)+RH@:6YS=&%L;"!S86UP;&EN
M9R!I;G1E<G)U<'0@:&%N9&QE<B J+PH@(" @"7)?<V%V95]F;&%G<RAF;&%G
M<RD["B @(" )<E]C;&DH*3L*"69R965?4E1I<G$H4T%-7TE245].54TI.PH)
M<F5Q=65S=%]25&ER<2A304U?25)17TY532P@<G1?<V%M<&QE<E]I<G$I.PH)
M"@DO*B!S971U<"!S86UP;&EN9R!I;G1E<G)U<'0L('5S92!S86UP;&5R(#8L
M(#(U-DAZ(#T@?C0@;7-E8R J+PH)4E1#245.4B ](%)40TE%3E)?4T%--CL*
M(" @( ER7W)E<W1O<F5?9FQA9W,H9FQA9W,I.PH*"7)T7W1A<VM?:6YI="@F
M=&%S:RP@9G5N+" P+" S,# P+" T*3L*"0H)+RH@86)O=70@-"!M<V5C("HO
M"@ER=%]T87-K7VUA:V5?<&5R:6]D:6,H)G1A<VLL(&YO=RLQ,# P,"P@-# P
M,"D["GT*"@IV;VED(')T;%]A<'!L:6-A=&EO;E]C;&5A;G5P*'9O:60I"GL*
M"5)40TE%3E(@)CT@?E)40TE%3E)?4T%--CL*"69R965?4E1I<G$H4T%-7TE2
B45].54TI.PH)<G1?=&%S:U]D96QE=&4H)G1A<VLI.PI]"@``
`
end

This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:34 EST