fix LPC812 PWM
Fork of mbed-dev by
Diff: targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_iwdg.c
- Revision:
- 113:b3775bf36a83
- Parent:
- 0:9b334a45a8ff
--- a/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_iwdg.c Sun Apr 17 17:45:10 2016 +0100 +++ b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_iwdg.c Tue Apr 19 11:15:15 2016 +0100 @@ -2,8 +2,8 @@ ****************************************************************************** * @file stm32l0xx_hal_iwdg.c * @author MCD Application Team - * @version V1.2.0 - * @date 06-February-2015 + * @version V1.5.0 + * @date 8-January-2016 * @brief IWDG HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Independent Watchdog (IWDG) peripheral: @@ -84,7 +84,7 @@ ****************************************************************************** * @attention * - * <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2> + * <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: @@ -118,18 +118,24 @@ * @{ */ +#ifdef HAL_IWDG_MODULE_ENABLED + /** @addtogroup IWDG * @brief IWDG HAL module driver. * @{ */ -#ifdef HAL_IWDG_MODULE_ENABLED - +/** @addtogroup IWDG_Private + * @{ + */ /* TimeOut value */ #define HAL_IWDG_DEFAULT_TIMEOUT (uint32_t)1000 /* Local define used to check the SR status register */ #define IWDG_SR_FLAGS (IWDG_FLAG_PVU | IWDG_FLAG_RVU | IWDG_FLAG_WVU) +/** + * @} + */ /** @addtogroup IWDG_Exported_Functions * @{ @@ -187,6 +193,9 @@ if(hiwdg->State == HAL_IWDG_STATE_RESET) { + /* Allocate lock resource and initialize it */ + hiwdg->Lock = HAL_UNLOCKED; + /* Init the low level hardware */ HAL_IWDG_MspInit(hiwdg); } @@ -237,6 +246,9 @@ */ __weak void HAL_IWDG_MspInit(IWDG_HandleTypeDef *hiwdg) { + /* Prevent unused argument(s) compilation warning */ + UNUSED(hiwdg); + /* NOTE : This function Should not be modified, when the callback is needed, the HAL_IWDG_MspInit could be implemented in the user file */ @@ -396,11 +408,12 @@ * @} */ -#endif /* HAL_IWDG_MODULE_ENABLED */ /** * @} */ +#endif /* HAL_IWDG_MODULE_ENABLED */ + /** * @} */