Skip to content

Commit

Permalink
enabling inputs during pwm
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubberazer committed Jul 17, 2024
1 parent 704fc9b commit bc6b2aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2128,7 +2128,7 @@ int gpioSetPWMfrequency(unsigned gpio, unsigned frequency) {
printf( "Not possible to change clock rate on pwm1\n");
}
fclose(fptr);
*pinmux15 = 0x00000400;
*pinmux15 = 0x00000440;
*pincfg15 = CFGO_OUT;
pin15->CNF[0] = 0x00000001;
*PWM1 = 0x0;
Expand All @@ -2150,7 +2150,7 @@ int gpioSetPWMfrequency(unsigned gpio, unsigned frequency) {
printf( "Not possible to change clock rate on pwm7\n");
}
fclose(fptr);
*pinmux32 = 0x00000400;
*pinmux32 = 0x00000440;
*pincfg32 = CFGO_OUT;
pin32->CNF[0] = 0x00000001;
*PWM7 = 0x0;
Expand All @@ -2172,7 +2172,7 @@ int gpioSetPWMfrequency(unsigned gpio, unsigned frequency) {
printf( "Not possible to change clock rate on pwm5\n");
}
fclose(fptr);
*pinmux33 = 0x00000401;
*pinmux33 = 0x00000441;
*pincfg33 = CFGO_OUT;
pin33->CNF[0] = 0x00000001;
*PWM5 = 0x0;
Expand Down

0 comments on commit bc6b2aa

Please sign in to comment.