@@ -294,22 +294,22 @@ 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 ,
297
+ static inline uint32_t ep_free_mask (uint8_t ep_addr );
298
+ static inline void usbd_handle_suspend (usbd_device * dev );
299
+ static inline void usbd_handle_resume (usbd_device * dev );
300
+ static inline void usbd_handle_sof (usbd_device * dev );
301
+ static inline void usbd_handle_setup (usbd_device * dev , uint8_t ep ,
302
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 );
303
+ static inline void usbd_handle_reset (usbd_device * dev );
304
+ static inline bool is_ep_free (usbd_device * dev , uint8_t ep_addr );
305
+ static inline void mark_ep_as_free (usbd_device * dev , uint8_t ep_addr , bool yes );
306
306
307
307
/**
308
308
* Get the DTOG bit mask for @a ep_addr
309
309
* @param[in] ep_addr Endpoint address (including direction)
310
310
* @return mask
311
311
*/
312
- inline uint32_t ep_free_mask (uint8_t ep_addr )
312
+ static inline uint32_t ep_free_mask (uint8_t ep_addr )
313
313
{
314
314
uint32_t num = ENDPOINT_NUMBER (ep_addr );
315
315
@@ -324,7 +324,7 @@ inline uint32_t ep_free_mask(uint8_t ep_addr)
324
324
* SUSPEND detected on bus
325
325
* @param[in] dev USB Device
326
326
*/
327
- inline void usbd_handle_suspend (usbd_device * dev )
327
+ static inline void usbd_handle_suspend (usbd_device * dev )
328
328
{
329
329
LOG_LN ("SUSPEND detected!" );
330
330
@@ -337,7 +337,7 @@ inline void usbd_handle_suspend(usbd_device *dev)
337
337
* RESUME detected on bus
338
338
* @param[in] dev USB Device
339
339
*/
340
- inline void usbd_handle_resume (usbd_device * dev )
340
+ static inline void usbd_handle_resume (usbd_device * dev )
341
341
{
342
342
LOG_LN ("RESUME detected!" );
343
343
@@ -350,7 +350,7 @@ inline void usbd_handle_resume(usbd_device *dev)
350
350
* SOF detected on bus
351
351
* @param[in] dev USB Device
352
352
*/
353
- inline void usbd_handle_sof (usbd_device * dev )
353
+ static inline void usbd_handle_sof (usbd_device * dev )
354
354
{
355
355
/* Oh no! dont print anything here... or else... */
356
356
@@ -367,7 +367,7 @@ inline void usbd_handle_sof(usbd_device *dev)
367
367
* @param[in] setup_data Setup Data
368
368
* @note setup_data is only expected to be valid till this function do not return.
369
369
*/
370
- inline void usbd_handle_setup (usbd_device * dev , uint8_t ep ,
370
+ static inline void usbd_handle_setup (usbd_device * dev , uint8_t ep ,
371
371
const struct usb_setup_data * setup_data )
372
372
{
373
373
if (dev -> callback .setup != NULL ) {
@@ -388,7 +388,7 @@ inline void usbd_handle_setup(usbd_device *dev, uint8_t ep,
388
388
* RESET detected on bus
389
389
* @param[in] dev USB Device
390
390
*/
391
- inline void usbd_handle_reset (usbd_device * dev )
391
+ static inline void usbd_handle_reset (usbd_device * dev )
392
392
{
393
393
LOG_LN ("RESET detected" );
394
394
@@ -408,7 +408,7 @@ inline void usbd_handle_reset(usbd_device *dev)
408
408
* @param[in] dev USB Device
409
409
* @param[in] ep_addr Endpoint (including direction)
410
410
*/
411
- inline bool is_ep_free (usbd_device * dev , uint8_t ep_addr )
411
+ static inline bool is_ep_free (usbd_device * dev , uint8_t ep_addr )
412
412
{
413
413
return !!(dev -> urbs .ep_free & ep_free_mask (ep_addr ));
414
414
}
@@ -419,7 +419,7 @@ inline bool is_ep_free(usbd_device *dev, uint8_t ep_addr)
419
419
* @param[in] ep_addr Endpoint address (including direction)
420
420
* @param[in] yes Yes (if true, mark it as unused)
421
421
*/
422
- inline void mark_ep_as_free (usbd_device * dev , uint8_t ep_addr , bool yes )
422
+ static inline void mark_ep_as_free (usbd_device * dev , uint8_t ep_addr , bool yes )
423
423
{
424
424
uint32_t mask = ep_free_mask (ep_addr );
425
425
if (yes ) {
0 commit comments