123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- #ifndef _AVRISP_H_
- #define _AVRISP_H_
-
- #include <avr/io.h>
- #include <avr/wdt.h>
- #include <avr/interrupt.h>
- #include <avr/power.h>
- #include <LUFA/Drivers/Board/LEDs.h>
- #include <LUFA/Drivers/USB/USB.h>
- #include <LUFA/Platform/Platform.h>
- #if defined(ADC)
- #include <LUFA/Drivers/Peripheral/ADC.h>
- #endif
- #include "AVRISPDescriptors.h"
- #include "Lib/V2Protocol.h"
- #include "Config/AppConfig.h"
-
-
- #define LEDMASK_USB_NOTREADY LEDS_LED1
-
- #define LEDMASK_USB_ENUMERATING (LEDS_LED1 | LEDS_LED2)
-
- #define LEDMASK_USB_READY LEDS_LED2
-
- #define LEDMASK_USB_ERROR LEDS_LED1
-
- #define LEDMASK_BUSY (LEDS_LED1 | LEDS_LED2)
-
- #define LEDMASK_VBUSPOWER LEDS_LED3
-
- void SetupHardware(void);
- void AVRISP_Task(void);
- void EVENT_USB_Device_Connect(void);
- void EVENT_USB_Device_Disconnect(void);
- void EVENT_USB_Device_ConfigurationChanged(void);
- uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
- const uint16_t wIndex,
- const void** const DescriptorAddress)
- ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3);
- #endif
|