gptimer: support esp32h2

This commit is contained in:
morris
2023-01-05 19:34:05 +08:00
parent 1a8a06775d
commit ce84476870
24 changed files with 414 additions and 22 deletions

View File

@@ -3,7 +3,7 @@
# Example: General Purpose Timer
This example uses the timer group driver to generate timer interrupts at two specified alarm intervals.
This example uses the **legacy timer group driver** to generate timer interrupts with and without auto-reload. But we highly recommend you to use the new [GPTimer Driver](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/gptimer.html) in your new projects.
## How to Use Example
@@ -19,9 +19,10 @@ Run `idf.py -p PORT flash monitor` to build, flash and monitor the project.
(To exit the serial monitor, type ``Ctrl-]``.)
See the [ESP-IDF Getting Started Guide](https://idf.espressif.com/) for all the steps to configure and use the ESP-IDF to build projects.
## Example Output
```
```text
I (0) cpu_start: Starting scheduler on APP CPU.
I (325) example: Init timer with auto-reload
I (835) example: Timer auto reloaded, count value in ISR: 3