diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-02-09 19:56:01 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-02-09 19:56:01 +0000 |
commit | 3c6e54a52eff84bebce23f3d933c1de425a7b428 (patch) | |
tree | fc8cd95b67d57c7816fcf9a8b30b066dff2bc9c7 /testhal/STM32 | |
parent | 77934792d53efe99678286bab123c42c546478a7 (diff) | |
download | ChibiOS-3c6e54a52eff84bebce23f3d933c1de425a7b428.tar.gz ChibiOS-3c6e54a52eff84bebce23f3d933c1de425a7b428.tar.bz2 ChibiOS-3c6e54a52eff84bebce23f3d933c1de425a7b428.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2724 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32')
-rw-r--r-- | testhal/STM32/USB_CDC/main.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/testhal/STM32/USB_CDC/main.c b/testhal/STM32/USB_CDC/main.c index 04fd4d615..0c2a3ac9d 100644 --- a/testhal/STM32/USB_CDC/main.c +++ b/testhal/STM32/USB_CDC/main.c @@ -333,41 +333,6 @@ static const SerialUSBConfig serusbcfg = { INTERRUPT_REQUEST_EP
};
-#if 0
-#include "usb_cdc.h"
-static cdc_linecoding_t linecoding = {
- {0x00, 0x96, 0x00, 0x00}, /* 38400. */
- LC_STOP_1, LC_PARITY_NONE, 8
-};
-bool_t sduRequestsHook(USBDriver *usbp) {
-
- if ((usbp->setup[0] & USB_RTYPE_TYPE_MASK) == USB_RTYPE_TYPE_CLASS) {
- switch (usbp->setup[1]) {
- case CDC_GET_LINE_CODING:
- usbSetupTransfer(usbp, (uint8_t *)&linecoding, sizeof(linecoding));
- return TRUE;
- case CDC_SET_LINE_CODING:
- usbSetupTransfer(usbp, (uint8_t *)&linecoding, sizeof(linecoding));
- return TRUE;
- case CDC_SET_CONTROL_LINE_STATE:
- /* Nothing to do, there are no control lines.*/
- usbSetupTransfer(usbp, NULL, 0);
- return TRUE;
- default:
- return FALSE;
- }
- }
- return FALSE;
-}
-#endif
-
-USBConfig usbconfig = {
- usb_event,
- get_descriptor,
- sduRequestsHook,
- NULL
-};
-
/*===========================================================================*/
/* Generic code. */
/*===========================================================================*/
@@ -425,7 +390,6 @@ int main(void) { /*
* Activates the USB driver and then the USB bus pull-up on D+.
*/
-// usbStart(&USBD1, &usbconfig);
sduObjectInit(&SDU1);
sduStart(&SDU1, &serusbcfg);
palClearPad(GPIOC, GPIOC_USB_DISC);
|