diff options
| author | Nathan Conrad <[email protected]> | 2020-04-08 11:51:33 -0400 |
|---|---|---|
| committer | Nathan Conrad <[email protected]> | 2020-04-09 17:03:12 -0400 |
| commit | 715c4dbbf8fe7c6bb83013df626a201928704b30 (patch) | |
| tree | f2379e646562b08cbb099c36956a37594d424dfa /src/portable/template | |
| parent | d6578823bb405cacbda13a044b66ba0a4f16a3d4 (diff) | |
stm32fsdev: Implement dcd_connect.
Diffstat (limited to 'src/portable/template')
| -rw-r--r-- | src/portable/template/dcd_template.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/portable/template/dcd_template.c b/src/portable/template/dcd_template.c index 102910509..d29c98e55 100644 --- a/src/portable/template/dcd_template.c +++ b/src/portable/template/dcd_template.c @@ -45,6 +45,20 @@ void dcd_init (uint8_t rhport) (void) rhport; } +#if HAS_INTERNAL_PULLUP +// Enable internal D+/D- pullup +void dcd_connect(uint8_t rhport) TU_ATTR_WEAK +{ + (void) rhport; +} + +// Disable internal D+/D- pullup +void dcd_disconnect(uint8_t rhport) TU_ATTR_WEAK +{ + (void) rhport; +} +#endif + // Enable device interrupt void dcd_int_enable (uint8_t rhport) { |
