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 ffb5780 commit 7401604
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions orin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2613,6 +2613,7 @@ int spiOpen(unsigned spiChan, unsigned speed, unsigned mode, unsigned cs_delay,
pin24->CNF[0] |= 0x00000003;
pin_tracker |= (1 << 31);
}

if (spiChan == 1 || spiChan == 2) {
*pinmux37 = 0x00000400;
*pincfg37 = CFGO_OUT;
Expand Down
2 changes: 1 addition & 1 deletion orinagx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2620,7 +2620,7 @@ int spiOpen(unsigned spiChan, unsigned speed, unsigned mode, unsigned cs_delay,
printf( "Not possible to load the linux spidev module (driver) \n");
return -12;
}

snprintf(dev, 19, "/dev/spidev%d.0", spiChan);
fd = open(dev, O_RDWR);
if (fd < 0) {
Expand Down

0 comments on commit 7401604

Please sign in to comment.