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

/esp-hal/src/timer/timg.rs examples do not work for TimerGroup #1869

Closed
bbustin opened this issue Jul 28, 2024 · 4 comments
Closed

/esp-hal/src/timer/timg.rs examples do not work for TimerGroup #1869

bbustin opened this issue Jul 28, 2024 · 4 comments
Labels
peripheral:timer Timer peripheral

Comments

@bbustin
Copy link

bbustin commented Jul 28, 2024

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.

@JurajSadel
Copy link
Contributor

Hello @bbustin, thank you for reporting the issue! I'm not sure if I understand correctly what the issue is - could you please:

  1. link the example that does't work for you
  2. which chip are you using
  3. what esp-hal version are you using?

Thanks!

@JurajSadel JurajSadel added the peripheral:timer Timer peripheral label Jul 29, 2024
@bbustin
Copy link
Author

bbustin commented Jul 29, 2024 via email

@Dominaezzz
Copy link
Collaborator

See https://github.com/esp-rs/esp-hal/blob/v0.19.0/esp-hal/src/timer/timg.rs#L241

let timg0 = TimerGroup::new(peripherals.TIMG0, &clocks, None);

@bbustin
Copy link
Author

bbustin commented Jul 29, 2024

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.

@bbustin bbustin closed this as completed Jul 29, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
peripheral:timer Timer peripheral
Projects
Archived in project
Development

No branches or pull requests

3 participants