mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

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

Committer:
mbed_official
Date:
Wed Jul 01 09:45:11 2015 +0100
Revision:
579:53297373a894
Parent:
489:119543c9f674
Synchronized with git revision d5b4d2ab9c47edb4dc5776e7177b0c2263459081

Full URL: https://github.com/mbedmicro/mbed/commit/d5b4d2ab9c47edb4dc5776e7177b0c2263459081/

Initial version of drivers for SAMR21

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 489:119543c9f674 1 /**
mbed_official 489:119543c9f674 2 ******************************************************************************
mbed_official 489:119543c9f674 3 * @file stm32l0xx_hal_lptim_ex.h
mbed_official 489:119543c9f674 4 * @author MCD Application Team
mbed_official 489:119543c9f674 5 * @version V1.2.0
mbed_official 489:119543c9f674 6 * @date 06-February-2015
mbed_official 489:119543c9f674 7 * @brief Header file of LPTIM Extended HAL module.
mbed_official 489:119543c9f674 8 ******************************************************************************
mbed_official 489:119543c9f674 9 * @attention
mbed_official 489:119543c9f674 10 *
mbed_official 489:119543c9f674 11 * <h2><center>&copy; COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
mbed_official 489:119543c9f674 12 *
mbed_official 489:119543c9f674 13 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 489:119543c9f674 14 * are permitted provided that the following conditions are met:
mbed_official 489:119543c9f674 15 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 489:119543c9f674 16 * this list of conditions and the following disclaimer.
mbed_official 489:119543c9f674 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 489:119543c9f674 18 * this list of conditions and the following disclaimer in the documentation
mbed_official 489:119543c9f674 19 * and/or other materials provided with the distribution.
mbed_official 489:119543c9f674 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 489:119543c9f674 21 * may be used to endorse or promote products derived from this software
mbed_official 489:119543c9f674 22 * without specific prior written permission.
mbed_official 489:119543c9f674 23 *
mbed_official 489:119543c9f674 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 489:119543c9f674 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 489:119543c9f674 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 489:119543c9f674 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 489:119543c9f674 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 489:119543c9f674 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 489:119543c9f674 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 489:119543c9f674 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 489:119543c9f674 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 489:119543c9f674 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 489:119543c9f674 34 *
mbed_official 489:119543c9f674 35 ******************************************************************************
mbed_official 489:119543c9f674 36 */
mbed_official 489:119543c9f674 37
mbed_official 489:119543c9f674 38 /* Define to prevent recursive inclusion -------------------------------------*/
mbed_official 489:119543c9f674 39 #ifndef __STM32L0xx_HAL_LPTIM_EX_H
mbed_official 489:119543c9f674 40 #define __STM32L0xx_HAL_LPTIM_EX_H
mbed_official 489:119543c9f674 41
mbed_official 489:119543c9f674 42 #ifdef __cplusplus
mbed_official 489:119543c9f674 43 extern "C" {
mbed_official 489:119543c9f674 44 #endif
mbed_official 489:119543c9f674 45
mbed_official 489:119543c9f674 46 /* Includes ------------------------------------------------------------------*/
mbed_official 489:119543c9f674 47 #include "stm32l0xx_hal_def.h"
mbed_official 489:119543c9f674 48
mbed_official 489:119543c9f674 49 /** @addtogroup STM32L0xx_HAL_Driver
mbed_official 489:119543c9f674 50 * @{
mbed_official 489:119543c9f674 51 */
mbed_official 489:119543c9f674 52
mbed_official 489:119543c9f674 53 /** @defgroup LPTIMEx LPTIMEx
mbed_official 489:119543c9f674 54 * @{
mbed_official 489:119543c9f674 55 */
mbed_official 489:119543c9f674 56
mbed_official 489:119543c9f674 57 /* Exported constants --------------------------------------------------------*/
mbed_official 489:119543c9f674 58
mbed_official 489:119543c9f674 59 /** @defgroup LPTIMEx_Exported_Constants LPTIM Extended Exported constants
mbed_official 489:119543c9f674 60 * @{
mbed_official 489:119543c9f674 61 */
mbed_official 489:119543c9f674 62
mbed_official 489:119543c9f674 63
mbed_official 489:119543c9f674 64 /** @defgroup LPTIM_Trigger_Source Trigger source
mbed_official 489:119543c9f674 65 * @{
mbed_official 489:119543c9f674 66 */
mbed_official 489:119543c9f674 67 #define LPTIM_TRIGSOURCE_SOFTWARE ((uint32_t)0x0000FFFF)
mbed_official 489:119543c9f674 68 #define LPTIM_TRIGSOURCE_0 ((uint32_t)0x00000000)
mbed_official 489:119543c9f674 69 #define LPTIM_TRIGSOURCE_1 ((uint32_t)LPTIM_CFGR_TRIGSEL_0)
mbed_official 489:119543c9f674 70 #define LPTIM_TRIGSOURCE_2 LPTIM_CFGR_TRIGSEL_1
mbed_official 489:119543c9f674 71 #define LPTIM_TRIGSOURCE_3 ((uint32_t)LPTIM_CFGR_TRIGSEL_0 | LPTIM_CFGR_TRIGSEL_1)
mbed_official 489:119543c9f674 72 #define LPTIM_TRIGSOURCE_4 LPTIM_CFGR_TRIGSEL_2
mbed_official 489:119543c9f674 73
mbed_official 489:119543c9f674 74 #if defined (STM32L083xx) || defined (STM32L082xx) || defined (STM32L081xx) || \
mbed_official 489:119543c9f674 75 defined (STM32L073xx) || defined (STM32L072xx) || defined (STM32L071xx)
mbed_official 489:119543c9f674 76 #define LPTIM_TRIGSOURCE_5 ((uint32_t)LPTIM_CFGR_TRIGSEL_0 | LPTIM_CFGR_TRIGSEL_2)
mbed_official 489:119543c9f674 77 #endif
mbed_official 489:119543c9f674 78
mbed_official 489:119543c9f674 79 #define LPTIM_TRIGSOURCE_6 ((uint32_t)LPTIM_CFGR_TRIGSEL_1 | LPTIM_CFGR_TRIGSEL_2)
mbed_official 489:119543c9f674 80 #define LPTIM_TRIGSOURCE_7 LPTIM_CFGR_TRIGSEL
mbed_official 489:119543c9f674 81 /**
mbed_official 489:119543c9f674 82 * @}
mbed_official 489:119543c9f674 83 */
mbed_official 489:119543c9f674 84
mbed_official 489:119543c9f674 85 #if defined (STM32L083xx) || defined (STM32L082xx) || defined (STM32L081xx) || \
mbed_official 489:119543c9f674 86 defined (STM32L073xx) || defined (STM32L072xx) || defined (STM32L071xx)
mbed_official 489:119543c9f674 87
mbed_official 489:119543c9f674 88 #define IS_LPTIM_TRG_SOURCE(__TRIG__) (((__TRIG__) == LPTIM_TRIGSOURCE_SOFTWARE) || \
mbed_official 489:119543c9f674 89 ((__TRIG__) == LPTIM_TRIGSOURCE_0) || \
mbed_official 489:119543c9f674 90 ((__TRIG__) == LPTIM_TRIGSOURCE_1) || \
mbed_official 489:119543c9f674 91 ((__TRIG__) == LPTIM_TRIGSOURCE_2) || \
mbed_official 489:119543c9f674 92 ((__TRIG__) == LPTIM_TRIGSOURCE_3) || \
mbed_official 489:119543c9f674 93 ((__TRIG__) == LPTIM_TRIGSOURCE_4) || \
mbed_official 489:119543c9f674 94 ((__TRIG__) == LPTIM_TRIGSOURCE_5) || \
mbed_official 489:119543c9f674 95 ((__TRIG__) == LPTIM_TRIGSOURCE_6) || \
mbed_official 489:119543c9f674 96 ((__TRIG__) == LPTIM_TRIGSOURCE_7))
mbed_official 489:119543c9f674 97 #else
mbed_official 489:119543c9f674 98 #define IS_LPTIM_TRG_SOURCE(__TRIG__) (((__TRIG__) == LPTIM_TRIGSOURCE_SOFTWARE) || \
mbed_official 489:119543c9f674 99 ((__TRIG__) == LPTIM_TRIGSOURCE_0) || \
mbed_official 489:119543c9f674 100 ((__TRIG__) == LPTIM_TRIGSOURCE_1) || \
mbed_official 489:119543c9f674 101 ((__TRIG__) == LPTIM_TRIGSOURCE_2) || \
mbed_official 489:119543c9f674 102 ((__TRIG__) == LPTIM_TRIGSOURCE_3) || \
mbed_official 489:119543c9f674 103 ((__TRIG__) == LPTIM_TRIGSOURCE_4) || \
mbed_official 489:119543c9f674 104 ((__TRIG__) == LPTIM_TRIGSOURCE_6) || \
mbed_official 489:119543c9f674 105 ((__TRIG__) == LPTIM_TRIGSOURCE_7))
mbed_official 489:119543c9f674 106 #endif
mbed_official 489:119543c9f674 107
mbed_official 489:119543c9f674 108 /**
mbed_official 489:119543c9f674 109 * @}
mbed_official 489:119543c9f674 110 */
mbed_official 489:119543c9f674 111
mbed_official 489:119543c9f674 112 /**
mbed_official 489:119543c9f674 113 * @}
mbed_official 489:119543c9f674 114 */
mbed_official 489:119543c9f674 115
mbed_official 489:119543c9f674 116 /**
mbed_official 489:119543c9f674 117 * @}
mbed_official 489:119543c9f674 118 */
mbed_official 489:119543c9f674 119
mbed_official 489:119543c9f674 120 #ifdef __cplusplus
mbed_official 489:119543c9f674 121 }
mbed_official 489:119543c9f674 122 #endif
mbed_official 489:119543c9f674 123
mbed_official 489:119543c9f674 124 #endif /* __STM32L0xx_HAL_LPTIM_EX_H */
mbed_official 489:119543c9f674 125
mbed_official 489:119543c9f674 126 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
mbed_official 489:119543c9f674 127