USB Device for NUCLEO-F103RB, STM32F103C8T6 and Maple Mini boards
Dependents: MapleMini_USBSerial STM32F103C8T6_USBKeyboard firstDelta STM32F103C8T6_USBSerial ... more
Fork of L152RE_USBDevice by
Diff: USBDevice/USBHAL_STM32F1.cpp
- Revision:
- 68:944679d2de75
- Parent:
- 65:48fe9050cb4a
diff -r c86eab438152 -r 944679d2de75 USBDevice/USBHAL_STM32F1.cpp --- a/USBDevice/USBHAL_STM32F1.cpp Wed Dec 14 21:16:38 2016 +0000 +++ b/USBDevice/USBHAL_STM32F1.cpp Fri Feb 01 10:52:52 2019 +0000 @@ -46,13 +46,13 @@ } void HAL_PCD_MspInit(PCD_HandleTypeDef* hpcd) { - __USB_CLK_ENABLE(); + __HAL_RCC_USB_CLK_ENABLE(); HAL_NVIC_SetPriority(USB_LP_IRQn, 0, 0); HAL_NVIC_EnableIRQ(USB_LP_IRQn); } void HAL_PCD_MspDeInit(PCD_HandleTypeDef* hpcd) { - __USB_CLK_DISABLE(); // Peripheral clock disable + __HAL_RCC_USB_CLK_DISABLE(); // Peripheral clock disable HAL_NVIC_DisableIRQ(USB_LP_IRQn); // Peripheral interrupt Deinit }