Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Paul-Louis Harraud
escalade
Commits
4046d89c
Commit
4046d89c
authored
May 31, 2021
by
Camille Segall
Browse files
Delete attiny.c
parent
2f68de0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
stm32/attiny.c
stm32/attiny.c
+0
-29
No files found.
stm32/attiny.c
deleted
100644 → 0
View file @
2f68de0b
#include "attiny.h"
#include <stdlib.h>
attiny
new_slave
(
void
){
attiny
slave
;
slave
.
stateled
=
0
;
slave
.
adresse
=
0
;
return
slave
;
}
attiny
define_slave
(
char
*
buffer
){
attiny
slave
;
slave
.
stateled
=
buffer
[
0
]
-
48
;
if
(
buffer
[
1
]
<
57
&&
buffer
[
2
]
<
57
)
{
slave
.
adresse
=
((
buffer
[
1
]
-
48
)
*
16
+
buffer
[
2
]
-
48
)
*
2
;
}
else
if
(
buffer
[
1
]
>
64
&&
buffer
[
2
]
<
57
)
{
slave
.
adresse
=
((
buffer
[
1
]
-
55
)
*
16
+
buffer
[
2
]
-
48
)
*
2
;
}
else
if
(
buffer
[
1
]
<
57
&&
buffer
[
2
]
>
64
)
{
slave
.
adresse
=
((
buffer
[
1
]
-
48
)
*
16
+
buffer
[
2
]
-
55
)
*
2
;
}
else
if
(
buffer
[
1
]
>
64
&&
buffer
[
2
]
>
64
)
{
slave
.
adresse
=
((
buffer
[
1
]
-
55
)
*
16
+
buffer
[
2
]
-
55
)
*
2
;
}
return
slave
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment