From 71d680d052796a7b233405e6e84ad66cd5d147d3 Mon Sep 17 00:00:00 2001 From: Christian Starkjohann Date: Wed, 5 Dec 2012 23:26:55 +0100 Subject: Compile size tests with optimal configuration. --- tests/usbconfig.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3