diff options
| author | Ha Thach <[email protected]> | 2024-05-24 15:18:30 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-24 15:18:30 +0700 |
| commit | 41c7cdac6835d45e336d71e3f4841e88a087316d (patch) | |
| tree | 4e0710197b6b93390be9833170c775d48d5b4fe6 /src/device/dcd.h | |
| parent | 1f259b3ab0f1b9587dee9c0bfb5574d70d021640 (diff) | |
| parent | daffb24111c03e3630edf6496ff5bb65c2cf8c28 (diff) | |
Merge pull request #2659 from hathach/fsdev-generalize-ch32
CH32 add support for usbd (only), fsdev
Diffstat (limited to 'src/device/dcd.h')
| -rw-r--r-- | src/device/dcd.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index 9447d6d9d..f6735b077 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -24,8 +24,8 @@ * This file is part of the TinyUSB stack. */ -#ifndef _TUSB_DCD_H_ -#define _TUSB_DCD_H_ +#ifndef TUSB_DCD_H_ +#define TUSB_DCD_H_ #include "common/tusb_common.h" #include "osal/osal.h" @@ -36,14 +36,6 @@ #endif //--------------------------------------------------------------------+ -// Configuration -//--------------------------------------------------------------------+ - -#ifndef CFG_TUD_ENDPPOINT_MAX - #define CFG_TUD_ENDPPOINT_MAX TUP_DCD_ENDPOINT_MAX -#endif - -//--------------------------------------------------------------------+ // MACRO CONSTANT TYPEDEF PROTYPES //--------------------------------------------------------------------+ @@ -149,10 +141,10 @@ void dcd_set_address(uint8_t rhport, uint8_t dev_addr); void dcd_remote_wakeup(uint8_t rhport); // Connect by enabling internal pull-up resistor on D+/D- -void dcd_connect(uint8_t rhport) TU_ATTR_WEAK; +void dcd_connect(uint8_t rhport); // Disconnect by disabling internal pull-up resistor on D+/D- -void dcd_disconnect(uint8_t rhport) TU_ATTR_WEAK; +void dcd_disconnect(uint8_t rhport); // Enable/Disable Start-of-frame interrupt. Default is disabled void dcd_sof_enable(uint8_t rhport, bool en); @@ -254,4 +246,4 @@ TU_ATTR_ALWAYS_INLINE static inline void dcd_event_sof(uint8_t rhport, uint32_t } #endif -#endif /* _TUSB_DCD_H_ */ +#endif |
