origen_spi 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/version.rb +1 -2
- data/lib/origen_spi/driver.rb +6 -0
- data/templates/web/index.md.erb +4 -4
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc20702266eb5cfc96149c5ca06dc5bb74901f3fc34896434d39c207eb16bf59
|
4
|
+
data.tar.gz: 3541388965e3f327e0df21be37a3595293dd60539f1f6874c1cd62cca7373ad6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c8720e6438a0927504d00bcdb696fb282536db128fbd0465a17a64073605ebfbf706b36b96215ca061d2280486cf3657bc4d635e7dbe99a60b72de25d5ee569
|
7
|
+
data.tar.gz: 7e0fde302ca7fb13187d45c202c9a7c5a86fa21791ac5bb95efcf4dac568859e4992b989ba8def9ffbffe74cf6df83f1b8d84386eca85f2d23d0f722de7c60cc
|
data/config/version.rb
CHANGED
data/lib/origen_spi/driver.rb
CHANGED
@@ -177,6 +177,12 @@ module OrigenSpi
|
|
177
177
|
unless @settings_validated
|
178
178
|
settings_valid = true
|
179
179
|
|
180
|
+
# materialize pins
|
181
|
+
@sclk_pin = dut.pins(@sclk_pin) if @sclk_pin.is_a?(Symbol)
|
182
|
+
@mosi_pin = dut.pins(@mosi_pin) if @mosi_pin.is_a?(Symbol)
|
183
|
+
@miso_pin = dut.pins(@miso_pin) if @miso_pin.is_a?(Symbol)
|
184
|
+
@ss_pin = dut.pins(@ss_pin) if @ss_pin.is_a?(Symbol)
|
185
|
+
|
180
186
|
# check that clock and miso are provided
|
181
187
|
unless @sclk_pin.is_a?(Origen::Pins::Pin)
|
182
188
|
settings_valid = false
|
data/templates/web/index.md.erb
CHANGED
@@ -34,10 +34,10 @@ can be changed after instantiation. See API for more details.
|
|
34
34
|
|
35
35
|
~~~ruby
|
36
36
|
sub_block :spi, class_name: 'OrigenSpi::Driver',
|
37
|
-
sclk_pin:
|
38
|
-
mosi_pin:
|
39
|
-
miso_pin:
|
40
|
-
ss_pin:
|
37
|
+
sclk_pin: :sclk,
|
38
|
+
mosi_pin: :mosi,
|
39
|
+
miso_pin: :miso,
|
40
|
+
ss_pin: :ss,
|
41
41
|
# :rl - return low - input data changes while sclk is low and is latched on rising edge
|
42
42
|
clk_format: :rl,
|
43
43
|
# drive state of 0 activates the slave port
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: origen_spi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul DeRouen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: origen
|
@@ -80,8 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: 1.8.11
|
82
82
|
requirements: []
|
83
|
-
|
84
|
-
rubygems_version: 2.7.7
|
83
|
+
rubygems_version: 3.1.4
|
85
84
|
signing_key:
|
86
85
|
specification_version: 4
|
87
86
|
summary: Driver for SPI protocol
|