Commit 070a61d4770d1fbc280e408e64f09ed85567a541

Authored by Pierre Cwik
1 parent 966b3fca

ajout retarde arduino et edition txt

a.out 100755 → 100644
No preview for this file type
arduino_tp/a.out 100755 → 100644
No preview for this file type
arduino_tp/arduino.txt
... ... @@ -10,4 +10,4 @@ crw-rw---- 1 root dialout 166, 0 juin 1 09:56 /dev/ttyACM0
10 10  
11 11 le programme d'allumage de led a été réalisé avec succes
12 12  
13   -
  13 +idem pour le programme chenillard
14 14 \ No newline at end of file
... ...
arduino_tp/chenillard 0 → 100644
No preview for this file type
arduino_tp/chenillard.c 0 → 100644
... ... @@ -0,0 +1,23 @@
  1 +
  2 +#include <avr/io.h> // for the input/output register
  3 +#include <util/delay.h>
  4 +#include <stdio.h>
  5 +
  6 +
  7 +int main(void)
  8 +{
  9 +
  10 +DDRB = 0xFF;
  11 +PORTB = 0x01;
  12 +
  13 +
  14 +while(1)
  15 +
  16 +{
  17 +_delay_ms(400);
  18 +PORTB = PORTB*2;
  19 +if(PORTB == 0x40) PORTB = 0x01;
  20 + }
  21 +
  22 +}
  23 +
0 24 \ No newline at end of file
... ...
arduino_tp/chenillard.hex 0 → 100644
... ... @@ -0,0 +1,12 @@
  1 +:100000000C9434000C943E000C943E000C943E0082
  2 +:100010000C943E000C943E000C943E000C943E0068
  3 +:100020000C943E000C943E000C943E000C943E0058
  4 +:100030000C943E000C943E000C943E000C943E0048
  5 +:100040000C943E000C943E000C943E000C943E0038
  6 +:100050000C943E000C943E000C943E000C943E0028
  7 +:100060000C943E000C943E0011241FBECFEFD8E04C
  8 +:10007000DEBFCDBF0E9440000C9456000C940000DF
  9 +:100080008FEF84B981E085B991E02FEF37E883E104
  10 +:10009000215030408040E1F700C0000085B1880F5A
  11 +:1000A00085B985B1803489F795B9EFCFF894FFCF42
  12 +:00000001FF
... ...
code_mort 100755 → 100644
No preview for this file type
deroulement_boucle 100755 → 100644
No preview for this file type
liens/constante 100755 → 100644
No preview for this file type
liens/globale 100755 → 100644
No preview for this file type
liens/liens.txt
... ... @@ -156,3 +156,18 @@ ici on voit qu&#39;un emplacement est alloué pour le tas
156 156 7ffe7fba1000-7ffe7fba3000 r--p 00000000 00:00 0 [vvar]
157 157 ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
158 158  
  159 +
  160 +
  161 +
  162 +///////////////////////////////////////////////////// exercice programme sans main //////////////////////////////////////////////////////
  163 +
  164 +
  165 +/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crt1.o : Dans la fonction « _start » :
  166 +/build/glibc-h_iKOs/glibc-2.19/csu/../sysdeps/x86_64/start.S:118 : référence indéfinie vers « main »
  167 +collect2: error: ld returned 1 exit status
  168 +
  169 +////////////////////////////// compilation separee ////////////////////////////
  170 +
  171 +a été effectuée
  172 +
  173 +le sens n'importe pas
... ...
liens/minimal 100755 → 100644
No preview for this file type
liens/mult 0 → 100644
No preview for this file type
liens/multiplier.c 0 → 100644
... ... @@ -0,0 +1,6 @@
  1 +#include <stdio.h>
  2 +
  3 +int multiplication(int a,int b){
  4 +if(b==0) return 0;
  5 +else return multiplication(a,b-1)+a;
  6 +}
... ...
liens/multiplier.o 0 → 100644
No preview for this file type
liens/multiplier1.c 0 → 100644
... ... @@ -0,0 +1,8 @@
  1 +#include <stdio.h>
  2 +
  3 +int main(void){
  4 +int a=10,b=10;
  5 +scanf("%d %d",&a,&b);
  6 +printf("%d\n",multiplication(a,b));
  7 +return 0;
  8 +}
0 9 \ No newline at end of file
... ...
liens/multiplier1.o 0 → 100644
No preview for this file type
liens/pile 100755 → 100644
No preview for this file type
liens/sanslesmains.c 0 → 100644
... ... @@ -0,0 +1 @@
  1 +int weekend = 32;
0 2 \ No newline at end of file
... ...
liens/statique 100755 → 100644
No preview for this file type
liens/tas 100755 → 100644
No preview for this file type
optimisation2 100755 → 100644
No preview for this file type
propagation 100755 → 100644
No preview for this file type
recursion 100755 → 100644
No preview for this file type
second_degre 100755 → 100644
No preview for this file type