The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Revision:
167:84c0a372a020
Parent:
143:86740a56073b
--- a/TARGET_DISCO_L072CZ_LRWAN1/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_ll_comp.h	Fri Apr 20 11:08:29 2018 +0100
+++ b/TARGET_DISCO_L072CZ_LRWAN1/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_ll_comp.h	Fri May 11 16:51:14 2018 +0100
@@ -2,8 +2,6 @@
   ******************************************************************************
   * @file    stm32l0xx_ll_comp.h
   * @author  MCD Application Team
-  * @version V1.7.0
-  * @date    31-May-2016
   * @brief   Header file of COMP LL module.
   ******************************************************************************
   * @attention
@@ -285,7 +283,7 @@
 /**
   * @brief  Set window mode of a pair of comparators instances
   *         (2 consecutive COMP instances odd and even COMP<x> and COMP<x+1>).
-  * @rmtoll COMP1_CSR   COMP1WM         LL_COMP_SetCommonWindowMode
+  * @rmtoll COMP1_CSR COMP1WM       LL_COMP_SetCommonWindowMode
   * @param  COMPxy_COMMON Comparator common instance
   *         (can be set directly from CMSIS definition or by using helper macro @ref __LL_COMP_COMMON_INSTANCE() )
   * @param  WindowMode This parameter can be one of the following values:
@@ -301,7 +299,7 @@
 /**
   * @brief  Get window mode of a pair of comparators instances
   *         (2 consecutive COMP instances odd and even COMP<x> and COMP<x+1>).
-  * @rmtoll COMP1_CSR   COMP1WM         LL_COMP_GetCommonWindowMode
+  * @rmtoll COMP1_CSR COMP1WM       LL_COMP_GetCommonWindowMode
   * @param  COMPxy_COMMON Comparator common instance
   *         (can be set directly from CMSIS definition or by using helper macro @ref __LL_COMP_COMMON_INSTANCE() )
   * @retval Returned value can be one of the following values:
@@ -323,7 +321,7 @@
 
 /**
   * @brief  Set comparator instance operating mode to adjust power and speed.
-  * @rmtoll COMP2_CSR   COMP2SPEED      LL_COMP_SetPowerMode
+  * @rmtoll COMP2_CSR COMP2SPEED    LL_COMP_SetPowerMode
   * @param  COMPx Comparator instance
   * @param  PowerMode This parameter can be one of the following values:
   *         @arg @ref LL_COMP_POWERMODE_MEDIUMSPEED   (1)
@@ -340,7 +338,7 @@
 /**
   * @brief  Get comparator instance operating mode to adjust power and speed.
   * @note  Available only on COMP instance: COMP2.
-  * @rmtoll COMP2_CSR   COMP2SPEED      LL_COMP_GetPowerMode\n
+  * @rmtoll COMP2_CSR COMP2SPEED    LL_COMP_GetPowerMode\n
   * @param  COMPx Comparator instance
   * @retval Returned value can be one of the following values:
   *         @arg @ref LL_COMP_POWERMODE_MEDIUMSPEED   (1)
@@ -372,8 +370,8 @@
   *         of VrefInt): scaler bridge is based on VrefInt and requires
   *         to enable path from VrefInt (refer to literal
   *         SYSCFG_CFGR3_ENBUFLP_VREFINT_COMP).
-  * @rmtoll COMP2_CSR   COMP2INNSEL     LL_COMP_ConfigInputs\n
-  *         COMP2_CSR   COMP2INPSEL     LL_COMP_ConfigInputs
+  * @rmtoll COMP2_CSR COMP2INNSEL   LL_COMP_ConfigInputs\n
+  *         COMP2_CSR COMP2INPSEL   LL_COMP_ConfigInputs
   * @param  COMPx Comparator instance
   * @param  InputMinus This parameter can be one of the following values:
   *         @arg @ref LL_COMP_INPUT_MINUS_VREFINT
@@ -407,7 +405,7 @@
   * @brief  Set comparator input plus (non-inverting).
   * @note   Only COMP2 allows to set the input plus (non-inverting).
   *         For COMP1 it is always PA1 IO, except when Windows Mode is selected.
-  * @rmtoll COMP2_CSR   COMP2INPSEL     LL_COMP_SetInputPlus
+  * @rmtoll COMP2_CSR COMP2INPSEL    LL_COMP_SetInputPlus
   * @param  COMPx Comparator instance
   * @param  InputPlus This parameter can be one of the following values:
   *         @arg @ref LL_COMP_INPUT_PLUS_IO1 (1)
@@ -430,7 +428,7 @@
   * @brief  Get comparator input plus (non-inverting).
   * @note   Only COMP2 allows to set the input plus (non-inverting).
   *         For COMP1 it is always PA1 IO, except when Windows Mode is selected.
-  * @rmtoll COMP2_CSR   COMP2INPSEL     LL_COMP_GetInputPlus
+  * @rmtoll COMP2_CSR COMP2INPSEL    LL_COMP_GetInputPlus
   * @param  COMPx Comparator instance
   * @retval Returned value can be one of the following values:
   *         @arg @ref LL_COMP_INPUT_PLUS_IO1 (1)
@@ -458,8 +456,8 @@
   *         of VrefInt): scaler bridge is based on VrefInt and requires
   *         to enable path from VrefInt (refer to literal
   *         SYSCFG_CFGR3_ENBUFLP_VREFINT_COMP).
-  * @rmtoll COMP1_CSR   COMP1INNSEL     LL_COMP_SetInputMinus\n
-  *         COMP2_CSR   COMP2INNSEL     LL_COMP_SetInputMinus
+  * @rmtoll COMP1_CSR COMP1INNSEL    LL_COMP_SetInputMinus\n
+  *         COMP2_CSR COMP2INNSEL    LL_COMP_SetInputMinus
   * @param  COMPx Comparator instance
   * @param  InputMinus This parameter can be one of the following values:
   *         @arg @ref LL_COMP_INPUT_MINUS_VREFINT
@@ -484,8 +482,8 @@
   * @note   In case of comparator input selected to be connected to IO:
   *         GPIO pins are specific to each comparator instance.
   *         Refer to description of parameters or to reference manual.
-  * @rmtoll COMP1_CSR   COMP1INNSEL     LL_COMP_GetInputMinus\n
-  *         COMP2_CSR   COMP2INNSEL     LL_COMP_GetInputMinus
+  * @rmtoll COMP1_CSR COMP1INNSEL   LL_COMP_GetInputMinus\n
+  *         COMP2_CSR COMP2INNSEL   LL_COMP_GetInputMinus
   * @param  COMPx Comparator instance
   * @retval Returned value can be one of the following values:
   *         @arg @ref LL_COMP_INPUT_MINUS_VREFINT
@@ -514,9 +512,9 @@
 
 /**
   * @brief  Set comparator output LPTIM.
-  * @rmtoll COMP1_CSR   COMP1LPTIMIN1   LL_COMP_SetOutputLPTIM\n
-  *         COMP2_CSR   COMP2LPTIMIN1   LL_COMP_SetOutputLPTIM\n
-  *         COMP2_CSR   COMP2LPTIMIN2   LL_COMP_SetOutputLPTIM
+  * @rmtoll COMP1_CSR COMP1LPTIMIN1 LL_COMP_SetOutputLPTIM\n
+  *         COMP2_CSR COMP2LPTIMIN1 LL_COMP_SetOutputLPTIM\n
+  *         COMP2_CSR COMP2LPTIMIN2 LL_COMP_SetOutputLPTIM
   * @param  COMPx Comparator instance
   * @param  OutputLptim This parameter can be one of the following values:
   *         @arg @ref LL_COMP_OUTPUT_LPTIM1_IN1_COMP1 (*)
@@ -534,9 +532,9 @@
 
 /**
   * @brief  Get comparator output LPTIM.
-  * @rmtoll COMP1_CSR   COMP1LPTIMIN1   LL_COMP_GetOutputLPTIM\n
-  *         COMP2_CSR   COMP2LPTIMIN1   LL_COMP_GetOutputLPTIM\n
-  *         COMP2_CSR   COMP2LPTIMIN2   LL_COMP_GetOutputLPTIM
+  * @rmtoll COMP1_CSR COMP1LPTIMIN1 LL_COMP_GetOutputLPTIM\n
+  *         COMP2_CSR COMP2LPTIMIN1 LL_COMP_GetOutputLPTIM\n
+  *         COMP2_CSR COMP2LPTIMIN2 LL_COMP_GetOutputLPTIM
   * @param  COMPx Comparator instance
   * @retval Returned value can be one of the following values:
   *         @arg @ref LL_COMP_OUTPUT_LPTIM1_IN1_COMP1 (*)
@@ -591,8 +589,8 @@
   * @note   After enable from off state, comparator requires a delay
   *         to reach reach propagation delay specification.
   *         Refer to device datasheet, parameter "tSTART".
-  * @rmtoll COMP1_CSR   COMP1EN         LL_COMP_Enable\n
-  *         COMP2_CSR   COMP2EN         LL_COMP_Enable
+  * @rmtoll COMP1_CSR COMP1EN       LL_COMP_Enable\n
+  *         COMP2_CSR COMP2EN       LL_COMP_Enable
   * @param  COMPx Comparator instance
   * @retval None
   */
@@ -603,8 +601,8 @@
 
 /**
   * @brief  Disable comparator instance.
-  * @rmtoll COMP1_CSR   COMP1EN         LL_COMP_Disable\n
-  *         COMP2_CSR   COMP2EN         LL_COMP_Disable
+  * @rmtoll COMP1_CSR COMP1EN       LL_COMP_Disable\n
+  *         COMP2_CSR COMP2EN       LL_COMP_Disable
   * @param  COMPx Comparator instance
   * @retval None
   */
@@ -616,8 +614,8 @@
 /**
   * @brief  Get comparator enable state
   *         (0: COMP is disabled, 1: COMP is enabled)
-  * @rmtoll COMP1_CSR   COMP1EN         LL_COMP_IsEnabled\n
-  *         COMP2_CSR   COMP2EN         LL_COMP_IsEnabled
+  * @rmtoll COMP1_CSR COMP1EN        LL_COMP_IsEnabled\n
+  *         COMP2_CSR COMP2EN        LL_COMP_IsEnabled
   * @param  COMPx Comparator instance
   * @retval State of bit (1 or 0).
   */
@@ -630,8 +628,8 @@
   * @brief  Lock comparator instance.
   * @note   Once locked, comparator configuration can be accessed in read-only.
   * @note   The only way to unlock the comparator is a device hardware reset.
-  * @rmtoll COMP1_CSR   COMP1LOCK       LL_COMP_Lock\n
-  *         COMP2_CSR   COMP2LOCK       LL_COMP_Lock
+  * @rmtoll COMP1_CSR COMP1LOCK     LL_COMP_Lock\n
+  *         COMP2_CSR COMP2LOCK     LL_COMP_Lock
   * @param  COMPx Comparator instance
   * @retval None
   */
@@ -645,8 +643,8 @@
   *         (0: COMP is unlocked, 1: COMP is locked).
   * @note   Once locked, comparator configuration can be accessed in read-only.
   * @note   The only way to unlock the comparator is a device hardware reset.
-  * @rmtoll COMP1_CSR   COMP1LOCK       LL_COMP_IsLocked\n
-  *         COMP2_CSR   COMP2LOCK       LL_COMP_IsLocked
+  * @rmtoll COMP1_CSR COMP1LOCK     LL_COMP_IsLocked\n
+  *         COMP2_CSR COMP2LOCK     LL_COMP_IsLocked
   * @param  COMPx Comparator instance
   * @retval State of bit (1 or 0).
   */
@@ -669,8 +667,8 @@
   *            is at a lower voltage than the input minus
   *          - Comparator output is low when the input plus
   *            is at a higher voltage than the input minus
-  * @rmtoll COMP1_CSR   COMP1VALUE      LL_COMP_ReadOutputLevel\n
-  *         COMP2_CSR   COMP2VALUE      LL_COMP_ReadOutputLevel
+  * @rmtoll COMP1_CSR COMP1VALUE    LL_COMP_ReadOutputLevel\n
+  *         COMP2_CSR COMP2VALUE    LL_COMP_ReadOutputLevel
   * @param  COMPx Comparator instance
   * @retval Returned value can be one of the following values:
   *         @arg @ref LL_COMP_OUTPUT_LEVEL_LOW