File tree Expand file tree Collapse file tree 7 files changed +418
-346
lines changed
Expand file tree Collapse file tree 7 files changed +418
-346
lines changed Original file line number Diff line number Diff line change 1+ menu "LCD SPI Pins"
2+
3+ config LCD_USE_FAST_PINS
4+ bool "Use fast SPI pins"
5+ default "n"
6+ help
7+ When enabled LCD pins are:
8+ MISO 19
9+ MOSI 23
10+ CLK 18
11+ CS 5
12+ DC 21
13+ RST 22
14+ BCKL 25
15+
16+ When disabled (default) LCD pins are:
17+ MISO 25
18+ MOSI 23
19+ CLK 19
20+ CS 22
21+ DC 21
22+ RST 18
23+ BCKL 5
24+
25+
26+ endmenu
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -47,17 +47,17 @@ static int psxSendRecv(int send) {
4747#endif
4848
4949 GPIO .out_w1tc = (1 <<PSX_ATT );
50- for (delay = 0 ; delay < 50 ; delay ++ );
50+ for (delay = 0 ; delay < 100 ; delay ++ );
5151 for (x = 0 ; x < 8 ; x ++ ) {
5252 if (send & 1 ) {
5353 GPIO .out_w1ts = (1 <<PSX_CMD );
5454 } else {
5555 GPIO .out_w1tc = (1 <<PSX_CMD );
5656 }
5757 DELAY ();
58- for (delay = 0 ; delay < 50 ; delay ++ );
58+ for (delay = 0 ; delay < 100 ; delay ++ );
5959 GPIO .out_w1tc = (1 <<PSX_CLK );
60- for (delay = 0 ; delay < 50 ; delay ++ );
60+ for (delay = 0 ; delay < 100 ; delay ++ );
6161 GPIO .out_w1ts = (1 <<PSX_CLK );
6262 ret >>=1 ;
6363 send >>=1 ;
@@ -111,10 +111,10 @@ void psxcontrollerInit() {
111111 //Send a few dummy bytes to clean the pipes.
112112 psxSendRecv (0 );
113113 psxDone ();
114- for (delay = 0 ; delay < 500 ; delay ++ );
114+ for (delay = 0 ; delay < 500 ; delay ++ ) DELAY () ;
115115 psxSendRecv (0 );
116116 psxDone ();
117- for (delay = 0 ; delay < 500 ; delay ++ );
117+ for (delay = 0 ; delay < 500 ; delay ++ ) DELAY () ;
118118 //Try and detect the type of controller, so we can give the user some diagnostics.
119119 psxSendRecv (0x01 );
120120 t = psxSendRecv (0x00 );
You can’t perform that action at this time.
0 commit comments