summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-12-13 17:28:50 +0700
committerhathach <[email protected]>2024-12-13 17:33:21 +0700
commitad0ac6780daf57e8aa8c27fb86b421bf0a9d20b4 (patch)
treef69d5b09d31c01a10fa6fb1d50ee975b68ebc1bb /src/device
parent0785daecc1a3a11d5bacbd7c4cd7dc4a48b11b49 (diff)
change OPT_MCU_RAXXX, fix missing prototype warnings.
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd_control.c4
-rw-r--r--src/device/usbd_pvt.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/src/device/usbd_control.c b/src/device/usbd_control.c
index d964a75d0..c9700fd9d 100644
--- a/src/device/usbd_control.c
+++ b/src/device/usbd_control.c
@@ -44,10 +44,6 @@ TU_ATTR_WEAK void dcd_edpt0_status_complete(uint8_t rhport, const tusb_control_r
// MACRO CONSTANT TYPEDEF
//--------------------------------------------------------------------+
-#if CFG_TUSB_DEBUG >= CFG_TUD_LOG_LEVEL
-extern void usbd_driver_print_control_complete_name(usbd_control_xfer_cb_t callback);
-#endif
-
enum {
EDPT_CTRL_OUT = 0x00,
EDPT_CTRL_IN = 0x80
diff --git a/src/device/usbd_pvt.h b/src/device/usbd_pvt.h
index 90f37db3e..190d6fd7f 100644
--- a/src/device/usbd_pvt.h
+++ b/src/device/usbd_pvt.h
@@ -127,6 +127,11 @@ void usbd_sof_enable(uint8_t rhport, sof_consumer_t consumer, bool en);
bool usbd_open_edpt_pair(uint8_t rhport, uint8_t const* p_desc, uint8_t ep_count, uint8_t xfer_type, uint8_t* ep_out, uint8_t* ep_in);
void usbd_defer_func(osal_task_func_t func, void *param, bool in_isr);
+
+#if CFG_TUSB_DEBUG >= CFG_TUD_LOG_LEVEL
+void usbd_driver_print_control_complete_name(usbd_control_xfer_cb_t callback);
+#endif
+
#ifdef __cplusplus
}
#endif