Comments (7)
I think with that in mind lets close this for now. If the need for something like this pops up again, we can look at changing the whole TimerGroup struct
from esp-hal.
@bjoernQ I think this is already done for TIMG timers? When used with the e-h timer traits they are used in periodic mode? Please correct me if I'm wrong :D.
from esp-hal.
🤔 seems you are right 👀 .... but probably it shouldn't be like that?
i.e. by default, it should be one-shot and we should have an "into_periodic" function (like systimer) to turn it into periodic mode?
from esp-hal.
I think that's just the way the e-h traits work, we implement periodic on the timer which has a cancel method to stop the timer at any point - i.e after one iteration.
I guess we could still have the into_periodic function on the timer, and implement the periodic trait on that type 🤔
from esp-hal.
Sounds like the best way to go - then it's aligned with systimer 👍
from esp-hal.
We might struggle here, TimerGroup contains two timers (on most chips). We can't use into_periodic(self)
on the timers inside, because we can't move the timers out of TimerGroup :/
from esp-hal.
Ohh you are right
from esp-hal.
Related Issues (20)
- Prevent modifying INT_ENA (and other shared registers) in a way allowing race-conditions HOT 2
- Cargo.toml example for embassy_i2c.rs HOT 2
- Expose RAW 802.11 transmit API and promiscuous mode on `esp-wifi` HOT 1
- Consider resetting peripherals on driver construction
- ESP32-S2: `systimer` example shows different behavior than before and on other chips HOT 3
- Use SPI Bus for multiple Devices HOT 3
- The `main` procmacro is not re-exported in the current published releases of `esp-hal` and `esp-hal-embassy`
- TWAI is not working for ESP32-S3 HOT 3
- Latest release (v0.2.2) of `xtensa-lx-rt-proc-macros` not used by published `xtensa-lx-rt`
- Unable to Configure Prescaler for MCPWM Timer in esp-hal
- Implement touch support for `esp32s2` and `esp32s3`. HOT 1
- Add listen only and self-test mode support for TWAI
- I2C slave driver HOT 2
- TWAI HIL test HOT 1
- xtensa-lx feature not found in esp-hal HOT 4
- esp32s3: i2c async broken in #1900 HOT 5
- Make AnyPin accessible from `::gpio::AnyPin`? HOT 3
- Implement embassy_embedded_hal::SetConfig HOT 1
- Feature Request: Sleep and wake support for ESP32C2 HOT 3
- SD/MMC driver HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-hal.