git.ucc.asn.au
/
uccvend-snackrom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More cleanups
[uccvend-snackrom.git]
/
ROM2
/
motors.h
diff --git
a/ROM2/motors.h
b/ROM2/motors.h
index
5598bec
..
a18e4b2
100644
(file)
--- a/
ROM2/motors.h
+++ b/
ROM2/motors.h
@@
-4,8
+4,11
@@
#include "vend.h"
/* error codes for dispense_motor */
#include "vend.h"
/* error codes for dispense_motor */
-#define MOTOR_SUCCESS 0
-#define MOTOR_NOSLOT 1
+#define MOTOR_SUCCESS 0
+#define MOTOR_NOSLOT 1
+#define MOTOR_HOME_FAIL 2
+#define MOTOR_CURRENT_FAIL 3
+#define MOTOR_VOLTAGE_FAIL 4
const u8 motor_lookup[80] =
{ 1,12,23,34,46,57,68,79,
const u8 motor_lookup[80] =
{ 1,12,23,34,46,57,68,79,
@@
-23,6
+26,5
@@
const u8 motor_lookup[80] =
bool is_motor(u8 slot);
u8 dispense_motor(u8 slot);
bool is_motor(u8 slot);
u8 dispense_motor(u8 slot);
-void scan_motors();
#endif /* _MOTORS_H_ */
#endif /* _MOTORS_H_ */
UCC
git Repository :: git.ucc.asn.au