usTemp = ( ( *pc2 ) << 8 ) | *pc1;\r
\r
return usTemp;\r
-#warning The above code replaces the line below to ensure aborts are not received due to unaligned accesses. Alternatively use the --no_unaligned_access compiler option.\r
- //return endpoint->wMaxPacketSize;\r
}\r
\r
/**\r
* \param configuration Pointer to a USBConfigurationDescriptor instance.\r
* \return Total length (in bytes) of the configuration.\r
*/\r
-volatile unsigned long ulCount = 0;\r
uint32_t USBConfigurationDescriptor_GetTotalLength(\r
const USBConfigurationDescriptor *configuration)\r
{\r
-ulCount++;\r
-if( ulCount == 5 )\r
-{\r
- __asm volatile( "NOP" );\r
-}\r
return configuration->wTotalLength;\r
}\r
\r