[Armadillo:04171] Re: a-220 gpioctrlによる割り込み制御
honda seijiro
email@hidden
2009年 4月 3日 (金) 09:34:40 JST
$BC]FbMM(B
$BK\ED$G$9!#(B
$email@hidden|$N<ALd$G$9$,!";d$N<B83J}K!$KLdBj$,$"$j$^$7$?!#(B
($BA02s(B)
GPIO0$B$N%T%s$KBP$7$F(Binput/output$B$r9T$C$F$$$?$?$a!"(BCPU$B$H(BGPIO$BMQ%l%8%9%?4V$@(B
$B$1$N$d$j$H$j$K$J$C$F$$$^$7$?!#(B
($B:#2s(B)
GPIO0$B$H(BGPIO1$B$N%T%s$r%8%c%s%Q$G%7%g!<%H$5$;$k!#(B
GPIO0$B$N%T%s$K(Binput$B$G3d$j9~$_$rEPO?$7!"(BGPIO1$B$N%T%s$K(Boutput$B$G(Blow/high$B$r=P(B
$BNO$5$;$k!#(B
GPIO1$B$N=PNO$,(BGPIO0$B$NF~NO$K$J$j!"(BGPIO0$B$,(Blow/high$B$N(Bedge$B$r8!CN$9$k$3$H$G3d(B
$B$j9~$_=hM}$,H/@8$7$?!#(B
$B$V$7$D$1$J<ALd$r$7$F$$$7$^$$?=$7Lu$"$j$^$;$s$G$7$?!#(B
--
$BK\ED(B
> $BC]FbMM(B
>
> $B=i$a$^$7$F!"K\ED$H?=$7$^$9!#(B
> $B8f2sEz$"$j$,$H$&$4$6$$$^$9!#(B
>
> $B?=$7Lu$"$j$^$;$s!"5-=R%_%9$G$7$?!#(B
> $B<B:]$K$O0J2<$N$h$&$J%3%^%s%I$r<B9TCW$7$^$7$?!#(B
>
> $B!Z<B9T%3%^%s%I![(B
> $gpioctrl --set=gpio0 --mode=input --type=rising-edge --debounce
> --handler="echo GPIB TEST"
>
> $B$^$?!"C]FbMM$N5-=R$I$*$j!"(Btype$B$r(Bfalling-edge$B$K$7$?$H$3$m!"3d$j9~$_BT$A$,(B
> $BH/@8$7$^$7$?!#$=$N8e!"(Bgpioctrl$B%3%^%s%I$G(B gpio0$B$N=PNO$r(Blow$B$K$7$?$H$3$m!"(B
> $B3d$j9~$_$,H/@8$7!"(Bhandler$B$email@hidden$7$?%3%^%s%I$,<B9T$5$l$^$7$?!#(B
>
> type$B$r(Brising-edge$B$K$9$k$H!"(Bwait$B$;$:(Bhandler$B$email@hidden$7$?%3%^%s%I$,<B9T$7$F$7(B
> $B$^$&$N$+5?Ld$K;W$$!"%*%7%m$G(BCON7$B!!%T%sHV9f(B 3(GPIO0)$B$r%b%K%?$7$F$_$?$H$3(B
> $B$m!"$$$/$D$+5?Ld$K;W$&F0:n$,$"$j$^$7$?!#(B
>
> $B-!(B--
> GPIO0=>high (3.3V)$B!!$N;~(B
> gpioctrl$B%3%^%s%I$N(Btype=rising-edge$B!!$G<B9T$9$k$H(B
>
> wait$B$;$:(Bhandler$B$email@hidden$7$?%3%^%s%I$,<B9T$5$l$k!#$3$N$H$-(BGPIO0$B$N=PNO$K$b(B
> high$B$N$^$^!#(B
> --
> $B-"(B--
> GPIO0=>low (0V)$B!!$N;~(B
> gpioctrl$B%3%^%s%I$N(Btype=rising-edge$B!!$G<B9T$9$k$H(B
>
> $B%3%^%s%I<B9T8e!"(BGPIO0$B$N=PNO$,(Bhigh$B$K$J$j!"(Bhandler$B$email@hidden$7$?%3%^%s%I$,<B9T(B
> $B$5$l$k!#(B
> --
> $B-#(B--
> GPIO=high (3.3V)$B!!$N;~(B
> gpioctrl$B%3%^%s%I$N(Btype=low-level$B!!$G<B9T$9$k$H(B
>
> $BF~=PNO(B(telnet RS232C$BDL?.(B)$B$,$G$-$J$/$J$k!#(B
> --
>
> $B-!$K4X$7$^$7$F$O!"(Brising-edge=>$BN)$A>e$,$j8!CN$@$HG'<1$7$F$$$^$7$?$N$G!"(B
> GPIB0$B$N=PNO$,(Bhigh$B$N>uBV$G3d$j9~$_H/@88e$NF0:n$r$7$?$N$+J,$+$j$^$;$s!#(B
> $B-"$K4X$7$^$7$F$O!"(Bwait$B>uBV$K$J$i$:!"<+F0E*$K(BGPIO0$B$N=PNO$,(Bhigh$B$KJQ2=$7$?$N(B
> $B$+$,J,$+$j$^$;$s!#(B
> $B-#$K4X$7$^$7$F$O!"%G%C%I%m%C%/$,H/@8$7$?$N$G$7$g$&$+!)(B
>
> Linux$B$d(BC$email@hidden$O$^$@$^$@6n$1=P$7$N%l%Y%k$G$9$N$G!">e5-$N$h$&$JF0:n$K$J$kM}(B
> $BM3$,J,$+$j$^$;$s!#0lEY$KJ#?t$N5?Ld$rEj$2$F$7$^$$?=$7Lu$"$j$^$;$s$,!"$465(B
> $B<x4j$$$^$9!#(B
> ----
> $BK\ED(B
>
>
> $BC]Fb9/M:(B $B$5$s$O=q$-$^$7$?(B:
>
>> $BC]Fb$H?=$7$^$9!#(B
>> $B$3$s$P$s$O!#(B
>>
>> $gpioctrl --set=gpio0 --mode=input --type=falling-edge --debounce --handler=
>> "echo GPIO TEST"
>> $B3d$j9~$_$N%?%$%W$email@hidden$7$F$I$&$G$7$g$&$+!#(B
>>
>>
>>
>>> $BK\ED$H?=$7$^$9!#(B
>>> a-220$B$N(Bgpioctrl$B%3%^%s%I$r;H$$!"(BGPIO$B3d$j9~$_$r9T$$$?$$$H9M$($F$$$^$9!#;n(B
>>> $B$7$K0J2<$N$h$&$J%3%^%s%I$r<B9T$7$?$H$3$m!"(Bwait$B$;$:$K7k2L$,$9$0$K=PNO$5$l(B
>>> $B$F$7$^$$$^$7$?!#(B
>>>
>>> $B!Z<B9T%3%^%s%I![(B---
>>> $gpioctrl --set=gpio0 --mode=input --debounce --handler="echo
>>> GPIO TEST"
>>> ---
>>>
>>> $B!Z7k2L![(B---
>>> GPIO TEST
>>> ---
>>>
>>> gpioctrl.c$B$N(Bmain$B4X?t$r3NG'$7$?$H$3$m!"(Bwait_param.timeout = 0$B$H8GDj$5$l$F(B
>>> $B$$$k$?$a!"3d$j9~$_$rBT$?$:$K(Bhandler$B%*%W%7%g%s$email@hidden$7$?%3%^%s%I$,<B9T$5(B
>>> $B$l$F$7$^$C$F$$$k$h$&$K;W$&$N$G$9$,!"G!2?$G$7$g$&$+!)$I$J$?$+!"(Bgpioctrl$B%3(B
>>> $B%^%s%I$r;H$C$?(BGIPO$B3d$j9~$_$NJ}K!!"$b$7$/$O$=$NB>(BGPIO$B3d$j9~$_$NJ}K!$,J,$+(B
>>> $B$kJ}$,$$$^$7$?$i$465<x4j$$$^$9!#(B
>>>
>>> $B0J>e!"59$7$/$*4j$$CW$7$^$9!#(B
>>> --
>>> $BK\ED(B
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> armadillo mailing list
>>> email@hidden
>>> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
>>>
>>>
>>>
>> _______________________________________________
>> armadillo mailing list
>> email@hidden
>> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
>>
>>
>>
>>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
>
armadillo メーリングリストの案内