mbed(SerialHalfDuplex入り)

Fork of mbed by mbed official

Revision:
92:4fc01daae5a5
Parent:
84:0b3ab51c8877
Child:
96:487b796308b0
diff -r 031413cf7a89 -r 4fc01daae5a5 TARGET_NUCLEO_L053R8/stm32l0xx_hal_rng.h
--- a/TARGET_NUCLEO_L053R8/stm32l0xx_hal_rng.h	Wed Oct 29 11:02:04 2014 +0000
+++ b/TARGET_NUCLEO_L053R8/stm32l0xx_hal_rng.h	Thu Nov 27 13:33:22 2014 +0000
@@ -2,8 +2,8 @@
   ******************************************************************************
   * @file    stm32l0xx_hal_rng.h
   * @author  MCD Application Team
-  * @version V1.0.0
-  * @date    22-April-2014
+  * @version V1.1.0
+  * @date    18-June-2014
   * @brief   Header file of RNG HAL module.
   ******************************************************************************
   * @attention
@@ -89,7 +89,7 @@
   * @{
   */
 
-/** @defgroup RNG_Interrupt_definition 
+/** @defgroup RNG_Interrupt_definition
   * @{
   */ 
 #define RNG_IT_CEI   ((uint32_t)0x20)  /*!< Clock error interrupt */
@@ -102,7 +102,7 @@
   */
 
 
-/** @defgroup RNG_Flag_definition 
+/** @defgroup RNG_Flag_definition
   * @{
   */ 
 #define RNG_FLAG_DRDY   ((uint32_t)0x0001)  /*!< Data ready                 */
@@ -156,7 +156,7 @@
   * @param  __FLAG__: RNG flag
   * @retval None
   */
-#define __HAL_RNG_CLEAR_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR) &= ~(__FLAG__))
+#define __HAL_RNG_CLEAR_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR) = ~(__FLAG__))
     
 /**
   * @brief  Enables the RNG interrupts.
@@ -168,7 +168,6 @@
 /**
   * @brief  Disables the RNG interrupts.
   * @param  __HANDLE__: RNG Handle
-  * @param  __INTERRUPT__: specifies the RNG interrupt source to check.
   *         This parameter can be one of the following values:
   *            @arg RNG_FLAG_DRDY:  Data ready interrupt
   *            @arg RNG_FLAG_CECS:  Clock error interrupt