Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (1.04 KB)

1
/*
2
dragonfly_lib.h
3

4
author: CMU Robotics Club, Colony project
5
much of this is adapted from the firefly library (author: Tom Lauwers)
6
*/
7

    
8

    
9
#ifndef _DRAGONFLY_LIB_H_
10
#define _DRAGONFLY_LIB_H_
11

    
12

    
13
// Configuration definitions
14
#define ANALOG 0x01
15
#define SERIAL 0x02
16
#define USB    0x02
17
#define COMM   0x02
18
#define ORB    0x04
19
#define MOTORS 0x08
20
#define SERVOS 0x10
21
#define I2C    0x20
22
#define BUZZER 0x40
23
#define LCD           0x80
24
#define ALL_ON 0xFF
25

    
26
// initializes the board with the functions specified by config
27
void dragonfly_init(int config);
28

    
29
#include <inttypes.h>
30
#include <stdio.h>
31
#include <stdlib.h>
32
#include <avr/io.h>
33
#include <avr/interrupt.h>
34
#include <util/delay.h>
35
#include <util/twi.h>
36

    
37
#include <analog.h>
38
#include <dio.h>
39
#include <time.h>
40
#include <lcd.h>
41
#include <lights.h>
42
#include <motor.h>
43
#include <serial.h>
44
#include <buzzer.h>
45
#include <servo.h>
46
#include <rangefinder.h>
47
#include <bom.h>
48
#include <move.h>
49
#include <i2c.h>
50
#include <ring_buffer.h>
51
#include <reset.h>
52
#include <math.h>
53

    
54
#endif