aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/usbconfig.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/usbconfig.h b/tests/usbconfig.h
index 8e30f50..34b6f60 100644
--- a/tests/usbconfig.h
+++ b/tests/usbconfig.h
@@ -268,6 +268,14 @@ features. Don't use it as a prototype, use usbconfig-prototype.h instead!
#define USB_CFG_DESCR_PROPS_HID_REPORT 0
#define USB_CFG_DESCR_PROPS_UNKNOWN 0
+#define usbMsgPtr_t unsigned short
+/* If usbMsgPtr_t is not defined, it defaults to 'uchar *'. We define it to
+ * a scalar type here because gcc generates slightly shorter code for scalar
+ * arithmetics than for pointer arithmetics. Remove this define for backward
+ * type compatibility or define it to an 8 bit type if you use data in RAM only
+ * and all RAM is below 256 bytes (tiny memory model in IAR CC).
+ */
+
/* ----------------------- Optional MCU Description ------------------------ */
/* The following configurations have working defaults in usbdrv.h. You