Skip to content

Commit fa4b4fa

Browse files
committed
nrf: Correctly mark PWM unused during reset
1 parent faca1ec commit fa4b4fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ports/nrf/common-hal/pwmio/PWMOut.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ STATIC void reset_single_pwmout(uint8_t i) {
108108

109109
for (int ch = 0; ch < CHANNELS_PER_PWM; ch++) {
110110
pwm_seq[i][ch] = (1 << 15); // polarity = 0
111+
pwm->PSEL.OUT[ch] = 0xFFFFFFFF; // disconnnect from I/O
111112
}
112113
}
113114

0 commit comments

Comments
 (0)