Attachment 'interruption2.c'
Download 1 #include <interrupt.h>
2 //Cette fonction s'exécutera quand arrivera n'importe quelle interruption.
3 //Dans son code, on devra vérifier les drapeaux (FLAG), pour savoir
4 //quelle interruption est arrivé.
5 ISR_MAIN(nombre_de_la_funcion)
6 {
7 //code générique
8 //quand tu termines tu dois remettre à zéro le drapeau (FLAG)
9 //de l'interruption que tu as utilisé
10 }
11 int main(void)
12 {
13 //Dans la fonction principal on devra autoriser l'interruption GLOBAL
14 }
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.