Skip to content

Commit

Permalink
USB123 byte vs word memcopy bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexclewontin committed Dec 24, 2020
1 parent 395ec32 commit f61a553
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions os/hal/ports/NUMICRO/LLD/USBv1/usb_memcpy.S
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ offset_loop:
unaligned:
ldr r4, =0x40060000
ldr r5, [r4, #16]
movs r3, #128
lsls r3, r3, #3 /* USBD_ATTR_BYTEM_Msk */
orrs r5, r3
movs r7, #128
lsls r7, r7, #3 /* USBD_ATTR_BYTEM_Msk */
orrs r5, r7
str r5, [r4, #16]

unaligned_loop_top:
Expand Down

0 comments on commit f61a553

Please sign in to comment.