-
Notifications
You must be signed in to change notification settings - Fork 6
/
opendous-jtag.h
executable file
·44 lines (33 loc) · 1.26 KB
/
opendous-jtag.h
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
/*
opendous_jtag version 0.2 by Vladimir S. Fonov with improvements from
eStick-jtag, by Cahya Wirawan <[email protected]>
Based on opendous-jtag by Vladimir Fonov and LUFA demo applications by Dean Camera and Denver Gingerich.
Released under the MIT Licence.
*/
#ifndef _OPENDOUS_JTAG_H_
#define _OPENDOUS_JTAG_H_
/* Includes: */
#include <avr/io.h>
#include <avr/wdt.h>
#include <avr/power.h>
#include <util/delay_basic.h>
#include "Descriptors.h"
#include <LUFA/Version.h> // Library Version Information
#include <LUFA/Drivers/USB/USB.h> // USB Functionality
#include <LUFA/Scheduler/Scheduler.h> // Simple scheduler for task management
/* Macros: */
/* Type Defines: */
#define OPENDOUS_USB_BUFFER_OFFSET 2
#define OPENDOUS_IN_BUFFER_SIZE (OPENDOUS_USB_BUFFER_SIZE)
#define OPENDOUS_OUT_BUFFER_SIZE (OPENDOUS_USB_BUFFER_SIZE)
/* Global Variables: */
/* Task Definitions: */
void JTAG_Task(void);
/* Event Handlers: */
void EVENT_USB_Device_Connect(void);
void EVENT_USB_Device_Reset(void);
void EVENT_USB_Device_Disconnect(void);
void EVENT_USB_Device_ConfigurationChanged(void);
void EVENT_USB_Device_UnhandledControlPacket(void);
/* Function Prototypes: */
#endif //OPENDOUS_JTAG