diff options
Diffstat (limited to 'Bootloaders')
-rw-r--r-- | Bootloaders/CDC/BootloaderCDC.h | 5 | ||||
-rw-r--r-- | Bootloaders/CDC/BootloaderCDC.txt | 13 | ||||
-rw-r--r-- | Bootloaders/DFU/BootloaderDFU.h | 7 | ||||
-rw-r--r-- | Bootloaders/DFU/BootloaderDFU.txt | 7 |
4 files changed, 28 insertions, 4 deletions
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 <LUFA/Drivers/USB/USB.h> // 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 @@ *
* <table>
* <tr>
- * <td>
- * None
- * </td>
+ * <td><b>Define Name:</b></td>
+ * <td><b>Location:</b></td>
+ * <td><b>Description:</b></td>
+ * </tr>
+ * <tr>
+ * <td>SIGNATURE_0, SIGNATURE_1, SIGNATURE_2</td>
+ * <td>Makefile CDEFS</td>
+ * <td>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.</td>
* </tr>
* </table>
*/
\ No newline at end of file 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 <LUFA/Drivers/USB/USB.h> // 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.</td>
* </tr>
+ * <tr>
+ * <td>SIGNATURE_0, SIGNATURE_1, SIGNATURE_2</td>
+ * <td>Makefile CDEFS</td>
+ * <td>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.</td>
+ * </tr>
* </table>
*/
\ No newline at end of file |