[Armadillo:03215] Re: Armadillo-500 GPIO入出力(CON16)について

与賀田 朝史 email@hidden
2008年 7月 31日 (木) 14:14:12 JST


$B$$$D$b$*@$OC$K$J$C$F$*$j$^$9!#(B
$BM?2lED$G$9!#(B

Armadillo-500 GPIO$BF~=PNO(B(CON16)$B$N7o$K$D$-$^$7$F!"(B
$B:FEY<ALd$r$5$;$F$/$@$5$$!#(B

$BA02s65$($FD:$$$?J}K!$r;29M$K!"(Barmadillo5x0_gpio.c$B$N(B
$BJQ99$r9T$$!"2<5-$N:n6H$r9T$C$F$_$^$7$?!#(B

$B-!(Barmadillo5x0_gpio.c$B$NJQ99(B
$B!!!&(B#if 0 $B$r(B #if 1 $B$KJQ99!J#22U=j!K(B
$B!!!&(B#define DEBUG$B$NDI2C(B
$B!!!&(Barmadillo5x0_gpio_ioctl()$B$NJQ99(B
$B!!!!!!!!!!(Bunsigned int val;
	KDEBUG_FUNC();
	if (cmd) {
	$B!!!!!!(B//writel();
	}
	else {
	$B!!!!!!(Bval = readl(0x53FCC000);
	$B!!!!!!(Barg = val;
	$B!!!!!!(BKDEBUG_INFO("arg=%x",arg);
	}
$B-"%S%k%I!J(Blinux.bin.gz$B!?(Bromfs.img.gz$B$N:email@hidden!K(B
$B-#%U%i%C%7%e%a%b%j=q$-49$((B

$B$7$+$7!"5/F0%m%0$K$O(Bprintk$B$G5-=R$5$l$?FbMF$,=P$F$3$J$+$C$?0Y!"(B
$B%S%k%I$email@hidden$7$F$$$J$$$N$G$O$H;W$C$F$*$j$^$9!#(B
$B$^$?!"%F%9%H%W%m%0%i%`$H$7$^$7$F!"(B/dev/gpio$B$r(Bopen$B8e!"(Bioc$B#t(Bl$B$r(B
$B;n$7$F$_$^$7$?$,!">e<j$/$$$+$J$$>u67$G$9!#(B
$BF1$8$h$&$J7P83$,$"$j!"%"%I%P%$%9$7$FD:$1$kJ}$,$*$i$l$^$7$?$i!"(B
$B$465<(4j$$$^$9!#$h$m$7$/$*4j$$CW$7$^$9!#(B


-----Original Message-----
From: email@hidden
[mailto:email@hidden] On Behalf Of nakai
Sent: Tuesday, July 29, 2008 7:47 PM
To: Armadillo series general discussion list
Subject: [Armadillo:03202] Re: Armadillo-500 GPIO$BF~=PNO(B(CON16)$B$K$D$$$F(B

nakai$B$G$9!#(B

> GPIO$B$N%"%/%;%9<jCJ$H$7$^$7$F$O!"%G%P%$%9%U%!%$%k$N(B
> "/dev/gpio"$B$r%*!<%W%s$7!"(Bioctl$B4X?t$GF~=PNO$N$?$a$N(B
> $B%G!<%?$rFI$_=q$-$7$h$&$H$7$F$*$j$^$9$,!"(Bioctl$B$N0z?t$r(B
> $B$I$N$h$&$email@hidden$9$l$P$h$$$+$,J,$+$i$:email@hidden$7$F$*$j$^$9!#(B

misc$B%G%P%$%9$H$7$FEPO?$7$F$"$2$k$H4JC1$@$H;W$$$^$9!#(B

> $B$^$?!"(BGPIO$B$GMxMQ$7$?$$2U=j$O!"(BCON16$B!'(BGPIO10$B!A(B19$B!J(B+3V$B!K(B
> $B$K$J$j$^$9$,!"%G%P%$%9%I%i%$%P$OMQ0U$5$l$F$$$J$$$N$G$7$g$&$+!#(B

$B%5%s%W%k%I%i%$%P$G$O(BGPIO0-7$B$^$G$7$+BP1~$7$F$$$^$;$s!#(B
sysfs$B7PM3$G$h$$$N$G$7$?$i!"(B
drivers/char/armadillo5x0_gpio.c
$B$r3HD%$9$l$P$h$$$H;W$$$^$9!#(B
# miscdevice$B$H$7$F:email@hidden$G$-$k$h$&$K(B"$BF~$j8}(B"$B$^$G$O<BAu$7$F$"$k$_$?$$$G$9!#(B
# $BHs>o$KCfESH>C<$G$9$,!#!#(B

$B>e5-%=!<%9%3!<%ICf$N(B #if 0 $B$r$O$:$7$F$"$2$k$H!"(B
miscdevice$B$H$7$FEPO?$5$l$^$9!#(B
/dev/gpio$B$r%*!<%W%s$9$k$H!"(Barmadillo5x0_gpio_open()$B$KF~$j$^$9!#(B

$B%=!<%9%3!<%I$N>e$NJ}$G(B#define DEBUG$B$7$F%G%P%C%0%a%C%;!<%8$r8+$F$$$k$H(B
$BF0$-$,$D$+$a$k$+$b$7$l$^$;$s$M!#(B

> $B;29M$H$J$k%5%$%H$d!"%5%s%W%k$N%G%P%$%9%I%i%$%P$J$I$N(B
> $B>pJs$r$4B8CN$NJ}$,$*$i$l$^$7$?$i!"$465<(4j$$$^$9!#(B

$BM?2lED!!D+;K(B $B$5$s$O=q$-$^$7$?(B:
> $BM?2lED$H?=$7$^$9!#(B
>
> Armadillo-500$B$K4X$7$^$7$F!"30It%9%$%C%A$+$i$NF~NO$H!"(B
> $B%i%s%email@hidden!J30It=PNO!K$r9T$&$?$a!"%$%s%?%U%'!<%9$G$"$k(B
> "CON16"$B$K%3%M%/%?$r<h$jIU$1!"(BGPIO$B$NF~=PNO@)8f$r(B
> $B9T$*$&$H;n$_$F$*$j$^$9!#(B
>
> GPIO$B$N%"%/%;%9<jCJ$H$7$^$7$F$O!"%G%P%$%9%U%!%$%k$N(B
> "/dev/gpio"$B$r%*!<%W%s$7!"(Bioctl$B4X?t$GF~=PNO$N$?$a$N(B
> $B%G!<%?$rFI$_=q$-$7$h$&$H$7$F$*$j$^$9$,!"(Bioctl$B$N0z?t$r(B
> $B$I$N$h$&$email@hidden$9$l$P$h$$$+$,J,$+$i$:email@hidden$7$F$*$j$^$9!#(B
>
> $B$^$?!"(BGPIO$B$GMxMQ$7$?$$2U=j$O!"(BCON16$B!'(BGPIO10$B!A(B19$B!J(B+3V$B!K(B
> $B$K$J$j$^$9$,!"%G%P%$%9%I%i%$%P$OMQ0U$5$l$F$$$J$$$N$G$7$g$&$+!#(B
>
> $B;29M$H$J$k%5%$%H$d!"%5%s%W%k$N%G%P%$%9%I%i%$%P$J$I$N(B
> $B>pJs$r$4B8CN$NJ}$,$*$i$l$^$7$?$i!"$465<(4j$$$^$9!#(B
>
>
> _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/mailman/listinfo/armadillo
_______________________________________________
armadillo mailing list
email@hidden
http://lists.atmark-techno.com/mailman/listinfo/armadillo




armadillo メーリングリストの案内