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:
authorDmitry Filimonchuk <dmitrystu@gmail.com>2022-06-05 12:20:34 +0300
committerGitHub <noreply@github.com>2022-06-05 12:20:34 +0300
commit624dbab1c5e2d4484d63320a5767e9d18be52068 (patch)
tree66b173653811d91ec810a9b8297f82d6b502a7ea
parent6a88ec4d7709ca8605b5ec3e609057c330ca2a70 (diff)
parentad265895ea22a261ba52c2ff807b9a86e44b1913 (diff)
Merge pull request #112 from vvg77ripe/master
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