aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2012-12-05 23:26:55 +0100
committerChristian Starkjohann <cs+github@obdev.at>2012-12-05 23:26:55 +0100
commit71d680d052796a7b233405e6e84ad66cd5d147d3 (patch)
tree01be1d5c50126c25706171fa5e300d4ee0d5f2f1
parent19bfca8e47e2b011651f23a8312654dc1de6f344 (diff)
downloadv-usb-71d680d052796a7b233405e6e84ad66cd5d147d3.tar.gz
v-usb-71d680d052796a7b233405e6e84ad66cd5d147d3.tar.bz2
v-usb-71d680d052796a7b233405e6e84ad66cd5d147d3.zip
Compile size tests with optimal configuration.
-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