Skip to content

Commit a2344ef

Browse files
author
Richard Unger
committed
make 2-pwm unsupported explicit
1 parent b9257bc commit a2344ef

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/drivers/hardware_specific/nrf52_mcu.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,16 @@ void _configureHwPwm(NRF_PWM_Type* mcpwm1, NRF_PWM_Type* mcpwm2){
115115
}
116116
}
117117

118+
119+
120+
// can we support it using the generic driver on this MCU? Commented out to fall back to generic driver for 2-pwm
121+
// void* _configure2PWM(long pwm_frequency, const int pinA, const int pinB) {
122+
// return SIMPLEFOC_DRIVER_INIT_FAILED; // not supported
123+
// }
124+
125+
126+
127+
118128
// function setting the high pwm frequency to the supplied pins
119129
// - BLDC motor - 3PWM setting
120130
// - hardware speciffic

0 commit comments

Comments
 (0)