FreeCalypso > hg > leo2moko-debug
comparison chipsetsw/os/nucleus/tm_defs.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
| author | Space Falcon <falcon@ivan.Harhan.ORG> |
|---|---|
| date | Mon, 01 Jun 2015 03:24:05 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:509db1a7b7b8 |
|---|---|
| 1 /*************************************************************************/ | |
| 2 /* */ | |
| 3 /* Copyright (c) 1993-1994 Accelerated Technology, Inc. */ | |
| 4 /* */ | |
| 5 /* PROPRIETARY RIGHTS of Accelerated Technology are involved in the */ | |
| 6 /* subject matter of this material. All manufacturing, reproduction, */ | |
| 7 /* use, and sales rights pertaining to this subject matter are governed */ | |
| 8 /* by the license agreement. The recipient of this software implicitly */ | |
| 9 /* accepts the terms of the license. */ | |
| 10 /* */ | |
| 11 /*************************************************************************/ | |
| 12 | |
| 13 /*************************************************************************/ | |
| 14 /* */ | |
| 15 /* FILE NAME VERSION */ | |
| 16 /* */ | |
| 17 /* tm_defs.h PLUS 1.1 */ | |
| 18 /* */ | |
| 19 /* COMPONENT */ | |
| 20 /* */ | |
| 21 /* TM - Timer Management */ | |
| 22 /* */ | |
| 23 /* DESCRIPTION */ | |
| 24 /* */ | |
| 25 /* This file contains data structure definitions and constants for */ | |
| 26 /* the Timer Management component. */ | |
| 27 /* */ | |
| 28 /* AUTHOR */ | |
| 29 /* */ | |
| 30 /* William E. Lamie, Accelerated Technology, Inc. */ | |
| 31 /* */ | |
| 32 /* DATA STRUCTURES */ | |
| 33 /* */ | |
| 34 /* TM_TCB Timer control block */ | |
| 35 /* TM_APP_TCB Application timer control */ | |
| 36 /* block */ | |
| 37 /* */ | |
| 38 /* FUNCTIONS */ | |
| 39 /* */ | |
| 40 /* None */ | |
| 41 /* */ | |
| 42 /* DEPENDENCIES */ | |
| 43 /* */ | |
| 44 /* cs_defs.h Common service definitions */ | |
| 45 /* tc_defs.h Thread control definitions */ | |
| 46 /* */ | |
| 47 /* HISTORY */ | |
| 48 /* */ | |
| 49 /* NAME DATE REMARKS */ | |
| 50 /* */ | |
| 51 /* W. Lamie 03-01-1993 Created initial version 1.0 */ | |
| 52 /* D. Lamie 04-19-1993 Verified version 1.0 */ | |
| 53 /* W. Lamie 03-01-1994 Moved include files outside of */ | |
| 54 /* the file #ifndef to allow the */ | |
| 55 /* use of actual data structures, */ | |
| 56 /* resulting in version 1.1 */ | |
| 57 /* R. Pfaff - */ | |
| 58 /* D. Lamie 03-18-1994 Verified version 1.1 */ | |
| 59 /* */ | |
| 60 /*************************************************************************/ | |
| 61 | |
| 62 #include "cs_defs.h" /* Common service constants */ | |
| 63 | |
| 64 | |
| 65 /* Check to see if the file has been included already. */ | |
| 66 | |
| 67 #ifndef TM_DEFS | |
| 68 #define TM_DEFS | |
| 69 | |
| 70 | |
| 71 /* Define constants local to this component. */ | |
| 72 | |
| 73 #define TM_TIMER_ID 0x54494d45UL | |
| 74 #define TM_ACTIVE 0 | |
| 75 #define TM_NOT_ACTIVE 1 | |
| 76 #define TM_EXPIRED 2 | |
| 77 #define TM_TASK_TIMER 0 | |
| 78 #define TM_APPL_TIMER 1 | |
| 79 | |
| 80 /* Define the Timer Control Block data type. */ | |
| 81 | |
| 82 typedef struct TM_TCB_STRUCT | |
| 83 { | |
| 84 INT tm_timer_type; /* Application/Task */ | |
| 85 UNSIGNED tm_remaining_time; /* Remaining time */ | |
| 86 VOID *tm_information; /* Information pointer */ | |
| 87 struct TM_TCB_STRUCT | |
| 88 *tm_next_timer, /* Next timer in list */ | |
| 89 *tm_previous_timer; /* Previous timer in list*/ | |
| 90 } TM_TCB; | |
| 91 | |
| 92 | |
| 93 /* Define Application's Timer Control Block data type. */ | |
| 94 | |
| 95 typedef struct TM_APP_TCB_STRUCT | |
| 96 { | |
| 97 CS_NODE tm_created; /* Node for linking to */ | |
| 98 /* created timer list */ | |
| 99 UNSIGNED tm_id; /* Internal TCB ID */ | |
| 100 CHAR tm_name[NU_MAX_NAME]; /* Timer name */ | |
| 101 VOID (*tm_expiration_routine)(UNSIGNED); /* Expiration function */ | |
| 102 UNSIGNED tm_expiration_id; /* Expiration ID */ | |
| 103 INT tm_enabled; /* Timer enabled flag */ | |
| 104 UNSIGNED tm_expirations; /* Number of expirations */ | |
| 105 UNSIGNED tm_initial_time; /* Initial time */ | |
| 106 UNSIGNED tm_reschedule_time; /* Reschedule time */ | |
| 107 TM_TCB tm_actual_timer; /* Actual timer internals*/ | |
| 108 } TM_APP_TCB; | |
| 109 | |
| 110 | |
| 111 /* Include this file here, since it contains references to the timer definition | |
| 112 structure that is defined by this file. */ | |
| 113 | |
| 114 #include "tc_defs.h" | |
| 115 | |
| 116 #endif |
