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/DFU/BootloaderDFU.h | 7 ++++++- Bootloaders/DFU/BootloaderDFU.txt | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'Bootloaders/DFU') diff --git a/Bootloaders/DFU/BootloaderDFU.h b/Bootloaders/DFU/BootloaderDFU.h index d0a825443..e996f2b79 100644 --- a/Bootloaders/DFU/BootloaderDFU.h +++ b/Bootloaders/DFU/BootloaderDFU.h @@ -48,7 +48,12 @@ #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: */ /** Configuration define. Define this token to true to case the bootloader to reject all memory commands * until a memory erase has been performed. When used in conjunction with the lockbits of the AVR, this diff --git a/Bootloaders/DFU/BootloaderDFU.txt b/Bootloaders/DFU/BootloaderDFU.txt index 7107cc123..44158ed07 100644 --- a/Bootloaders/DFU/BootloaderDFU.txt +++ b/Bootloaders/DFU/BootloaderDFU.txt @@ -73,5 +73,12 @@ * erase has been perfomed. This can be used in conjunction with the AVR's lockbits to prevent the AVRs firmware from * being dumped by unauthorized persons. * + * + * SIGNATURE_0, SIGNATURE_1, SIGNATURE_2 + * Makefile CDEFS + * AVR 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