mirror of
https://github.com/apache/nuttx.git
synced 2026-10-04 04:38:10 +00:00
Add the General PWM Timer (GPT) as a generic timer, registered as /dev/timerN through the upper-half timer driver. GPT0-7 are 32-bit, GPT8-13 are 16-bit, and the timeout can be changed while running. Give each ICU event used by GPT its own enum value instead of a __COUNTER__-based macro, since the latter can hand out a different number at every use. Live period changes to the same prescaler now reload through GTPBR (the buffered period register) instead of stopping the counter, matching Renesas's own FSP driver, and fix a hardware-confirmed bug where an uninitialized GTPBR silently corrupted the period after the first cycle. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Assisted-by: Claude:claude-sonnet-5 Signed-off-by: leocafonso <leocafonso@gmail.com> |
||
|---|---|---|
| .. | ||
| chip.h | ||
| irq.h | ||
| ra8m1_irq.h | ||