From d4bc37f72ff0a38b9250dcdc67446631077a7e72 Mon Sep 17 00:00:00 2001 From: meepingsnesroms Date: Tue, 1 May 2018 19:47:16 -0700 Subject: [PATCH] Use new debug functions to take, full register dump What ever is wrong with the touchscreen, its written here. Prescaler 1 fix. --- src/hardwareRegistersTiming.c.h | 3 +++ tests/{ => oldRegisterTests}/HwRegTest20.txt | 0 tests/{ => oldRegisterTests}/HwRegTest21.txt | 0 tests/{ => oldRegisterTests}/screenMem.bin | Bin tests/{ => oldRegisterTests}/screenMem2.bin | Bin tests/{ => oldRegisterTests}/sedFbDump.bin | Bin tests/{ => oldRegisterTests}/sedRegDump.bin | Bin tests/touchscreenAccessDump.txt | Bin 0 -> 29182 bytes unimplementedFeatures.txt | 2 ++ 9 files changed, 5 insertions(+) rename tests/{ => oldRegisterTests}/HwRegTest20.txt (100%) rename tests/{ => oldRegisterTests}/HwRegTest21.txt (100%) rename tests/{ => oldRegisterTests}/screenMem.bin (100%) rename tests/{ => oldRegisterTests}/screenMem2.bin (100%) rename tests/{ => oldRegisterTests}/sedFbDump.bin (100%) rename tests/{ => oldRegisterTests}/sedRegDump.bin (100%) create mode 100644 tests/touchscreenAccessDump.txt diff --git a/src/hardwareRegistersTiming.c.h b/src/hardwareRegistersTiming.c.h index 7ba5ba5..1f95b2f 100644 --- a/src/hardwareRegistersTiming.c.h +++ b/src/hardwareRegistersTiming.c.h @@ -2,10 +2,13 @@ static inline double dmaclksPerClk32(){ uint16_t pllcr = registerArrayRead16(PLLCR); double dmaclks = palmCrystalCycles; + //prescaler 1 divide is implemented when the PLL clock is set + /* if(pllcr & 0x0080){ //prescaler 1 enabled, divide by 2 dmaclks /= 2.0; } + */ if(pllcr & 0x0020){ //prescaler 2 enabled, divides value from prescaler 1 by 2 diff --git a/tests/HwRegTest20.txt b/tests/oldRegisterTests/HwRegTest20.txt similarity index 100% rename from tests/HwRegTest20.txt rename to tests/oldRegisterTests/HwRegTest20.txt diff --git a/tests/HwRegTest21.txt b/tests/oldRegisterTests/HwRegTest21.txt similarity index 100% rename from tests/HwRegTest21.txt rename to tests/oldRegisterTests/HwRegTest21.txt diff --git a/tests/screenMem.bin b/tests/oldRegisterTests/screenMem.bin similarity index 100% rename from tests/screenMem.bin rename to tests/oldRegisterTests/screenMem.bin diff --git a/tests/screenMem2.bin b/tests/oldRegisterTests/screenMem2.bin similarity index 100% rename from tests/screenMem2.bin rename to tests/oldRegisterTests/screenMem2.bin diff --git a/tests/sedFbDump.bin b/tests/oldRegisterTests/sedFbDump.bin similarity index 100% rename from tests/sedFbDump.bin rename to tests/oldRegisterTests/sedFbDump.bin diff --git a/tests/sedRegDump.bin b/tests/oldRegisterTests/sedRegDump.bin similarity index 100% rename from tests/sedRegDump.bin rename to tests/oldRegisterTests/sedRegDump.bin diff --git a/tests/touchscreenAccessDump.txt b/tests/touchscreenAccessDump.txt new file mode 100644 index 0000000000000000000000000000000000000000..ce4679e84c22bb6ad4895df2a1cb2462512d38e3 GIT binary patch literal 29182 zcmeZcNM$HzP+)Lo2w(_hP+&-7C}K!uC}b#QNM*=lNM@*HP+-VsNMo>KFlI1jFk~=e zFk~WY=ik5pR47|a-qi1ax%++x6Bg3~R|3?>W~B)X-Xp@<|an^ zp@s}7T|oScoD$p^48U=kk0->a?Mg~w&w#-hM~E3SI58M9IFcA*l)1$fk6TO!ky{)| zPD$j4iy4CfgCm}BaV0riNKe(E6b>q>aHncQt_0-^(#j-cS6ZNyN!W9qC4(D*oM*&f zz+jFuB%K+I=@_fV45K+Ol>u9QV!(i}6d28U=r!|-U=3765pWwI(GeDGqvW7**3q#|%-I7_xQvc%Lh9wwvCUKla_6V;k0*}iywRKond!vd7ah%c zqd5Im&I7GQA%DggG`EOvRAaQx8?Ez3>paZ0SCp6Sqd5;$YGID{ zjMjMy45MpUaIbnC&3Uw%;TX+%qd5=XdgIZYH=6VCtu7s1w~4;qeRTEM=<2c2)ngV6 zqw{&#cfEk-twu*!Mn_miM_5KjSV-M(1{ysfZ=Q3spEugi8|~+TcAbLi-_cz{qq~GC zpFQIvbFf^J(zazoY%U(SF`&KX0_3H`>nw z?GqZ^pEtTcZ*+eiM_hYw9(aL6-c+nK-e^B>w4XQJ`*{GG