summaryrefslogtreecommitdiffstats
path: root/avr.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-04-03 14:48:00 +0200
committerneoraider <devnull@localhost>2007-04-03 14:48:00 +0200
commitdc1306244e3a7853c31cd94c5ac3d97aa6e6c0d5 (patch)
tree758cc525af6b6fca0af22482ec51c70017dbb7fc /avr.h
downloadrc2007-rescue-dc1306244e3a7853c31cd94c5ac3d97aa6e6c0d5.tar
rc2007-rescue-dc1306244e3a7853c31cd94c5ac3d97aa6e6c0d5.zip
Neues Rescue-Programm angefangen (2)
Diffstat (limited to 'avr.h')
-rw-r--r--avr.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/avr.h b/avr.h
new file mode 100644
index 0000000..3727bdf
--- /dev/null
+++ b/avr.h
@@ -0,0 +1,16 @@
+#ifndef _ROBOCUP_AVR_H_
+#define _ROBOCUP_AVR_H_
+
+#include <stdint.h>
+
+
+typedef struct {
+ volatile uint8_t *port;
+ volatile uint8_t *pwmPort;
+ uint8_t fwdMask;
+ uint8_t revMask;
+} MOTOR;
+
+void setMotorSpeed(MOTOR *motor, int speed);
+
+#endif