Commit 9a069a55 authored by Thomas Stranger's avatar Thomas Stranger Committed by Kumar Gala
Browse files

stm32cube: add missing include guards for stm32g0xx_hal_hcd.h



The content of stm32g0xx_hal_hcd.h should be included only
on devices where the usb peripheral is available,
but this is not the case in STM32CubeG0 v1.4.0 release.
This commit fixes that issue.

Signed-off-by: default avatarThomas Stranger <thomas.stranger@outlook.com>
parent 0cdf4292
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -39,5 +39,6 @@ Patch List:
   *Changes from official delivery:
    -dos2unix applied
    -trailing white spaces removed
    -added include guards to stm32g0xx_hal_hcd.h(STM32CubeG0 GH issue: 13)

   See release_note.html from STM32Cube
+2 −2
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ extern "C" {
/* Includes ------------------------------------------------------------------*/
#include "stm32g0xx_ll_usb.h"


#if defined (USB_DRD_FS)
/** @addtogroup STM32G0xx_HAL_Driver
  * @{
  */
@@ -487,7 +487,7 @@ HAL_StatusTypeDef HAL_HCD_PMAReset(HCD_HandleTypeDef *hhcd);
 /**
  * @}
  */

#endif /* defined (USB_DRD_FS) */

#ifdef __cplusplus
}