From a8693baa481e1c4d91379af08bbc9f459b1b4d56 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 10 Jan 2018 13:36:09 +0000 Subject: SPIv1 and SPIv2 circular mode added. Rework of RCC files and all dependencies inside STM32 drivers. Documentation fixes in some HAL modules. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11247 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c') diff --git a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c index 591c5f0c8..98b7fd74e 100644 --- a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c +++ b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c @@ -844,7 +844,7 @@ void usb_lld_start(USBDriver *usbp) { #else /* Workaround for the problem described here: http://forum.chibios.org/phpbb/viewtopic.php?f=16&t=1798.*/ - rccDisableOTG_HSULPI(true); + rccDisableOTG_HSULPI(); #endif /* Enables IRQ vector.*/ @@ -979,16 +979,16 @@ void usb_lld_stop(USBDriver *usbp) { #if STM32_USB_USE_OTG1 if (&USBD1 == usbp) { nvicDisableVector(STM32_OTG1_NUMBER); - rccDisableOTG_FS(false); + rccDisableOTG_FS(); } #endif #if STM32_USB_USE_OTG2 if (&USBD2 == usbp) { nvicDisableVector(STM32_OTG2_NUMBER); - rccDisableOTG_HS(false); + rccDisableOTG_HS(); #if defined(BOARD_OTG2_USES_ULPI) - rccDisableOTG_HSULPI(true) + rccDisableOTG_HSULPI() #endif } #endif -- cgit v1.2.3