From 038f0a243d8041c832bb025d1ed0fd3a05e5f9ae Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 16 Nov 2015 11:02:30 +0000 Subject: Fixed bug bug #660. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8496 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/USBv1/usb_lld.c | 2 +- readme.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/os/hal/ports/STM32/LLD/USBv1/usb_lld.c b/os/hal/ports/STM32/LLD/USBv1/usb_lld.c index 3a97e123a..40a5664fb 100644 --- a/os/hal/ports/STM32/LLD/USBv1/usb_lld.c +++ b/os/hal/ports/STM32/LLD/USBv1/usb_lld.c @@ -525,7 +525,7 @@ void usb_lld_reset(USBDriver *usbp) { uint32_t cntr; /* Post reset initialization.*/ - STM32_USB->BTABLE = 0; + STM32_USB->BTABLE = BTABLE_ADDR; STM32_USB->ISTR = 0; STM32_USB->DADDR = DADDR_EF; cntr = /*CNTR_ESOFM | */ CNTR_RESETM | CNTR_SUSPM | diff --git a/readme.txt b/readme.txt index 3fe6a3d4c..6266a2b42 100644 --- a/readme.txt +++ b/readme.txt @@ -141,6 +141,8 @@ (backported to 3.0.3). - HAL: Fixed RTC module loses day of week when converting (bug #664) (backported to 3.0.3). +- HAL: Fixed STM32 USBv1 does not make use of BTABLE_ADDR define (bug #660) + (backported to 3.0.4 and 2.6.10). - HAL: Fixed invalid class type for sdPutWouldBlock() and sdGetWouldBlock() functions (bug #659)(backported to 3.0.3 and 2.6.10). - HAL: Fixed STM32F0xx HAL missing MCOPRE support (bug #658). -- cgit v1.2.3