diff options
| author | Ha Thach <[email protected]> | 2024-07-12 21:15:52 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-07-12 21:15:52 +0700 |
| commit | bd15f65e81724d05493fe9e020daf9a2ff7d2865 (patch) | |
| tree | bb2c79e5e5204f7d3f539c4c25a47b82560ed2fe /src/device/dcd.h | |
| parent | b97520e89f500bfa7972d7fce973f20185512006 (diff) | |
| parent | 4ce1cce40a01dce56cab2c73745f4f2c9d212b25 (diff) | |
Merge pull request #2710 from hathach/dwc2-test-mode-followup
Diffstat (limited to 'src/device/dcd.h')
| -rw-r--r-- | src/device/dcd.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index f6735b077..5356e9be1 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -89,14 +89,6 @@ typedef struct TU_ATTR_ALIGNED(4) { }; } dcd_event_t; -typedef enum { - TEST_J = 1, - TEST_K, - TEST_SE0_NAK, - TEST_PACKET, - TEST_FORCE_ENABLE, -} test_mode_t; - //TU_VERIFY_STATIC(sizeof(dcd_event_t) <= 12, "size is not correct"); //--------------------------------------------------------------------+ @@ -150,11 +142,8 @@ void dcd_disconnect(uint8_t rhport); 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; +void dcd_enter_test_mode(uint8_t rhport, tusb_feature_test_mode_t test_selector); #endif //--------------------------------------------------------------------+ // Endpoint API |
