sanguino/firmwares/arduino-usbserial/Arduino-usbserial.h

Fri, 17 Nov 2017 10:13:31 +0100

author
mdd
date
Fri, 17 Nov 2017 10:13:31 +0100
changeset 3
770b218a4931
parent 2
b373b0288715
permissions
-rw-r--r--

proper configuration, homing and planner optimization

2
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
1 /*
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
2 LUFA Library
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
3 Copyright (C) Dean Camera, 2010.
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
4
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
5 dean [at] fourwalledcubicle [dot] com
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
6 www.fourwalledcubicle.com
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
7 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
8
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
9 /*
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
10 Copyright 2010 Dean Camera (dean [at] fourwalledcubicle [dot] com)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
11
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
12 Permission to use, copy, modify, distribute, and sell this
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
13 software and its documentation for any purpose is hereby granted
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
14 without fee, provided that the above copyright notice appear in
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
15 all copies and that both that the copyright notice and this
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
16 permission notice and warranty disclaimer appear in supporting
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
17 documentation, and that the name of the author not be used in
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
18 advertising or publicity pertaining to distribution of the
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
19 software without specific, written prior permission.
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
20
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
21 The author disclaim all warranties with regard to this
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
22 software, including all implied warranties of merchantability
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
23 and fitness. In no event shall the author be liable for any
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
24 special, indirect or consequential damages or any damages
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
25 whatsoever resulting from loss of use, data or profits, whether
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
26 in an action of contract, negligence or other tortious action,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
27 arising out of or in connection with the use or performance of
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
28 this software.
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
29 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
30
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
31 /** \file
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
32 *
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
33 * Header file for Arduino-usbserial.c.
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
34 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
35
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
36 #ifndef _ARDUINO_USBSERIAL_H_
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
37 #define _ARDUINO_USBSERIAL_H_
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
38
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
39 /* Includes: */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
40 #include <avr/io.h>
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
41 #include <avr/wdt.h>
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
42 #include <avr/interrupt.h>
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
43 #include <avr/power.h>
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
44
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
45 #include "Descriptors.h"
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
46
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
47 #include "Lib/LightweightRingBuff.h"
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
48
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
49 #include <LUFA/Version.h>
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
50 #include <LUFA/Drivers/Board/LEDs.h>
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
51 #include <LUFA/Drivers/Peripheral/Serial.h>
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
52 #include <LUFA/Drivers/USB/USB.h>
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
53 #include <LUFA/Drivers/USB/Class/CDC.h>
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
54
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
55 /* Macros: */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
56 /** LED mask for the library LED driver, to indicate TX activity. */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
57 #define LEDMASK_TX LEDS_LED1
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
58
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
59 /** LED mask for the library LED driver, to indicate RX activity. */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
60 #define LEDMASK_RX LEDS_LED2
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
61
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
62 /** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
63 #define LEDMASK_ERROR (LEDS_LED1 | LEDS_LED2)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
64
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
65 /** LED mask for the library LED driver, to indicate that the USB interface is busy. */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
66 #define LEDMASK_BUSY (LEDS_LED1 | LEDS_LED2)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
67
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
68 /* Function Prototypes: */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
69 void SetupHardware(void);
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
70
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
71 void EVENT_USB_Device_Connect(void);
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
72 void EVENT_USB_Device_Disconnect(void);
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
73 void EVENT_USB_Device_ConfigurationChanged(void);
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
74 void EVENT_USB_Device_UnhandledControlRequest(void);
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
75
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
76 void EVENT_CDC_Device_LineEncodingChanged(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo);
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
77 void EVENT_CDC_Device_ControLineStateChanged(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo);
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
78
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
79 #endif /* _ARDUINO_USBSERIAL_H_ */

mercurial