Skip to content

Commit 3ce2ceb

Browse files
authored
Merge pull request #39 from kuldeepdhaka/usbd-rewrite2-warning-fix
Inline function prototype missing warning
2 parents 10f644a + cb1209c commit 3ce2ceb

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

lib/usbd/backend/usbd_stm32_fsdev.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
#include <unicore-mx/stm32/st_usbfs.h>
2727
#include <unicore-mx/usbd/usbd.h>
2828

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+
2933
/**
3034
* Set the endpoint @a num status to @a status
3135
* @param num Endpoint number (not including direction)

lib/usbd/usbd_private.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,16 @@ void usbd_put_all_urb_into_unused(usbd_device *dev);
294294
void usbd_purge_all_non_ep0_transfer(usbd_device *dev,
295295
usbd_transfer_status status);
296296

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+
297307
/**
298308
* Get the DTOG bit mask for @a ep_addr
299309
* @param[in] ep_addr Endpoint address (including direction)

0 commit comments

Comments
 (0)