diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-10-30 09:16:59 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-10-30 09:16:59 +0000 |
commit | f0421aa779bab235a6298b6bd6535956884965ab (patch) | |
tree | 4e8cad310620b8583124d87668d5acc83a0d6f78 | |
parent | 8d1bc9441d7122f442803bfbdc675b6de48d8d25 (diff) | |
download | ChibiOS-f0421aa779bab235a6298b6bd6535956884965ab.tar.gz ChibiOS-f0421aa779bab235a6298b6bd6535956884965ab.tar.bz2 ChibiOS-f0421aa779bab235a6298b6bd6535956884965ab.zip |
Fixed bug #656.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8406 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/ports/STM32/LLD/USBv1/usb_lld.c | 2 | ||||
-rw-r--r-- | readme.txt | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/LLD/USBv1/usb_lld.c b/os/hal/ports/STM32/LLD/USBv1/usb_lld.c index c6ccc16da..3a97e123a 100644 --- a/os/hal/ports/STM32/LLD/USBv1/usb_lld.c +++ b/os/hal/ports/STM32/LLD/USBv1/usb_lld.c @@ -110,7 +110,7 @@ static uint32_t usb_pm_alloc(USBDriver *usbp, size_t size) { uint32_t next;
next = usbp->pmnext;
- usbp->pmnext += size;
+ usbp->pmnext += (size + 1) & ~1;
osalDbgAssert(usbp->pmnext <= STM32_USB_PMA_SIZE, "PMA overflow");
return next;
}
diff --git a/readme.txt b/readme.txt index 3e86fbb55..0c3341dc8 100644 --- a/readme.txt +++ b/readme.txt @@ -126,7 +126,9 @@ - HAL: Updated STM32F0xx headers to STM32CubeF0 version 1.3.0. Added support
for STM32F030xC, STM32F070x6, STM32F070xB, STM32F091xC,
STM32F098xx devices.
-- HAL: Fixed Wrong vector name for STM32F3xx EXTI33 (bug #655)(backported
+- HAL: Fixed STM32 USBv1 wrong buffer alignment (bug #656)(backported
+ to 3.0.3 and 2.6.10).
+- HAL: Fixed wrong vector name for STM32F3xx EXTI33 (bug #655)(backported
to 3.0.3 and 2.6.10).
- HAL: Fixed no demo for nucleo STM32F072RB board (bug #652).
- HAL: Fixed missing RCC and ISR definitions for STM32F0xx timers (bug #651)
|