소스 검색

sms/spi: sample DO when CLK is high

I was sampling DO at the wrong moment, so my input was always
one-off.
master
Virgil Dupras 3 년 전
부모
커밋
4b71f0a344
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      arch/z80/sms/blk/622

+ 1
- 1
arch/z80/sms/blk/622 파일 보기

@@ -4,7 +4,7 @@
( send current bit to TRB, TR's output bit )
DUP 7 I - RSHIFT 1 AND _TRB!
1 _THB! ( CLK hi )
0 _THB! ( CLK lo )
( read into rx ) SWAP 1 LSHIFT _D1@ ( tx rx<< x )
0 _THB! ( CLK lo )
( out bit is the 6th ) 6 RSHIFT 1 AND OR
SWAP LOOP ( rx tx ) DROP ;

불러오는 중...
취소
저장