git.droids-corp.org
/
aversive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new base mech plate
[aversive.git]
/
projects
/
microb2010
/
cobboard
/
shovel.h
diff --git
a/projects/microb2010/cobboard/shovel.h
b/projects/microb2010/cobboard/shovel.h
index
7ba8445
..
80bceec
100644
(file)
--- a/
projects/microb2010/cobboard/shovel.h
+++ b/
projects/microb2010/cobboard/shovel.h
@@
-22,25
+22,13
@@
#ifndef _SHOVEL_H_
#define _SHOVEL_H_
#ifndef _SHOVEL_H_
#define _SHOVEL_H_
-#define SHOVEL_DOWN 100
-#define SHOVEL_MID 6000
-#define SHOVEL_UP 10000
-
void shovel_init(void);
void shovel_init(void);
-static inline void shovel_down(void)
-{
- cs_set_consign(&cobboard.shovel.cs, SHOVEL_DOWN);
-}
-
-static inline void shovel_mid(void)
-{
- cs_set_consign(&cobboard.shovel.cs, SHOVEL_MID);
-}
+void shovel_down(void);
+void shovel_mid(void);
+void shovel_up(void);
-static inline void shovel_up(void)
-{
- cs_set_consign(&cobboard.shovel.cs, SHOVEL_UP);
-}
+uint8_t shovel_is_up(void);
+uint8_t shovel_is_down(void);
#endif /* _SHOVEL_H_ */
#endif /* _SHOVEL_H_ */