arduino / arduino/ArduinoCore-avr

Needs ability to skip initialization of timers 1 & 2

Open
#154 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
1.5k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Some complex project uses that timers "manually" but init() in wiring.c always initializes them to PWM. Why not to surround code (lines 284-327 in wiring.c) with #if ! defined(SKIP_TIMER1_INIT) / #endif so one can define such "magical" constants and escape from unneeded code. Now I forced to patch some of that files to adopt to my projects

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in wiring.c at lines 284-327, where init() initializes timers 1 and 2 for PWM. Trace how those timer setup sections are selected and how compile-time options are defined in the core. Done means projects can skip the relevant initialization with a definition while the default initialization remains unchanged; no test file is mentioned.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.