Feature/arduino r4 minima timer - #17336
Merged
acassis merged 3 commits intoNov 17, 2025
Merged
Conversation
- Added PWM driver support for the RA4M1 microcontroller using the GPT timer. - This driver supports Saw-wave mode and one of the two output channels (A or B). - Added necessary configurations in CMakeLists.txt, Kconfig, and Make.defs. - Created new header file for GPT. Signed-off-by: leocafonso <leocafonso@gmail.com>
- Added PWM support on Arduino R4 Minima board. This board has 5 PWM channels available using the GPT timer from the RA4M1 microcontroller. - Added a pwm config file to enable PWM supporting GTP2 GTIOCB on P102. Signed-off-by: leocafonso <leocafonso@gmail.com>
- Updated information about the RA4M1 microcontroller capabilities, including the General Purpose Timer (GPT). - Added information about the PWM driver support for the Arduino R4 Minima board using the GPT timer. Signed-off-by: leocafonso <leocafonso@gmail.com>
leocafonso
force-pushed
the
feature/arduino-r4-minima-timer
branch
from
November 17, 2025 00:28
92d76c6 to
bac0844
Compare
xiaoxiang781216
approved these changes
Nov 17, 2025
acassis
approved these changes
Nov 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Added PWM support for RA4M1 and tested on arduino-r4-minima. It was added a new pwm config exposing the GPT2 OUTPUTB on Arduino pin 5 (~5)
Impact
Added GPT PWM mode on RA4M1
Testing
It was tested on arduino-r4-minima. Tested all possible PWM on the Arduino board
Test:
pwm frequency: 100Hz
duty: 50%