diff options
author | Sylvain Pelissier <sylvain.pelissier@gmail.com> | 2017-05-03 10:55:02 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-06-07 15:50:26 +1000 |
commit | 6adcf7bb8288fb6fd0e131f081735dd5cff16b86 (patch) | |
tree | 2b2d58f8190c369748a6ad75a14a9a2885b0d281 /stmhal/usbdev/class/inc | |
parent | 7ecfbb8267c050ba5bd5bdf7becfb055f53a4f80 (diff) |
stmhal: Pass USB handler as parameter to allow more than one USB handler
Diffstat (limited to 'stmhal/usbdev/class/inc')
-rw-r--r-- | stmhal/usbdev/class/inc/usbd_cdc_msc_hid.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stmhal/usbdev/class/inc/usbd_cdc_msc_hid.h b/stmhal/usbdev/class/inc/usbd_cdc_msc_hid.h index 5f0502766..96617b107 100644 --- a/stmhal/usbdev/class/inc/usbd_cdc_msc_hid.h +++ b/stmhal/usbdev/class/inc/usbd_cdc_msc_hid.h @@ -28,10 +28,10 @@ typedef struct { } USBD_CDC_LineCodingTypeDef; typedef struct _USBD_CDC_Itf { - int8_t (* Init) (void); + int8_t (* Init) (USBD_HandleTypeDef *pdev); int8_t (* DeInit) (void); int8_t (* Control) (uint8_t, uint8_t * , uint16_t); - int8_t (* Receive) (uint8_t *, uint32_t *); + int8_t (* Receive) (USBD_HandleTypeDef *pdev, uint8_t *, uint32_t *); } USBD_CDC_ItfTypeDef; typedef struct { @@ -48,8 +48,8 @@ typedef struct { } USBD_CDC_HandleTypeDef; typedef struct _USBD_HID_Itf { - int8_t (* Init) (void); - int8_t (* Receive)(uint8_t *, uint32_t); + int8_t (* Init) (USBD_HandleTypeDef *pdev); + int8_t (* Receive)(USBD_HandleTypeDef *pdev, uint8_t *, uint32_t); } USBD_HID_ItfTypeDef; typedef struct _USBD_STORAGE { |