예제 #1
0
 def create(self):
     self.freq = self.properties["frequency"]
     if self.freq == 0:
         raise ValueError, "Zero/unset frequency"
     self.timer = qemu.ptimer(self.timer_tick, self.freq)
     self.running = False
     self.oneshot = False
     self.int_status = 0
     self.int_enable = 0
     self.limit = 0
 def create(self):
   self.freq = self.properties["frequency"]
   if self.freq == 0:
     raise ValueError, "Zero/unset frequency"
   self.timer = qemu.ptimer(self.timer_tick, self.freq)
   self.running = False
   self.oneshot = False
   self.int_status = 0
   self.int_enable = 0
   self.limit = 0
예제 #3
0
 def timer_on(self):
   self.ptimer = qemu.ptimer(self.timertick, 1)
   self.ptimer.run(0)
 def timer_on(self):
     self.ptimer = qemu.ptimer(self.timertick, 1)
     self.ptimer.run(0)