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: Thomas Stranger <thomas.stranger@outlook.com>
This commit is contained in:
Thomas Stranger 2020-12-15 15:06:56 +01:00 committed by Kumar Gala
parent 0cdf42926c
commit 9a069a55bd
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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
}