arduino / arduino/ArduinoCore-renesas
[Uno R4 minima] GPIO open drain mode select bug
- Dominant language
- C
- Stars
- 193
- Forks
- 112
- PR merge metrics
- No merged PRs in 30d
Description
For uno minima, when configuring GPIO with pinMode() function, there is a bug when configured using OUTPUT_OPENDRAIN PinMode.
The fix would be to replace line:
https://github.com/arduino/ArduinoCore-renesas/blob/4e60678ad7286a8c74caa966e479e64c0c09de09/cores/arduino/digital.cpp#L16
with:
```cpp
#if UNO
R_IOPORT_PinCfg(NULL, g_pin_cfg[pin].pin, IOPORT_CFG_PORT_DIRECTION_OUTPUT | IOPORT_CFG_NMOS_ENABLE);
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at cores/arduino/digital.cpp line 16 and review the pinMode() path for OUTPUT_OPENDRAIN on the Uno R4 minima. Compare the current configuration with the issue's proposed replacement, then verify that open-drain GPIO mode is selected correctly for the Uno target; the linked pull request is closed, so check the current branch before starting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100