aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/USB_CDC/main.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-03-08 21:09:14 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-03-08 21:09:14 +0000
commitebaac50aa4daa939814b783b1239073e3170860f (patch)
treed3d799bf8e2240ca7851bb2c236b345e0ae40f77 /testhal/STM32/USB_CDC/main.c
parent6b1c74271cf04a5f3ce225321912cdf3f365f673 (diff)
downloadChibiOS-ebaac50aa4daa939814b783b1239073e3170860f.tar.gz
ChibiOS-ebaac50aa4daa939814b783b1239073e3170860f.tar.bz2
ChibiOS-ebaac50aa4daa939814b783b1239073e3170860f.zip
Improvements to the Serial over USB driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2810 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/USB_CDC/main.c')
-rw-r--r--testhal/STM32/USB_CDC/main.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/testhal/STM32/USB_CDC/main.c b/testhal/STM32/USB_CDC/main.c
index 49d744d5d..e18275808 100644
--- a/testhal/STM32/USB_CDC/main.c
+++ b/testhal/STM32/USB_CDC/main.c
@@ -21,14 +21,12 @@
#include "hal.h"
#include "test.h"
+#include "usb_cdc.h"
+
/*===========================================================================*/
/* USB related stuff. */
/*===========================================================================*/
-#define DATA_REQUEST_EP 1
-#define INTERRUPT_REQUEST_EP 2
-#define DATA_AVAILABLE_EP 3
-
/*
* USB Driver structure.
*/
@@ -300,10 +298,7 @@ static const SerialUSBConfig serusbcfg = {
get_descriptor,
sduRequestsHook,
NULL
- },
- DATA_REQUEST_EP,
- DATA_AVAILABLE_EP,
- INTERRUPT_REQUEST_EP
+ }
};
/*===========================================================================*/