summaryrefslogtreecommitdiffstats
path: root/avr.h
blob: 2d136167ed4a09a1b2b0183dce24262c77485d61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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);

int getButton();
void waitForButton(int i);

#endif