mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
#1788 fix missing static_assert message
This commit is contained in:
parent
8177366292
commit
424e21ec07
1 changed files with 1 additions and 1 deletions
|
|
@ -655,7 +655,7 @@ static inline void pwm_set_irq_mask_enabled(uint32_t slice_mask, bool enabled) {
|
|||
hw_clear_bits(&pwm_hw->inte, slice_mask);
|
||||
}
|
||||
#else
|
||||
static_assert(PWM_IRQ_WRAP_1 == PWM_IRQ_WRAP_0 + 1);
|
||||
static_assert(PWM_IRQ_WRAP_1 == PWM_IRQ_WRAP_0 + 1, "");
|
||||
uint irq_index = PWM_DEFAULT_IRQ_NUM() - PWM_IRQ_WRAP_0;
|
||||
if (enabled) {
|
||||
hw_set_bits(&pwm_hw->irq_ctrl[irq_index].inte, slice_mask);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue