aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Starkjohann <cs+github@obdev.at>2013-11-27 17:40:09 +0100
committerChristian Starkjohann <cs+github@obdev.at>2013-11-28 11:29:24 +0100
commit6c6552a8bf9e3357a7ee96eb0870c36794dc871c (patch)
treefa9640bdcd18b4e0a75372ad5aae611c21268752
parente1a453ce38d77f80c171b2752bedd1be54fd0eb4 (diff)
downloadv-usb-6c6552a8bf9e3357a7ee96eb0870c36794dc871c.tar.gz
v-usb-6c6552a8bf9e3357a7ee96eb0870c36794dc871c.tar.bz2
v-usb-6c6552a8bf9e3357a7ee96eb0870c36794dc871c.zip
For compatibility reasons define usbMsgPtr_t to char * by default.
Using unsigned short would generate smaller code, but causes warnings with existing projects.
-rw-r--r--usbdrv/usbconfig-prototype.h4
1 files 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