arduino / arduino/ArduinoCore-renesas

Exposing the PwmArray in analog.cpp

Open
#462 2 comments 0 reactions 0 assignees View on GitHub
topic: code type: enhancement
Dominant language
C
Stars
193
Forks
112
PR merge metrics
No merged PRs in 30d

Description

Hi,

I would need to access the PwmArray pwms in analog.cpp to get info about the enabled Pwm on pins. However, pwms is declared static. Would it be possible to remove the static keyword to extend the scope of this variable?

Thanks.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in analog.cpp and inspect the static PwmArray named pwms, including how enabled PWM information is currently accessed. Check whether any existing code or API depends on its file-local scope; done means the required PWM information can be accessed from the intended code without breaking existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.