mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
parent
3505878176
commit
37f9c0b10c
@ -203,7 +203,11 @@ class SPIMaster(Module):
|
||||
mosi_oe.eq(
|
||||
~config.offline & spi.cs &
|
||||
(spi.oe | ~config.half_duplex)),
|
||||
clk.eq((spi.cg.clk & spi.cs) ^ config.clk_polarity)
|
||||
]
|
||||
self.sync += [
|
||||
If(spi.cg.ce & spi.cg.edge,
|
||||
clk.eq((~spi.cg.clk & spi.cs_next) ^ config.clk_polarity)
|
||||
)
|
||||
]
|
||||
|
||||
if pads_n is None:
|
||||
|
Loading…
Reference in New Issue
Block a user