From: Bill J. <wb...@ma...> - 2002-05-29 20:55:29
|
On 5/31/2002, Patrick Calmettes posted EZ-USB code he ported from KEIL to Sdcc-format; some of the files came directly from Cypress Semiconductor's EZ-USB and EZ-USB FX development kit frameworks sources (copyright AnchorChips, aquired by Cypress a few years ago). Comparing Patrick's posting to the original files, I find many instances where the bitwise left-shift operator "<<" has been changed to a logical less-than operator "<". For example, in the file "ezusb.h", #define SUDAV_USBVECT (0 << 2) became #define SUDAV_USBVECT (0 < 2) In <sdcc>/doc/sdccman.pdf, section "4.1.9 Bit-rotation", the examples clearly show two angle-brackets to represent the bit shifting function. Can someone, perhaps Patrick, please clarify this difference? Best Regards, Bill Judd |