diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-11 04:05:02 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-11 04:05:02 +0000 |
commit | d49cc0f7830319e701294e19937fae4de26ae8e2 (patch) | |
tree | a6353899c8cc6940a6540832b36891345483c474 /LUFA/DriverStubs | |
parent | 3a2c1db6751979ae3e5d7a6fa51026f9c44c71c0 (diff) | |
download | lufa-d49cc0f7830319e701294e19937fae4de26ae8e2.tar.gz lufa-d49cc0f7830319e701294e19937fae4de26ae8e2.tar.bz2 lufa-d49cc0f7830319e701294e19937fae4de26ae8e2.zip |
Add more include protection macros to give the user warnings when they try to manually include private driver header files, instead of the public driver headers.
Diffstat (limited to 'LUFA/DriverStubs')
-rw-r--r-- | LUFA/DriverStubs/Buttons.h | 2 | ||||
-rw-r--r-- | LUFA/DriverStubs/Dataflash.h | 2 | ||||
-rw-r--r-- | LUFA/DriverStubs/Joystick.h | 2 | ||||
-rw-r--r-- | LUFA/DriverStubs/LEDs.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/LUFA/DriverStubs/Buttons.h b/LUFA/DriverStubs/Buttons.h index bd45f40ca..deab56e9e 100644 --- a/LUFA/DriverStubs/Buttons.h +++ b/LUFA/DriverStubs/Buttons.h @@ -54,7 +54,7 @@ #endif
/* Preprocessor Checks: */
- #if !defined(INCLUDE_FROM_BUTTONS_H)
+ #if !defined(__INCLUDE_FROM_BUTTONS_H)
#error Do not include this file directly. Include LUFA/Drivers/Board/Buttons.h instead.
#endif
diff --git a/LUFA/DriverStubs/Dataflash.h b/LUFA/DriverStubs/Dataflash.h index 0f7a6c348..10eafa2a3 100644 --- a/LUFA/DriverStubs/Dataflash.h +++ b/LUFA/DriverStubs/Dataflash.h @@ -46,7 +46,7 @@ // TODO: Add any required includes here
/* Preprocessor Checks: */
- #if !defined(INCLUDE_FROM_DATAFLASH_H)
+ #if !defined(__INCLUDE_FROM_DATAFLASH_H)
#error Do not include this file directly. Include LUFA/Drivers/Board/Dataflash.h instead.
#endif
diff --git a/LUFA/DriverStubs/Joystick.h b/LUFA/DriverStubs/Joystick.h index 7911308f0..21e306f1e 100644 --- a/LUFA/DriverStubs/Joystick.h +++ b/LUFA/DriverStubs/Joystick.h @@ -54,7 +54,7 @@ #endif
/* Preprocessor Checks: */
- #if !defined(INCLUDE_FROM_JOYSTICK_H)
+ #if !defined(__INCLUDE_FROM_JOYSTICK_H)
#error Do not include this file directly. Include LUFA/Drivers/Board/Joystick.h instead.
#endif
diff --git a/LUFA/DriverStubs/LEDs.h b/LUFA/DriverStubs/LEDs.h index dcce4bce2..6bdc847d1 100644 --- a/LUFA/DriverStubs/LEDs.h +++ b/LUFA/DriverStubs/LEDs.h @@ -53,7 +53,7 @@ #endif
/* Preprocessor Checks: */
- #if !defined(INCLUDE_FROM_LEDS_H)
+ #if !defined(__INCLUDE_FROM_LEDS_H)
#error Do not include this file directly. Include LUFA/Drivers/Board/LEDS.h instead.
#endif
|