source: Sophya/trunk/Poubelle/archediab.old/archediab.sources/h/montimer.h@ 657

Last change on this file since 657 was 637, checked in by ansari, 26 years ago

archediab version 24 initial import

File size: 692 bytes
RevLine 
[637]1#include <Timer.h>
2
3typedef 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
16TMInfoPtr setuptimer(long delai,void (*exec)(void*),void * mastructure);
17void supprimetimer(TMInfoPtr myTMInfopt);
18
19
20void stoptimer(TMInfoPtr myTMInfopt);
21void redemarretimer(TMInfoPtr myTMInfopt,long delai);
22
Note: See TracBrowser for help on using the repository browser.