Mercurial > flash_v2
comparison packages/devs/watchdog/current/include/watchdog.hxx @ 32:5af43b635655 ecos-sw-1999-08-18
Merge from eCos master repository on 1999-08-18-15:20:01-BST
| author | jlarmour |
|---|---|
| date | Wed, 18 Aug 1999 15:33:44 +0000 |
| parents | 443894e2e912 |
| children | c38311975d4f |
comparison
equal
deleted
inserted
replaced
| 31:e8319549378c | 32:5af43b635655 |
|---|---|
| 46 //========================================================================== | 46 //========================================================================== |
| 47 | 47 |
| 48 #include <cyg/kernel/ktypes.h> | 48 #include <cyg/kernel/ktypes.h> |
| 49 #include <cyg/infra/cyg_ass.h> // assertion macros | 49 #include <cyg/infra/cyg_ass.h> // assertion macros |
| 50 | 50 |
| 51 | |
| 52 class Cyg_Watchdog_Action; | 51 class Cyg_Watchdog_Action; |
| 53 | 52 |
| 54 // ------------------------------------------------------------------------- | 53 // ------------------------------------------------------------------------- |
| 55 // Watchdog class | 54 // Watchdog class |
| 56 | 55 |
| 57 class Cyg_Watchdog | 56 class Cyg_Watchdog |
| 58 { | 57 { |
| 59 | 58 |
| 60 Cyg_Watchdog_Action *action_list; | 59 Cyg_Watchdog_Action *action_list; |
| 61 | 60 |
| 61 cyg_uint64 resolution; | |
| 62 | |
| 62 public: | 63 public: |
| 63 | 64 |
| 64 Cyg_Watchdog(); | 65 Cyg_Watchdog(); |
| 65 | 66 |
| 67 // Return time interval allowed between resets before watchdog | |
| 68 // triggers, in nanoseconds. | |
| 69 cyg_uint64 get_resolution(); | |
| 70 | |
| 66 // Start the watchdog running. | 71 // Start the watchdog running. |
| 67 void start(); | 72 void start(); |
| 68 | 73 |
| 69 // Reset watchdog timer. This needs to be called regularly to prevent | 74 // Reset watchdog timer. This needs to be called regularly to prevent |
| 70 // the watchdog firing. | 75 // the watchdog firing. |
