You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
follow-up(#5149): nRF52: reject invalid pins in forced-software mode before driving peripherals #5190
coderabbit-followupFollow-up for a CodeRabbit finding missed at merge timesanitizedTitle, body and conversation screened; review text requires separate screening.
_FL_DEF_INVALID_PIN defines Nrf52HwPin/FastPin as _INVALID_ARMPIN<0, NRF_P0, 0, 0> even in forced-software mode. The PWM/SPIM drivers call setOutput()/nrf_pin() on it, which resolve to P0.00, so an invalid pin can configure and drive an unrelated pad.
Suggested fix: Add a static_assert (or a runtime reject before peripheral setup) in the PWM/SPIM drivers when the pin is invalid. Also skip the FastPin specialization for invalid pins in forced mode.
Missed CodeRabbit review: merged before the review was read (clud pr_merge_watch bug, fixed in talos-hq/clud#2719).
coderabbit-followupFollow-up for a CodeRabbit finding missed at merge timesanitizedTitle, body and conversation screened; review text requires separate screening.
Activity
fix(nrf52): reject invalid pins in both modes; forced-mode invalid Fa…
fix(nrf52): reject invalid pins in forced-software mode before drivin…