summaryrefslogtreecommitdiffstats
path: root/hardware.h
diff options
context:
space:
mode:
Diffstat (limited to 'hardware.h')
-rw-r--r--hardware.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/hardware.h b/hardware.h
new file mode 100644
index 0000000..9b2bcb7
--- /dev/null
+++ b/hardware.h
@@ -0,0 +1,24 @@
+#ifndef _ROBOCUP_HARDWARE_H_
+#define _ROBOCUP_HARDWARE_H_
+
+#include "avr.h"
+
+#include <avr/io.h>
+
+
+static const MOTOR MOTOR1 = {
+ &PORTD, &OCR1BL, 0x01, 0x02
+};
+
+static const MOTOR MOTOR2 = {
+ &PORTD, &OCR1AL, 0x04, 0x08
+};
+
+static const MOTOR MOTOR3 = {
+ &PORTB, &OCR0, 0x01, 0x02
+};
+
+
+void initHardware();
+
+#endif