Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in the hardward/pwm.h #1975

Open
DarkElvenAngel opened this issue Oct 5, 2024 · 1 comment
Open

Error in the hardward/pwm.h #1975

DarkElvenAngel opened this issue Oct 5, 2024 · 1 comment

Comments

@DarkElvenAngel
Copy link

There's an error in the SDK 2.0.0 version

static_assert(PWM_IRQ_WRAP_1 == PWM_IRQ_WRAP_0 + 1);

There needs to be a , "" added

/tmp/pico-sdk/src/rp2_common/hardware_pwm/include/hardware/pwm.h: In function 'pwm_set_irq_mask_enabled':
/tmp/pico-sdk/src/rp2_common/hardware_pwm/include/hardware/pwm.h:658:55: error: expected ',' before ')' token
     static_assert(PWM_IRQ_WRAP_1 == PWM_IRQ_WRAP_0 + 1);
                                                       ^
                                                       ,

I solved this by changing the line to

   static_assert(PWM_IRQ_WRAP_1 == PWM_IRQ_WRAP_0 + 1, "");

This only happen when using the RP2350

@lurch
Copy link
Contributor

lurch commented Oct 6, 2024

This seems to be a duplicate of #1788 ? (which was fixed on the develop branch by 424e21e )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants