|
Last change
on this file since 689 was 637, checked in by ansari, 26 years ago |
|
archediab version 24 initial import
|
|
File size:
692 bytes
|
| Line | |
|---|
| 1 | #include <Timer.h>
|
|---|
| 2 |
|
|---|
| 3 | typedef struct
|
|---|
| 4 | {
|
|---|
| 5 | TMTask atmTask; //Apples' time struct
|
|---|
| 6 | long tmRefCon; //Used to stuff A4 for recommended method of re-establishing A4 at interrupt time
|
|---|
| 7 | long A5; // rajouté par moi pour sauver A5 : sans doute inutile
|
|---|
| 8 | long delai; // delai entre interrupts
|
|---|
| 9 | void (*execute)(void*); // fonction d'interruption
|
|---|
| 10 | void* mastructure; // structure utilisateur
|
|---|
| 11 | } TMInfo, * TMInfoPtr;
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 | /* lancement et arrêt des interruptions */
|
|---|
| 15 |
|
|---|
| 16 | TMInfoPtr setuptimer(long delai,void (*exec)(void*),void * mastructure);
|
|---|
| 17 | void supprimetimer(TMInfoPtr myTMInfopt);
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 | void stoptimer(TMInfoPtr myTMInfopt);
|
|---|
| 21 | void redemarretimer(TMInfoPtr myTMInfopt,long delai);
|
|---|
| 22 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.