my fork

Dependents:   Nucleo_blueNRG

Fork of mbed by mbed official

Committer:
filartrix
Date:
Wed Apr 08 14:12:53 2015 +0000
Revision:
97:4298809c7c9e
Parent:
90:cb3d968589d8
First reale BlueNRG module for nucleo 401 board

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 90:cb3d968589d8 1 /**
Kojto 90:cb3d968589d8 2 ******************************************************************************
Kojto 90:cb3d968589d8 3 * @file stm32l1xx_hal.h
Kojto 90:cb3d968589d8 4 * @author MCD Application Team
Kojto 90:cb3d968589d8 5 * @version V1.0.0
Kojto 90:cb3d968589d8 6 * @date 5-September-2014
Kojto 90:cb3d968589d8 7 * @brief This file contains all the functions prototypes for the HAL
Kojto 90:cb3d968589d8 8 * module driver.
Kojto 90:cb3d968589d8 9 ******************************************************************************
Kojto 90:cb3d968589d8 10 * @attention
Kojto 90:cb3d968589d8 11 *
Kojto 90:cb3d968589d8 12 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
Kojto 90:cb3d968589d8 13 *
Kojto 90:cb3d968589d8 14 * Redistribution and use in source and binary forms, with or without modification,
Kojto 90:cb3d968589d8 15 * are permitted provided that the following conditions are met:
Kojto 90:cb3d968589d8 16 * 1. Redistributions of source code must retain the above copyright notice,
Kojto 90:cb3d968589d8 17 * this list of conditions and the following disclaimer.
Kojto 90:cb3d968589d8 18 * 2. Redistributions in binary form must reproduce the above copyright notice,
Kojto 90:cb3d968589d8 19 * this list of conditions and the following disclaimer in the documentation
Kojto 90:cb3d968589d8 20 * and/or other materials provided with the distribution.
Kojto 90:cb3d968589d8 21 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Kojto 90:cb3d968589d8 22 * may be used to endorse or promote products derived from this software
Kojto 90:cb3d968589d8 23 * without specific prior written permission.
Kojto 90:cb3d968589d8 24 *
Kojto 90:cb3d968589d8 25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Kojto 90:cb3d968589d8 26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Kojto 90:cb3d968589d8 27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 90:cb3d968589d8 28 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Kojto 90:cb3d968589d8 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Kojto 90:cb3d968589d8 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Kojto 90:cb3d968589d8 31 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Kojto 90:cb3d968589d8 32 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Kojto 90:cb3d968589d8 33 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Kojto 90:cb3d968589d8 34 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 90:cb3d968589d8 35 *
Kojto 90:cb3d968589d8 36 ******************************************************************************
Kojto 90:cb3d968589d8 37 */
Kojto 90:cb3d968589d8 38
Kojto 90:cb3d968589d8 39 /* Define to prevent recursive inclusion -------------------------------------*/
Kojto 90:cb3d968589d8 40 #ifndef __STM32L1xx_HAL_H
Kojto 90:cb3d968589d8 41 #define __STM32L1xx_HAL_H
Kojto 90:cb3d968589d8 42
Kojto 90:cb3d968589d8 43 #ifdef __cplusplus
Kojto 90:cb3d968589d8 44 extern "C" {
Kojto 90:cb3d968589d8 45 #endif
Kojto 90:cb3d968589d8 46
Kojto 90:cb3d968589d8 47 /* Includes ------------------------------------------------------------------*/
Kojto 90:cb3d968589d8 48 #include "stm32l1xx_hal_conf.h"
Kojto 90:cb3d968589d8 49
Kojto 90:cb3d968589d8 50 /** @addtogroup STM32L1xx_HAL_Driver
Kojto 90:cb3d968589d8 51 * @{
Kojto 90:cb3d968589d8 52 */
Kojto 90:cb3d968589d8 53
Kojto 90:cb3d968589d8 54 /** @addtogroup HAL
Kojto 90:cb3d968589d8 55 * @{
Kojto 90:cb3d968589d8 56 */
Kojto 90:cb3d968589d8 57
Kojto 90:cb3d968589d8 58 /* Exported types ------------------------------------------------------------*/
Kojto 90:cb3d968589d8 59 /* Exported constants --------------------------------------------------------*/
Kojto 90:cb3d968589d8 60 /** @defgroup HAL_Exported_Constants HAL Exported Constants
Kojto 90:cb3d968589d8 61 * @{
Kojto 90:cb3d968589d8 62 */
Kojto 90:cb3d968589d8 63
Kojto 90:cb3d968589d8 64 /** @defgroup SYSCFG_Constants SYSCFG: SYStem ConFiG
Kojto 90:cb3d968589d8 65 * @{
Kojto 90:cb3d968589d8 66 */
Kojto 90:cb3d968589d8 67
Kojto 90:cb3d968589d8 68 /** @defgroup SYSCFG_BootMode Boot Mode
Kojto 90:cb3d968589d8 69 * @{
Kojto 90:cb3d968589d8 70 */
Kojto 90:cb3d968589d8 71
Kojto 90:cb3d968589d8 72 #define SYSCFG_BOOT_MAINFLASH ((uint32_t)0x00000000)
Kojto 90:cb3d968589d8 73 #define SYSCFG_BOOT_SYSTEMFLASH ((uint32_t)SYSCFG_MEMRMP_BOOT_MODE_0)
Kojto 90:cb3d968589d8 74 #if defined(FSMC_R_BASE)
Kojto 90:cb3d968589d8 75 #define SYSCFG_BOOT_FSMC ((uint32_t)SYSCFG_MEMRMP_BOOT_MODE_1)
Kojto 90:cb3d968589d8 76 #endif /* FSMC_R_BASE */
Kojto 90:cb3d968589d8 77 #define SYSCFG_BOOT_SRAM ((uint32_t)SYSCFG_MEMRMP_BOOT_MODE)
Kojto 90:cb3d968589d8 78
Kojto 90:cb3d968589d8 79 /**
Kojto 90:cb3d968589d8 80 * @}
Kojto 90:cb3d968589d8 81 */
Kojto 90:cb3d968589d8 82
Kojto 90:cb3d968589d8 83 /**
Kojto 90:cb3d968589d8 84 * @}
Kojto 90:cb3d968589d8 85 */
Kojto 90:cb3d968589d8 86
Kojto 90:cb3d968589d8 87 /** @defgroup RI_Constants RI: Routing Interface
Kojto 90:cb3d968589d8 88 * @{
Kojto 90:cb3d968589d8 89 */
Kojto 90:cb3d968589d8 90
Kojto 90:cb3d968589d8 91 /** @defgroup RI_InputCapture Input Capture
Kojto 90:cb3d968589d8 92 * @{
Kojto 90:cb3d968589d8 93 */
Kojto 90:cb3d968589d8 94
Kojto 90:cb3d968589d8 95 #define RI_INPUTCAPTURE_IC1 RI_ICR_IC1 /*!< Input Capture 1 */
Kojto 90:cb3d968589d8 96 #define RI_INPUTCAPTURE_IC2 RI_ICR_IC2 /*!< Input Capture 2 */
Kojto 90:cb3d968589d8 97 #define RI_INPUTCAPTURE_IC3 RI_ICR_IC3 /*!< Input Capture 3 */
Kojto 90:cb3d968589d8 98 #define RI_INPUTCAPTURE_IC4 RI_ICR_IC4 /*!< Input Capture 4 */
Kojto 90:cb3d968589d8 99
Kojto 90:cb3d968589d8 100 /**
Kojto 90:cb3d968589d8 101 * @}
Kojto 90:cb3d968589d8 102 */
Kojto 90:cb3d968589d8 103
Kojto 90:cb3d968589d8 104 /** @defgroup TIM_Select TIM Select
Kojto 90:cb3d968589d8 105 * @{
Kojto 90:cb3d968589d8 106 */
Kojto 90:cb3d968589d8 107
Kojto 90:cb3d968589d8 108 #define TIM_SELECT_NONE ((uint32_t)0x00000000) /*!< None selected */
Kojto 90:cb3d968589d8 109 #define TIM_SELECT_TIM2 ((uint32_t)RI_ICR_TIM_0) /*!< Timer 2 selected */
Kojto 90:cb3d968589d8 110 #define TIM_SELECT_TIM3 ((uint32_t)RI_ICR_TIM_1) /*!< Timer 3 selected */
Kojto 90:cb3d968589d8 111 #define TIM_SELECT_TIM4 ((uint32_t)RI_ICR_TIM) /*!< Timer 4 selected */
Kojto 90:cb3d968589d8 112
Kojto 90:cb3d968589d8 113 #define IS_RI_TIM(__TIM__) (((__TIM__) == TIM_SELECT_NONE) || \
Kojto 90:cb3d968589d8 114 ((__TIM__) == TIM_SELECT_TIM2) || \
Kojto 90:cb3d968589d8 115 ((__TIM__) == TIM_SELECT_TIM3) || \
Kojto 90:cb3d968589d8 116 ((__TIM__) == TIM_SELECT_TIM4))
Kojto 90:cb3d968589d8 117
Kojto 90:cb3d968589d8 118 /**
Kojto 90:cb3d968589d8 119 * @}
Kojto 90:cb3d968589d8 120 */
Kojto 90:cb3d968589d8 121
Kojto 90:cb3d968589d8 122 /** @defgroup RI_InputCaptureRouting Input Capture Routing
Kojto 90:cb3d968589d8 123 * @{
Kojto 90:cb3d968589d8 124 */
Kojto 90:cb3d968589d8 125 /* TIMx_IC1 TIMx_IC2 TIMx_IC3 TIMx_IC4 */
Kojto 90:cb3d968589d8 126 #define RI_INPUTCAPTUREROUTING_0 ((uint32_t)0x00000000) /* PA0 PA1 PA2 PA3 */
Kojto 90:cb3d968589d8 127 #define RI_INPUTCAPTUREROUTING_1 ((uint32_t)0x00000001) /* PA4 PA5 PA6 PA7 */
Kojto 90:cb3d968589d8 128 #define RI_INPUTCAPTUREROUTING_2 ((uint32_t)0x00000002) /* PA8 PA9 PA10 PA11 */
Kojto 90:cb3d968589d8 129 #define RI_INPUTCAPTUREROUTING_3 ((uint32_t)0x00000003) /* PA12 PA13 PA14 PA15 */
Kojto 90:cb3d968589d8 130 #define RI_INPUTCAPTUREROUTING_4 ((uint32_t)0x00000004) /* PC0 PC1 PC2 PC3 */
Kojto 90:cb3d968589d8 131 #define RI_INPUTCAPTUREROUTING_5 ((uint32_t)0x00000005) /* PC4 PC5 PC6 PC7 */
Kojto 90:cb3d968589d8 132 #define RI_INPUTCAPTUREROUTING_6 ((uint32_t)0x00000006) /* PC8 PC9 PC10 PC11 */
Kojto 90:cb3d968589d8 133 #define RI_INPUTCAPTUREROUTING_7 ((uint32_t)0x00000007) /* PC12 PC13 PC14 PC15 */
Kojto 90:cb3d968589d8 134 #define RI_INPUTCAPTUREROUTING_8 ((uint32_t)0x00000008) /* PD0 PD1 PD2 PD3 */
Kojto 90:cb3d968589d8 135 #define RI_INPUTCAPTUREROUTING_9 ((uint32_t)0x00000009) /* PD4 PD5 PD6 PD7 */
Kojto 90:cb3d968589d8 136 #define RI_INPUTCAPTUREROUTING_10 ((uint32_t)0x0000000A) /* PD8 PD9 PD10 PD11 */
Kojto 90:cb3d968589d8 137 #define RI_INPUTCAPTUREROUTING_11 ((uint32_t)0x0000000B) /* PD12 PD13 PD14 PD15 */
Kojto 90:cb3d968589d8 138 #define RI_INPUTCAPTUREROUTING_12 ((uint32_t)0x0000000C) /* PE0 PE1 PE2 PE3 */
Kojto 90:cb3d968589d8 139 #define RI_INPUTCAPTUREROUTING_13 ((uint32_t)0x0000000D) /* PE4 PE5 PE6 PE7 */
Kojto 90:cb3d968589d8 140 #define RI_INPUTCAPTUREROUTING_14 ((uint32_t)0x0000000E) /* PE8 PE9 PE10 PE11 */
Kojto 90:cb3d968589d8 141 #define RI_INPUTCAPTUREROUTING_15 ((uint32_t)0x0000000F) /* PE12 PE13 PE14 PE15 */
Kojto 90:cb3d968589d8 142
Kojto 90:cb3d968589d8 143 #define IS_RI_INPUTCAPTURE_ROUTING(__ROUTING__) (((__ROUTING__) == RI_INPUTCAPTUREROUTING_0) || \
Kojto 90:cb3d968589d8 144 ((__ROUTING__) == RI_INPUTCAPTUREROUTING_1) || \
Kojto 90:cb3d968589d8 145 ((__ROUTING__) == RI_INPUTCAPTUREROUTING_2) || \
Kojto 90:cb3d968589d8 146 ((__ROUTING__) == RI_INPUTCAPTUREROUTING_3) || \
Kojto 90:cb3d968589d8 147 ((__ROUTING__) == RI_INPUTCAPTUREROUTING_4) || \
Kojto 90:cb3d968589d8 148 ((__ROUTING__) == RI_INPUTCAPTUREROUTING_5) || \
Kojto 90:cb3d968589d8 149 ((__ROUTING__) == RI_INPUTCAPTUREROUTING_6) || \
Kojto 90:cb3d968589d8 150 ((__ROUTING__) == RI_INPUTCAPTUREROUTING_7) || \
Kojto 90:cb3d968589d8 151 ((__ROUTING__) == RI_INPUTCAPTUREROUTING_8) || \
Kojto 90:cb3d968589d8 152 ((__ROUTING__) == RI_INPUTCAPTUREROUTING_9) || \
Kojto 90:cb3d968589d8 153 ((__ROUTING__) == RI_INPUTCAPTUREROUTING_10) || \
Kojto 90:cb3d968589d8 154 ((__ROUTING__) == RI_INPUTCAPTUREROUTING_11) || \
Kojto 90:cb3d968589d8 155 ((__ROUTING__) == RI_INPUTCAPTUREROUTING_12) || \
Kojto 90:cb3d968589d8 156 ((__ROUTING__) == RI_INPUTCAPTUREROUTING_13) || \
Kojto 90:cb3d968589d8 157 ((__ROUTING__) == RI_INPUTCAPTUREROUTING_14) || \
Kojto 90:cb3d968589d8 158 ((__ROUTING__) == RI_INPUTCAPTUREROUTING_15))
Kojto 90:cb3d968589d8 159
Kojto 90:cb3d968589d8 160 /**
Kojto 90:cb3d968589d8 161 * @}
Kojto 90:cb3d968589d8 162 */
Kojto 90:cb3d968589d8 163
Kojto 90:cb3d968589d8 164 /** @defgroup RI_IOSwitch IO Switch
Kojto 90:cb3d968589d8 165 * @{
Kojto 90:cb3d968589d8 166 */
Kojto 90:cb3d968589d8 167 #define RI_ASCR1_REGISTER ((uint32_t)0x80000000)
Kojto 90:cb3d968589d8 168 /* ASCR1 I/O switch: bit 31 is set to '1' to indicate that the mask is in ASCR1 register */
Kojto 90:cb3d968589d8 169 #define RI_IOSWITCH_CH0 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_0)
Kojto 90:cb3d968589d8 170 #define RI_IOSWITCH_CH1 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_1)
Kojto 90:cb3d968589d8 171 #define RI_IOSWITCH_CH2 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_2)
Kojto 90:cb3d968589d8 172 #define RI_IOSWITCH_CH3 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_3)
Kojto 90:cb3d968589d8 173 #define RI_IOSWITCH_CH4 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_4)
Kojto 90:cb3d968589d8 174 #define RI_IOSWITCH_CH5 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_5)
Kojto 90:cb3d968589d8 175 #define RI_IOSWITCH_CH6 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_6)
Kojto 90:cb3d968589d8 176 #define RI_IOSWITCH_CH7 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_7)
Kojto 90:cb3d968589d8 177 #define RI_IOSWITCH_CH8 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_8)
Kojto 90:cb3d968589d8 178 #define RI_IOSWITCH_CH9 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_9)
Kojto 90:cb3d968589d8 179 #define RI_IOSWITCH_CH10 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_10)
Kojto 90:cb3d968589d8 180 #define RI_IOSWITCH_CH11 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_11)
Kojto 90:cb3d968589d8 181 #define RI_IOSWITCH_CH12 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_12)
Kojto 90:cb3d968589d8 182 #define RI_IOSWITCH_CH13 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_13)
Kojto 90:cb3d968589d8 183 #define RI_IOSWITCH_CH14 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_14)
Kojto 90:cb3d968589d8 184 #define RI_IOSWITCH_CH15 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_15)
Kojto 90:cb3d968589d8 185 #define RI_IOSWITCH_CH18 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_18)
Kojto 90:cb3d968589d8 186 #define RI_IOSWITCH_CH19 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_19)
Kojto 90:cb3d968589d8 187 #define RI_IOSWITCH_CH20 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_20)
Kojto 90:cb3d968589d8 188 #define RI_IOSWITCH_CH21 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_21)
Kojto 90:cb3d968589d8 189 #define RI_IOSWITCH_CH22 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_22)
Kojto 90:cb3d968589d8 190 #define RI_IOSWITCH_CH23 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_23)
Kojto 90:cb3d968589d8 191 #define RI_IOSWITCH_CH24 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_24)
Kojto 90:cb3d968589d8 192 #define RI_IOSWITCH_CH25 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_25)
Kojto 90:cb3d968589d8 193 #define RI_IOSWITCH_VCOMP ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_VCOMP) /* VCOMP (ADC channel 26) is an internal switch used to connect selected channel to COMP1 non inverting input */
Kojto 90:cb3d968589d8 194 #if defined (RI_ASCR2_CH1b) /* STM32L1 devices category Cat.4 and Cat.5 */
Kojto 90:cb3d968589d8 195 #define RI_IOSWITCH_CH27 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_27)
Kojto 90:cb3d968589d8 196 #define RI_IOSWITCH_CH28 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_28)
Kojto 90:cb3d968589d8 197 #define RI_IOSWITCH_CH29 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_29)
Kojto 90:cb3d968589d8 198 #define RI_IOSWITCH_CH30 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_30)
Kojto 90:cb3d968589d8 199 #define RI_IOSWITCH_CH31 ((uint32_t)RI_ASCR1_REGISTER | RI_ASCR1_CH_31)
Kojto 90:cb3d968589d8 200 #endif /* RI_ASCR2_CH1b */
Kojto 90:cb3d968589d8 201
Kojto 90:cb3d968589d8 202 /* ASCR2 IO switch: bit 31 is set to '0' to indicate that the mask is in ASCR2 register */
Kojto 90:cb3d968589d8 203 #define RI_IOSWITCH_GR10_1 ((uint32_t)RI_ASCR2_GR10_1)
Kojto 90:cb3d968589d8 204 #define RI_IOSWITCH_GR10_2 ((uint32_t)RI_ASCR2_GR10_2)
Kojto 90:cb3d968589d8 205 #define RI_IOSWITCH_GR10_3 ((uint32_t)RI_ASCR2_GR10_3)
Kojto 90:cb3d968589d8 206 #define RI_IOSWITCH_GR10_4 ((uint32_t)RI_ASCR2_GR10_4)
Kojto 90:cb3d968589d8 207 #define RI_IOSWITCH_GR6_1 ((uint32_t)RI_ASCR2_GR6_1)
Kojto 90:cb3d968589d8 208 #define RI_IOSWITCH_GR6_2 ((uint32_t)RI_ASCR2_GR6_2)
Kojto 90:cb3d968589d8 209 #define RI_IOSWITCH_GR5_1 ((uint32_t)RI_ASCR2_GR5_1)
Kojto 90:cb3d968589d8 210 #define RI_IOSWITCH_GR5_2 ((uint32_t)RI_ASCR2_GR5_2)
Kojto 90:cb3d968589d8 211 #define RI_IOSWITCH_GR5_3 ((uint32_t)RI_ASCR2_GR5_3)
Kojto 90:cb3d968589d8 212 #define RI_IOSWITCH_GR4_1 ((uint32_t)RI_ASCR2_GR4_1)
Kojto 90:cb3d968589d8 213 #define RI_IOSWITCH_GR4_2 ((uint32_t)RI_ASCR2_GR4_2)
Kojto 90:cb3d968589d8 214 #define RI_IOSWITCH_GR4_3 ((uint32_t)RI_ASCR2_GR4_3)
Kojto 90:cb3d968589d8 215 #if defined (RI_ASCR2_CH0b) /* STM32L1 devices category Cat.3, Cat.4 and Cat.5 */
Kojto 90:cb3d968589d8 216 #define RI_IOSWITCH_CH0b ((uint32_t)RI_ASCR2_CH0b)
Kojto 90:cb3d968589d8 217 #if defined (RI_ASCR2_CH1b) /* STM32L1 devices category Cat.4 and Cat.5 */
Kojto 90:cb3d968589d8 218 #define RI_IOSWITCH_CH1b ((uint32_t)RI_ASCR2_CH1b)
Kojto 90:cb3d968589d8 219 #define RI_IOSWITCH_CH2b ((uint32_t)RI_ASCR2_CH2b)
Kojto 90:cb3d968589d8 220 #define RI_IOSWITCH_CH3b ((uint32_t)RI_ASCR2_CH3b)
Kojto 90:cb3d968589d8 221 #define RI_IOSWITCH_CH6b ((uint32_t)RI_ASCR2_CH6b)
Kojto 90:cb3d968589d8 222 #define RI_IOSWITCH_CH7b ((uint32_t)RI_ASCR2_CH7b)
Kojto 90:cb3d968589d8 223 #define RI_IOSWITCH_CH8b ((uint32_t)RI_ASCR2_CH8b)
Kojto 90:cb3d968589d8 224 #define RI_IOSWITCH_CH9b ((uint32_t)RI_ASCR2_CH9b)
Kojto 90:cb3d968589d8 225 #define RI_IOSWITCH_CH10b ((uint32_t)RI_ASCR2_CH10b)
Kojto 90:cb3d968589d8 226 #define RI_IOSWITCH_CH11b ((uint32_t)RI_ASCR2_CH11b)
Kojto 90:cb3d968589d8 227 #define RI_IOSWITCH_CH12b ((uint32_t)RI_ASCR2_CH12b)
Kojto 90:cb3d968589d8 228 #endif /* RI_ASCR2_CH1b */
Kojto 90:cb3d968589d8 229 #define RI_IOSWITCH_GR6_3 ((uint32_t)RI_ASCR2_GR6_3)
Kojto 90:cb3d968589d8 230 #define RI_IOSWITCH_GR6_4 ((uint32_t)RI_ASCR2_GR6_4)
Kojto 90:cb3d968589d8 231 #endif /* RI_ASCR2_CH0b */
Kojto 90:cb3d968589d8 232
Kojto 90:cb3d968589d8 233
Kojto 90:cb3d968589d8 234 #if defined (RI_ASCR2_CH1b) /* STM32L1 devices category Cat.4 and Cat.5 */
Kojto 90:cb3d968589d8 235
Kojto 90:cb3d968589d8 236 #define IS_RI_IOSWITCH(__IOSWITCH__) (((__IOSWITCH__) == RI_IOSWITCH_CH0) || ((__IOSWITCH__) == RI_IOSWITCH_CH1) || \
Kojto 90:cb3d968589d8 237 ((__IOSWITCH__) == RI_IOSWITCH_CH2) || ((__IOSWITCH__) == RI_IOSWITCH_CH3) || \
Kojto 90:cb3d968589d8 238 ((__IOSWITCH__) == RI_IOSWITCH_CH4) || ((__IOSWITCH__) == RI_IOSWITCH_CH5) || \
Kojto 90:cb3d968589d8 239 ((__IOSWITCH__) == RI_IOSWITCH_CH6) || ((__IOSWITCH__) == RI_IOSWITCH_CH7) || \
Kojto 90:cb3d968589d8 240 ((__IOSWITCH__) == RI_IOSWITCH_CH8) || ((__IOSWITCH__) == RI_IOSWITCH_CH9) || \
Kojto 90:cb3d968589d8 241 ((__IOSWITCH__) == RI_IOSWITCH_CH10) || ((__IOSWITCH__) == RI_IOSWITCH_CH11) || \
Kojto 90:cb3d968589d8 242 ((__IOSWITCH__) == RI_IOSWITCH_CH12) || ((__IOSWITCH__) == RI_IOSWITCH_CH13) || \
Kojto 90:cb3d968589d8 243 ((__IOSWITCH__) == RI_IOSWITCH_CH14) || ((__IOSWITCH__) == RI_IOSWITCH_CH15) || \
Kojto 90:cb3d968589d8 244 ((__IOSWITCH__) == RI_IOSWITCH_CH18) || ((__IOSWITCH__) == RI_IOSWITCH_CH19) || \
Kojto 90:cb3d968589d8 245 ((__IOSWITCH__) == RI_IOSWITCH_CH20) || ((__IOSWITCH__) == RI_IOSWITCH_CH21) || \
Kojto 90:cb3d968589d8 246 ((__IOSWITCH__) == RI_IOSWITCH_CH22) || ((__IOSWITCH__) == RI_IOSWITCH_CH23) || \
Kojto 90:cb3d968589d8 247 ((__IOSWITCH__) == RI_IOSWITCH_CH24) || ((__IOSWITCH__) == RI_IOSWITCH_CH25) || \
Kojto 90:cb3d968589d8 248 ((__IOSWITCH__) == RI_IOSWITCH_VCOMP) || ((__IOSWITCH__) == RI_IOSWITCH_CH27) || \
Kojto 90:cb3d968589d8 249 ((__IOSWITCH__) == RI_IOSWITCH_CH28) || ((__IOSWITCH__) == RI_IOSWITCH_CH29) || \
Kojto 90:cb3d968589d8 250 ((__IOSWITCH__) == RI_IOSWITCH_CH30) || ((__IOSWITCH__) == RI_IOSWITCH_CH31) || \
Kojto 90:cb3d968589d8 251 ((__IOSWITCH__) == RI_IOSWITCH_GR10_1) || ((__IOSWITCH__) == RI_IOSWITCH_GR10_2) || \
Kojto 90:cb3d968589d8 252 ((__IOSWITCH__) == RI_IOSWITCH_GR10_3) || ((__IOSWITCH__) == RI_IOSWITCH_GR10_4) || \
Kojto 90:cb3d968589d8 253 ((__IOSWITCH__) == RI_IOSWITCH_GR6_1) || ((__IOSWITCH__) == RI_IOSWITCH_GR6_2) || \
Kojto 90:cb3d968589d8 254 ((__IOSWITCH__) == RI_IOSWITCH_GR6_3) || ((__IOSWITCH__) == RI_IOSWITCH_GR6_4) || \
Kojto 90:cb3d968589d8 255 ((__IOSWITCH__) == RI_IOSWITCH_GR5_1) || ((__IOSWITCH__) == RI_IOSWITCH_GR5_2) || \
Kojto 90:cb3d968589d8 256 ((__IOSWITCH__) == RI_IOSWITCH_GR5_3) || ((__IOSWITCH__) == RI_IOSWITCH_GR4_1) || \
Kojto 90:cb3d968589d8 257 ((__IOSWITCH__) == RI_IOSWITCH_GR4_2) || ((__IOSWITCH__) == RI_IOSWITCH_GR4_3) || \
Kojto 90:cb3d968589d8 258 ((__IOSWITCH__) == RI_IOSWITCH_CH0b) || ((__IOSWITCH__) == RI_IOSWITCH_CH1b) || \
Kojto 90:cb3d968589d8 259 ((__IOSWITCH__) == RI_IOSWITCH_CH2b) || ((__IOSWITCH__) == RI_IOSWITCH_CH3b) || \
Kojto 90:cb3d968589d8 260 ((__IOSWITCH__) == RI_IOSWITCH_CH6b) || ((__IOSWITCH__) == RI_IOSWITCH_CH7b) || \
Kojto 90:cb3d968589d8 261 ((__IOSWITCH__) == RI_IOSWITCH_CH8b) || ((__IOSWITCH__) == RI_IOSWITCH_CH9b) || \
Kojto 90:cb3d968589d8 262 ((__IOSWITCH__) == RI_IOSWITCH_CH10b) || ((__IOSWITCH__) == RI_IOSWITCH_CH11b) || \
Kojto 90:cb3d968589d8 263 ((__IOSWITCH__) == RI_IOSWITCH_CH12b))
Kojto 90:cb3d968589d8 264
Kojto 90:cb3d968589d8 265 #else /* !RI_ASCR2_CH1b */
Kojto 90:cb3d968589d8 266
Kojto 90:cb3d968589d8 267 #if defined (RI_ASCR2_CH0b) /* STM32L1 devices category Cat.3 */
Kojto 90:cb3d968589d8 268
Kojto 90:cb3d968589d8 269 #define IS_RI_IOSWITCH(__IOSWITCH__) (((__IOSWITCH__) == RI_IOSWITCH_CH0) || ((__IOSWITCH__) == RI_IOSWITCH_CH1) || \
Kojto 90:cb3d968589d8 270 ((__IOSWITCH__) == RI_IOSWITCH_CH2) || ((__IOSWITCH__) == RI_IOSWITCH_CH3) || \
Kojto 90:cb3d968589d8 271 ((__IOSWITCH__) == RI_IOSWITCH_CH4) || ((__IOSWITCH__) == RI_IOSWITCH_CH5) || \
Kojto 90:cb3d968589d8 272 ((__IOSWITCH__) == RI_IOSWITCH_CH6) || ((__IOSWITCH__) == RI_IOSWITCH_CH7) || \
Kojto 90:cb3d968589d8 273 ((__IOSWITCH__) == RI_IOSWITCH_CH8) || ((__IOSWITCH__) == RI_IOSWITCH_CH9) || \
Kojto 90:cb3d968589d8 274 ((__IOSWITCH__) == RI_IOSWITCH_CH10) || ((__IOSWITCH__) == RI_IOSWITCH_CH11) || \
Kojto 90:cb3d968589d8 275 ((__IOSWITCH__) == RI_IOSWITCH_CH12) || ((__IOSWITCH__) == RI_IOSWITCH_CH13) || \
Kojto 90:cb3d968589d8 276 ((__IOSWITCH__) == RI_IOSWITCH_CH14) || ((__IOSWITCH__) == RI_IOSWITCH_CH15) || \
Kojto 90:cb3d968589d8 277 ((__IOSWITCH__) == RI_IOSWITCH_CH18) || ((__IOSWITCH__) == RI_IOSWITCH_CH19) || \
Kojto 90:cb3d968589d8 278 ((__IOSWITCH__) == RI_IOSWITCH_CH20) || ((__IOSWITCH__) == RI_IOSWITCH_CH21) || \
Kojto 90:cb3d968589d8 279 ((__IOSWITCH__) == RI_IOSWITCH_CH22) || ((__IOSWITCH__) == RI_IOSWITCH_CH23) || \
Kojto 90:cb3d968589d8 280 ((__IOSWITCH__) == RI_IOSWITCH_CH24) || ((__IOSWITCH__) == RI_IOSWITCH_CH25) || \
Kojto 90:cb3d968589d8 281 ((__IOSWITCH__) == RI_IOSWITCH_VCOMP) || ((__IOSWITCH__) == RI_IOSWITCH_GR10_1) || \
Kojto 90:cb3d968589d8 282 ((__IOSWITCH__) == RI_IOSWITCH_GR10_2) || ((__IOSWITCH__) == RI_IOSWITCH_GR10_3) || \
Kojto 90:cb3d968589d8 283 ((__IOSWITCH__) == RI_IOSWITCH_GR10_4) || ((__IOSWITCH__) == RI_IOSWITCH_GR6_1) || \
Kojto 90:cb3d968589d8 284 ((__IOSWITCH__) == RI_IOSWITCH_GR6_2) || ((__IOSWITCH__) == RI_IOSWITCH_GR5_1) || \
Kojto 90:cb3d968589d8 285 ((__IOSWITCH__) == RI_IOSWITCH_GR5_2) || ((__IOSWITCH__) == RI_IOSWITCH_GR5_3) || \
Kojto 90:cb3d968589d8 286 ((__IOSWITCH__) == RI_IOSWITCH_GR4_1) || ((__IOSWITCH__) == RI_IOSWITCH_GR4_2) || \
Kojto 90:cb3d968589d8 287 ((__IOSWITCH__) == RI_IOSWITCH_GR4_3) || ((__IOSWITCH__) == RI_IOSWITCH_CH0b))
Kojto 90:cb3d968589d8 288
Kojto 90:cb3d968589d8 289 #else /* !RI_ASCR2_CH0b */ /* STM32L1 devices category Cat.1 and Cat.2 */
Kojto 90:cb3d968589d8 290
Kojto 90:cb3d968589d8 291 #define IS_RI_IOSWITCH(__IOSWITCH__) (((__IOSWITCH__) == RI_IOSWITCH_CH0) || ((__IOSWITCH__) == RI_IOSWITCH_CH1) || \
Kojto 90:cb3d968589d8 292 ((__IOSWITCH__) == RI_IOSWITCH_CH2) || ((__IOSWITCH__) == RI_IOSWITCH_CH3) || \
Kojto 90:cb3d968589d8 293 ((__IOSWITCH__) == RI_IOSWITCH_CH4) || ((__IOSWITCH__) == RI_IOSWITCH_CH5) || \
Kojto 90:cb3d968589d8 294 ((__IOSWITCH__) == RI_IOSWITCH_CH6) || ((__IOSWITCH__) == RI_IOSWITCH_CH7) || \
Kojto 90:cb3d968589d8 295 ((__IOSWITCH__) == RI_IOSWITCH_CH8) || ((__IOSWITCH__) == RI_IOSWITCH_CH9) || \
Kojto 90:cb3d968589d8 296 ((__IOSWITCH__) == RI_IOSWITCH_CH10) || ((__IOSWITCH__) == RI_IOSWITCH_CH11) || \
Kojto 90:cb3d968589d8 297 ((__IOSWITCH__) == RI_IOSWITCH_CH12) || ((__IOSWITCH__) == RI_IOSWITCH_CH13) || \
Kojto 90:cb3d968589d8 298 ((__IOSWITCH__) == RI_IOSWITCH_CH14) || ((__IOSWITCH__) == RI_IOSWITCH_CH15) || \
Kojto 90:cb3d968589d8 299 ((__IOSWITCH__) == RI_IOSWITCH_CH18) || ((__IOSWITCH__) == RI_IOSWITCH_CH19) || \
Kojto 90:cb3d968589d8 300 ((__IOSWITCH__) == RI_IOSWITCH_CH20) || ((__IOSWITCH__) == RI_IOSWITCH_CH21) || \
Kojto 90:cb3d968589d8 301 ((__IOSWITCH__) == RI_IOSWITCH_CH22) || ((__IOSWITCH__) == RI_IOSWITCH_CH23) || \
Kojto 90:cb3d968589d8 302 ((__IOSWITCH__) == RI_IOSWITCH_CH24) || ((__IOSWITCH__) == RI_IOSWITCH_CH25) || \
Kojto 90:cb3d968589d8 303 ((__IOSWITCH__) == RI_IOSWITCH_VCOMP) || ((__IOSWITCH__) == RI_IOSWITCH_GR10_1) || \
Kojto 90:cb3d968589d8 304 ((__IOSWITCH__) == RI_IOSWITCH_GR10_2) || ((__IOSWITCH__) == RI_IOSWITCH_GR10_3) || \
Kojto 90:cb3d968589d8 305 ((__IOSWITCH__) == RI_IOSWITCH_GR10_4) || ((__IOSWITCH__) == RI_IOSWITCH_GR6_1) || \
Kojto 90:cb3d968589d8 306 ((__IOSWITCH__) == RI_IOSWITCH_GR6_2) || ((__IOSWITCH__) == RI_IOSWITCH_GR5_1) || \
Kojto 90:cb3d968589d8 307 ((__IOSWITCH__) == RI_IOSWITCH_GR5_2) || ((__IOSWITCH__) == RI_IOSWITCH_GR5_3) || \
Kojto 90:cb3d968589d8 308 ((__IOSWITCH__) == RI_IOSWITCH_GR4_1) || ((__IOSWITCH__) == RI_IOSWITCH_GR4_2) || \
Kojto 90:cb3d968589d8 309 ((__IOSWITCH__) == RI_IOSWITCH_GR4_3))
Kojto 90:cb3d968589d8 310
Kojto 90:cb3d968589d8 311 #endif /* RI_ASCR2_CH0b */
Kojto 90:cb3d968589d8 312 #endif /* RI_ASCR2_CH1b */
Kojto 90:cb3d968589d8 313
Kojto 90:cb3d968589d8 314 /**
Kojto 90:cb3d968589d8 315 * @}
Kojto 90:cb3d968589d8 316 */
Kojto 90:cb3d968589d8 317
Kojto 90:cb3d968589d8 318 /** @defgroup RI_Pin PIN define
Kojto 90:cb3d968589d8 319 * @{
Kojto 90:cb3d968589d8 320 */
Kojto 90:cb3d968589d8 321 #define RI_PIN_0 ((uint16_t)0x0001) /*!< Pin 0 selected */
Kojto 90:cb3d968589d8 322 #define RI_PIN_1 ((uint16_t)0x0002) /*!< Pin 1 selected */
Kojto 90:cb3d968589d8 323 #define RI_PIN_2 ((uint16_t)0x0004) /*!< Pin 2 selected */
Kojto 90:cb3d968589d8 324 #define RI_PIN_3 ((uint16_t)0x0008) /*!< Pin 3 selected */
Kojto 90:cb3d968589d8 325 #define RI_PIN_4 ((uint16_t)0x0010) /*!< Pin 4 selected */
Kojto 90:cb3d968589d8 326 #define RI_PIN_5 ((uint16_t)0x0020) /*!< Pin 5 selected */
Kojto 90:cb3d968589d8 327 #define RI_PIN_6 ((uint16_t)0x0040) /*!< Pin 6 selected */
Kojto 90:cb3d968589d8 328 #define RI_PIN_7 ((uint16_t)0x0080) /*!< Pin 7 selected */
Kojto 90:cb3d968589d8 329 #define RI_PIN_8 ((uint16_t)0x0100) /*!< Pin 8 selected */
Kojto 90:cb3d968589d8 330 #define RI_PIN_9 ((uint16_t)0x0200) /*!< Pin 9 selected */
Kojto 90:cb3d968589d8 331 #define RI_PIN_10 ((uint16_t)0x0400) /*!< Pin 10 selected */
Kojto 90:cb3d968589d8 332 #define RI_PIN_11 ((uint16_t)0x0800) /*!< Pin 11 selected */
Kojto 90:cb3d968589d8 333 #define RI_PIN_12 ((uint16_t)0x1000) /*!< Pin 12 selected */
Kojto 90:cb3d968589d8 334 #define RI_PIN_13 ((uint16_t)0x2000) /*!< Pin 13 selected */
Kojto 90:cb3d968589d8 335 #define RI_PIN_14 ((uint16_t)0x4000) /*!< Pin 14 selected */
Kojto 90:cb3d968589d8 336 #define RI_PIN_15 ((uint16_t)0x8000) /*!< Pin 15 selected */
Kojto 90:cb3d968589d8 337 #define RI_PIN_ALL ((uint16_t)0xFFFF) /*!< All pins selected */
Kojto 90:cb3d968589d8 338
Kojto 90:cb3d968589d8 339 #define IS_RI_PIN(__PIN__) ((__PIN__) != (uint16_t)0x00)
Kojto 90:cb3d968589d8 340
Kojto 90:cb3d968589d8 341 /**
Kojto 90:cb3d968589d8 342 * @}
Kojto 90:cb3d968589d8 343 */
Kojto 90:cb3d968589d8 344
Kojto 90:cb3d968589d8 345 /**
Kojto 90:cb3d968589d8 346 * @}
Kojto 90:cb3d968589d8 347 */
Kojto 90:cb3d968589d8 348
Kojto 90:cb3d968589d8 349 /**
Kojto 90:cb3d968589d8 350 * @}
Kojto 90:cb3d968589d8 351 */
Kojto 90:cb3d968589d8 352
Kojto 90:cb3d968589d8 353 /* Exported macro ------------------------------------------------------------*/
Kojto 90:cb3d968589d8 354
Kojto 90:cb3d968589d8 355 /** @defgroup HAL_Exported_Macros HAL Exported Macros
Kojto 90:cb3d968589d8 356 * @{
Kojto 90:cb3d968589d8 357 */
Kojto 90:cb3d968589d8 358
Kojto 90:cb3d968589d8 359 /** @defgroup DBGMCU_Macros DBGMCU: Debug MCU
Kojto 90:cb3d968589d8 360 * @{
Kojto 90:cb3d968589d8 361 */
Kojto 90:cb3d968589d8 362
Kojto 90:cb3d968589d8 363 /** @defgroup DBGMCU_Freeze_Unfreeze Freeze Unfreeze Peripherals in Debug mode
Kojto 90:cb3d968589d8 364 * @brief Freeze/Unfreeze Peripherals in Debug mode
Kojto 90:cb3d968589d8 365 * @{
Kojto 90:cb3d968589d8 366 */
Kojto 90:cb3d968589d8 367
Kojto 90:cb3d968589d8 368 /**
Kojto 90:cb3d968589d8 369 * @brief TIM2 Peripherals Debug mode
Kojto 90:cb3d968589d8 370 */
Kojto 90:cb3d968589d8 371 #if defined (DBGMCU_APB1_FZ_DBG_TIM2_STOP)
Kojto 90:cb3d968589d8 372 #define __HAL_FREEZE_TIM2_DBGMCU() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM2_STOP)
Kojto 90:cb3d968589d8 373 #define __HAL_UNFREEZE_TIM2_DBGMCU() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM2_STOP)
Kojto 90:cb3d968589d8 374 #endif
Kojto 90:cb3d968589d8 375
Kojto 90:cb3d968589d8 376 /**
Kojto 90:cb3d968589d8 377 * @brief TIM3 Peripherals Debug mode
Kojto 90:cb3d968589d8 378 */
Kojto 90:cb3d968589d8 379 #if defined (DBGMCU_APB1_FZ_DBG_TIM3_STOP)
Kojto 90:cb3d968589d8 380 #define __HAL_FREEZE_TIM3_DBGMCU() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM3_STOP)
Kojto 90:cb3d968589d8 381 #define __HAL_UNFREEZE_TIM3_DBGMCU() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM3_STOP)
Kojto 90:cb3d968589d8 382 #endif
Kojto 90:cb3d968589d8 383
Kojto 90:cb3d968589d8 384 /**
Kojto 90:cb3d968589d8 385 * @brief TIM4 Peripherals Debug mode
Kojto 90:cb3d968589d8 386 */
Kojto 90:cb3d968589d8 387 #if defined (DBGMCU_APB1_FZ_DBG_TIM4_STOP)
Kojto 90:cb3d968589d8 388 #define __HAL_FREEZE_TIM4_DBGMCU() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM4_STOP)
Kojto 90:cb3d968589d8 389 #define __HAL_UNFREEZE_TIM4_DBGMCU() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM4_STOP)
Kojto 90:cb3d968589d8 390 #endif
Kojto 90:cb3d968589d8 391
Kojto 90:cb3d968589d8 392 /**
Kojto 90:cb3d968589d8 393 * @brief TIM5 Peripherals Debug mode
Kojto 90:cb3d968589d8 394 */
Kojto 90:cb3d968589d8 395 #if defined (DBGMCU_APB1_FZ_DBG_TIM5_STOP)
Kojto 90:cb3d968589d8 396 #define __HAL_FREEZE_TIM5_DBGMCU() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM5_STOP)
Kojto 90:cb3d968589d8 397 #define __HAL_UNFREEZE_TIM5_DBGMCU() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM5_STOP)
Kojto 90:cb3d968589d8 398 #endif
Kojto 90:cb3d968589d8 399
Kojto 90:cb3d968589d8 400 /**
Kojto 90:cb3d968589d8 401 * @brief TIM6 Peripherals Debug mode
Kojto 90:cb3d968589d8 402 */
Kojto 90:cb3d968589d8 403 #if defined (DBGMCU_APB1_FZ_DBG_TIM6_STOP)
Kojto 90:cb3d968589d8 404 #define __HAL_FREEZE_TIM6_DBGMCU() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM6_STOP)
Kojto 90:cb3d968589d8 405 #define __HAL_UNFREEZE_TIM6_DBGMCU() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM6_STOP)
Kojto 90:cb3d968589d8 406 #endif
Kojto 90:cb3d968589d8 407
Kojto 90:cb3d968589d8 408 /**
Kojto 90:cb3d968589d8 409 * @brief TIM7 Peripherals Debug mode
Kojto 90:cb3d968589d8 410 */
Kojto 90:cb3d968589d8 411 #if defined (DBGMCU_APB1_FZ_DBG_TIM7_STOP)
Kojto 90:cb3d968589d8 412 #define __HAL_FREEZE_TIM7_DBGMCU() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM7_STOP)
Kojto 90:cb3d968589d8 413 #define __HAL_UNFREEZE_TIM7_DBGMCU() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_TIM7_STOP)
Kojto 90:cb3d968589d8 414 #endif
Kojto 90:cb3d968589d8 415
Kojto 90:cb3d968589d8 416 /**
Kojto 90:cb3d968589d8 417 * @brief RTC Peripherals Debug mode
Kojto 90:cb3d968589d8 418 */
Kojto 90:cb3d968589d8 419 #if defined (DBGMCU_APB1_FZ_DBG_RTC_STOP)
Kojto 90:cb3d968589d8 420 #define __HAL_FREEZE_RTC_DBGMCU() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_RTC_STOP)
Kojto 90:cb3d968589d8 421 #define __HAL_UNFREEZE_RTC_DBGMCU() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_RTC_STOP)
Kojto 90:cb3d968589d8 422 #endif
Kojto 90:cb3d968589d8 423
Kojto 90:cb3d968589d8 424 /**
Kojto 90:cb3d968589d8 425 * @brief WWDG Peripherals Debug mode
Kojto 90:cb3d968589d8 426 */
Kojto 90:cb3d968589d8 427 #if defined (DBGMCU_APB1_FZ_DBG_WWDG_STOP)
Kojto 90:cb3d968589d8 428 #define __HAL_FREEZE_WWDG_DBGMCU() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_WWDG_STOP)
Kojto 90:cb3d968589d8 429 #define __HAL_UNFREEZE_WWDG_DBGMCU() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_WWDG_STOP)
Kojto 90:cb3d968589d8 430 #endif
Kojto 90:cb3d968589d8 431
Kojto 90:cb3d968589d8 432 /**
Kojto 90:cb3d968589d8 433 * @brief IWDG Peripherals Debug mode
Kojto 90:cb3d968589d8 434 */
Kojto 90:cb3d968589d8 435 #if defined (DBGMCU_APB1_FZ_DBG_IWDG_STOP)
Kojto 90:cb3d968589d8 436 #define __HAL_FREEZE_IWDG_DBGMCU() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_IWDG_STOP)
Kojto 90:cb3d968589d8 437 #define __HAL_UNFREEZE_IWDG_DBGMCU() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_IWDG_STOP)
Kojto 90:cb3d968589d8 438 #endif
Kojto 90:cb3d968589d8 439
Kojto 90:cb3d968589d8 440 /**
Kojto 90:cb3d968589d8 441 * @brief I2C1 Peripherals Debug mode
Kojto 90:cb3d968589d8 442 */
Kojto 90:cb3d968589d8 443 #if defined (DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT)
Kojto 90:cb3d968589d8 444 #define __HAL_FREEZE_I2C1_TIMEOUT_DBGMCU() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT)
Kojto 90:cb3d968589d8 445 #define __HAL_UNFREEZE_I2C1_TIMEOUT_DBGMCU() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT)
Kojto 90:cb3d968589d8 446 #endif
Kojto 90:cb3d968589d8 447
Kojto 90:cb3d968589d8 448 /**
Kojto 90:cb3d968589d8 449 * @brief I2C2 Peripherals Debug mode
Kojto 90:cb3d968589d8 450 */
Kojto 90:cb3d968589d8 451 #if defined (DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT)
Kojto 90:cb3d968589d8 452 #define __HAL_FREEZE_I2C2_TIMEOUT_DBGMCU() SET_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT)
Kojto 90:cb3d968589d8 453 #define __HAL_UNFREEZE_I2C2_TIMEOUT_DBGMCU() CLEAR_BIT(DBGMCU->APB1FZ, DBGMCU_APB1_FZ_DBG_I2C2_SMBUS_TIMEOUT)
Kojto 90:cb3d968589d8 454 #endif
Kojto 90:cb3d968589d8 455
Kojto 90:cb3d968589d8 456 /**
Kojto 90:cb3d968589d8 457 * @brief TIM9 Peripherals Debug mode
Kojto 90:cb3d968589d8 458 */
Kojto 90:cb3d968589d8 459 #if defined (DBGMCU_APB2_FZ_DBG_TIM9_STOP)
Kojto 90:cb3d968589d8 460 #define __HAL_FREEZE_TIM9_DBGMCU() SET_BIT(DBGMCU->APB2FZ, DBGMCU_APB2_FZ_DBG_TIM9_STOP)
Kojto 90:cb3d968589d8 461 #define __HAL_UNFREEZE_TIM9_DBGMCU() CLEAR_BIT(DBGMCU->APB2FZ, DBGMCU_APB2_FZ_DBG_TIM9_STOP)
Kojto 90:cb3d968589d8 462 #endif
Kojto 90:cb3d968589d8 463
Kojto 90:cb3d968589d8 464 /**
Kojto 90:cb3d968589d8 465 * @brief TIM10 Peripherals Debug mode
Kojto 90:cb3d968589d8 466 */
Kojto 90:cb3d968589d8 467 #if defined (DBGMCU_APB2_FZ_DBG_TIM10_STOP)
Kojto 90:cb3d968589d8 468 #define __HAL_FREEZE_TIM10_DBGMCU() SET_BIT(DBGMCU->APB2FZ, DBGMCU_APB2_FZ_DBG_TIM10_STOP)
Kojto 90:cb3d968589d8 469 #define __HAL_UNFREEZE_TIM10_DBGMCU() CLEAR_BIT(DBGMCU->APB2FZ, DBGMCU_APB2_FZ_DBG_TIM10_STOP)
Kojto 90:cb3d968589d8 470 #endif
Kojto 90:cb3d968589d8 471
Kojto 90:cb3d968589d8 472 /**
Kojto 90:cb3d968589d8 473 * @brief TIM11 Peripherals Debug mode
Kojto 90:cb3d968589d8 474 */
Kojto 90:cb3d968589d8 475 #if defined (DBGMCU_APB2_FZ_DBG_TIM11_STOP)
Kojto 90:cb3d968589d8 476 #define __HAL_FREEZE_TIM11_DBGMCU() SET_BIT(DBGMCU->APB2FZ, DBGMCU_APB2_FZ_DBG_TIM11_STOP)
Kojto 90:cb3d968589d8 477 #define __HAL_UNFREEZE_TIM11_DBGMCU() CLEAR_BIT(DBGMCU->APB2FZ, DBGMCU_APB2_FZ_DBG_TIM11_STOP)
Kojto 90:cb3d968589d8 478 #endif
Kojto 90:cb3d968589d8 479
Kojto 90:cb3d968589d8 480 /**
Kojto 90:cb3d968589d8 481 * @brief Enables or disables the output of internal reference voltage
Kojto 90:cb3d968589d8 482 * (VREFINT) on I/O pin.
Kojto 90:cb3d968589d8 483 * The VREFINT output can be routed to any I/O in group 3:
Kojto 90:cb3d968589d8 484 * - For Cat.1 and Cat.2 devices: CH8 (PB0) or CH9 (PB1).
Kojto 90:cb3d968589d8 485 * - For Cat.3 devices: CH8 (PB0), CH9 (PB1) or CH0b (PB2).
Kojto 90:cb3d968589d8 486 * - For Cat.4 and Cat.5 devices: CH8 (PB0), CH9 (PB1), CH0b (PB2),
Kojto 90:cb3d968589d8 487 * CH1b (PF11) or CH2b (PF12).
Kojto 90:cb3d968589d8 488 * Note: Comparator peripheral clock must be preliminarility enabled,
Kojto 90:cb3d968589d8 489 * either in COMP user function "HAL_COMP_MspInit()" (should be
Kojto 90:cb3d968589d8 490 * done if comparators are used) or by direct clock enable:
Kojto 90:cb3d968589d8 491 * Refer to macro "__COMP_CLK_ENABLE()".
Kojto 90:cb3d968589d8 492 * Note: In addition with this macro, Vrefint output buffer must be
Kojto 90:cb3d968589d8 493 * connected to the selected I/O pin. Refer to macro
Kojto 90:cb3d968589d8 494 * "__HAL_RI_IOSWITCH_CLOSE()".
Kojto 90:cb3d968589d8 495 * @note ENABLE: Internal reference voltage connected to I/O group 3
Kojto 90:cb3d968589d8 496 * @note DISABLE: Internal reference voltage disconnected from I/O group 3
Kojto 90:cb3d968589d8 497 * @retval None
Kojto 90:cb3d968589d8 498 */
Kojto 90:cb3d968589d8 499 #define __HAL_VREFINT_OUT_ENABLE() SET_BIT(COMP->CSR, COMP_CSR_VREFOUTEN)
Kojto 90:cb3d968589d8 500 #define __HAL_VREFINT_OUT_DISABLE() CLEAR_BIT(COMP->CSR, COMP_CSR_VREFOUTEN)
Kojto 90:cb3d968589d8 501
Kojto 90:cb3d968589d8 502 /**
Kojto 90:cb3d968589d8 503 * @}
Kojto 90:cb3d968589d8 504 */
Kojto 90:cb3d968589d8 505
Kojto 90:cb3d968589d8 506 /**
Kojto 90:cb3d968589d8 507 * @}
Kojto 90:cb3d968589d8 508 */
Kojto 90:cb3d968589d8 509
Kojto 90:cb3d968589d8 510 /** @defgroup SYSCFG_Macros SYSCFG: SYStem ConFiG
Kojto 90:cb3d968589d8 511 * @{
Kojto 90:cb3d968589d8 512 */
Kojto 90:cb3d968589d8 513
Kojto 90:cb3d968589d8 514 /** @defgroup SYSCFG_BootModeConfig Boot Mode Configuration
Kojto 90:cb3d968589d8 515 * @{
Kojto 90:cb3d968589d8 516 */
Kojto 90:cb3d968589d8 517
Kojto 90:cb3d968589d8 518 /**
Kojto 90:cb3d968589d8 519 * @brief Main Flash memory mapped at 0x00000000
Kojto 90:cb3d968589d8 520 */
Kojto 90:cb3d968589d8 521 #define __HAL_REMAPMEMORY_FLASH() CLEAR_BIT(SYSCFG->MEMRMP, SYSCFG_MEMRMP_MEM_MODE)
Kojto 90:cb3d968589d8 522
Kojto 90:cb3d968589d8 523 /** @brief System Flash memory mapped at 0x00000000
Kojto 90:cb3d968589d8 524 */
Kojto 90:cb3d968589d8 525 #define __HAL_REMAPMEMORY_SYSTEMFLASH() MODIFY_REG(SYSCFG->MEMRMP, SYSCFG_MEMRMP_MEM_MODE, SYSCFG_MEMRMP_MEM_MODE_0)
Kojto 90:cb3d968589d8 526
Kojto 90:cb3d968589d8 527 /** @brief Embedded SRAM mapped at 0x00000000
Kojto 90:cb3d968589d8 528 */
Kojto 90:cb3d968589d8 529 #define __HAL_REMAPMEMORY_SRAM() MODIFY_REG(SYSCFG->MEMRMP, SYSCFG_MEMRMP_MEM_MODE, SYSCFG_MEMRMP_MEM_MODE_0 | SYSCFG_MEMRMP_MEM_MODE_1)
Kojto 90:cb3d968589d8 530
Kojto 90:cb3d968589d8 531 #if defined(FSMC_R_BASE)
Kojto 90:cb3d968589d8 532 /** @brief FSMC Bank1 (NOR/PSRAM 1 and 2) mapped at 0x00000000
Kojto 90:cb3d968589d8 533 */
Kojto 90:cb3d968589d8 534 #define __HAL_REMAPMEMORY_FSMC() MODIFY_REG(SYSCFG->MEMRMP, SYSCFG_MEMRMP_MEM_MODE, SYSCFG_MEMRMP_MEM_MODE_1)
Kojto 90:cb3d968589d8 535
Kojto 90:cb3d968589d8 536 #endif /* FSMC_R_BASE */
Kojto 90:cb3d968589d8 537
Kojto 90:cb3d968589d8 538 /**
Kojto 90:cb3d968589d8 539 * @brief Returns the boot mode as configured by user.
Kojto 90:cb3d968589d8 540 * @retval The boot mode as configured by user. The returned value can be one
Kojto 90:cb3d968589d8 541 * of the following values:
Kojto 90:cb3d968589d8 542 * @arg SYSCFG_BOOT_MAINFLASH
Kojto 90:cb3d968589d8 543 * @arg SYSCFG_BOOT_SYSTEMFLASH
Kojto 90:cb3d968589d8 544 * @arg SYSCFG_BOOT_FSMC (available only for STM32L151xD, STM32L152xD & STM32L162xD)
Kojto 90:cb3d968589d8 545 * @arg SYSCFG_BOOT_SRAM
Kojto 90:cb3d968589d8 546 */
Kojto 90:cb3d968589d8 547 #define __HAL_SYSCFG_GET_BOOT_MODE() READ_BIT(SYSCFG->MEMRMP, SYSCFG_MEMRMP_BOOT_MODE)
Kojto 90:cb3d968589d8 548
Kojto 90:cb3d968589d8 549 /**
Kojto 90:cb3d968589d8 550 * @}
Kojto 90:cb3d968589d8 551 */
Kojto 90:cb3d968589d8 552
Kojto 90:cb3d968589d8 553 /** @defgroup SYSCFG_USBConfig USB DP line Configuration
Kojto 90:cb3d968589d8 554 * @{
Kojto 90:cb3d968589d8 555 */
Kojto 90:cb3d968589d8 556
Kojto 90:cb3d968589d8 557 /**
Kojto 90:cb3d968589d8 558 * @brief Control the internal pull-up on USB DP line.
Kojto 90:cb3d968589d8 559 */
Kojto 90:cb3d968589d8 560 #define __HAL_SYSCFG_USBPULLUP_ENABLE() SET_BIT(SYSCFG->PMC, SYSCFG_PMC_USB_PU)
Kojto 90:cb3d968589d8 561
Kojto 90:cb3d968589d8 562 #define __HAL_SYSCFG_USBPULLUP_DISABLE() CLEAR_BIT(SYSCFG->PMC, SYSCFG_PMC_USB_PU)
Kojto 90:cb3d968589d8 563
Kojto 90:cb3d968589d8 564 /**
Kojto 90:cb3d968589d8 565 * @}
Kojto 90:cb3d968589d8 566 */
Kojto 90:cb3d968589d8 567
Kojto 90:cb3d968589d8 568 /**
Kojto 90:cb3d968589d8 569 * @}
Kojto 90:cb3d968589d8 570 */
Kojto 90:cb3d968589d8 571
Kojto 90:cb3d968589d8 572 /** @defgroup RI_Macris RI: Routing Interface
Kojto 90:cb3d968589d8 573 * @{
Kojto 90:cb3d968589d8 574 */
Kojto 90:cb3d968589d8 575
Kojto 90:cb3d968589d8 576 /** @defgroup RI_InputCaputureConfig Input Capture configuration
Kojto 90:cb3d968589d8 577 * @{
Kojto 90:cb3d968589d8 578 */
Kojto 90:cb3d968589d8 579
Kojto 90:cb3d968589d8 580 /**
Kojto 90:cb3d968589d8 581 * @brief Configures the routing interface to map Input Capture 1 of TIMx to a selected I/O pin.
Kojto 90:cb3d968589d8 582 * @param __TIMSELECT__: Timer select.
Kojto 90:cb3d968589d8 583 * This parameter can be one of the following values:
Kojto 90:cb3d968589d8 584 * @arg TIM_SELECT_NONE: No timer selected and default Timer mapping is enabled.
Kojto 90:cb3d968589d8 585 * @arg TIM_SELECT_TIM2: Timer 2 Input Captures to be routed.
Kojto 90:cb3d968589d8 586 * @arg TIM_SELECT_TIM3: Timer 3 Input Captures to be routed.
Kojto 90:cb3d968589d8 587 * @arg TIM_SELECT_TIM4: Timer 4 Input Captures to be routed.
Kojto 90:cb3d968589d8 588 * @param __INPUT__: selects which pin to be routed to Input Capture.
Kojto 90:cb3d968589d8 589 * This parameter must be a value of @ref RI_InputCaptureRouting
Kojto 90:cb3d968589d8 590 * e.g.
Kojto 90:cb3d968589d8 591 * __HAL_RI_REMAP_INPUTCAPTURE1(TIM_SELECT_TIM2, RI_INPUTCAPTUREROUTING_1)
Kojto 90:cb3d968589d8 592 * allows routing of Input capture IC1 of TIM2 to PA4.
Kojto 90:cb3d968589d8 593 * For details about correspondence between RI_INPUTCAPTUREROUTING_x
Kojto 90:cb3d968589d8 594 * and I/O pins refer to the parameters' description in the header file
Kojto 90:cb3d968589d8 595 * or refer to the product reference manual.
Kojto 90:cb3d968589d8 596 * @note Input capture selection bits are not reset by this function.
Kojto 90:cb3d968589d8 597 * To reset input capture selection bits, use SYSCFG_RIDeInit() function.
Kojto 90:cb3d968589d8 598 * @note The I/O should be configured in alternate function mode (AF14) using
Kojto 90:cb3d968589d8 599 * GPIO_PinAFConfig() function.
Kojto 90:cb3d968589d8 600 * @retval None.
Kojto 90:cb3d968589d8 601 */
Kojto 90:cb3d968589d8 602 #define __HAL_RI_REMAP_INPUTCAPTURE1(__TIMSELECT__, __INPUT__) \
Kojto 90:cb3d968589d8 603 do {assert_param(IS_RI_TIM(__TIMSELECT__)); \
Kojto 90:cb3d968589d8 604 assert_param(IS_RI_INPUTCAPTURE_ROUTING(__INPUT__)); \
Kojto 90:cb3d968589d8 605 MODIFY_REG(RI->ICR, RI_ICR_TIM, (__TIMSELECT__)); \
Kojto 90:cb3d968589d8 606 SET_BIT(RI->ICR, RI_INPUTCAPTURE_IC1); \
Kojto 90:cb3d968589d8 607 MODIFY_REG(RI->ICR, RI_ICR_IC1OS, (__INPUT__) << POSITION_VAL(RI_ICR_IC1OS)); \
Kojto 90:cb3d968589d8 608 }while(0)
Kojto 90:cb3d968589d8 609
Kojto 90:cb3d968589d8 610 /**
Kojto 90:cb3d968589d8 611 * @brief Configures the routing interface to map Input Capture 2 of TIMx to a selected I/O pin.
Kojto 90:cb3d968589d8 612 * @param __TIMSELECT__: Timer select.
Kojto 90:cb3d968589d8 613 * This parameter can be one of the following values:
Kojto 90:cb3d968589d8 614 * @arg TIM_SELECT_NONE: No timer selected and default Timer mapping is enabled.
Kojto 90:cb3d968589d8 615 * @arg TIM_SELECT_TIM2: Timer 2 Input Captures to be routed.
Kojto 90:cb3d968589d8 616 * @arg TIM_SELECT_TIM3: Timer 3 Input Captures to be routed.
Kojto 90:cb3d968589d8 617 * @arg TIM_SELECT_TIM4: Timer 4 Input Captures to be routed.
Kojto 90:cb3d968589d8 618 * @param __INPUT__: selects which pin to be routed to Input Capture.
Kojto 90:cb3d968589d8 619 * This parameter must be a value of @ref RI_InputCaptureRouting
Kojto 90:cb3d968589d8 620 * @retval None.
Kojto 90:cb3d968589d8 621 */
Kojto 90:cb3d968589d8 622 #define __HAL_RI_REMAP_INPUTCAPTURE2(__TIMSELECT__, __INPUT__) \
Kojto 90:cb3d968589d8 623 do {assert_param(IS_RI_TIM(__TIMSELECT__)); \
Kojto 90:cb3d968589d8 624 assert_param(IS_RI_INPUTCAPTURE_ROUTING(__INPUT__)); \
Kojto 90:cb3d968589d8 625 MODIFY_REG(RI->ICR, RI_ICR_TIM, (__TIMSELECT__)); \
Kojto 90:cb3d968589d8 626 SET_BIT(RI->ICR, RI_INPUTCAPTURE_IC2); \
Kojto 90:cb3d968589d8 627 MODIFY_REG(RI->ICR, RI_ICR_IC2OS, (__INPUT__) << POSITION_VAL(RI_ICR_IC2OS)); \
Kojto 90:cb3d968589d8 628 }while(0)
Kojto 90:cb3d968589d8 629
Kojto 90:cb3d968589d8 630 /**
Kojto 90:cb3d968589d8 631 * @brief Configures the routing interface to map Input Capture 3 of TIMx to a selected I/O pin.
Kojto 90:cb3d968589d8 632 * @param __TIMSELECT__: Timer select.
Kojto 90:cb3d968589d8 633 * This parameter can be one of the following values:
Kojto 90:cb3d968589d8 634 * @arg TIM_SELECT_NONE: No timer selected and default Timer mapping is enabled.
Kojto 90:cb3d968589d8 635 * @arg TIM_SELECT_TIM2: Timer 2 Input Captures to be routed.
Kojto 90:cb3d968589d8 636 * @arg TIM_SELECT_TIM3: Timer 3 Input Captures to be routed.
Kojto 90:cb3d968589d8 637 * @arg TIM_SELECT_TIM4: Timer 4 Input Captures to be routed.
Kojto 90:cb3d968589d8 638 * @param __INPUT__: selects which pin to be routed to Input Capture.
Kojto 90:cb3d968589d8 639 * This parameter must be a value of @ref RI_InputCaptureRouting
Kojto 90:cb3d968589d8 640 * @retval None.
Kojto 90:cb3d968589d8 641 */
Kojto 90:cb3d968589d8 642 #define __HAL_RI_REMAP_INPUTCAPTURE3(__TIMSELECT__, __INPUT__) \
Kojto 90:cb3d968589d8 643 do {assert_param(IS_RI_TIM(__TIMSELECT__)); \
Kojto 90:cb3d968589d8 644 assert_param(IS_RI_INPUTCAPTURE_ROUTING(__INPUT__)); \
Kojto 90:cb3d968589d8 645 MODIFY_REG(RI->ICR, RI_ICR_TIM, (__TIMSELECT__)); \
Kojto 90:cb3d968589d8 646 SET_BIT(RI->ICR, RI_INPUTCAPTURE_IC3); \
Kojto 90:cb3d968589d8 647 MODIFY_REG(RI->ICR, RI_ICR_IC3OS, (__INPUT__) << POSITION_VAL(RI_ICR_IC3OS)); \
Kojto 90:cb3d968589d8 648 }while(0)
Kojto 90:cb3d968589d8 649
Kojto 90:cb3d968589d8 650 /**
Kojto 90:cb3d968589d8 651 * @brief Configures the routing interface to map Input Capture 4 of TIMx to a selected I/O pin.
Kojto 90:cb3d968589d8 652 * @param __TIMSELECT__: Timer select.
Kojto 90:cb3d968589d8 653 * This parameter can be one of the following values:
Kojto 90:cb3d968589d8 654 * @arg TIM_SELECT_NONE: No timer selected and default Timer mapping is enabled.
Kojto 90:cb3d968589d8 655 * @arg TIM_SELECT_TIM2: Timer 2 Input Captures to be routed.
Kojto 90:cb3d968589d8 656 * @arg TIM_SELECT_TIM3: Timer 3 Input Captures to be routed.
Kojto 90:cb3d968589d8 657 * @arg TIM_SELECT_TIM4: Timer 4 Input Captures to be routed.
Kojto 90:cb3d968589d8 658 * @param __INPUT__: selects which pin to be routed to Input Capture.
Kojto 90:cb3d968589d8 659 * This parameter must be a value of @ref RI_InputCaptureRouting
Kojto 90:cb3d968589d8 660 * @retval None.
Kojto 90:cb3d968589d8 661 */
Kojto 90:cb3d968589d8 662 #define __HAL_RI_REMAP_INPUTCAPTURE4(__TIMSELECT__, __INPUT__) \
Kojto 90:cb3d968589d8 663 do {assert_param(IS_RI_TIM(__TIMSELECT__)); \
Kojto 90:cb3d968589d8 664 assert_param(IS_RI_INPUTCAPTURE_ROUTING(__INPUT__)); \
Kojto 90:cb3d968589d8 665 MODIFY_REG(RI->ICR, RI_ICR_TIM, (__TIMSELECT__)); \
Kojto 90:cb3d968589d8 666 SET_BIT(RI->ICR, RI_INPUTCAPTURE_IC4); \
Kojto 90:cb3d968589d8 667 MODIFY_REG(RI->ICR, RI_ICR_IC4OS, (__INPUT__) << POSITION_VAL(RI_ICR_IC4OS)); \
Kojto 90:cb3d968589d8 668 }while(0)
Kojto 90:cb3d968589d8 669
Kojto 90:cb3d968589d8 670 /**
Kojto 90:cb3d968589d8 671 * @}
Kojto 90:cb3d968589d8 672 */
Kojto 90:cb3d968589d8 673
Kojto 90:cb3d968589d8 674 /** @defgroup RI_SwitchControlConfig Switch Control configuration
Kojto 90:cb3d968589d8 675 * @{
Kojto 90:cb3d968589d8 676 */
Kojto 90:cb3d968589d8 677
Kojto 90:cb3d968589d8 678 /**
Kojto 90:cb3d968589d8 679 * @brief Enable or disable the switch control mode.
Kojto 90:cb3d968589d8 680 * @note ENABLE: ADC analog switches closed if the corresponding
Kojto 90:cb3d968589d8 681 * I/O switch is also closed.
Kojto 90:cb3d968589d8 682 * When using COMP1, switch control mode must be enabled.
Kojto 90:cb3d968589d8 683 * @note DISABLE: ADC analog switches open or controlled by the ADC interface.
Kojto 90:cb3d968589d8 684 * When using the ADC for acquisition, switch control mode
Kojto 90:cb3d968589d8 685 * must be disabled.
Kojto 90:cb3d968589d8 686 * @note COMP1 comparator and ADC cannot be used at the same time since
Kojto 90:cb3d968589d8 687 * they share the ADC switch matrix.
Kojto 90:cb3d968589d8 688 * @retval None
Kojto 90:cb3d968589d8 689 */
Kojto 90:cb3d968589d8 690 #define __HAL_RI_SWITCHCONTROLMODE_ENABLE() SET_BIT(RI->ASCR1, RI_ASCR1_SCM)
Kojto 90:cb3d968589d8 691
Kojto 90:cb3d968589d8 692 #define __HAL_RI_SWITCHCONTROLMODE_DISABLE() CLEAR_BIT(RI->ASCR1, RI_ASCR1_SCM)
Kojto 90:cb3d968589d8 693
Kojto 90:cb3d968589d8 694 /*
Kojto 90:cb3d968589d8 695 * @brief Close or Open the routing interface Input Output switches.
Kojto 90:cb3d968589d8 696 * @param __IOSWITCH__: selects the I/O analog switch number.
Kojto 90:cb3d968589d8 697 * This parameter must be a value of @ref RI_IOSwitch
Kojto 90:cb3d968589d8 698 * @retval None
Kojto 90:cb3d968589d8 699 */
Kojto 90:cb3d968589d8 700 #define __HAL_RI_IOSWITCH_CLOSE(__IOSWITCH__) do { assert_param(IS_RI_IOSWITCH(__IOSWITCH__)); \
Kojto 90:cb3d968589d8 701 if ((__IOSWITCH__) >> 31 != 0 ) \
Kojto 90:cb3d968589d8 702 { \
Kojto 90:cb3d968589d8 703 SET_BIT(RI->ASCR1, (__IOSWITCH__) & 0x7FFFFFFF); \
Kojto 90:cb3d968589d8 704 } \
Kojto 90:cb3d968589d8 705 else \
Kojto 90:cb3d968589d8 706 { \
Kojto 90:cb3d968589d8 707 SET_BIT(RI->ASCR2, (__IOSWITCH__)); \
Kojto 90:cb3d968589d8 708 } \
Kojto 90:cb3d968589d8 709 }while(0)
Kojto 90:cb3d968589d8 710
Kojto 90:cb3d968589d8 711 #define __HAL_RI_IOSWITCH_OPEN(__IOSWITCH__) do { assert_param(IS_RI_IOSWITCH(__IOSWITCH__)); \
Kojto 90:cb3d968589d8 712 if ((__IOSWITCH__) >> 31 != 0 ) \
Kojto 90:cb3d968589d8 713 { \
Kojto 90:cb3d968589d8 714 CLEAR_BIT(RI->ASCR1, (__IOSWITCH__) & 0x7FFFFFFF); \
Kojto 90:cb3d968589d8 715 } \
Kojto 90:cb3d968589d8 716 else \
Kojto 90:cb3d968589d8 717 { \
Kojto 90:cb3d968589d8 718 CLEAR_BIT(RI->ASCR2, (__IOSWITCH__)); \
Kojto 90:cb3d968589d8 719 } \
Kojto 90:cb3d968589d8 720 }while(0)
Kojto 90:cb3d968589d8 721
Kojto 90:cb3d968589d8 722 #if defined (COMP_CSR_SW1)
Kojto 90:cb3d968589d8 723 /**
Kojto 90:cb3d968589d8 724 * @brief Close or open the internal switch COMP1_SW1.
Kojto 90:cb3d968589d8 725 * This switch connects I/O pin PC3 (can be used as ADC channel 13)
Kojto 90:cb3d968589d8 726 * and OPAMP3 ouput to ADC switch matrix (ADC channel VCOMP, channel
Kojto 90:cb3d968589d8 727 * 26) and COMP1 non-inverting input.
Kojto 90:cb3d968589d8 728 * Pin PC3 connection depends on another switch setting, refer to
Kojto 90:cb3d968589d8 729 * macro "__HAL_ADC_CHANNEL_SPEED_FAST()".
Kojto 90:cb3d968589d8 730 * @retval None.
Kojto 90:cb3d968589d8 731 */
Kojto 90:cb3d968589d8 732 #define __HAL_RI_SWITCH_COMP1_SW1_CLOSE() SET_BIT(COMP->CSR, COMP_CSR_SW1)
Kojto 90:cb3d968589d8 733
Kojto 90:cb3d968589d8 734 #define __HAL_RI_SWITCH_COMP1_SW1_OPEN() CLEAR_BIT(COMP->CSR, COMP_CSR_SW1)
Kojto 90:cb3d968589d8 735 #endif /* COMP_CSR_SW1 */
Kojto 90:cb3d968589d8 736
Kojto 90:cb3d968589d8 737 /**
Kojto 90:cb3d968589d8 738 * @}
Kojto 90:cb3d968589d8 739 */
Kojto 90:cb3d968589d8 740
Kojto 90:cb3d968589d8 741 /** @defgroup RI_HystConfig Hysteresis Activation and Deactivation
Kojto 90:cb3d968589d8 742 * @{
Kojto 90:cb3d968589d8 743 */
Kojto 90:cb3d968589d8 744
Kojto 90:cb3d968589d8 745 /**
Kojto 90:cb3d968589d8 746 * @brief Enable or disable Hysteresis of the input schmitt triger of Ports A
Kojto 90:cb3d968589d8 747 * When the I/Os are programmed in input mode by standard I/O port
Kojto 90:cb3d968589d8 748 * registers, the Schmitt trigger and the hysteresis are enabled by default.
Kojto 90:cb3d968589d8 749 * When hysteresis is disabled, it is possible to read the
Kojto 90:cb3d968589d8 750 * corresponding port with a trigger level of VDDIO/2.
Kojto 90:cb3d968589d8 751 * @param __IOPIN__ : Selects the pin(s) on which to enable or disable hysteresis.
Kojto 90:cb3d968589d8 752 * This parameter must be a value of @ref RI_Pin
Kojto 90:cb3d968589d8 753 * @retval None
Kojto 90:cb3d968589d8 754 */
Kojto 90:cb3d968589d8 755 #define __HAL_RI_HYSTERIS_PORTA_ON(__IOPIN__) do {assert_param(IS_RI_PIN(__IOPIN__)); \
Kojto 90:cb3d968589d8 756 CLEAR_BIT(RI->HYSCR1, (__IOPIN__)); \
Kojto 90:cb3d968589d8 757 } while(0)
Kojto 90:cb3d968589d8 758
Kojto 90:cb3d968589d8 759 #define __HAL_RI_HYSTERIS_PORTA_OFF(__IOPIN__) do {assert_param(IS_RI_PIN(__IOPIN__)); \
Kojto 90:cb3d968589d8 760 SET_BIT(RI->HYSCR1, (__IOPIN__)); \
Kojto 90:cb3d968589d8 761 } while(0)
Kojto 90:cb3d968589d8 762
Kojto 90:cb3d968589d8 763 /**
Kojto 90:cb3d968589d8 764 * @brief Enable or disable Hysteresis of the input schmitt triger of Ports B
Kojto 90:cb3d968589d8 765 * When the I/Os are programmed in input mode by standard I/O port
Kojto 90:cb3d968589d8 766 * registers, the Schmitt trigger and the hysteresis are enabled by default.
Kojto 90:cb3d968589d8 767 * When hysteresis is disabled, it is possible to read the
Kojto 90:cb3d968589d8 768 * corresponding port with a trigger level of VDDIO/2.
Kojto 90:cb3d968589d8 769 * @param __IOPIN__ : Selects the pin(s) on which to enable or disable hysteresis.
Kojto 90:cb3d968589d8 770 * This parameter must be a value of @ref RI_Pin
Kojto 90:cb3d968589d8 771 * @retval None
Kojto 90:cb3d968589d8 772 */
Kojto 90:cb3d968589d8 773 #define __HAL_RI_HYSTERIS_PORTB_ON(__IOPIN__) do {assert_param(IS_RI_PIN(__IOPIN__)); \
Kojto 90:cb3d968589d8 774 CLEAR_BIT(RI->HYSCR1, (__IOPIN__) << 16 ); \
Kojto 90:cb3d968589d8 775 } while(0)
Kojto 90:cb3d968589d8 776
Kojto 90:cb3d968589d8 777 #define __HAL_RI_HYSTERIS_PORTB_OFF(__IOPIN__) do {assert_param(IS_RI_PIN(__IOPIN__)); \
Kojto 90:cb3d968589d8 778 SET_BIT(RI->HYSCR1, (__IOPIN__) << 16 ); \
Kojto 90:cb3d968589d8 779 } while(0)
Kojto 90:cb3d968589d8 780
Kojto 90:cb3d968589d8 781 /**
Kojto 90:cb3d968589d8 782 * @brief Enable or disable Hysteresis of the input schmitt triger of Ports C
Kojto 90:cb3d968589d8 783 * When the I/Os are programmed in input mode by standard I/O port
Kojto 90:cb3d968589d8 784 * registers, the Schmitt trigger and the hysteresis are enabled by default.
Kojto 90:cb3d968589d8 785 * When hysteresis is disabled, it is possible to read the
Kojto 90:cb3d968589d8 786 * corresponding port with a trigger level of VDDIO/2.
Kojto 90:cb3d968589d8 787 * @param __IOPIN__ : Selects the pin(s) on which to enable or disable hysteresis.
Kojto 90:cb3d968589d8 788 * This parameter must be a value of @ref RI_Pin
Kojto 90:cb3d968589d8 789 * @retval None
Kojto 90:cb3d968589d8 790 */
Kojto 90:cb3d968589d8 791 #define __HAL_RI_HYSTERIS_PORTC_ON(__IOPIN__) do {assert_param(IS_RI_PIN(__IOPIN__)); \
Kojto 90:cb3d968589d8 792 CLEAR_BIT(RI->HYSCR2, (__IOPIN__)); \
Kojto 90:cb3d968589d8 793 } while(0)
Kojto 90:cb3d968589d8 794
Kojto 90:cb3d968589d8 795 #define __HAL_RI_HYSTERIS_PORTC_OFF(__IOPIN__) do {assert_param(IS_RI_PIN(__IOPIN__)); \
Kojto 90:cb3d968589d8 796 SET_BIT(RI->HYSCR2, (__IOPIN__)); \
Kojto 90:cb3d968589d8 797 } while(0)
Kojto 90:cb3d968589d8 798
Kojto 90:cb3d968589d8 799 /**
Kojto 90:cb3d968589d8 800 * @brief Enable or disable Hysteresis of the input schmitt triger of Ports D
Kojto 90:cb3d968589d8 801 * When the I/Os are programmed in input mode by standard I/O port
Kojto 90:cb3d968589d8 802 * registers, the Schmitt trigger and the hysteresis are enabled by default.
Kojto 90:cb3d968589d8 803 * When hysteresis is disabled, it is possible to read the
Kojto 90:cb3d968589d8 804 * corresponding port with a trigger level of VDDIO/2.
Kojto 90:cb3d968589d8 805 * @param __IOPIN__ : Selects the pin(s) on which to enable or disable hysteresis.
Kojto 90:cb3d968589d8 806 * This parameter must be a value of @ref RI_Pin
Kojto 90:cb3d968589d8 807 * @retval None
Kojto 90:cb3d968589d8 808 */
Kojto 90:cb3d968589d8 809 #define __HAL_RI_HYSTERIS_PORTD_ON(__IOPIN__) do {assert_param(IS_RI_PIN(__IOPIN__)); \
Kojto 90:cb3d968589d8 810 CLEAR_BIT(RI->HYSCR2, (__IOPIN__) << 16 ); \
Kojto 90:cb3d968589d8 811 } while(0)
Kojto 90:cb3d968589d8 812
Kojto 90:cb3d968589d8 813 #define __HAL_RI_HYSTERIS_PORTD_OFF(__IOPIN__) do {assert_param(IS_RI_PIN(__IOPIN__)); \
Kojto 90:cb3d968589d8 814 SET_BIT(RI->HYSCR2, (__IOPIN__) << 16 ); \
Kojto 90:cb3d968589d8 815 } while(0)
Kojto 90:cb3d968589d8 816
Kojto 90:cb3d968589d8 817 #if defined (GPIOE_BASE)
Kojto 90:cb3d968589d8 818
Kojto 90:cb3d968589d8 819 /**
Kojto 90:cb3d968589d8 820 * @brief Enable or disable Hysteresis of the input schmitt triger of Ports E
Kojto 90:cb3d968589d8 821 * When the I/Os are programmed in input mode by standard I/O port
Kojto 90:cb3d968589d8 822 * registers, the Schmitt trigger and the hysteresis are enabled by default.
Kojto 90:cb3d968589d8 823 * When hysteresis is disabled, it is possible to read the
Kojto 90:cb3d968589d8 824 * corresponding port with a trigger level of VDDIO/2.
Kojto 90:cb3d968589d8 825 * @param __IOPIN__ : Selects the pin(s) on which to enable or disable hysteresis.
Kojto 90:cb3d968589d8 826 * This parameter must be a value of @ref RI_Pin
Kojto 90:cb3d968589d8 827 * @retval None
Kojto 90:cb3d968589d8 828 */
Kojto 90:cb3d968589d8 829 #define __HAL_RI_HYSTERIS_PORTE_ON(__IOPIN__) do {assert_param(IS_RI_PIN(__IOPIN__)); \
Kojto 90:cb3d968589d8 830 CLEAR_BIT(RI->HYSCR3, (__IOPIN__)); \
Kojto 90:cb3d968589d8 831 } while(0)
Kojto 90:cb3d968589d8 832
Kojto 90:cb3d968589d8 833 #define __HAL_RI_HYSTERIS_PORTE_OFF(__IOPIN__) do {assert_param(IS_RI_PIN(__IOPIN__)); \
Kojto 90:cb3d968589d8 834 SET_BIT(RI->HYSCR3, (__IOPIN__)); \
Kojto 90:cb3d968589d8 835 } while(0)
Kojto 90:cb3d968589d8 836
Kojto 90:cb3d968589d8 837 #endif /* GPIOE_BASE */
Kojto 90:cb3d968589d8 838
Kojto 90:cb3d968589d8 839 #if defined(GPIOF_BASE) || defined(GPIOG_BASE)
Kojto 90:cb3d968589d8 840
Kojto 90:cb3d968589d8 841 /**
Kojto 90:cb3d968589d8 842 * @brief Enable or disable Hysteresis of the input schmitt triger of Ports F
Kojto 90:cb3d968589d8 843 * When the I/Os are programmed in input mode by standard I/O port
Kojto 90:cb3d968589d8 844 * registers, the Schmitt trigger and the hysteresis are enabled by default.
Kojto 90:cb3d968589d8 845 * When hysteresis is disabled, it is possible to read the
Kojto 90:cb3d968589d8 846 * corresponding port with a trigger level of VDDIO/2.
Kojto 90:cb3d968589d8 847 * @param __IOPIN__ : Selects the pin(s) on which to enable or disable hysteresis.
Kojto 90:cb3d968589d8 848 * This parameter must be a value of @ref RI_Pin
Kojto 90:cb3d968589d8 849 * @retval None
Kojto 90:cb3d968589d8 850 */
Kojto 90:cb3d968589d8 851 #define __HAL_RI_HYSTERIS_PORTF_ON(__IOPIN__) do {assert_param(IS_RI_PIN(__IOPIN__)); \
Kojto 90:cb3d968589d8 852 CLEAR_BIT(RI->HYSCR3, (__IOPIN__) << 16 ); \
Kojto 90:cb3d968589d8 853 } while(0)
Kojto 90:cb3d968589d8 854
Kojto 90:cb3d968589d8 855 #define __HAL_RI_HYSTERIS_PORTF_OFF(__IOPIN__) do {assert_param(IS_RI_PIN(__IOPIN__)); \
Kojto 90:cb3d968589d8 856 SET_BIT(RI->HYSCR3, (__IOPIN__) << 16 ); \
Kojto 90:cb3d968589d8 857 } while(0)
Kojto 90:cb3d968589d8 858
Kojto 90:cb3d968589d8 859 /**
Kojto 90:cb3d968589d8 860 * @brief Enable or disable Hysteresis of the input schmitt triger of Ports G
Kojto 90:cb3d968589d8 861 * When the I/Os are programmed in input mode by standard I/O port
Kojto 90:cb3d968589d8 862 * registers, the Schmitt trigger and the hysteresis are enabled by default.
Kojto 90:cb3d968589d8 863 * When hysteresis is disabled, it is possible to read the
Kojto 90:cb3d968589d8 864 * corresponding port with a trigger level of VDDIO/2.
Kojto 90:cb3d968589d8 865 * @param __IOPIN__ : Selects the pin(s) on which to enable or disable hysteresis.
Kojto 90:cb3d968589d8 866 * This parameter must be a value of @ref RI_Pin
Kojto 90:cb3d968589d8 867 * @retval None
Kojto 90:cb3d968589d8 868 */
Kojto 90:cb3d968589d8 869 #define __HAL_RI_HYSTERIS_PORTG_ON(__IOPIN__) do {assert_param(IS_RI_PIN(__IOPIN__)); \
Kojto 90:cb3d968589d8 870 CLEAR_BIT(RI->HYSCR4, (__IOPIN__)); \
Kojto 90:cb3d968589d8 871 } while(0)
Kojto 90:cb3d968589d8 872
Kojto 90:cb3d968589d8 873 #define __HAL_RI_HYSTERIS_PORTG_OFF(__IOPIN__) do {assert_param(IS_RI_PIN(__IOPIN__)); \
Kojto 90:cb3d968589d8 874 SET_BIT(RI->HYSCR4, (__IOPIN__)); \
Kojto 90:cb3d968589d8 875 } while(0)
Kojto 90:cb3d968589d8 876
Kojto 90:cb3d968589d8 877 #endif /* GPIOF_BASE || GPIOG_BASE */
Kojto 90:cb3d968589d8 878
Kojto 90:cb3d968589d8 879 /**
Kojto 90:cb3d968589d8 880 * @}
Kojto 90:cb3d968589d8 881 */
Kojto 90:cb3d968589d8 882
Kojto 90:cb3d968589d8 883 /**
Kojto 90:cb3d968589d8 884 * @}
Kojto 90:cb3d968589d8 885 */
Kojto 90:cb3d968589d8 886
Kojto 90:cb3d968589d8 887 /**
Kojto 90:cb3d968589d8 888 * @}
Kojto 90:cb3d968589d8 889 */
Kojto 90:cb3d968589d8 890
Kojto 90:cb3d968589d8 891 /* Exported functions --------------------------------------------------------*/
Kojto 90:cb3d968589d8 892
Kojto 90:cb3d968589d8 893 /** @addtogroup HAL_Exported_Functions
Kojto 90:cb3d968589d8 894 * @{
Kojto 90:cb3d968589d8 895 */
Kojto 90:cb3d968589d8 896
Kojto 90:cb3d968589d8 897 /** @addtogroup HAL_Exported_Functions_Group1
Kojto 90:cb3d968589d8 898 * @{
Kojto 90:cb3d968589d8 899 */
Kojto 90:cb3d968589d8 900
Kojto 90:cb3d968589d8 901 /* Initialization and de-initialization functions ******************************/
Kojto 90:cb3d968589d8 902 HAL_StatusTypeDef HAL_Init(void);
Kojto 90:cb3d968589d8 903 HAL_StatusTypeDef HAL_DeInit(void);
Kojto 90:cb3d968589d8 904 void HAL_MspInit(void);
Kojto 90:cb3d968589d8 905 void HAL_MspDeInit(void);
Kojto 90:cb3d968589d8 906 HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority);
Kojto 90:cb3d968589d8 907
Kojto 90:cb3d968589d8 908 /**
Kojto 90:cb3d968589d8 909 * @}
Kojto 90:cb3d968589d8 910 */
Kojto 90:cb3d968589d8 911
Kojto 90:cb3d968589d8 912 /** @addtogroup HAL_Exported_Functions_Group2
Kojto 90:cb3d968589d8 913 * @{
Kojto 90:cb3d968589d8 914 */
Kojto 90:cb3d968589d8 915
Kojto 90:cb3d968589d8 916 /* Peripheral Control functions ************************************************/
Kojto 90:cb3d968589d8 917 void HAL_IncTick(void);
Kojto 90:cb3d968589d8 918 void HAL_Delay(__IO uint32_t Delay);
Kojto 90:cb3d968589d8 919 uint32_t HAL_GetTick(void);
Kojto 90:cb3d968589d8 920 void HAL_SuspendTick(void);
Kojto 90:cb3d968589d8 921 void HAL_ResumeTick(void);
Kojto 90:cb3d968589d8 922 uint32_t HAL_GetHalVersion(void);
Kojto 90:cb3d968589d8 923 uint32_t HAL_GetREVID(void);
Kojto 90:cb3d968589d8 924 uint32_t HAL_GetDEVID(void);
Kojto 90:cb3d968589d8 925 void HAL_EnableDBGSleepMode(void);
Kojto 90:cb3d968589d8 926 void HAL_DisableDBGSleepMode(void);
Kojto 90:cb3d968589d8 927 void HAL_EnableDBGStopMode(void);
Kojto 90:cb3d968589d8 928 void HAL_DisableDBGStopMode(void);
Kojto 90:cb3d968589d8 929 void HAL_EnableDBGStandbyMode(void);
Kojto 90:cb3d968589d8 930 void HAL_DisableDBGStandbyMode(void);
Kojto 90:cb3d968589d8 931
Kojto 90:cb3d968589d8 932 /**
Kojto 90:cb3d968589d8 933 * @}
Kojto 90:cb3d968589d8 934 */
Kojto 90:cb3d968589d8 935
Kojto 90:cb3d968589d8 936 /**
Kojto 90:cb3d968589d8 937 * @}
Kojto 90:cb3d968589d8 938 */
Kojto 90:cb3d968589d8 939
Kojto 90:cb3d968589d8 940
Kojto 90:cb3d968589d8 941 /**
Kojto 90:cb3d968589d8 942 * @}
Kojto 90:cb3d968589d8 943 */
Kojto 90:cb3d968589d8 944
Kojto 90:cb3d968589d8 945 /**
Kojto 90:cb3d968589d8 946 * @}
Kojto 90:cb3d968589d8 947 */
Kojto 90:cb3d968589d8 948
Kojto 90:cb3d968589d8 949 #ifdef __cplusplus
Kojto 90:cb3d968589d8 950 }
Kojto 90:cb3d968589d8 951 #endif
Kojto 90:cb3d968589d8 952
Kojto 90:cb3d968589d8 953 #endif /* __STM32L1xx_HAL_H */
Kojto 90:cb3d968589d8 954
Kojto 90:cb3d968589d8 955 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/