templates/web/index.md.erb in origen_spi-0.2.0 vs templates/web/index.md.erb in origen_spi-0.3.0
- old
+ new
@@ -32,13 +32,13 @@
The spi driver is intended to be instantiated as a sub_block. The configuration can be passed in as a hash and / or
can be changed after instantiation. See API for more details.
~~~ruby
sub_block :spi, class_name: 'OrigenSpi::Driver',
- sclk_pin: dut.pin(:sclk),
- mosi_pin: dut.pin(:mosi),
- miso_pin: dut.pin(:miso),
- ss_pin: dut.pin(:ss),
+ sclk_pin: :sclk,
+ mosi_pin: :mosi,
+ miso_pin: :miso,
+ ss_pin: :ss,
# :rl - return low - input data changes while sclk is low and is latched on rising edge
clk_format: :rl,
# drive state of 0 activates the slave port
ss_active: 0,
# wait time after ss_active and before any sclk activity