Add watchdog seconds command

- prints the watchdog chain managed at second boundaries.
This commit is contained in:
Dhananjay Balan
2013-08-26 20:56:30 +05:30
committed by Chris Johns
parent 1fcff75505
commit 61154bf302
3 changed files with 11 additions and 1 deletions

View File

@@ -18,4 +18,5 @@ rtems.rtems_semaphore()
rtems.rtems_task() rtems.rtems_task()
rtems.rtems_message_queue() rtems.rtems_message_queue()
rtems.rtems_tod() rtems.rtems_tod()
rtems.rtems_wdt() rtems.rtems_wdt()
rtems.rtems_wsec()

View File

@@ -15,6 +15,7 @@ class infotables:
tables_types = { tables_types = {
'internal/time' : ('TOD_Control', '_TOD'), 'internal/time' : ('TOD_Control', '_TOD'),
'internal/wdticks' : ('Chain_Control', '_Watchdog_Ticks_chain'), 'internal/wdticks' : ('Chain_Control', '_Watchdog_Ticks_chain'),
'internal/wdseconds' : ('Chain_Control', '_Watchdog_Seconds_chain'),
'classic/tasks' : ('Thread_Control', '_RTEMS_tasks_Information'), 'classic/tasks' : ('Thread_Control', '_RTEMS_tasks_Information'),
'classic/timers' : ('Timer_Control', '_Timer_Information'), 'classic/timers' : ('Timer_Control', '_Timer_Information'),

View File

@@ -245,3 +245,11 @@ class rtems_wdt(rtems_watchdog_chain):
self.__doc__ = 'Display watchdog ticks chain' self.__doc__ = 'Display watchdog ticks chain'
super(rtems_wdt, self).__init__('rtems wdticks') super(rtems_wdt, self).__init__('rtems wdticks')
class rtems_wsec(rtems_watchdog_chain):
_class = 'wdseconds'
def __init__(self):
self.__doc__ = 'Display watchdog seconds chain'
super(rtems_wsec, self).__init__('rtems wdseconds')