Skip to main content

PATCHES

Constant PATCHES 

Source
pub const PATCHES: &[Patch];
Expand description

Known anomalies in the vendored STM32F4 pin data (shared across families; each patch is keyed by exact (pin, af, peripheral, signal) so there is no cross-family collision risk).

No entry-level corrections are needed yet; the generated table is cross-validated against a hand-verified datasheet seed (see generated_db_agrees_with_hand_verified_seed). Record any future deviation here, never by editing packdata/.

Anomalies found so far are structural and handled (with tests) in parse_gpio_modes rather than as per-entry patches:

  • "CEC": HDMI-CEC’s signal name has no PERIPH_SIGNAL form; it normalizes to peripheral CEC, signal CEC.
  • "PDR_ON": the modes file lists this power ball as a GPIO_Pin; any entry that is not a P<port><n> pin is skipped.
  • "PI8": present in the family-wide modes file but not on the LQFP64 package; dropped by the package-pin filter in generate_table.