From 070a61d4770d1fbc280e408e64f09ed85567a541 Mon Sep 17 00:00:00 2001 From: Pierre Cwik Date: Thu, 9 Jun 2016 15:01:43 +0200 Subject: [PATCH] ajout retarde arduino et edition txt --- a.out | Bin 6944 -> 0 bytes arduino_tp/a.out | Bin 7296 -> 0 bytes arduino_tp/arduino.txt | 2 +- arduino_tp/chenillard | Bin 0 -> 2340 bytes arduino_tp/chenillard.c | 23 +++++++++++++++++++++++ arduino_tp/chenillard.hex | 12 ++++++++++++ code_mort | Bin 6696 -> 0 bytes deroulement_boucle | Bin 6928 -> 0 bytes liens/constante | Bin 528 -> 0 bytes liens/globale | Bin 408 -> 0 bytes liens/liens.txt | 15 +++++++++++++++ liens/minimal | Bin 408 -> 0 bytes liens/mult | Bin 0 -> 7160 bytes liens/multiplier.c | 6 ++++++ liens/multiplier.o | Bin 0 -> 1368 bytes liens/multiplier1.c | 8 ++++++++ liens/multiplier1.o | Bin 0 -> 1712 bytes liens/pile | Bin 440 -> 0 bytes liens/sanslesmains.c | 1 + liens/statique | Bin 536 -> 0 bytes liens/tas | Bin 6952 -> 0 bytes optimisation2 | Bin 7064 -> 0 bytes propagation | Bin 6536 -> 0 bytes recursion | Bin 7024 -> 0 bytes second_degre | Bin 7576 -> 0 bytes 25 files changed, 66 insertions(+), 1 deletion(-) mode change 100755 => 100644 a.out mode change 100755 => 100644 arduino_tp/a.out create mode 100644 arduino_tp/chenillard create mode 100644 arduino_tp/chenillard.c create mode 100644 arduino_tp/chenillard.hex mode change 100755 => 100644 code_mort mode change 100755 => 100644 deroulement_boucle mode change 100755 => 100644 liens/constante mode change 100755 => 100644 liens/globale mode change 100755 => 100644 liens/minimal create mode 100644 liens/mult create mode 100644 liens/multiplier.c create mode 100644 liens/multiplier.o create mode 100644 liens/multiplier1.c create mode 100644 liens/multiplier1.o mode change 100755 => 100644 liens/pile create mode 100644 liens/sanslesmains.c mode change 100755 => 100644 liens/statique mode change 100755 => 100644 liens/tas mode change 100755 => 100644 optimisation2 mode change 100755 => 100644 propagation mode change 100755 => 100644 recursion mode change 100755 => 100644 second_degre diff --git a/a.out b/a.out old mode 100755 new mode 100644 index c3c2da0..c3c2da0 Binary files a/a.out and b/a.out differ diff --git a/arduino_tp/a.out b/arduino_tp/a.out old mode 100755 new mode 100644 index 50dfe0a..50dfe0a Binary files a/arduino_tp/a.out and b/arduino_tp/a.out differ diff --git a/arduino_tp/arduino.txt b/arduino_tp/arduino.txt index 01db4c9..c9ac1a1 100644 --- a/arduino_tp/arduino.txt +++ b/arduino_tp/arduino.txt @@ -10,4 +10,4 @@ crw-rw---- 1 root dialout 166, 0 juin 1 09:56 /dev/ttyACM0 le programme d'allumage de led a été réalisé avec succes - +idem pour le programme chenillard \ No newline at end of file diff --git a/arduino_tp/chenillard b/arduino_tp/chenillard new file mode 100644 index 0000000..f5dccc2 Binary files /dev/null and b/arduino_tp/chenillard differ diff --git a/arduino_tp/chenillard.c b/arduino_tp/chenillard.c new file mode 100644 index 0000000..cf013b1 --- /dev/null +++ b/arduino_tp/chenillard.c @@ -0,0 +1,23 @@ + +#include // for the input/output register +#include +#include + + +int main(void) +{ + +DDRB = 0xFF; +PORTB = 0x01; + + +while(1) + +{ +_delay_ms(400); +PORTB = PORTB*2; +if(PORTB == 0x40) PORTB = 0x01; + } + +} + \ No newline at end of file diff --git a/arduino_tp/chenillard.hex b/arduino_tp/chenillard.hex new file mode 100644 index 0000000..fec8e1b --- /dev/null +++ b/arduino_tp/chenillard.hex @@ -0,0 +1,12 @@ +:100000000C9434000C943E000C943E000C943E0082 +:100010000C943E000C943E000C943E000C943E0068 +:100020000C943E000C943E000C943E000C943E0058 +:100030000C943E000C943E000C943E000C943E0048 +:100040000C943E000C943E000C943E000C943E0038 +:100050000C943E000C943E000C943E000C943E0028 +:100060000C943E000C943E0011241FBECFEFD8E04C +:10007000DEBFCDBF0E9440000C9456000C940000DF +:100080008FEF84B981E085B991E02FEF37E883E104 +:10009000215030408040E1F700C0000085B1880F5A +:1000A00085B985B1803489F795B9EFCFF894FFCF42 +:00000001FF diff --git a/code_mort b/code_mort old mode 100755 new mode 100644 index 3db0e38..3db0e38 Binary files a/code_mort and b/code_mort differ diff --git a/deroulement_boucle b/deroulement_boucle old mode 100755 new mode 100644 index c8dd7d1..c8dd7d1 Binary files a/deroulement_boucle and b/deroulement_boucle differ diff --git a/liens/constante b/liens/constante old mode 100755 new mode 100644 index eef748b..eef748b Binary files a/liens/constante and b/liens/constante differ diff --git a/liens/globale b/liens/globale old mode 100755 new mode 100644 index 3e432e0..3e432e0 Binary files a/liens/globale and b/liens/globale differ diff --git a/liens/liens.txt b/liens/liens.txt index f209822..e14f1bc 100644 --- a/liens/liens.txt +++ b/liens/liens.txt @@ -156,3 +156,18 @@ ici on voit qu'un emplacement est alloué pour le tas 7ffe7fba1000-7ffe7fba3000 r--p 00000000 00:00 0 [vvar] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] + + + +///////////////////////////////////////////////////// exercice programme sans main ////////////////////////////////////////////////////// + + +/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crt1.o : Dans la fonction « _start » : +/build/glibc-h_iKOs/glibc-2.19/csu/../sysdeps/x86_64/start.S:118 : référence indéfinie vers « main » +collect2: error: ld returned 1 exit status + +////////////////////////////// compilation separee //////////////////////////// + +a été effectuée + +le sens n'importe pas diff --git a/liens/minimal b/liens/minimal old mode 100755 new mode 100644 index 3e432e0..3e432e0 Binary files a/liens/minimal and b/liens/minimal differ diff --git a/liens/mult b/liens/mult new file mode 100644 index 0000000..81d2d59 Binary files /dev/null and b/liens/mult differ diff --git a/liens/multiplier.c b/liens/multiplier.c new file mode 100644 index 0000000..ce71bbb --- /dev/null +++ b/liens/multiplier.c @@ -0,0 +1,6 @@ +#include + +int multiplication(int a,int b){ +if(b==0) return 0; +else return multiplication(a,b-1)+a; +} diff --git a/liens/multiplier.o b/liens/multiplier.o new file mode 100644 index 0000000..191b855 Binary files /dev/null and b/liens/multiplier.o differ diff --git a/liens/multiplier1.c b/liens/multiplier1.c new file mode 100644 index 0000000..6dbadc4 --- /dev/null +++ b/liens/multiplier1.c @@ -0,0 +1,8 @@ +#include + +int main(void){ +int a=10,b=10; +scanf("%d %d",&a,&b); +printf("%d\n",multiplication(a,b)); +return 0; +} \ No newline at end of file diff --git a/liens/multiplier1.o b/liens/multiplier1.o new file mode 100644 index 0000000..7f58f53 Binary files /dev/null and b/liens/multiplier1.o differ diff --git a/liens/pile b/liens/pile old mode 100755 new mode 100644 index bd18009..bd18009 Binary files a/liens/pile and b/liens/pile differ diff --git a/liens/sanslesmains.c b/liens/sanslesmains.c new file mode 100644 index 0000000..4e40980 --- /dev/null +++ b/liens/sanslesmains.c @@ -0,0 +1 @@ +int weekend = 32; \ No newline at end of file diff --git a/liens/statique b/liens/statique old mode 100755 new mode 100644 index 4bc8941..4bc8941 Binary files a/liens/statique and b/liens/statique differ diff --git a/liens/tas b/liens/tas old mode 100755 new mode 100644 index 6d45883..6d45883 Binary files a/liens/tas and b/liens/tas differ diff --git a/optimisation2 b/optimisation2 old mode 100755 new mode 100644 index 5a548e9..5a548e9 Binary files a/optimisation2 and b/optimisation2 differ diff --git a/propagation b/propagation old mode 100755 new mode 100644 index ee14a84..ee14a84 Binary files a/propagation and b/propagation differ diff --git a/recursion b/recursion old mode 100755 new mode 100644 index ad39b7b..ad39b7b Binary files a/recursion and b/recursion differ diff --git a/second_degre b/second_degre old mode 100755 new mode 100644 index 35db9b4..35db9b4 Binary files a/second_degre and b/second_degre differ -- libgit2 0.21.2