root / branches / encoders / code / lib / include / libdragonfly / dragonfly_lib.h @ 749
History | View | Annotate | Download (1.54 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 |
|
46 |
/** @} **/ //end addtogroup |
47 |
|
48 |
#include <inttypes.h> |
49 |
#include <stdio.h> |
50 |
#include <stdlib.h> |
51 |
#include <avr/io.h> |
52 |
#include <avr/interrupt.h> |
53 |
#include <util/delay.h> |
54 |
#include <util/twi.h> |
55 |
|
56 |
#include <analog.h> |
57 |
#include <dio.h> |
58 |
#include <time.h> |
59 |
#include <lcd.h> |
60 |
#include <lights.h> |
61 |
#include <motor.h> |
62 |
#include <serial.h> |
63 |
#include <buzzer.h> |
64 |
#include <rangefinder.h> |
65 |
#include <bom.h> |
66 |
#include <move.h> |
67 |
#include <reset.h> |
68 |
#include <math.h> |
69 |
|
70 |
#include <spi.h> |
71 |
#include <encoders.h> |
72 |
|
73 |
#endif
|
74 |
|