diff options
| author | HiFiPhile <[email protected]> | 2024-05-27 20:10:44 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-27 20:10:44 +0200 |
| commit | 003a5d4f5551de809715c8bc7ed203d34720a085 (patch) | |
| tree | 575dee1a6306ef4bb345a3355faf7e2eac9ca70c /src/device/dcd.h | |
| parent | a9745c9818da85a0b31ef04c556530a3bef18ec1 (diff) | |
| parent | fd11bf17fde6cbfdb4bb1ed7070ed4111e503ae8 (diff) | |
Merge branch 'master' into additional_dcd_sof_enable
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 |
