Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/flipperdevices/libusb_stm32.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasily Voropaev <vvg@cubitel.org>2022-06-03 14:07:04 +0300
committerVasily Voropaev <vvg@cubitel.org>2022-06-03 14:07:04 +0300
commitad265895ea22a261ba52c2ff807b9a86e44b1913 (patch)
tree66b173653811d91ec810a9b8297f82d6b502a7ea
parent6a88ec4d7709ca8605b5ec3e609057c330ca2a70 (diff)
Fix PMA offset in F103 ASM driver
-rw-r--r--src/usbd_stm32f103_devfs_asm.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usbd_stm32f103_devfs_asm.S b/src/usbd_stm32f103_devfs_asm.S
index 6481774..c6daba2 100644
--- a/src/usbd_stm32f103_devfs_asm.S
+++ b/src/usbd_stm32f103_devfs_asm.S
@@ -458,7 +458,7 @@ _ep_read:
strh r5, [r4, #RXCOUNT]
eors r0, r5 // r0 &= 0x3FF (RX count)
ldrh r5, [r4, #RXADDR]
- adds r5, r4, r5, LSL (EPT_SHIFT - 3)
+ adds r5, r6, r5, LSL (EPT_SHIFT - 3)
cmp r2, r0
blo .L_epr_read
mov r2, r0 // if buffer is larger