summaryrefslogtreecommitdiff
path: root/src/portable
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-11-28 11:46:36 +0700
committerhathach <[email protected]>2019-11-28 11:46:36 +0700
commit6bc245cb36cd18543916516a91def1f1e3a04e66 (patch)
tree3ab7311768fa5ed86e98b1e2a6d7a0312adf656c /src/portable
parent40b454cf28e5a86dac8d261f1276ace108446ffe (diff)
add dcd_edpt0_status_complete() which is useful for several mcu port
Diffstat (limited to 'src/portable')
-rw-r--r--src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
index ec182960e..7ba9481ba 100644
--- a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
+++ b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
@@ -296,6 +296,8 @@ void dcd_int_disable(uint8_t rhport)
void dcd_set_address(uint8_t rhport, uint8_t dev_addr)
{
(void)rhport;
+
+ // FIXME use dcd_edpt0_status_complete()
// We cannot immediatly change it; it must be queued to change after the STATUS packet is sent.
// (CTR handler will actually change the address once it sees that the transmission is complete)
newDADDR = dev_addr;