Version fonctionnel processeur non sécurisé
This commit is contained in:
parent
496ec68147
commit
749e245a51
4 changed files with 8 additions and 6 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 725e0125079b6bde8ad032a3be21910980900ec4
|
||||
Subproject commit 95409eb5bff39457f161a6b93c2024d2fe8a90d1
|
|
@ -1 +1 @@
|
|||
Subproject commit bff261fa01129da9135f95f16bf4124366ea24fe
|
||||
Subproject commit a4ecb5505dc66b71aee4d3d9ccccdbe17079f3d9
|
|
@ -1 +1 @@
|
|||
Subproject commit ca762f57c7c544656eaea97ec391a5efd4ec401b
|
||||
Subproject commit f25ee2735abfbaf0cd46ea0236f2ef267e752ec7
|
8
max.c
8
max.c
|
@ -2,8 +2,9 @@ int print_alarm1() {
|
|||
int j = 0;
|
||||
while (j<5) {
|
||||
printf(255);
|
||||
stop(2);
|
||||
stop(7);
|
||||
printf(0);
|
||||
stop(7);
|
||||
j = j+1;
|
||||
}
|
||||
}
|
||||
|
@ -12,15 +13,16 @@ int print_alarm2() {
|
|||
int j = 0;
|
||||
while (j<5) {
|
||||
printf(170);
|
||||
stop(2);
|
||||
stop(7);
|
||||
printf(85);
|
||||
stop(7);
|
||||
j = j+1;
|
||||
}
|
||||
}
|
||||
|
||||
int get_value() {
|
||||
print_alarm2();
|
||||
stop(10);
|
||||
stop(100);
|
||||
int i = get();
|
||||
return i;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue