Skip to content

Commit

Permalink
Update pwm.h (#2077)
Browse files Browse the repository at this point in the history
NUM_DMA_IRQS was used instead of NUM_PWM_IRQS
  • Loading branch information
newbrain authored Nov 21, 2024
1 parent 6bf5d9b commit 105a2b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rp2_common/hardware_pwm/include/hardware/pwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ static inline uint32_t pwm_get_irq1_status_mask(void) {
* \return Bitmask of all PWM interrupts currently set
*/
static inline uint32_t pwm_irqn_get_status_mask(uint irq_index) {
invalid_params_if(HARDWARE_PWM, irq_index >= NUM_DMA_IRQS);
invalid_params_if(HARDWARE_PWM, irq_index >= NUM_PWM_IRQS);
return pwm_hw->irq_ctrl[irq_index].ints;
}

Expand Down

0 comments on commit 105a2b8

Please sign in to comment.