X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/c1a1b6eeecb375259968ef6d989833312047f2d8..e21b620bf6cc9fb1bb9e516efb57b1cb12c00085:/Bootloaders/CDC/BootloaderCDC.h diff --git a/Bootloaders/CDC/BootloaderCDC.h b/Bootloaders/CDC/BootloaderCDC.h index 0d8f1e3d8..7669b836c 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. @@ -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