Increase timeout of Mass Storage and Still Image host commands to 10 seconds (up...
[pub/lufa.git] / Demos / Device / LowLevel / AudioInput / Descriptors.h
index 9e7b2d6..cda03c0 100644 (file)
                 *\r
                 *  \param[in] freq  Required audio sampling frequency in HZ\r
                 */\r
-               #define SAMPLE_FREQ(freq)  {LowWord: ((uint32_t)freq & 0x00FFFF), HighByte: (((uint32_t)freq >> 16) & 0x0000FF)}\r
+               #define SAMPLE_FREQ(freq)  {LowWord: ((uint32_t)(freq) & 0x00FFFF), HighByte: (((uint32_t)(freq) >> 16) & 0x0000FF)}\r
                \r
                /** Mask for the attributes parameter of an Audio class specific Endpoint descriptor, indicating that the endpoint\r
                 *  accepts only filled endpoint packets of audio samples.\r
                #define EP_ACCEPTS_SMALL_PACKETS     (0 << 7)\r
 \r
                /** Endpoint number of the Audio isochronous streaming data endpoint. */\r
-               #define AUDIO_STREAM_EPNUM       1\r
+               #define AUDIO_STREAM_EPNUM           1\r
                \r
                /** Endpoint size in bytes of the Audio isochronous streaming data endpoint. The Windows audio stack requires\r
                 *  at least 192 bytes for correct output, thus the smaller 128 byte maximum endpoint size on some of the smaller\r