summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorNathan Conrad <[email protected]>2020-04-10 10:23:56 -0400
committerNathan Conrad <[email protected]>2020-04-10 10:26:41 -0400
commit5bd9d14fc14d9130d7d879800bd46e4ca08e3d5f (patch)
tree377e0401716f492b5dd29de016ed274f12790655 /src/portable
parent715c4dbbf8fe7c6bb83013df626a201928704b30 (diff)
stm32fsdev: set dcd_connect API definitions to strong, Modify documentation.
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
index b893ec05a..3cd35cca4 100644
--- a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
+++ b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
@@ -243,17 +243,17 @@ void dcd_init (uint8_t rhport)
// Data-line pull-up is left disconnected.
}
-// Define only on MCU with internal pull-up so BSP can override (needed on MCU without internal pull-up)
+// Define only on MCU with internal pull-up. BSP can define on MCU without internal PU.
#if defined(USB_BCDR_DPPU)
-TU_ATTR_WEAK
+// Disable internal D+ PU
void dcd_disconnect(uint8_t rhport)
{
(void) rhport;
USB->BCDR &= ~(USB_BCDR_DPPU);
}
-TU_ATTR_WEAK
+// Enable internal D+ PU
void dcd_connect(uint8_t rhport)
{
(void) rhport;