projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increased throughput of the USBtoSerial demo on systems that send multiple bytes...
[pub/USBasp.git]
/
LUFA
/
Drivers
/
USB
/
Class
/
Common
/
Printer.h
diff --git
a/LUFA/Drivers/USB/Class/Common/Printer.h
b/LUFA/Drivers/USB/Class/Common/Printer.h
index
ea6f1ab
..
06ec0bb
100644
(file)
--- a/
LUFA/Drivers/USB/Class/Common/Printer.h
+++ b/
LUFA/Drivers/USB/Class/Common/Printer.h
@@
-49,8
+49,13
@@
/* Enable C linkage for C++ Compilers: */
\r
#if defined(__cplusplus)
\r
extern "C" {
\r
/* Enable C linkage for C++ Compilers: */
\r
#if defined(__cplusplus)
\r
extern "C" {
\r
- #endif
\r
+ #endif
\r
\r
+ /* Preprocessor Checks: */
\r
+ #if !defined(__INCLUDE_FROM_PRINTER_DRIVER)
\r
+ #error Do not include this file directly. Include LUFA/Drivers/Class/Printer.h instead.
\r
+ #endif
\r
+
\r
/* Macros: */
\r
/** Port status mask for a printer device, indicating that an error has *not* occurred. */
\r
#define PRNT_PORTSTATUS_NOTERROR (1 << 3)
\r
/* Macros: */
\r
/** Port status mask for a printer device, indicating that an error has *not* occurred. */
\r
#define PRNT_PORTSTATUS_NOTERROR (1 << 3)
\r