summaryrefslogtreecommitdiff
path: root/src/device/dcd.h
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2024-05-13 22:26:19 +0200
committerHiFiPhile <[email protected]>2024-05-13 22:26:19 +0200
commite250b82377aa9c1433c6235501c72dd079544c75 (patch)
tree1c1dcffc81e0b95d06df286ac68877f24c2b285c /src/device/dcd.h
parent0fce7d1f54f5fc405bee3ac20ad6bbdb966abcd0 (diff)
Adjust logic.
Diffstat (limited to 'src/device/dcd.h')
-rw-r--r--src/device/dcd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h
index b71b99869..9447d6d9d 100644
--- a/src/device/dcd.h
+++ b/src/device/dcd.h
@@ -97,8 +97,7 @@ typedef struct TU_ATTR_ALIGNED(4) {
};
} dcd_event_t;
-typedef enum _test_mode_selector
-{
+typedef enum {
TEST_J = 1,
TEST_K,
TEST_SE0_NAK,
@@ -158,12 +157,13 @@ void dcd_disconnect(uint8_t rhport) TU_ATTR_WEAK;
// Enable/Disable Start-of-frame interrupt. Default is disabled
void dcd_sof_enable(uint8_t rhport, bool en);
+#if CFG_TUD_TEST_MODE
// Check if the test mode is supported, returns true is test mode selector is supported
bool dcd_check_test_mode_support(test_mode_t test_selector) TU_ATTR_WEAK;
// Put device into a test mode (needs power cycle to quit)
void dcd_enter_test_mode(uint8_t rhport, test_mode_t test_selector) TU_ATTR_WEAK;
-
+#endif
//--------------------------------------------------------------------+
// Endpoint API
//--------------------------------------------------------------------+