diff options
author | Christian Starkjohann <cs+github@obdev.at> | 2012-12-05 22:57:13 +0100 |
---|---|---|
committer | Christian Starkjohann <cs+github@obdev.at> | 2012-12-05 22:57:13 +0100 |
commit | 5e355a4f0588438632d56e2f9fef5a75b949bd24 (patch) | |
tree | d363cf4807bdd2f2b96bdfd8ee40e5cae9ff80cb /usbdrv/usbconfig-prototype.h | |
parent | 5a50b438cac678c178dad625e04db4c6eeddd5fe (diff) | |
download | v-usb-5e355a4f0588438632d56e2f9fef5a75b949bd24.tar.gz v-usb-5e355a4f0588438632d56e2f9fef5a75b949bd24.tar.bz2 v-usb-5e355a4f0588438632d56e2f9fef5a75b949bd24.zip |
usbMsgPtr now has a separate type so that it can be defined to an 8 bit type for tiny memory model
Diffstat (limited to 'usbdrv/usbconfig-prototype.h')
-rw-r--r-- | usbdrv/usbconfig-prototype.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/usbdrv/usbconfig-prototype.h b/usbdrv/usbconfig-prototype.h index 826f026..f9cdd91 100644 --- a/usbdrv/usbconfig-prototype.h +++ b/usbdrv/usbconfig-prototype.h @@ -356,6 +356,15 @@ section at the end of this file). #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 |