Skip to content

Commit

Permalink
[gpio] Fix CI for L variant devices
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikssn committed Oct 5, 2020
1 parent 89aec09 commit 44eed30
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modm/platform/gpio/sam/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ def build(env):
"function": signal["function"].capitalize(),
"name": signal["name"].capitalize(),
})
# This is a hack for L variant devices, which have a Ac without instance *and*
# a Ac with instance 1. Why???
if (device.identifier.get("variant") == "l"
and signal["peripheral"] == "Ac"
and (not "instance" in signal or signal["instance"] == "")):
signal["instance"] = "0"
signal["full_name"] = signal["peripheral"]
peripheral = peripherals.setdefault(signal["peripheral"], dict())
if "instance" in signal:
Expand Down

0 comments on commit 44eed30

Please sign in to comment.