Comments (3)
Just as a note there is also the fugit_timer
package which has its own Timer
trait which can be implemented. Not sure how useful this is in practice, however.
from esp-hal.
Is there actually a way to configure the timer tick rate other than simply selecting the clock and divider values? The only fields I'm really seeing for configuration in this regard are:
TIMG_T0_USE_XTAL
- 1: Use XTAL_CLK as the source clock of timer group. 0: Use APB_CLK as the source clock of timer group. (R/W) [Default: 0]TIMG_T0_DIVIDER
- Timer 0 clock (T0_clk) prescaler value. (R/W) [Default: 1]
Not seeing any other relevant inputs in the block diagram either:
If these are the fields that you were referring to please let me know, but I don't believe the clock configuration is required at all.
from esp-hal.
Yes, I think that is all that can be configured about the clock rate.
My idea was just to not use type Time = u64;
but have Time
a fugit duration type. Since in user code it's not clear what a tick is actually (and can be different in different configurations). So, we probably also need to take a reference to the frozen clocks in the new
constructor.
There is also load_alarm_value
but I think that is okay to be timer-ticks. Maybe we should add a comment there about that, then.
from esp-hal.
Related Issues (20)
- esp-wifi 0.7 does not compile with embedded-svc feature HOT 7
- Pretty printing panic messages on nightly broken
- ESP32 PSRAM duplicate branch HOT 1
- Expose SPI sio() setting HOT 2
- Expose interrupt state of Pin when wrapped in Input<> HOT 2
- There is currently no way to configure WDT to do anything but a system reset
- I2S write broken HOT 4
- Explore Rustls and create an example
- Caught in I2C busy loop HOT 1
- Async PARL_IO is using the wrong DMA future
- Ensure espflash is installed on all runners HOT 1
- Improving the logging performance of `esp-println` with async TX HOT 1
- Halting both cores makes `espflash` fail to reset the board with the USB-Serial-JTAG HOT 2
- Async SPI broken for ESP32 HOT 4
- Provide some way to *not* bind an interrupt handler in `Io::new` HOT 2
- Async-SPI on ESP32: Unexpected behavior HOT 1
- Async SPI - already borrowed: BorrowMutError on esp32s3 HOT 1
- The `embedded_hal_async::delay::DelayNs` trait is not implemented for `delay::Delay` or `timer::timg::Timer` HOT 1
- Should we remove the `embedded-hal-nb` trait implementations?
- Cannot build esp-wifi. toml_cfg errors
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.