Cours:EclipseAVR : Différence entre versions
(→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> | ||