Skip to content

Commit

Permalink
opticlock, suservo: set default kasli hw_rev
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed May 7, 2018
1 parent c646409 commit 7d4a103
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions artiq/gateware/targets/kasli.py
Expand Up @@ -387,8 +387,10 @@ class Opticlock(_StandaloneBase):
"""
Opticlock extension variant configuration
"""
def __init__(self, **kwargs):
_StandaloneBase.__init__(self, **kwargs)
def __init__(self, hw_rev=None, **kwargs):
if hw_rev is None:
hw_rev = "v1.0"
_StandaloneBase.__init__(self, hw_rev=hw_rev, **kwargs)

self.config["SI5324_AS_SYNTHESIZER"] = None
# self.config["SI5324_EXT_REF"] = None
Expand Down Expand Up @@ -492,8 +494,10 @@ class SUServo(_StandaloneBase):
"""
SUServo (Sampler-Urukul-Servo) extension variant configuration
"""
def __init__(self, **kwargs):
_StandaloneBase.__init__(self, **kwargs)
def __init__(self, hw_rev=None, **kwargs):
if hw_rev is None:
hw_rev = "v1.1"
_StandaloneBase.__init__(self, hw_rev=hw_rev, **kwargs)

self.config["SI5324_AS_SYNTHESIZER"] = None
# self.config["SI5324_EXT_REF"] = None
Expand Down

0 comments on commit 7d4a103

Please sign in to comment.