doxytest
Functions
Interruptions.h File Reference

Go to the source code of this file.

Functions

void __ISR (_TIMER_1_VECTOR, ipl3) Timer1Handler(void)
 

Function Documentation

◆ __ISR()

void __ISR ( _TIMER_1_VECTOR  ,
ipl3   
)
24 {
25 static unsigned int temp=0;
26 static unsigned int temp_b=0;
27 static unsigned long long temp64=0;
28 static unsigned long long temp64_b=0;
29 static unsigned int marque_t=0; // pour calcul pr�scis de f du bus
30 static unsigned int marque_t2=0; // pour calcul pr�scis de % CPU
31 
32  temp=ReadCoreTimer();
33  temp64=temp-f_bus_a;
34  temp64_b=(temp64*SECO)/32767;
35  f_bus=temp64_b; // Calcul de la fr�quence de l'horloge.
36  f_bus_a=temp;
37 
38  if (temp-marque_t2==0){temp=temp+1;}
39  usage=(tb*100)/(temp-marque_t2); // Calcul du % d'usage CPU. En pour %
40  marque_t2=temp;
41  tb=0;
42 
43  mT1ClearIntFlag();
44 }