Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Sansa (PP502x?) GPIO interrupts in rockbox software

Re: Sansa (PP502x?) GPIO interrupts in rockbox software

From: Michael Sevakis <jethead71_at_sbcglobal.net>
Date: Wed, 9 May 2007 11:33:46 -0400

It doesn't seem to actually enable the GPIO interrupts.

When I do, thinks break badly with rockbox stuck at a black screen when the
logo should be displayed but GPIO IRQs functional. The firmware doesn't seem
to actually be running because the buttons themselves are still being polled
and do work otherwise.

Here the quick tester which I'd expect to have boot, disable the scrollwheel
and blink when turned. It only does the latter two.

You'll get some warnings but that's irrelevant to this check.

----- Original Message -----
From: "Barry Wardell" <barry.wardell_at_gmail.com>
To: "Michael Sevakis" <jethead71_at_sbcglobal.net>; "Rockbox development"
<rockbox-dev_at_cool.haxx.se>
Sent: Wednesday, May 09, 2007 4:34 AM
Subject: Re: Sansa (PP502x?) GPIO interrupts in rockbox software

> On 5/9/07, Michael Sevakis <jethead71_at_sbcglobal.net> wrote:
> > I would've whipped up a IRQ button driver real quick and committed it
but I
> > see I've been beaten to it while fixing playback bugs. :)
>
> Well apparently the one I posted has some problems with it still and I
> still don't have my Sansa with me for testing so I can't do much more
> with it for now. Feel free to fix it up and commit ;)
>
> One word of caution - it was based on a older version of the button
> driver, so some of the newer fixes that were added in the past while
> may not be present.

begin 666 sansa-scrollwheel-gpio-experiment.diff.txt
M26YD97_at_Z(&9I<FUW87)E+V5X<&]R="]P<#4P,C0N: H]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]"BTM+2!F:7)M=V%R92]E>'!O<G0O<' U,#(T+F@)*')E=FES
M:6]N(#$S,S8U*0HK*RL_at_9FER;7=A<F4O97AP;W)T+W!P-3 R-"YH"2AW;W)K
M:6YG(&-O<'DI"D! ("TR,RPT("LR,RPQ,"! 0 H@(" @8V]M<&QE=&5L>2 J
M+PH@(VEN8VQU9&4@(G!P-3 R,"YH(@H@"BLC=6YD968_at_1U!)3U])4E$**R-D
M969I;F4_at_1U!)3U])4E$@(" @*#,R*S8I"BL**R-U;F1E9B!'4$E/7TU!4TL*
M*R-D969I;F4_at_1U!)3U]-05-+(" @*#$@/#P@*$=024]?25)1+3,R*2D**PH@
M(V5N9&EF"DEN9&5X.B!F:7)M=V%R92]T87)G970O87)M+W-A;F1I<VLO<V%N
M<V$M93(P,"]B=71T;VXM93(P,"YC"CT]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T*
M+2TM(&9I<FUW87)E+W1A<F=E="]A<FTO<V%N9&ES:R]S86YS82UE,C P+V)U
M='1O;BUE,C P+F,)*')E=FES:6]N(#$S,S8U*0HK*RL_at_9FER;7=A<F4O=&%R
M9V5T+V%R;2]S86YD:7-K+W-A;G-A+64R,# O8G5T=&]N+64R,# N8PDH=V]R
M:VEN9R!C;W!Y*0I 0" M,S L,30@*S,P+#(W($! "B!["B @(" @+RH_at_16YA
M8FQE(&%L;"!B=71T;VYS("HO"B @(" @1U!)3T9?14Y!0DQ%('P](#!X9F8[
M"BT@(" @1U!)3TA?14Y!0DQ%('P](#!X8S ["B @(" @"B @(" @+RH_at_4V-R
M;VQL=VAE96P@;&EG:'0@+2!E;F%B;&4_at_8V]N=')O;"!T:')O=6=H($=024]'
M('!I;B W(&%N9"!S970@=&EM96]U=" J+PH@(" @($=024]'7T5.04),12 ]
M(#!X.# ["B @(" @1U!)3T=?3U544%547T5.('P](#!X.# ["BT@(" @"BL*
M*R @("!'4$E/2%]/5510551?14X@)CT@?C!X8S ["BL@(" @1U!)3TA?14Y!
M0DQ%('P](#!X8S ["BL**R @("!#4%5?24Y47T-,4B ]($A)7TU!4TL["BL@
M(" @0U!57TA)7TE.5%]#3%(@/2!'4$E/7TU!4TL["BL@(" @1U!)3TA?24Y4
M7T-,4B ](#!X8S ["BL@(" @0U!57TE.5%]04DE/4DE462 F/2!^2$E?34%3
M2SL**R @("!#4%5?2$E?24Y47U!224]22519("8]('Y'4$E/7TU!4TL["BL*
M(" @(" O*B!296%D(&EN:71I86P@=VAE96P@=F%L=64@*&)I=" V+3<@;V8@
M1U!)3T_at_I("HO"B @(" @;VQD7W=H965L7W9A;'5E(#T_at_1U!)3TA?24Y0551?
M5D%,("8@,'AC,#L**R @("!'4$E/2%])3E1?3$56(#T@?BAO;&1?=VAE96Q?
M=F%L=64@)B P>&,P*3L**PHK(" @($=024](7TE.5%]%3B ](#!X8S ["BL@
M(" @0U!57TA)7TE.5%]%3B ]($=024]?34%32SL**R @("!#4%5?24Y47T5.
M(#T_at_2$E?34%32SL*('T*( H_at_8F]O;"!B=71T;VY?:&]L9"AV;VED*0I 0" M
M-#4L-#(@*S4X+#(X($! "B @(" @<F5T=7)N("A'4$E/1E])3E!55%]604P@
M)B P>#@P*3]T<G5E.F9A;'-E.PH@?0H@"BTO*@HM("H_at_1V5T(&)U='1O;B!P
M<F5S<V5D(&9R;VT@:&%R9'=A<F4*+2 J+PHM:6YT(&)U='1O;E]R96%D7V1E
M=FEC92AV;VED*0HK"BMV;VED(&-L:6-K=VAE96Q?:6YT*'9O:60I"B!["BT@
M(" @:6YT(&)T;B ]($)55%1/3E].3TY%.PHM(" @('5N<VEG;F5D(&-H87(@
M<W1A=&4["BT@(" @<W1A=&EC(&)O;VP@:&]L9%]B=71T;VX@/2!F86QS93L*
M+2 @("!B;V]L(&AO;&1?8G5T=&]N7V]L9#L*+2 @("!U;G-I9VYE9"!I;G0@
M;F5W7W=H965L7W9A;'5E(#T@,#L@+RH@<F5A9"!L871E<BP_at_8G5T('1H:7,@
M<W1O<',@82!W87)N:6YG("HO"BL@(" @=6YS:6=N960@:6YT(&YE=U]W:&5E
M;%]V86QU92 ]($=024](7TE.4%547U9!3" F(#!X8S ["BL@(" @:6YT(&)T
M;CL*( HM(" @("\J($AO;&0@*B\*+2 @("!H;VQD7V)U='1O;E]O;&0@/2!H
M;VQD7V)U='1O;CL*+2 @("!H;VQD7V)U='1O;B ](&)U='1O;E]H;VQD*"D[
M"BL@(" @1U!)3TA?24Y47T-,4B ]($=024](7TE.5%]35$%4("8@,'AC,#L*
M( HM(VEF;F1E9B!"3T]43$]!1$52"BT@(" @+RH@;&EG:'0@:&%N9&QI;F<@
M*B\*+2 @("!I9B H:&]L9%]B=71T;VX@(3T@:&]L9%]B=71T;VY?;VQD*0HK
M+R\@(" @8G5T=&]N7V)A8VML:6=H=%]O;B_at_I.PHK(" @(&EF("AN97=?=VAE
M96Q?=F%L=64@)B P>#@P*0HK(" @(" @("!'4$E/1U]/5510551?5D%,('P]
M(#!X.# ["BL@(" @96QS90HK(" @(" @("!'4$E/1U]/5510551?5D%,("8]
M('XP>#@P.PHK"BL@(" @1U!)3TA?24Y47TQ%5B ]('YN97=?=VAE96Q?=F%L
M=64["BL**R-I9B P"BL@(" @:68@*"%B=71T;VY?:&]L9"@I*0H@(" @('L*
M+2 @(" @(" @8F%C:VQI9VAT7VAO;&1?8VAA;F=E9"AH;VQD7V)U='1O;BD[
M"BT@(" @?0HM(V5N9&EF"BL@(" @(" @(&)T;B ]($)55%1/3E].3TY%.PHK
M(" @(" @("!N97=?=VAE96Q?=F%L=64@/2 P.R O*B!R96%D(&QA=&5R+"!B
M=70@=&AI<R!S=&]P<R!A('=A<FYI;F<@*B\*( HM(" @("\J(&1E=FEC92!B
M=71T;VYS("HO"BT@(" @:68@*"%H;VQD7V)U='1O;BD*+2 @("!["BT@(" @
M(" @("\J(%)E860@;F]R;6%L(&)U='1O;G,@*B\*+2 @(" @(" @<W1A=&4@
M/2!'4$E/1E])3E!55%]604P@)B P>&9F.PHM(" @(" @("!I9B H*'-T871E
M("8@,'@Q*2 ]/2 P*2!B=&X@?#T_at_0E545$].7U)%0SL*+2 @(" @(" @:68@
M*"AS=&%T92 F(#!X,BD@/3T@,"D_at_8G1N('P]($)55%1/3E]$3U=..PHM(" @
M(" @("!I9B H*'-T871E("8@,'@T*2 ]/2 P*2!B=&X@?#T_at_0E545$].7U))
M1TA4.PHM(" @(" @("!I9B H*'-T871E("8@,'@X*2 ]/2 P*2!B=&X@?#T@
M0E545$].7TQ%1E0["BT@(" @(" @(&EF("@H<W1A=&4@)B P>#$P*2 ]/2 P
M*2!B=&X@?#T_at_0E545$].7U-%3$5#5#L@+RH_at_5&AE(&-E;G1R92!B=71T;VX@
M*B\*+2 @(" @(" @:68@*"AS=&%T92 F(#!X,C I(#T](# I(&)T;B!\/2!"
M55143TY?55 [("\J(%1H92 B<&QA>2(@8G5T=&]N("HO"BT@(" @(" @(&EF
M("@H<W1A=&4@)B P>#0P*2 A/2 P*2!B=&X@?#T_at_0E545$].7U!/5T52.PHM
M(" @(" @(" *(" @(" @(" @+RH_at_4F5A9"!W:&5E;" *(" @(" @(" @("H@
M0FET<R V(&%N9" W(&]F($=024]((&-H86YG92!A<R!F;VQL;W=S._at_H@(" @
M(" @(" @*B!#;&]C:W=I<V4@<F]T871I;VX@(" P,2 M/B P," M/B Q," M
M/B Q,0I 0" M,3$W+#$Q("LQ,38L,3$@0$ *(" @(" @(" @(" @(" @("!B
M=&X@?#T_at_0E545$].7U-#4D],3%]$3U=..PH@(" @(" @(" @(" @8G)E86L[
M"B @(" @(" @('T*+2 @(" @(" @"BL*(" @(" @(" @:68H=VAE96Q?<F5P
M96%T(#T]($)55%1/3E].3TY%*7L*(" @(" @(" @(" @(&EF*&)T;B F($)5
M5%1/3E]30U)/3$Q?55 I"B @(" @(" @(" @(" @(" @=VAE96Q?<F5P96%T
M(#T_at_0E545$].7U-#4D],3%]54#L*+2 @(" @(" @(" @( HK"B @(" @(" @
M(" @("!I9BAB=&X@)B!"55143TY?4T-23TQ,7T1/5TXI"B @(" @(" @(" @
M(" @(" @=VAE96Q?<F5P96%T(#T_at_0E545$].7U-#4D],3%]$3U=..PH@(" @
M(" @("!](&5L<V4@:68@*'=H965L7W)E<&5A=" ]/2!"55143TY?4T-23TQ,
M7U50*2 @>PI 0" M,3,Q+#(P("LQ,S L-C,@0$ *(" @(" @(" @(" @(&)T
M;B!\/2!"55143TY?4T-23TQ,7T1/5TX["B @(" @(" @(" @("!W:&5E;%]R
M97!E870@/2!"55143TY?3D].13L*(" @(" @(" @?0HM(" @(" @(" **PH@
M(" @(" @("!O;&1?=VAE96Q?=F%L=64@/2!N97=?=VAE96Q?=F%L=64["BT@
M(" @?0HM(" @( HM(" @(&EF*" H8G1N("8_at_0E545$].7U-#4D],3%]54"D@
M?'P@*&)T;B F($)55%1/3E]30U)/3$Q?1$]73BD@*7L*+2 @(" @(" @+RH@
M;VYL>2!T<FEG9V5R(&]N8V4@<&5R(&-L:6-K("HO"BT@(" @(" @(&EF("@H
M;F5W7W=H965L7W9A;'5E(#T](#!X,# I('Q\("AN97=?=VAE96Q?=F%L=64@
M/3T@,'AC,"DI"BL**R @(" @(" @:68H("AB=&X@)B!"55143TY?4T-23TQ,
M7U50*2!\?" H8G1N("8_at_0E545$].7U-#4D],3%]$3U=.*2 I"B @(" @(" @
M('L*+2 @(" @(" @(" @(&)T;B ](&)T;B8H?BA"55143TY?4T-23TQ,7U50
M?$)55%1/3E]30U)/3$Q?1$]73BDI.PHK(" @(" @(" @(" @+RH@;VYL>2!T
M<FEG9V5R(&]N8V4@<&5R(&-L:6-K("HO"BL@(" @(" @(" @("!I9B H*&YE
M=U]W:&5E;%]V86QU92 ]/2 P># P*2!\?" H;F5W7W=H965L7W9A;'5E(#T]
M(#!X8S I*0HK(" @(" @(" @(" @>PHK(" @(" @(" @(" @(" @(&)T;B ]
M(&)T;B8H?BA"55143TY?4T-23TQ,7U50?$)55%1/3E]30U)/3$Q?1$]73BDI
M.PHK(" @(" @(" @(" @?0HK(" @("-I9FYD968_at_0D]/5$Q/041%4_at_HK(" @
M(" @(" @(" @8G5T=&]N7V)A8VML:6=H=%]O;B_at_I.PHK(" @("-E;F1I9_at_H@
M(" @(" @("!]"BL**R @(" @(" @:68@*&)T;B A/2!"55143TY?3D].12D*
M*R @(" @(" @(" @('%U975E7W!O<W0H)F)U='1O;E]Q=65U92P_at_8G1N+" P
M*3L**R @("!]"BL**R-E;F1I9_at_HK?0HK"BLO*@HK("H_at_1V5T(&)U='1O;B!P
M<F5S<V5D(&9R;VT@:&%R9'=A<F4**R J+PHK:6YT(&)U='1O;E]R96%D7V1E
M=FEC92AV;VED*0HK>PHK(" @(&EN="!B=&X@/2!"55143TY?3D].13L**R @
M("!U;G-I9VYE9"!C:&%R('-T871E.PHK(" @('-T871I8R!B;V]L(&AO;&1?
M8G5T=&]N(#T_at_9F%L<V4["BL@(" @8F]O;"!H;VQD7V)U='1O;E]O;&0["BL*
M*R @(" O*B!(;VQD("HO"BL@(" @:&]L9%]B=71T;VY?;VQD(#T@:&]L9%]B
M=71T;VX["BL@(" @:&]L9%]B=71T;VX@/2!B=71T;VY?:&]L9"@I.PHK"B C
M:69N9&5F($)/3U1,3T%$15(*+2 @(" @(" @8G5T=&]N7V)A8VML:6=H=%]O
M;B_at_I.PHK(" @("\J(&QI9VAT(&AA;F1L:6YG("HO"BL@(" @:68@*&AO;&1?
M8G5T=&]N("$](&AO;&1?8G5T=&]N7V]L9"D**R @("!["BL@(" @(" @(&)A
M8VML:6=H=%]H;VQD7V-H86YG960H:&]L9%]B=71T;VXI.PHK(" @('T*("-E
M;F1I9_at_HK"BL@(" @+RH_at_9&5V:6-E(&)U='1O;G,@*B\**R @("!I9B H(6AO
M;&1?8G5T=&]N*0HK(" @('L**R @(" @(" @+RH_at_4F5A9"!N;W)M86P_at_8G5T
M=&]N<R J+PHK(" @(" @("!S=&%T92 ]($=024]&7TE.4%547U9!3" F(#!X
M9F8["BL@(" @(" @(&EF("@H<W1A=&4@)B P>#$I(#T](# I(&)T;B!\/2!"
M55143TY?4D5#.PHK(" @(" @("!I9B H*'-T871E("8@,'@R*2 ]/2 P*2!B
M=&X@?#T_at_0E545$].7T1/5TX["BL@(" @(" @(&EF("@H<W1A=&4@)B P>#0I
M(#T](# I(&)T;B!\/2!"55143TY?4DE'2%0["BL@(" @(" @(&EF("@H<W1A
M=&4@)B P>#@I(#T](# I(&)T;B!\/2!"55143TY?3$5&5#L**R @(" @(" @
M:68@*"AS=&%T92 F(#!X,3 I(#T](# I(&)T;B!\/2!"55143TY?4T5,14-4
M.R O*B!4:&4_at_8V5N=')E(&)U='1O;B J+PHK(" @(" @("!I9B H*'-T871E
M("8@,'@R,"D@/3T@,"D_at_8G1N('P]($)55%1/3E]54#L@+RH_at_5&AE(")P;&%Y
M(B!B=71T;VX@*B\**R @(" @(" @:68@*"AS=&%T92 F(#!X-# I("$](# I
M(&)T;B!\/2!"55143TY?4$]715(["B @(" @?0HM(" @( HK(" @"B @(" @
M<F5T=7)N(&)T;CL*('T*26YD97_at_Z(&9I<FUW87)E+W1A<F=E="]A<FTO<WES
M=&5M+7!P-3 R>"YC"CT]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T*+2TM(&9I<FUW
M87)E+W1A<F=E="]A<FTO<WES=&5M+7!P-3 R>"YC"2AR979I<VEO;B Q,S,V
M-2D**RLK(&9I<FUW87)E+W1A<F=E="]A<FTO<WES=&5M+7!P-3 R>"YC"2AW
M;W)K:6YG(&-O<'DI"D! ("TU-BPV("LU-BPW($! "B O*B!43T1/.B!T:&ES
M('-H;W5L9"!R96%L;'D_at_8F4@:6X@=&AE('1A<F=E="!T<F5E+"!B=70@;6]V
M:6YG(&ET('1H97)E(&-A=7-E9 H@(" @8W)T,"Y3(&YO="!T;R!F:6YD(&ET
M('=H:6QE(&QI;FMI;F<@*B\*("\J(%1/1$\Z($5V96X@:68@:70@:7-N)W0@
M:6X@=&AE('1A<F=E="!T<F5E+"!T:&ES('-H;W5L9"!B92!T:&4_at_9&5F875L
M="!C87-E("HO"BME>'1E<FX@=F]I9"!C;&EC:W=H965L7VEN="AV;VED*3L*
M('9O:60@:7)Q*'9O:60I"B!["B @(" @:68H0U524D5.5%]#3U)%(#T]($-0
M52D*0$ @+38T+#8@*S8U+#@@0$ *(" @(" @(" @(" @(%1)3452,2_at_I.PH@
M(" @(" @("!E;'-E(&EF("A#4%5?24Y47U-4050@)B!424U%4C)?34%32RD*
M(" @(" @(" @(" @(%1)3452,B_at_I.PHK(" @(" @("!E;'-E(&EF("A'4$E/
M2%])3E1?4U1!5" F(#!X8S I"BL@(" @(" @(" @("!C;&EC:W=H965L7VEN
M="@I.PH@(" @('T_at_96QS92!["B @(" @(" @(&EF("A#3U!?24Y47U-4050@
F)B!424U%4C%?34%32RD*(" @(" @(" @(" @(%1)3452,2_at_I.PH`
`
end
Received on 2007-05-09


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa