diff options
| author | Drashna Jaelre <drashna@live.com> | 2019-08-02 14:02:40 -0700 |
|---|---|---|
| committer | skullydazed <skullydazed@users.noreply.github.com> | 2019-08-30 15:01:52 -0700 |
| commit | cf4575b94a3c65e6535a159fc71fc885aebc2620 (patch) | |
| tree | 2354f2b7a200e02246a564afefedc32357e62b8e /lib/lufa/Projects/MissileLauncher/MissileLauncher.h | |
| parent | 75ee8df19e0f14ba466f41ab673dde2fe2fdae9c (diff) | |
| download | qmk_firmware-cf4575b94a3c65e6535a159fc71fc885aebc2620.tar.gz qmk_firmware-cf4575b94a3c65e6535a159fc71fc885aebc2620.zip | |
Fix the LUFA lib to use a submodule instead of just files (#6245)
* Remove LUFA files
* Update descriptions for newer version of LUFA
* Create PR6245.md
* Fix CDC(Serial) type errors
* Fix missed merge conflict for AUDIO_DTYPE_CSInterface
Diffstat (limited to 'lib/lufa/Projects/MissileLauncher/MissileLauncher.h')
| -rw-r--r-- | lib/lufa/Projects/MissileLauncher/MissileLauncher.h | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/lib/lufa/Projects/MissileLauncher/MissileLauncher.h b/lib/lufa/Projects/MissileLauncher/MissileLauncher.h deleted file mode 100644 index 8f06d6f8c..000000000 --- a/lib/lufa/Projects/MissileLauncher/MissileLauncher.h +++ /dev/null | |||
| @@ -1,92 +0,0 @@ | |||
| 1 | /* | ||
| 2 | LUFA Library | ||
| 3 | Copyright (C) Dean Camera, 2017. | ||
| 4 | |||
| 5 | dean [at] fourwalledcubicle [dot] com | ||
| 6 | www.lufa-lib.org | ||
| 7 | */ | ||
| 8 | |||
| 9 | /* | ||
| 10 | Copyright 2017 Dean Camera (dean [at] fourwalledcubicle [dot] com) | ||
| 11 | |||
| 12 | Permission to use, copy, modify, distribute, and sell this | ||
| 13 | software and its documentation for any purpose is hereby granted | ||
| 14 | without fee, provided that the above copyright notice appear in | ||
| 15 | all copies and that both that the copyright notice and this | ||
| 16 | permission notice and warranty disclaimer appear in supporting | ||
| 17 | documentation, and that the name of the author not be used in | ||
| 18 | advertising or publicity pertaining to distribution of the | ||
| 19 | software without specific, written prior permission. | ||
| 20 | |||
| 21 | The author disclaims all warranties with regard to this | ||
| 22 | software, including all implied warranties of merchantability | ||
| 23 | and fitness. In no event shall the author be liable for any | ||
| 24 | special, indirect or consequential damages or any damages | ||
| 25 | whatsoever resulting from loss of use, data or profits, whether | ||
| 26 | in an action of contract, negligence or other tortious action, | ||
| 27 | arising out of or in connection with the use or performance of | ||
| 28 | this software. | ||
| 29 | */ | ||
| 30 | |||
| 31 | /** \file | ||
| 32 | * | ||
| 33 | * Header file for MissileLauncher.c. | ||
| 34 | */ | ||
| 35 | |||
| 36 | #ifndef _MISSILELAUNCHER_HOST_H_ | ||
| 37 | #define _MISSILELAUNCHER_HOST_H_ | ||
| 38 | |||
| 39 | /* Includes: */ | ||
| 40 | #include <avr/io.h> | ||
| 41 | #include <avr/wdt.h> | ||
| 42 | #include <avr/pgmspace.h> | ||
| 43 | #include <avr/interrupt.h> | ||
| 44 | #include <avr/power.h> | ||
| 45 | #include <string.h> | ||
| 46 | #include <stdio.h> | ||
| 47 | |||
| 48 | #include <LUFA/Drivers/USB/USB.h> | ||
| 49 | #include <LUFA/Drivers/Board/Buttons.h> | ||
| 50 | #include <LUFA/Drivers/Board/Joystick.h> | ||
| 51 | #include <LUFA/Drivers/Board/LEDs.h> | ||
| 52 | #include <LUFA/Platform/Platform.h> | ||
| 53 | |||
| 54 | #include "ConfigDescriptor.h" | ||
| 55 | |||
| 56 | /* Macros: */ | ||
| 57 | /** LED mask for the library LED driver, to indicate that the USB interface is not ready. */ | ||
| 58 | #define LEDMASK_USB_NOTREADY LEDS_LED1 | ||
| 59 | |||
| 60 | /** LED mask for the library LED driver, to indicate that the USB interface is enumerating. */ | ||
| 61 | #define LEDMASK_USB_ENUMERATING (LEDS_LED2 | LEDS_LED3) | ||
| 62 | |||
| 63 | /** LED mask for the library LED driver, to indicate that the USB interface is ready. */ | ||
| 64 | #define LEDMASK_USB_READY (LEDS_LED2 | LEDS_LED4) | ||
| 65 | |||
| 66 | /** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */ | ||
| 67 | #define LEDMASK_USB_ERROR (LEDS_LED1 | LEDS_LED3) | ||
| 68 | |||
| 69 | /** Size of the Launcher report command buffer. */ | ||
| 70 | #define LAUNCHER_CMD_BUFFER_SIZE 64 | ||
| 71 | |||
| 72 | /* Function Prototypes: */ | ||
| 73 | void SetupHardware(void); | ||
| 74 | |||
| 75 | void Read_Joystick_Status(void); | ||
| 76 | void Send_Command_Report(const uint8_t* const Report, | ||
| 77 | const uint16_t ReportSize); | ||
| 78 | void Send_Command(const uint8_t* const Command); | ||
| 79 | |||
| 80 | void EVENT_USB_Host_HostError(const uint8_t ErrorCode); | ||
| 81 | void EVENT_USB_Host_DeviceAttached(void); | ||
| 82 | void EVENT_USB_Host_DeviceUnattached(void); | ||
| 83 | void EVENT_USB_Host_DeviceEnumerationFailed(const uint8_t ErrorCode, | ||
| 84 | const uint8_t SubErrorCode); | ||
| 85 | void EVENT_USB_Host_DeviceEnumerationComplete(void); | ||
| 86 | |||
| 87 | void DiscardNextReport(void); | ||
| 88 | void WriteNextReport(uint8_t* const ReportOUTData, | ||
| 89 | const uint16_t ReportLength); | ||
| 90 | |||
| 91 | #endif | ||
| 92 | |||
