summaryrefslogtreecommitdiffstats
path: root/hardware.h
blob: 9b2bcb774f891ed430f6ae7793718e31a1224a44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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