Skip to content

Commit

Permalink
applet.interface.swd_openocd: fix missing required port argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninja3047 authored and whitequark committed Nov 1, 2024
1 parent d6c4581 commit b3eb5c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/glasgow/applet/interface/swd_openocd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def elaborate(self, platform):
self.srst_z.eq(0),
]
if self.ports.srst is not None:
m.submodules.srst_buffer = srst_buffer = io.Buffer("o")
m.submodules.srst_buffer = srst_buffer = io.Buffer("o", self.ports.srst)
m.d.sync += [
srst_buffer.oe.eq(~self.srst_z),
srst_buffer.o.eq(~self.srst_o)
Expand Down

0 comments on commit b3eb5c7

Please sign in to comment.