Skip to content

Commit

Permalink
libusb: fix pma_write for g4
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed May 2, 2024
1 parent 057fc32 commit 2a0bc2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libusb_stm32/src/usbd_stm32l433_devfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ static int32_t ep_read(uint8_t ep, void *buf, uint16_t blen) {
}

static void pma_write(const uint8_t *buf, uint16_t blen, pma_rec *tx) {
uint16_t *pma = (void*)(USB_PMAADDR + tx->addr);
volatile uint16_t *pma = (void*)(USB_PMAADDR + tx->addr);
tx->cnt = blen;
while (blen > 1) {
*pma++ = buf[1] << 8 | buf[0];
Expand Down

0 comments on commit 2a0bc2d

Please sign in to comment.