X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/c1a1b6eeecb375259968ef6d989833312047f2d8..e0985b995009d71b80d214a66944e76f4e41aadb:/Bootloaders/CDC/BootloaderCDC.h diff --git a/Bootloaders/CDC/BootloaderCDC.h b/Bootloaders/CDC/BootloaderCDC.h index 0d8f1e3d8..e302a3966 100644 --- a/Bootloaders/CDC/BootloaderCDC.h +++ b/Bootloaders/CDC/BootloaderCDC.h @@ -41,12 +41,18 @@ #include #include #include + #include #include #include "Descriptors.h" #include // USB Functionality + /* Preprocessor Checks: */ + #if !defined(SIGNATURE_0) || !defined(SIGNATURE_1) || !defined(SIGNATURE_2) + #error Device signature byte constants are not defined due to outdated avr-libc version. See demo documentation. + #endif + /* Macros: */ /** CDC Class Specific request to get the line encoding on a CDC-ACM virtual serial port, including the * baud rate, parity, stop bits and data bits. @@ -76,7 +82,7 @@ #define BOOTLOADER_HWVERSION_MINOR 0x00 /** Eight character bootloader firmware identifier reported to the host when requested */ - #define SOFTWARE_IDENTIFIER "LUFA-CDC" + #define SOFTWARE_IDENTIFIER "LUFACDC" /* Event Handlers: */ /** Indicates that this module will catch the USB_Disconnect event when thrown by the library. */ @@ -127,9 +133,9 @@ /* Function Prototypes: */ #if defined(INCLUDE_FROM_BOOTLOADERCDC_C) || defined(__DOXYGEN__) - static void ProgramReadWriteMemoryBlock(const uint8_t Command); + static void ReadWriteMemoryBlock(const uint8_t Command); static uint8_t FetchNextCommandByte(void); - static void WriteNextResponseByte(const uint8_t Response); + static void WriteNextResponseByte(const uint8_t Response); #endif #endif