-
Notifications
You must be signed in to change notification settings - Fork 229
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
/esp-hal/src/timer/timg.rs examples do not work for TimerGroup #1869
Comments
Hello @bbustin, thank you for reporting the issue! I'm not sure if I understand correctly what the issue is - could you please:
Thanks! |
I am using esp-hal version 0.19.0 with feature esp32c6.
let peripherals = Peripherals::take();
let system = SystemControl::new(peripherals.SYSTEM);
let clocks = ClockControl::max(system.clock_control).freeze();
let delay = Delay::new(&clocks);
let timg0 = TimerGroup::new(peripherals.TIMG0, &clocks);
The last line gives the error "this function takes 3 arguments, but 2 arguments were supplied". It looks like TimerGroup::new was modified to need an additional parameter of type Wdt.
… On Jul 29, 2024, at 5:01 AM, Juraj Sadel ***@***.***> wrote:
Hello @bbustin <https://github.com/bbustin>, thank you for reporting the issue! I'm not sure if I understand correctly what the issue is - could you please:
link the example that does't work for you
which chip are you using
what esp-hal version are you using?
Thanks!
—
Reply to this email directly, view it on GitHub <#1869 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABLZY2OZ5JMQ32GPVYJOZ4DZOYVLNAVCNFSM6AAAAABLTDG636VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJVG42DKMZZGM>.
You are receiving this because you were mentioned.
|
See https://github.com/esp-rs/esp-hal/blob/v0.19.0/esp-hal/src/timer/timg.rs#L241
|
Thanks @JurajSadel and @Dominaezzz. This looks like a PEBKAC error. I apologize. I really thought I'd found an issue. Now, after @Dominaezzz pointed it out, it was correct all along. I must have subconsciously ignored the None. I apologize for wasting your time. Thanks for this great project. I really appreciate all your hard work. |
timg::TimerGroup now requires an additional argument with a Wdt<T, DM>. The documentation in the code shows only two arguments and thus does not work.
The text was updated successfully, but these errors were encountered: