mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-15 15:07:40 +08:00
Added support for classic/timers.
This commit is contained in:

committed by
Chris Johns

parent
591fbf65d3
commit
086e689955
@@ -11,6 +11,7 @@ import re
|
||||
|
||||
import objects
|
||||
import threads
|
||||
import watchdog
|
||||
import supercore
|
||||
|
||||
class attribute:
|
||||
@@ -179,4 +180,17 @@ class message_queue:
|
||||
print ' Name:', self.object_control.name()
|
||||
print ' Attr:', self.attr.to_string()
|
||||
|
||||
self.core_control.show()
|
||||
self.core_control.show()
|
||||
|
||||
class timer:
|
||||
'''Print a classic timer'''
|
||||
|
||||
def __init__(self, id):
|
||||
self.id = id
|
||||
self.object = objects.information.object(self.id).dereference()
|
||||
self.object_control = objects.control(self.object['Object'])
|
||||
self.watchdog = watchdog.control(self.object['Ticker'])
|
||||
|
||||
def show(self, from_tty):
|
||||
print ' Name:', self.object_control.name()
|
||||
self.watchdog.show()
|
Reference in New Issue
Block a user