소스 검색

Merge pull request #31 from KurtE/CS_PIN45

T3.5/6 Pin 45 is valid CS
main
Paul Stoffregen 7 년 전
부모
커밋
7e628829f1
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      SPI.h

+ 2
- 2
SPI.h 파일 보기

@@ -520,10 +520,10 @@ public:
inTransactionFlag = 1;
#endif
if (port().CTAR0 != settings.ctar) {
port().MCR = SPI_MCR_MDIS | SPI_MCR_HALT | SPI_MCR_PCSIS(0x1F);
port().MCR = SPI_MCR_MDIS | SPI_MCR_HALT | SPI_MCR_PCSIS(0x3F);
port().CTAR0 = settings.ctar;
port().CTAR1 = settings.ctar| SPI_CTAR_FMSZ(8);
port().MCR = SPI_MCR_MSTR | SPI_MCR_PCSIS(0x1F);
port().MCR = SPI_MCR_MSTR | SPI_MCR_PCSIS(0x3F);
}
}


Loading…
취소
저장