Skip to content

Commit

Permalink
Merge pull request #1995 from VOGL-electronic/soc_spi_master_int
Browse files Browse the repository at this point in the history
soc: add_spi_master: make spi_clk_freq an int
  • Loading branch information
enjoy-digital authored Jun 19, 2024
2 parents d985458 + 447469b commit f40f63a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions litex/soc/integration/soc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1973,6 +1973,8 @@ def add_spi_master(self, name="spimaster", pads=None, data_width=8, spi_clk_freq

self.check_if_exists(f"{name}")

spi_clk_freq = int(spi_clk_freq)

if pads is None:
pads = self.platform.request(name)

Expand Down

0 comments on commit f40f63a

Please sign in to comment.