diff options
| author | Damien George | 2014-03-22 12:46:23 +0000 |
|---|---|---|
| committer | Damien George | 2014-03-22 12:46:23 +0000 |
| commit | a6787edcea4ff1aa6113eff85c3b866ae0c6cb8c (patch) | |
| tree | 763bb0d6ef3a4642aa585564d9d85e09bf9a4cb2 /stmhal/usbd_cdc_interface.c | |
| parent | c2a4cb4f04c82d7e283fd7af9609230ae46eb5a2 (diff) | |
stmhal: Tidy up USB device configuration. Make it use less RAM.
Diffstat (limited to 'stmhal/usbd_cdc_interface.c')
| -rw-r--r-- | stmhal/usbd_cdc_interface.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/stmhal/usbd_cdc_interface.c b/stmhal/usbd_cdc_interface.c index e0f387eb7..631643935 100644 --- a/stmhal/usbd_cdc_interface.c +++ b/stmhal/usbd_cdc_interface.c @@ -28,11 +28,22 @@ /* Includes ------------------------------------------------------------------*/ #include <stdbool.h> #include "stm32f4xx_hal.h" -#include "usbd_cdc.h" +#include "usbd_cdc_msc.h" #include "usbd_cdc_interface.h" #include "pendsv.h" #include "usb.h" +// CDC control commands +#define CDC_SEND_ENCAPSULATED_COMMAND 0x00 +#define CDC_GET_ENCAPSULATED_RESPONSE 0x01 +#define CDC_SET_COMM_FEATURE 0x02 +#define CDC_GET_COMM_FEATURE 0x03 +#define CDC_CLEAR_COMM_FEATURE 0x04 +#define CDC_SET_LINE_CODING 0x20 +#define CDC_GET_LINE_CODING 0x21 +#define CDC_SET_CONTROL_LINE_STATE 0x22 +#define CDC_SEND_BREAK 0x23 + /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ #define APP_RX_DATA_SIZE 1024 // I think this must be at least CDC_DATA_FS_OUT_PACKET_SIZE (was 2048) |
