Cours:EclipseAVR : Différence entre versions

De troyesGEII
Aller à : navigation, rechercher
(Page créée avec « =Créer un projet= 400px 400px 400px 400px Fichier:E... »)
 
(Propriétés du projet)
Ligne 16 : Ligne 16 :
  
 
[[Fichier:EclipseIde6.png|400px]]
 
[[Fichier:EclipseIde6.png|400px]]
 +
 +
 +
=programme=
 +
 +
<source lang=c>
 +
// registres les plus courants :
 +
#include <avr/io.h>
 +
// temporisation
 +
#include <util/delay.h>
 +
// interruptions
 +
#include <avr/interrupt.h>
 +
// pour tester l'état d'un bit (_bit_is_set ...)
 +
#include <avr/sfr_defs.h>
 +
 +
int main()
 +
{
 +
  while(1)
 +
  {
 +
  }
 +
}
 +
</source>

Version du 12 mars 2021 à 16:37

Créer un projet

EclipseIde1.png

EclipseIde2.png

EclipseIde3.png

EclipseIde4.png

EclipseIde5.png


Propriétés du projet

EclipseIde6.png


programme

// registres les plus courants :
#include <avr/io.h>
// temporisation
#include <util/delay.h>
// interruptions
#include <avr/interrupt.h>
// pour tester l'état d'un bit (_bit_is_set ...)
#include <avr/sfr_defs.h>

int main()
{
  while(1)
  {
  }
}