remove kernel_attr (inline transform is now smart enough to autodetect)

This commit is contained in:
Sebastien Bourdeauducq 2014-11-03 14:38:04 +08:00
parent a29d7ec6fe
commit f54a2f93d2
3 changed files with 0 additions and 8 deletions

View File

@ -23,8 +23,6 @@ class DDS(AutoContext):
self.previous_frequency = 0*MHz self.previous_frequency = 0*MHz
self.sw = rtio.RTIOOut(self, channel=self.rtio_switch) self.sw = rtio.RTIOOut(self, channel=self.rtio_switch)
kernel_attr = "previous_frequency"
@portable @portable
def frequency_to_ftw(self, frequency): def frequency_to_ftw(self, frequency):
"""Returns the frequency tuning word corresponding to the given """Returns the frequency tuning word corresponding to the given

View File

@ -18,8 +18,6 @@ class LLRTIOOut(AutoContext):
self.previous_timestamp = int64(0) # in RTIO cycles self.previous_timestamp = int64(0) # in RTIO cycles
self._set_oe() self._set_oe()
kernel_attr = "previous_timestamp"
@kernel @kernel
def _set_oe(self): def _set_oe(self):
syscall("rtio_oe", self.channel, 1) syscall("rtio_oe", self.channel, 1)
@ -62,8 +60,6 @@ class _RTIOBase(AutoContext):
self.previous_timestamp = int64(0) # in RTIO cycles self.previous_timestamp = int64(0) # in RTIO cycles
self.previous_value = 0 self.previous_value = 0
kernel_attr = "previous_timestamp previous_value"
@kernel @kernel
def _set_oe(self, oe): def _set_oe(self, oe):
syscall("rtio_oe", self.channel, oe) syscall("rtio_oe", self.channel, oe)

View File

@ -123,8 +123,6 @@ class CompoundPDQ2(AutoContext):
self.current_frame = -1 self.current_frame = -1
self.next_sn = -1 self.next_sn = -1
kernel_attr = "current_frame next_sn"
def create_frame(self): def create_frame(self):
return _Frame(self.core) return _Frame(self.core)