Skip to content

fix(GPIO): Fix the bitmaps for available AFs#595

Open
FoniksFox wants to merge 2 commits intodevelopmentfrom
fix/Available-AFs
Open

fix(GPIO): Fix the bitmaps for available AFs#595
FoniksFox wants to merge 2 commits intodevelopmentfrom
fix/Available-AFs

Conversation

@FoniksFox
Copy link
Contributor

Just what the title says, they were all wrong

Copilot AI review requested due to automatic review settings March 20, 2026 18:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the compile-time GPIO pin metadata used by GPIODomain::Pin::valid_af() to reflect the correct set of supported alternate functions per pin, preventing invalid AF selections at compile time.

Changes:

  • Corrected the per-pin afs bitmask values across ports A–H in Inc/HALAL/Models/Pin.hpp.
  • Updated oscillator/low-pin-count ports (e.g., PC13–PC15, PH0–PH1) to new AF-availability masks consistent with the updated mapping.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

ST-LIB Release Plan

  • Current version: 5.0.0
  • Pending changesets: 3
  • Highest requested bump: minor
  • Next version if merged now: 5.1.0

Pending changes

  • minor Refactor the ADC stack around DMA-backed acquisition using new MPU (.changesets/adc-dma-minor.md)
  • patch Fix incorrect GPIO alternate-function availability bitmaps (.changesets/gpio-af-bitmaps-patch.md)
  • none Introduce semver tooling and release automation infrastructure (.changesets/revive-releases-bootstrap.md)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants