[Armadillo:04170] Re: a-220 gpioctrlによる割り込み制御
本田誠二郎
email@hidden
2009年 4月 1日 (水) 17:29:26 JST
$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 メーリングリストの案内