Moved USBtoSerial demo the Projects directory, as it is simply an expanded CDC demo...
[pub/USBasp.git] / LUFA / Drivers / USB / LowLevel / Template / Template_Endpoint_RW.c
index b753440..6e1f5b2 100644 (file)
@@ -1,4 +1,4 @@
-uint8_t TEMPLATE_FUNC_NAME (void* Buffer, uint16_t Length __CALLBACK_PARAM)\r
+uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE Buffer, uint16_t Length __CALLBACK_PARAM)\r
 {\r
        uint8_t* DataStream = (uint8_t*)(Buffer + TEMPLATE_BUFFER_OFFSET(Length));\r
        uint8_t  ErrorCode;\r
 {\r
        uint8_t* DataStream = (uint8_t*)(Buffer + TEMPLATE_BUFFER_OFFSET(Length));\r
        uint8_t  ErrorCode;\r
@@ -71,6 +71,7 @@ uint8_t TEMPLATE_FUNC_NAME (void* Buffer, uint16_t Length __CALLBACK_PARAM)
 }\r
 \r
 #undef TEMPLATE_FUNC_NAME\r
 }\r
 \r
 #undef TEMPLATE_FUNC_NAME\r
+#undef TEMPLATE_BUFFER_TYPE\r
 #undef TEMPLATE_TRANSFER_BYTE\r
 #undef TEMPLATE_CLEAR_ENDPOINT\r
 #undef TEMPLATE_BUFFER_OFFSET
\ No newline at end of file
 #undef TEMPLATE_TRANSFER_BYTE\r
 #undef TEMPLATE_CLEAR_ENDPOINT\r
 #undef TEMPLATE_BUFFER_OFFSET
\ No newline at end of file