parse_neighbor: replace printf printf_P
[protos/xbee-avr.git] / DualVirtualSerial.h
1 /*\r
2              LUFA Library\r
3      Copyright (C) Dean Camera, 2011.\r
4 \r
5   dean [at] fourwalledcubicle [dot] com\r
6            www.lufa-lib.org\r
7 */\r
8 \r
9 /*\r
10   Copyright 2011  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
11 \r
12   Permission to use, copy, modify, distribute, and sell this\r
13   software and its documentation for any purpose is hereby granted\r
14   without fee, provided that the above copyright notice appear in\r
15   all copies and that both that the copyright notice and this\r
16   permission notice and warranty disclaimer appear in supporting\r
17   documentation, and that the name of the author not be used in\r
18   advertising or publicity pertaining to distribution of the\r
19   software without specific, written prior permission.\r
20 \r
21   The author disclaim all warranties with regard to this\r
22   software, including all implied warranties of merchantability\r
23   and fitness.  In no event shall the author be liable for any\r
24   special, indirect or consequential damages or any damages\r
25   whatsoever resulting from loss of use, data or profits, whether\r
26   in an action of contract, negligence or other tortious action,\r
27   arising out of or in connection with the use or performance of\r
28   this software.\r
29 */\r
30 \r
31 /** \file\r
32  *\r
33  *  Header file for DualVirtualSerial.c.\r
34  */\r
35 \r
36 #ifndef _DUAL_VIRTUALSERIAL_H_\r
37 #define _DUAL_VIRTUALSERIAL_H_\r
38 \r
39         /* Includes: */\r
40                 #include <avr/io.h>\r
41                 #include <avr/wdt.h>\r
42                 #include <avr/power.h>\r
43                 #include <avr/interrupt.h>\r
44                 #include <string.h>\r
45 \r
46                 #include "Descriptors.h"\r
47 \r
48                 #include <LUFA/Version.h>\r
49                 #include <LUFA/Drivers/Board/LEDs.h>\r
50                 #include <LUFA/Drivers/Board/Joystick.h>\r
51                 #include <LUFA/Drivers/USB/USB.h>\r
52 \r
53         /* Macros: */\r
54                 /** LED mask for the library LED driver, to indicate that the USB interface is not ready. */\r
55                 #define LEDMASK_USB_NOTREADY      LEDS_LED1\r
56 \r
57                 /** LED mask for the library LED driver, to indicate that the USB interface is enumerating. */\r
58                 #define LEDMASK_USB_ENUMERATING  (LEDS_LED2 | LEDS_LED3)\r
59 \r
60                 /** LED mask for the library LED driver, to indicate that the USB interface is ready. */\r
61                 #define LEDMASK_USB_READY        (LEDS_LED2 | LEDS_LED4)\r
62 \r
63                 /** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */\r
64                 #define LEDMASK_USB_ERROR        (LEDS_LED1 | LEDS_LED3)\r
65 \r
66         /* Function Prototypes: */\r
67                 void SetupHardware(void);\r
68                 void CheckJoystickMovement(void);\r
69 \r
70                 void EVENT_USB_Device_Connect(void);\r
71                 void EVENT_USB_Device_Disconnect(void);\r
72                 void EVENT_USB_Device_ConfigurationChanged(void);\r
73                 void EVENT_USB_Device_ControlRequest(void);\r
74 \r
75 extern USB_ClassInfo_CDC_Device_t VirtualSerial1_CDC_Interface;\r
76 extern USB_ClassInfo_CDC_Device_t VirtualSerial2_CDC_Interface;\r
77 \r
78 #endif\r
79 \r