Skip to content

Commit

Permalink
nothings
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubberazer committed Aug 2, 2024
1 parent 5759ed2 commit 481748c
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions orin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2599,33 +2599,33 @@ int spiOpen(unsigned spiChan, unsigned speed, unsigned mode, unsigned cs_delay,
}

if (spiChan == 0) {
*pinmux19 = 0x00000400;
*pincfg19 = CFGO_OUT;
*pinmux19 = 0x00000400;
*pincfg19 = CFGO_OUT;
pin19->CNF[0] |= 0x00000003;
*pinmux21 = 0x00000440;
*pincfg21 = CFGO_IN;
*pinmux21 = 0x00000440;
*pincfg21 = CFGO_IN;
pin21->CNF[0] |= 0x00000001;
*pinmux23 = 0x00000400;
*pincfg23 = CFGO_OUT;
*pinmux23 = 0x00000400;
*pincfg23 = CFGO_OUT;
pin23->CNF[0] |= 0x00000003;
*pinmux24 = 0x00000400;
*pincfg24 = CFGO_OUT;
*pinmux24 = 0x00000400;
*pincfg24 = CFGO_OUT;
pin24->CNF[0] |= 0x00000003;
pin_tracker |= (1 << 31);
}

if (spiChan == 1 || spiChan == 2) {
*pinmux37 = 0x00000400;
*pincfg37 = CFGO_OUT;
pin37->CNF[0] |= 0x00000003;
*pinmux22 = 0x00000440;
*pincfg22 = CFGO_IN;
*pinmux37 = 0x00000400;
*pincfg37 = CFGO_OUT;
pin37->CNF[0] |= 0x00000003;
*pinmux22 = 0x00000440;
*pincfg22 = CFGO_IN;
pin22->CNF[0] |= 0x00000001;
*pinmux13 = 0x00000400;
*pincfg13 = CFGO_OUT;
*pinmux13 = 0x00000400;
*pincfg13 = CFGO_OUT;
pin13->CNF[0] |= 0x00000003;
*pinmux18 = 0x00000400;
*pincfg18 = CFGO_OUT;
*pinmux18 = 0x00000400;
*pincfg18 = CFGO_OUT;
pin18->CNF[0] |= 0x00000003;
pin_tracker |= (1UL << 32);
}
Expand Down

0 comments on commit 481748c

Please sign in to comment.