From 6c6552a8bf9e3357a7ee96eb0870c36794dc871c Mon Sep 17 00:00:00 2001 From: Christian Starkjohann Date: Wed, 27 Nov 2013 17:40:09 +0100 Subject: For compatibility reasons define usbMsgPtr_t to char * by default. Using unsigned short would generate smaller code, but causes warnings with existing projects. --- usbdrv/usbconfig-prototype.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usbdrv/usbconfig-prototype.h b/usbdrv/usbconfig-prototype.h index 93721c2..22dd9e8 100644 --- a/usbdrv/usbconfig-prototype.h +++ b/usbdrv/usbconfig-prototype.h @@ -356,8 +356,8 @@ section at the end of this file). #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 +//#define usbMsgPtr_t unsigned short +/* If usbMsgPtr_t is not defined, it defaults to 'uchar *'. We may 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 -- cgit v1.2.3