Skip to content

Commit 105a2b8

Browse files
authored
Update pwm.h (#2077)
NUM_DMA_IRQS was used instead of NUM_PWM_IRQS
1 parent 6bf5d9b commit 105a2b8

File tree

1 file changed

+1
-1
lines changed
  • src/rp2_common/hardware_pwm/include/hardware

1 file changed

+1
-1
lines changed

src/rp2_common/hardware_pwm/include/hardware/pwm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ static inline uint32_t pwm_get_irq1_status_mask(void) {
773773
* \return Bitmask of all PWM interrupts currently set
774774
*/
775775
static inline uint32_t pwm_irqn_get_status_mask(uint irq_index) {
776-
invalid_params_if(HARDWARE_PWM, irq_index >= NUM_DMA_IRQS);
776+
invalid_params_if(HARDWARE_PWM, irq_index >= NUM_PWM_IRQS);
777777
return pwm_hw->irq_ctrl[irq_index].ints;
778778
}
779779

0 commit comments

Comments
 (0)