File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 26
26
#include <unicore-mx/stm32/st_usbfs.h>
27
27
#include <unicore-mx/usbd/usbd.h>
28
28
29
+ inline void ep_set_stat (uint8_t num , bool rx , uint16_t stat );
30
+ inline void ep_clear_ctr (uint8_t num , bool rx );
31
+ inline void ep_set_type (uint8_t num , uint16_t eptype );
32
+
29
33
/**
30
34
* Set the endpoint @a num status to @a status
31
35
* @param num Endpoint number (not including direction)
Original file line number Diff line number Diff line change @@ -294,6 +294,16 @@ void usbd_put_all_urb_into_unused(usbd_device *dev);
294
294
void usbd_purge_all_non_ep0_transfer (usbd_device * dev ,
295
295
usbd_transfer_status status );
296
296
297
+ inline uint32_t ep_free_mask (uint8_t ep_addr );
298
+ inline void usbd_handle_suspend (usbd_device * dev );
299
+ inline void usbd_handle_resume (usbd_device * dev );
300
+ inline void usbd_handle_sof (usbd_device * dev );
301
+ inline void usbd_handle_setup (usbd_device * dev , uint8_t ep ,
302
+ const struct usb_setup_data * setup_data );
303
+ inline void usbd_handle_reset (usbd_device * dev );
304
+ inline bool is_ep_free (usbd_device * dev , uint8_t ep_addr );
305
+ inline void mark_ep_as_free (usbd_device * dev , uint8_t ep_addr , bool yes );
306
+
297
307
/**
298
308
* Get the DTOG bit mask for @a ep_addr
299
309
* @param[in] ep_addr Endpoint address (including direction)
You can’t perform that action at this time.
0 commit comments