Increase STM32F1 Servo Timer Interrupt Priority (#18637)

This commit is contained in:
Jason Smith
2020-07-14 17:07:27 -07:00
committed by GitHub
parent c9718504c5
commit 95b76a65c3
3 changed files with 18 additions and 6 deletions

View File

@@ -74,6 +74,7 @@ void libServo::servoWrite(uint8_t inPin, uint16_t duty_cycle) {
libServo::libServo() {
servoIndex = ServoCount < MAX_SERVOS ? ServoCount++ : INVALID_SERVO;
timer_set_interrupt_priority(SERVO0_TIMER_NUM, SERVO0_TIMER_IRQ_PRIO);
}
bool libServo::attach(const int32_t inPin, const int32_t inMinAngle, const int32_t inMaxAngle) {