Project

General

Profile

Statistics
| Revision:

root / trunk / code / lib / include / libdragonfly / dragonfly_lib.h @ 7

History | View | Annotate | Download (1.51 KB)

1
/**
2
 * @file dragonfly_lib.h
3
 * @brief Contains other include files
4
 * 
5
 * Include this file for all the functionality of libdragonfly.
6
 *
7
 * @author Colony Project, CMU Robotics Club
8
 **/
9

    
10
#ifndef _DRAGONFLY_LIB_H_
11
#define _DRAGONFLY_LIB_H_
12

    
13
/**
14
 * @addtogroup dragonfly
15
 * @{
16
 **/
17

    
18
// Configuration definitions
19
/** @brief Initialize analog **/
20
#define ANALOG 0x01
21
/** @brief Initialize serial communications **/
22
#define SERIAL 0x02
23
/** @brief Initialize USB communications **/
24
#define USB    0x02
25
/** @brief Initialize communications **/
26
#define COMM   0x02
27
/** @brief Initialize the orb **/
28
#define ORB    0x04
29
/** @brief Initialize the motors **/
30
#define MOTORS 0x08
31
/** @brief Initialize the servos **/
32
#define SERVOS 0x10
33
/** @brief Initialize I2C **/
34
#define I2C    0x20
35
/** @brief Initialize the buzzer **/
36
#define BUZZER 0x40
37
/** @brief Initialize the LCD screen **/
38
#define LCD    0x80
39
/** @brief Initialize everything **/
40
#define ALL_ON 0xFF
41

    
42

    
43
/** @brief Initialize the board **/
44
void dragonfly_init(int config);
45
/** @brief Reset the robot **/
46
void reset(void);
47

    
48
/** @} **/ //end addtogroup
49

    
50
#include <inttypes.h>
51
#include <stdio.h>
52
#include <stdlib.h>
53
#include <avr/io.h>
54
#include <avr/interrupt.h>
55
#include <util/delay.h>
56
#include <util/twi.h>
57

    
58
#include <analog.h>
59
#include <dio.h>
60
#include <time.h>
61
#include <lcd.h>
62
#include <lights.h>
63
#include <motor.h>
64
#include <serial.h>
65
#include <buzzer.h>
66
#include <rangefinder.h>
67
#include <bom.h>
68
#include <move.h>
69

    
70
#endif
71