-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathPIUIO.h
More file actions
executable file
·53 lines (44 loc) · 1.8 KB
/
PIUIO.h
File metadata and controls
executable file
·53 lines (44 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/***********************************************************/
/* ____ ___ _ _ ___ ___ ____ _ */
/* | _ \_ _| | | |_ _/ _ \ / ___| | ___ _ __ ___ */
/* | |_) | || | | || | | | | | | | |/ _ \| '_ \ / _ \ */
/* | __/| || |_| || | |_| | | |___| | (_) | | | | __/ */
/* |_| |___|\___/|___\___/ \____|_|\___/|_| |_|\___| */
/* */
/* By: Lucas Teske (USB-ON-AT90USBXXX BY CKDUR) */
/***********************************************************/
/* Basicly this is an PIUIO Clone with an ATMEGA8U2 and */
/* serial from ATMEGA328 interfaced on ARDUINO UNO */
/***********************************************************/
/* This is main code from PIUIO Clone (HEADER) */
/***********************************************************/
/* Please look at LICENSE for details */
/* Please consult https://github.com/racerxdl/piuio_clone */
/***********************************************************/
/** \file
*
* Header file for PIUIO.c.
*/
#ifndef _PIUIO_H_
#define _PIUIO_H_
/* Includes: */
#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/power.h>
#include <avr/interrupt.h>
#include <string.h>
#include "Descriptors.h"
//#include <LUFA/Drivers/Board/Joystick.h>
//#include <LUFA/Drivers/Board/LEDs.h>
//#include <LUFA/Drivers/Board/Buttons.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Platform/Platform.h>
#include <LUFA/Drivers/Peripheral/Serial.h>
/* Function Prototypes: */
void SetupHardware(void);
void EVENT_USB_Device_Connect(void);
void EVENT_USB_Device_Disconnect(void);
void EVENT_USB_Device_ConfigurationChanged(void);
void EVENT_USB_Device_ControlRequest(void);
void EVENT_USB_Device_StartOfFrame(void);
#endif