From cb7884da506096352ad82a1317b998813b74f4f8 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 7 Apr 2009 04:19:57 +0000 Subject: Added preprocessor checks and documentation to the bootloaders giving information about missing SIGNATURE_x defines due to outdated avr-libc versions. --- Bootloaders/CDC/BootloaderCDC.h | 5 +++++ Bootloaders/CDC/BootloaderCDC.txt | 13 ++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) (limited to 'Bootloaders/CDC') diff --git a/Bootloaders/CDC/BootloaderCDC.h b/Bootloaders/CDC/BootloaderCDC.h index dce84a5f8..7669b836c 100644 --- a/Bootloaders/CDC/BootloaderCDC.h +++ b/Bootloaders/CDC/BootloaderCDC.h @@ -48,6 +48,11 @@ #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. diff --git a/Bootloaders/CDC/BootloaderCDC.txt b/Bootloaders/CDC/BootloaderCDC.txt index 1f8970d57..1122e73ae 100644 --- a/Bootloaders/CDC/BootloaderCDC.txt +++ b/Bootloaders/CDC/BootloaderCDC.txt @@ -50,9 +50,16 @@ * * * - * + * + * + * + * + * + * + * + * * *
- * None - * Define Name:Location:Description:
SIGNATURE_0, SIGNATURE_1, SIGNATURE_2Makefile CDEFSAVR part signature bytes. These are normally defined as part of the AVR device header files in recent avr-libc + * distributions. If your avr-libc library is out of date and does not define these values, you can define them + * manually in the makefile CDEFS.
*/ \ No newline at end of file -- cgit v1.2.3