Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / colonet / utilities / dragonfly_wireless_relay / motor.h @ 13

History | View | Annotate | Download (404 Bytes)

1
/*
2
        motor.h - Contains the function prototypes for controlling motors
3
        author:  Tom Lauwers
4
*/
5

    
6
#ifndef _MOTOR_H
7
#define _MOTOR_H
8

    
9
#include <avr/io.h>
10

    
11
#define FORWARD 1
12
#define BACKWARD 0
13

    
14

    
15

    
16
// Function descriptions can be found in motor.c
17
void motors_init(void);
18
void motor1_set(int direction, int speed);
19
void motor2_set(int direction, int speed);
20
void motors_off(void);
21

    
22
#endif