Ejemplo n.º 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
Ejemplo n.º 3
0
 def timer_on(self):
   self.ptimer = qemu.ptimer(self.timertick, 1)
   self.ptimer.run(0)
Ejemplo n.º 4
0
 def timer_on(self):
     self.ptimer = qemu.ptimer(self.timertick, 1)
     self.ptimer.run(0)