]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/AtmelFiles/usb/common/core/USBDescriptors.c
Core kernel code:
[freertos] / FreeRTOS / Demo / CORTEX_A5_SAMA5D3x_Xplained_IAR / AtmelFiles / usb / common / core / USBDescriptors.c
index 80cd4e0c0bc7313dc6d843a7c13145726efb70c1..963103fc7031dd82d164ad7bfa703328f1d157cc 100644 (file)
@@ -186,8 +186,6 @@ uint8_t *pc1, *pc2;
        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
@@ -208,15 +206,9 @@ uint8_t USBEndpointDescriptor_GetInterval(
  *  \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