mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
targets/TARGET_STM/TARGET_STM32L1/device/stm32l1xx_ll_bus.h@189:f392fc9709a3, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 22:31:08 2019 +0000
- Revision:
- 189:f392fc9709a3
- Parent:
- 184:08ed48f1de7f
mbed library release version 165
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 149:156823d33999 | 1 | /** |
<> | 149:156823d33999 | 2 | ****************************************************************************** |
<> | 149:156823d33999 | 3 | * @file stm32l1xx_ll_bus.h |
<> | 149:156823d33999 | 4 | * @author MCD Application Team |
<> | 149:156823d33999 | 5 | * @brief Header file of BUS LL module. |
<> | 149:156823d33999 | 6 | |
<> | 149:156823d33999 | 7 | @verbatim |
<> | 149:156823d33999 | 8 | ##### RCC Limitations ##### |
<> | 149:156823d33999 | 9 | ============================================================================== |
<> | 149:156823d33999 | 10 | [..] |
<> | 149:156823d33999 | 11 | A delay between an RCC peripheral clock enable and the effective peripheral |
<> | 149:156823d33999 | 12 | enabling should be taken into account in order to manage the peripheral read/write |
<> | 149:156823d33999 | 13 | from/to registers. |
<> | 149:156823d33999 | 14 | (+) This delay depends on the peripheral mapping. |
<> | 149:156823d33999 | 15 | (++) AHB & APB peripherals, 1 dummy read is necessary |
<> | 149:156823d33999 | 16 | |
<> | 149:156823d33999 | 17 | [..] |
<> | 149:156823d33999 | 18 | Workarounds: |
<> | 149:156823d33999 | 19 | (#) For AHB & APB peripherals, a dummy read to the peripheral register has been |
<> | 149:156823d33999 | 20 | inserted in each LL_{BUS}_GRP{x}_EnableClock() function. |
<> | 149:156823d33999 | 21 | |
<> | 149:156823d33999 | 22 | @endverbatim |
<> | 149:156823d33999 | 23 | ****************************************************************************** |
<> | 149:156823d33999 | 24 | * @attention |
<> | 149:156823d33999 | 25 | * |
AnnaBridge | 184:08ed48f1de7f | 26 | * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
<> | 149:156823d33999 | 27 | * |
<> | 149:156823d33999 | 28 | * Redistribution and use in source and binary forms, with or without modification, |
<> | 149:156823d33999 | 29 | * are permitted provided that the following conditions are met: |
<> | 149:156823d33999 | 30 | * 1. Redistributions of source code must retain the above copyright notice, |
<> | 149:156823d33999 | 31 | * this list of conditions and the following disclaimer. |
<> | 149:156823d33999 | 32 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
<> | 149:156823d33999 | 33 | * this list of conditions and the following disclaimer in the documentation |
<> | 149:156823d33999 | 34 | * and/or other materials provided with the distribution. |
<> | 149:156823d33999 | 35 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
<> | 149:156823d33999 | 36 | * may be used to endorse or promote products derived from this software |
<> | 149:156823d33999 | 37 | * without specific prior written permission. |
<> | 149:156823d33999 | 38 | * |
<> | 149:156823d33999 | 39 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
<> | 149:156823d33999 | 40 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
<> | 149:156823d33999 | 41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
<> | 149:156823d33999 | 42 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
<> | 149:156823d33999 | 43 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
<> | 149:156823d33999 | 44 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
<> | 149:156823d33999 | 45 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
<> | 149:156823d33999 | 46 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
<> | 149:156823d33999 | 47 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
<> | 149:156823d33999 | 48 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
<> | 149:156823d33999 | 49 | * |
<> | 149:156823d33999 | 50 | ****************************************************************************** |
<> | 149:156823d33999 | 51 | */ |
<> | 149:156823d33999 | 52 | |
<> | 149:156823d33999 | 53 | /* Define to prevent recursive inclusion -------------------------------------*/ |
<> | 149:156823d33999 | 54 | #ifndef __STM32L1xx_LL_BUS_H |
<> | 149:156823d33999 | 55 | #define __STM32L1xx_LL_BUS_H |
<> | 149:156823d33999 | 56 | |
<> | 149:156823d33999 | 57 | #ifdef __cplusplus |
<> | 149:156823d33999 | 58 | extern "C" { |
<> | 149:156823d33999 | 59 | #endif |
<> | 149:156823d33999 | 60 | |
<> | 149:156823d33999 | 61 | /* Includes ------------------------------------------------------------------*/ |
<> | 149:156823d33999 | 62 | #include "stm32l1xx.h" |
<> | 149:156823d33999 | 63 | |
<> | 149:156823d33999 | 64 | /** @addtogroup STM32L1xx_LL_Driver |
<> | 149:156823d33999 | 65 | * @{ |
<> | 149:156823d33999 | 66 | */ |
<> | 149:156823d33999 | 67 | |
<> | 149:156823d33999 | 68 | #if defined(RCC) |
<> | 149:156823d33999 | 69 | |
<> | 149:156823d33999 | 70 | /** @defgroup BUS_LL BUS |
<> | 149:156823d33999 | 71 | * @{ |
<> | 149:156823d33999 | 72 | */ |
<> | 149:156823d33999 | 73 | |
<> | 149:156823d33999 | 74 | /* Private types -------------------------------------------------------------*/ |
<> | 149:156823d33999 | 75 | /* Private variables ---------------------------------------------------------*/ |
<> | 149:156823d33999 | 76 | |
<> | 149:156823d33999 | 77 | /* Private constants ---------------------------------------------------------*/ |
<> | 149:156823d33999 | 78 | |
<> | 149:156823d33999 | 79 | /* Private macros ------------------------------------------------------------*/ |
<> | 149:156823d33999 | 80 | |
<> | 149:156823d33999 | 81 | /* Exported types ------------------------------------------------------------*/ |
<> | 149:156823d33999 | 82 | /* Exported constants --------------------------------------------------------*/ |
<> | 149:156823d33999 | 83 | /** @defgroup BUS_LL_Exported_Constants BUS Exported Constants |
<> | 149:156823d33999 | 84 | * @{ |
<> | 149:156823d33999 | 85 | */ |
<> | 149:156823d33999 | 86 | |
<> | 149:156823d33999 | 87 | /** @defgroup BUS_LL_EC_AHB1_GRP1_PERIPH AHB1 GRP1 PERIPH |
<> | 149:156823d33999 | 88 | * @{ |
<> | 149:156823d33999 | 89 | */ |
AnnaBridge | 184:08ed48f1de7f | 90 | #define LL_AHB1_GRP1_PERIPH_ALL 0xFFFFFFFFU |
<> | 149:156823d33999 | 91 | #define LL_AHB1_GRP1_PERIPH_GPIOA RCC_AHBENR_GPIOAEN |
<> | 149:156823d33999 | 92 | #define LL_AHB1_GRP1_PERIPH_GPIOB RCC_AHBENR_GPIOBEN |
<> | 149:156823d33999 | 93 | #define LL_AHB1_GRP1_PERIPH_GPIOC RCC_AHBENR_GPIOCEN |
<> | 149:156823d33999 | 94 | #define LL_AHB1_GRP1_PERIPH_GPIOD RCC_AHBENR_GPIODEN |
<> | 149:156823d33999 | 95 | #if defined(GPIOE) |
<> | 149:156823d33999 | 96 | #define LL_AHB1_GRP1_PERIPH_GPIOE RCC_AHBENR_GPIOEEN |
<> | 149:156823d33999 | 97 | #endif/*GPIOE*/ |
<> | 149:156823d33999 | 98 | #define LL_AHB1_GRP1_PERIPH_GPIOH RCC_AHBENR_GPIOHEN |
<> | 149:156823d33999 | 99 | #if defined(GPIOF) |
<> | 149:156823d33999 | 100 | #define LL_AHB1_GRP1_PERIPH_GPIOF RCC_AHBENR_GPIOFEN |
<> | 149:156823d33999 | 101 | #endif/*GPIOF*/ |
<> | 149:156823d33999 | 102 | #if defined(GPIOG) |
<> | 149:156823d33999 | 103 | #define LL_AHB1_GRP1_PERIPH_GPIOG RCC_AHBENR_GPIOGEN |
<> | 149:156823d33999 | 104 | #endif/*GPIOG*/ |
<> | 149:156823d33999 | 105 | #define LL_AHB1_GRP1_PERIPH_SRAM RCC_AHBLPENR_SRAMLPEN |
<> | 149:156823d33999 | 106 | #define LL_AHB1_GRP1_PERIPH_CRC RCC_AHBENR_CRCEN |
<> | 149:156823d33999 | 107 | #define LL_AHB1_GRP1_PERIPH_FLASH RCC_AHBENR_FLITFEN |
<> | 149:156823d33999 | 108 | #define LL_AHB1_GRP1_PERIPH_DMA1 RCC_AHBENR_DMA1EN |
<> | 149:156823d33999 | 109 | #if defined(DMA2) |
<> | 149:156823d33999 | 110 | #define LL_AHB1_GRP1_PERIPH_DMA2 RCC_AHBENR_DMA2EN |
<> | 149:156823d33999 | 111 | #endif/*DMA2*/ |
<> | 149:156823d33999 | 112 | #if defined(AES) |
<> | 149:156823d33999 | 113 | #define LL_AHB1_GRP1_PERIPH_CRYP RCC_AHBENR_AESEN |
<> | 149:156823d33999 | 114 | #endif/*AES*/ |
<> | 149:156823d33999 | 115 | #if defined(FSMC_Bank1) |
<> | 149:156823d33999 | 116 | #define LL_AHB1_GRP1_PERIPH_FSMC RCC_AHBENR_FSMCEN |
<> | 149:156823d33999 | 117 | #endif/*FSMC_Bank1*/ |
<> | 149:156823d33999 | 118 | /** |
<> | 149:156823d33999 | 119 | * @} |
<> | 149:156823d33999 | 120 | */ |
<> | 149:156823d33999 | 121 | |
<> | 149:156823d33999 | 122 | /** @defgroup BUS_LL_EC_APB1_GRP1_PERIPH APB1 GRP1 PERIPH |
<> | 149:156823d33999 | 123 | * @{ |
<> | 149:156823d33999 | 124 | */ |
AnnaBridge | 184:08ed48f1de7f | 125 | #define LL_APB1_GRP1_PERIPH_ALL 0xFFFFFFFFU |
<> | 149:156823d33999 | 126 | #define LL_APB1_GRP1_PERIPH_TIM2 RCC_APB1ENR_TIM2EN |
<> | 149:156823d33999 | 127 | #define LL_APB1_GRP1_PERIPH_TIM3 RCC_APB1ENR_TIM3EN |
<> | 149:156823d33999 | 128 | #define LL_APB1_GRP1_PERIPH_TIM4 RCC_APB1ENR_TIM4EN |
<> | 149:156823d33999 | 129 | #if defined(TIM5) |
<> | 149:156823d33999 | 130 | #define LL_APB1_GRP1_PERIPH_TIM5 RCC_APB1ENR_TIM5EN |
<> | 149:156823d33999 | 131 | #endif /*TIM5*/ |
<> | 149:156823d33999 | 132 | #define LL_APB1_GRP1_PERIPH_TIM6 RCC_APB1ENR_TIM6EN |
<> | 149:156823d33999 | 133 | #define LL_APB1_GRP1_PERIPH_TIM7 RCC_APB1ENR_TIM7EN |
<> | 149:156823d33999 | 134 | #if defined(LCD) |
<> | 149:156823d33999 | 135 | #define LL_APB1_GRP1_PERIPH_LCD RCC_APB1ENR_LCDEN |
<> | 149:156823d33999 | 136 | #endif /*LCD*/ |
<> | 149:156823d33999 | 137 | #define LL_APB1_GRP1_PERIPH_WWDG RCC_APB1ENR_WWDGEN |
<> | 149:156823d33999 | 138 | #define LL_APB1_GRP1_PERIPH_SPI2 RCC_APB1ENR_SPI2EN |
<> | 149:156823d33999 | 139 | #if defined(SPI3) |
<> | 149:156823d33999 | 140 | #define LL_APB1_GRP1_PERIPH_SPI3 RCC_APB1ENR_SPI3EN |
<> | 149:156823d33999 | 141 | #endif /*SPI3*/ |
<> | 149:156823d33999 | 142 | #define LL_APB1_GRP1_PERIPH_USART2 RCC_APB1ENR_USART2EN |
<> | 149:156823d33999 | 143 | #define LL_APB1_GRP1_PERIPH_USART3 RCC_APB1ENR_USART3EN |
<> | 149:156823d33999 | 144 | #if defined(UART4) |
<> | 149:156823d33999 | 145 | #define LL_APB1_GRP1_PERIPH_UART4 RCC_APB1ENR_UART4EN |
<> | 149:156823d33999 | 146 | #endif /*UART4*/ |
<> | 149:156823d33999 | 147 | #if defined(UART5) |
<> | 149:156823d33999 | 148 | #define LL_APB1_GRP1_PERIPH_UART5 RCC_APB1ENR_UART5EN |
<> | 149:156823d33999 | 149 | #endif /*UART5*/ |
<> | 149:156823d33999 | 150 | #define LL_APB1_GRP1_PERIPH_I2C1 RCC_APB1ENR_I2C1EN |
<> | 149:156823d33999 | 151 | #define LL_APB1_GRP1_PERIPH_I2C2 RCC_APB1ENR_I2C2EN |
<> | 149:156823d33999 | 152 | #define LL_APB1_GRP1_PERIPH_USB RCC_APB1ENR_USBEN |
<> | 149:156823d33999 | 153 | #define LL_APB1_GRP1_PERIPH_PWR RCC_APB1ENR_PWREN |
<> | 149:156823d33999 | 154 | #define LL_APB1_GRP1_PERIPH_DAC1 RCC_APB1ENR_DACEN |
<> | 149:156823d33999 | 155 | #define LL_APB1_GRP1_PERIPH_COMP RCC_APB1ENR_COMPEN |
<> | 149:156823d33999 | 156 | #if defined(OPAMP) |
<> | 149:156823d33999 | 157 | /* Note: Peripherals COMP and OPAMP share the same clock domain */ |
<> | 149:156823d33999 | 158 | #define LL_APB1_GRP1_PERIPH_OPAMP LL_APB1_GRP1_PERIPH_COMP |
<> | 149:156823d33999 | 159 | #endif |
<> | 149:156823d33999 | 160 | /** |
<> | 149:156823d33999 | 161 | * @} |
<> | 149:156823d33999 | 162 | */ |
<> | 149:156823d33999 | 163 | |
<> | 149:156823d33999 | 164 | /** @defgroup BUS_LL_EC_APB2_GRP1_PERIPH APB2 GRP1 PERIPH |
<> | 149:156823d33999 | 165 | * @{ |
<> | 149:156823d33999 | 166 | */ |
AnnaBridge | 184:08ed48f1de7f | 167 | #define LL_APB2_GRP1_PERIPH_ALL 0xFFFFFFFFU |
<> | 149:156823d33999 | 168 | #define LL_APB2_GRP1_PERIPH_SYSCFG RCC_APB2ENR_SYSCFGEN |
<> | 149:156823d33999 | 169 | #define LL_APB2_GRP1_PERIPH_TIM9 RCC_APB2ENR_TIM9EN |
<> | 149:156823d33999 | 170 | #define LL_APB2_GRP1_PERIPH_TIM10 RCC_APB2ENR_TIM10EN |
<> | 149:156823d33999 | 171 | #define LL_APB2_GRP1_PERIPH_TIM11 RCC_APB2ENR_TIM11EN |
<> | 149:156823d33999 | 172 | #define LL_APB2_GRP1_PERIPH_ADC1 RCC_APB2ENR_ADC1EN |
<> | 149:156823d33999 | 173 | #if defined(SDIO) |
<> | 149:156823d33999 | 174 | #define LL_APB2_GRP1_PERIPH_SDIO RCC_APB2ENR_SDIOEN |
<> | 149:156823d33999 | 175 | #endif /*SDIO*/ |
<> | 149:156823d33999 | 176 | #define LL_APB2_GRP1_PERIPH_SPI1 RCC_APB2ENR_SPI1EN |
<> | 149:156823d33999 | 177 | #define LL_APB2_GRP1_PERIPH_USART1 RCC_APB2ENR_USART1EN |
<> | 149:156823d33999 | 178 | /** |
<> | 149:156823d33999 | 179 | * @} |
<> | 149:156823d33999 | 180 | */ |
<> | 149:156823d33999 | 181 | |
<> | 149:156823d33999 | 182 | /** |
<> | 149:156823d33999 | 183 | * @} |
<> | 149:156823d33999 | 184 | */ |
<> | 149:156823d33999 | 185 | |
<> | 149:156823d33999 | 186 | /* Exported macro ------------------------------------------------------------*/ |
<> | 149:156823d33999 | 187 | |
<> | 149:156823d33999 | 188 | /* Exported functions --------------------------------------------------------*/ |
<> | 149:156823d33999 | 189 | /** @defgroup BUS_LL_Exported_Functions BUS Exported Functions |
<> | 149:156823d33999 | 190 | * @{ |
<> | 149:156823d33999 | 191 | */ |
<> | 149:156823d33999 | 192 | |
<> | 149:156823d33999 | 193 | /** @defgroup BUS_LL_EF_AHB1 AHB1 |
<> | 149:156823d33999 | 194 | * @{ |
<> | 149:156823d33999 | 195 | */ |
<> | 149:156823d33999 | 196 | |
<> | 149:156823d33999 | 197 | /** |
<> | 149:156823d33999 | 198 | * @brief Enable AHB1 peripherals clock. |
<> | 149:156823d33999 | 199 | * @rmtoll AHBENR GPIOAEN LL_AHB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 200 | * AHBENR GPIOBEN LL_AHB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 201 | * AHBENR GPIOCEN LL_AHB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 202 | * AHBENR GPIODEN LL_AHB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 203 | * AHBENR GPIOEEN LL_AHB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 204 | * AHBENR GPIOHEN LL_AHB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 205 | * AHBENR GPIOFEN LL_AHB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 206 | * AHBENR GPIOGEN LL_AHB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 207 | * AHBENR CRCEN LL_AHB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 208 | * AHBENR FLITFEN LL_AHB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 209 | * AHBENR DMA1EN LL_AHB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 210 | * AHBENR DMA2EN LL_AHB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 211 | * AHBENR AESEN LL_AHB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 212 | * AHBENR FSMCEN LL_AHB1_GRP1_EnableClock |
<> | 149:156823d33999 | 213 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 214 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOA |
<> | 149:156823d33999 | 215 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOB |
<> | 149:156823d33999 | 216 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOC |
<> | 149:156823d33999 | 217 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOD |
<> | 149:156823d33999 | 218 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOE (*) |
<> | 149:156823d33999 | 219 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOH |
<> | 149:156823d33999 | 220 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOF (*) |
<> | 149:156823d33999 | 221 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOG (*) |
<> | 149:156823d33999 | 222 | * @arg @ref LL_AHB1_GRP1_PERIPH_CRC |
<> | 149:156823d33999 | 223 | * @arg @ref LL_AHB1_GRP1_PERIPH_FLASH |
<> | 149:156823d33999 | 224 | * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 |
<> | 149:156823d33999 | 225 | * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 (*) |
<> | 149:156823d33999 | 226 | * @arg @ref LL_AHB1_GRP1_PERIPH_CRYP (*) |
<> | 149:156823d33999 | 227 | * @arg @ref LL_AHB1_GRP1_PERIPH_FSMC (*) |
<> | 149:156823d33999 | 228 | * |
<> | 149:156823d33999 | 229 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 230 | * @retval None |
<> | 149:156823d33999 | 231 | */ |
<> | 149:156823d33999 | 232 | __STATIC_INLINE void LL_AHB1_GRP1_EnableClock(uint32_t Periphs) |
<> | 149:156823d33999 | 233 | { |
<> | 149:156823d33999 | 234 | __IO uint32_t tmpreg; |
<> | 149:156823d33999 | 235 | SET_BIT(RCC->AHBENR, Periphs); |
<> | 149:156823d33999 | 236 | /* Delay after an RCC peripheral clock enabling */ |
<> | 149:156823d33999 | 237 | tmpreg = READ_BIT(RCC->AHBENR, Periphs); |
<> | 149:156823d33999 | 238 | (void)tmpreg; |
<> | 149:156823d33999 | 239 | } |
<> | 149:156823d33999 | 240 | |
<> | 149:156823d33999 | 241 | /** |
<> | 149:156823d33999 | 242 | * @brief Check if AHB1 peripheral clock is enabled or not |
<> | 149:156823d33999 | 243 | * @rmtoll AHBENR GPIOAEN LL_AHB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 244 | * AHBENR GPIOBEN LL_AHB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 245 | * AHBENR GPIOCEN LL_AHB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 246 | * AHBENR GPIODEN LL_AHB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 247 | * AHBENR GPIOEEN LL_AHB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 248 | * AHBENR GPIOHEN LL_AHB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 249 | * AHBENR GPIOFEN LL_AHB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 250 | * AHBENR GPIOGEN LL_AHB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 251 | * AHBENR CRCEN LL_AHB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 252 | * AHBENR FLITFEN LL_AHB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 253 | * AHBENR DMA1EN LL_AHB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 254 | * AHBENR DMA2EN LL_AHB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 255 | * AHBENR AESEN LL_AHB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 256 | * AHBENR FSMCEN LL_AHB1_GRP1_IsEnabledClock |
<> | 149:156823d33999 | 257 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 258 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOA |
<> | 149:156823d33999 | 259 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOB |
<> | 149:156823d33999 | 260 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOC |
<> | 149:156823d33999 | 261 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOD |
<> | 149:156823d33999 | 262 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOE (*) |
<> | 149:156823d33999 | 263 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOH |
<> | 149:156823d33999 | 264 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOF (*) |
<> | 149:156823d33999 | 265 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOG (*) |
<> | 149:156823d33999 | 266 | * @arg @ref LL_AHB1_GRP1_PERIPH_CRC |
<> | 149:156823d33999 | 267 | * @arg @ref LL_AHB1_GRP1_PERIPH_FLASH |
<> | 149:156823d33999 | 268 | * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 |
<> | 149:156823d33999 | 269 | * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 (*) |
<> | 149:156823d33999 | 270 | * @arg @ref LL_AHB1_GRP1_PERIPH_CRYP (*) |
<> | 149:156823d33999 | 271 | * @arg @ref LL_AHB1_GRP1_PERIPH_FSMC (*) |
<> | 149:156823d33999 | 272 | * |
<> | 149:156823d33999 | 273 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 274 | * @retval State of Periphs (1 or 0). |
<> | 149:156823d33999 | 275 | */ |
<> | 149:156823d33999 | 276 | __STATIC_INLINE uint32_t LL_AHB1_GRP1_IsEnabledClock(uint32_t Periphs) |
<> | 149:156823d33999 | 277 | { |
<> | 149:156823d33999 | 278 | return (READ_BIT(RCC->AHBENR, Periphs) == Periphs); |
<> | 149:156823d33999 | 279 | } |
<> | 149:156823d33999 | 280 | |
<> | 149:156823d33999 | 281 | /** |
<> | 149:156823d33999 | 282 | * @brief Disable AHB1 peripherals clock. |
<> | 149:156823d33999 | 283 | * @rmtoll AHBENR GPIOAEN LL_AHB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 284 | * AHBENR GPIOBEN LL_AHB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 285 | * AHBENR GPIOCEN LL_AHB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 286 | * AHBENR GPIODEN LL_AHB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 287 | * AHBENR GPIOEEN LL_AHB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 288 | * AHBENR GPIOHEN LL_AHB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 289 | * AHBENR GPIOFEN LL_AHB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 290 | * AHBENR GPIOGEN LL_AHB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 291 | * AHBENR CRCEN LL_AHB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 292 | * AHBENR FLITFEN LL_AHB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 293 | * AHBENR DMA1EN LL_AHB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 294 | * AHBENR DMA2EN LL_AHB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 295 | * AHBENR AESEN LL_AHB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 296 | * AHBENR FSMCEN LL_AHB1_GRP1_DisableClock |
<> | 149:156823d33999 | 297 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 298 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOA |
<> | 149:156823d33999 | 299 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOB |
<> | 149:156823d33999 | 300 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOC |
<> | 149:156823d33999 | 301 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOD |
<> | 149:156823d33999 | 302 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOE (*) |
<> | 149:156823d33999 | 303 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOH |
<> | 149:156823d33999 | 304 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOF (*) |
<> | 149:156823d33999 | 305 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOG (*) |
<> | 149:156823d33999 | 306 | * @arg @ref LL_AHB1_GRP1_PERIPH_CRC |
<> | 149:156823d33999 | 307 | * @arg @ref LL_AHB1_GRP1_PERIPH_FLASH |
<> | 149:156823d33999 | 308 | * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 |
<> | 149:156823d33999 | 309 | * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 (*) |
<> | 149:156823d33999 | 310 | * @arg @ref LL_AHB1_GRP1_PERIPH_CRYP (*) |
<> | 149:156823d33999 | 311 | * @arg @ref LL_AHB1_GRP1_PERIPH_FSMC (*) |
<> | 149:156823d33999 | 312 | * |
<> | 149:156823d33999 | 313 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 314 | * @retval None |
<> | 149:156823d33999 | 315 | */ |
<> | 149:156823d33999 | 316 | __STATIC_INLINE void LL_AHB1_GRP1_DisableClock(uint32_t Periphs) |
<> | 149:156823d33999 | 317 | { |
<> | 149:156823d33999 | 318 | CLEAR_BIT(RCC->AHBENR, Periphs); |
<> | 149:156823d33999 | 319 | } |
<> | 149:156823d33999 | 320 | |
<> | 149:156823d33999 | 321 | /** |
<> | 149:156823d33999 | 322 | * @brief Force AHB1 peripherals reset. |
<> | 149:156823d33999 | 323 | * @rmtoll AHBRSTR GPIOARST LL_AHB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 324 | * AHBRSTR GPIOBRST LL_AHB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 325 | * AHBRSTR GPIOCRST LL_AHB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 326 | * AHBRSTR GPIODRST LL_AHB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 327 | * AHBRSTR GPIOERST LL_AHB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 328 | * AHBRSTR GPIOHRST LL_AHB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 329 | * AHBRSTR GPIOFRST LL_AHB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 330 | * AHBRSTR GPIOGRST LL_AHB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 331 | * AHBRSTR CRCRST LL_AHB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 332 | * AHBRSTR FLITFRST LL_AHB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 333 | * AHBRSTR DMA1RST LL_AHB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 334 | * AHBRSTR DMA2RST LL_AHB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 335 | * AHBRSTR AESRST LL_AHB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 336 | * AHBRSTR FSMCRST LL_AHB1_GRP1_ForceReset |
<> | 149:156823d33999 | 337 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 338 | * @arg @ref LL_AHB1_GRP1_PERIPH_ALL |
<> | 149:156823d33999 | 339 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOA |
<> | 149:156823d33999 | 340 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOB |
<> | 149:156823d33999 | 341 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOC |
<> | 149:156823d33999 | 342 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOD |
<> | 149:156823d33999 | 343 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOE (*) |
<> | 149:156823d33999 | 344 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOH |
<> | 149:156823d33999 | 345 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOF (*) |
<> | 149:156823d33999 | 346 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOG (*) |
<> | 149:156823d33999 | 347 | * @arg @ref LL_AHB1_GRP1_PERIPH_CRC |
<> | 149:156823d33999 | 348 | * @arg @ref LL_AHB1_GRP1_PERIPH_FLASH |
<> | 149:156823d33999 | 349 | * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 |
<> | 149:156823d33999 | 350 | * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 (*) |
<> | 149:156823d33999 | 351 | * @arg @ref LL_AHB1_GRP1_PERIPH_CRYP (*) |
<> | 149:156823d33999 | 352 | * @arg @ref LL_AHB1_GRP1_PERIPH_FSMC (*) |
<> | 149:156823d33999 | 353 | * |
<> | 149:156823d33999 | 354 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 355 | * @retval None |
<> | 149:156823d33999 | 356 | */ |
<> | 149:156823d33999 | 357 | __STATIC_INLINE void LL_AHB1_GRP1_ForceReset(uint32_t Periphs) |
<> | 149:156823d33999 | 358 | { |
<> | 149:156823d33999 | 359 | SET_BIT(RCC->AHBRSTR, Periphs); |
<> | 149:156823d33999 | 360 | } |
<> | 149:156823d33999 | 361 | |
<> | 149:156823d33999 | 362 | /** |
<> | 149:156823d33999 | 363 | * @brief Release AHB1 peripherals reset. |
<> | 149:156823d33999 | 364 | * @rmtoll AHBRSTR GPIOARST LL_AHB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 365 | * AHBRSTR GPIOBRST LL_AHB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 366 | * AHBRSTR GPIOCRST LL_AHB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 367 | * AHBRSTR GPIODRST LL_AHB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 368 | * AHBRSTR GPIOERST LL_AHB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 369 | * AHBRSTR GPIOHRST LL_AHB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 370 | * AHBRSTR GPIOFRST LL_AHB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 371 | * AHBRSTR GPIOGRST LL_AHB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 372 | * AHBRSTR CRCRST LL_AHB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 373 | * AHBRSTR FLITFRST LL_AHB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 374 | * AHBRSTR DMA1RST LL_AHB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 375 | * AHBRSTR DMA2RST LL_AHB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 376 | * AHBRSTR AESRST LL_AHB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 377 | * AHBRSTR FSMCRST LL_AHB1_GRP1_ReleaseReset |
<> | 149:156823d33999 | 378 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 379 | * @arg @ref LL_AHB1_GRP1_PERIPH_ALL |
<> | 149:156823d33999 | 380 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOA |
<> | 149:156823d33999 | 381 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOB |
<> | 149:156823d33999 | 382 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOC |
<> | 149:156823d33999 | 383 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOD |
<> | 149:156823d33999 | 384 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOE (*) |
<> | 149:156823d33999 | 385 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOH |
<> | 149:156823d33999 | 386 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOF (*) |
<> | 149:156823d33999 | 387 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOG (*) |
<> | 149:156823d33999 | 388 | * @arg @ref LL_AHB1_GRP1_PERIPH_CRC |
<> | 149:156823d33999 | 389 | * @arg @ref LL_AHB1_GRP1_PERIPH_FLASH |
<> | 149:156823d33999 | 390 | * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 |
<> | 149:156823d33999 | 391 | * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 (*) |
<> | 149:156823d33999 | 392 | * @arg @ref LL_AHB1_GRP1_PERIPH_CRYP (*) |
<> | 149:156823d33999 | 393 | * @arg @ref LL_AHB1_GRP1_PERIPH_FSMC (*) |
<> | 149:156823d33999 | 394 | * |
<> | 149:156823d33999 | 395 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 396 | * @retval None |
<> | 149:156823d33999 | 397 | */ |
<> | 149:156823d33999 | 398 | __STATIC_INLINE void LL_AHB1_GRP1_ReleaseReset(uint32_t Periphs) |
<> | 149:156823d33999 | 399 | { |
<> | 149:156823d33999 | 400 | CLEAR_BIT(RCC->AHBRSTR, Periphs); |
<> | 149:156823d33999 | 401 | } |
<> | 149:156823d33999 | 402 | |
<> | 149:156823d33999 | 403 | /** |
<> | 149:156823d33999 | 404 | * @brief Enable AHB1 peripherals clock during Low Power (Sleep) mode. |
<> | 149:156823d33999 | 405 | * @rmtoll AHBLPENR GPIOALPEN LL_AHB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 406 | * AHBLPENR GPIOBLPEN LL_AHB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 407 | * AHBLPENR GPIOCLPEN LL_AHB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 408 | * AHBLPENR GPIODLPEN LL_AHB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 409 | * AHBLPENR GPIOELPEN LL_AHB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 410 | * AHBLPENR GPIOHLPEN LL_AHB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 411 | * AHBLPENR GPIOFLPEN LL_AHB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 412 | * AHBLPENR GPIOGLPEN LL_AHB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 413 | * AHBLPENR CRCLPEN LL_AHB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 414 | * AHBLPENR FLITFLPEN LL_AHB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 415 | * AHBLPENR SRAMLPEN LL_AHB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 416 | * AHBLPENR DMA1LPEN LL_AHB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 417 | * AHBLPENR DMA2LPEN LL_AHB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 418 | * AHBLPENR AESLPEN LL_AHB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 419 | * AHBLPENR FSMCLPEN LL_AHB1_GRP1_EnableClockSleep |
<> | 149:156823d33999 | 420 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 421 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOA |
<> | 149:156823d33999 | 422 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOB |
<> | 149:156823d33999 | 423 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOC |
<> | 149:156823d33999 | 424 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOD |
<> | 149:156823d33999 | 425 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOE (*) |
<> | 149:156823d33999 | 426 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOH |
<> | 149:156823d33999 | 427 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOF (*) |
<> | 149:156823d33999 | 428 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOG (*) |
<> | 149:156823d33999 | 429 | * @arg @ref LL_AHB1_GRP1_PERIPH_CRC |
<> | 149:156823d33999 | 430 | * @arg @ref LL_AHB1_GRP1_PERIPH_FLASH |
<> | 149:156823d33999 | 431 | * @arg @ref LL_AHB1_GRP1_PERIPH_SRAM |
<> | 149:156823d33999 | 432 | * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 |
<> | 149:156823d33999 | 433 | * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 (*) |
<> | 149:156823d33999 | 434 | * @arg @ref LL_AHB1_GRP1_PERIPH_CRYP (*) |
<> | 149:156823d33999 | 435 | * @arg @ref LL_AHB1_GRP1_PERIPH_FSMC (*) |
<> | 149:156823d33999 | 436 | * |
<> | 149:156823d33999 | 437 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 438 | * @retval None |
<> | 149:156823d33999 | 439 | */ |
<> | 149:156823d33999 | 440 | __STATIC_INLINE void LL_AHB1_GRP1_EnableClockSleep(uint32_t Periphs) |
<> | 149:156823d33999 | 441 | { |
<> | 149:156823d33999 | 442 | __IO uint32_t tmpreg; |
<> | 149:156823d33999 | 443 | SET_BIT(RCC->AHBLPENR, Periphs); |
<> | 149:156823d33999 | 444 | /* Delay after an RCC peripheral clock enabling */ |
<> | 149:156823d33999 | 445 | tmpreg = READ_BIT(RCC->AHBLPENR, Periphs); |
<> | 149:156823d33999 | 446 | (void)tmpreg; |
<> | 149:156823d33999 | 447 | } |
<> | 149:156823d33999 | 448 | |
<> | 149:156823d33999 | 449 | /** |
<> | 149:156823d33999 | 450 | * @brief Disable AHB1 peripherals clock during Low Power (Sleep) mode. |
<> | 149:156823d33999 | 451 | * @rmtoll AHBLPENR GPIOALPEN LL_AHB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 452 | * AHBLPENR GPIOBLPEN LL_AHB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 453 | * AHBLPENR GPIOCLPEN LL_AHB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 454 | * AHBLPENR GPIODLPEN LL_AHB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 455 | * AHBLPENR GPIOELPEN LL_AHB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 456 | * AHBLPENR GPIOHLPEN LL_AHB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 457 | * AHBLPENR GPIOFLPEN LL_AHB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 458 | * AHBLPENR GPIOGLPEN LL_AHB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 459 | * AHBLPENR CRCLPEN LL_AHB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 460 | * AHBLPENR FLITFLPEN LL_AHB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 461 | * AHBLPENR SRAMLPEN LL_AHB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 462 | * AHBLPENR DMA1LPEN LL_AHB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 463 | * AHBLPENR DMA2LPEN LL_AHB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 464 | * AHBLPENR AESLPEN LL_AHB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 465 | * AHBLPENR FSMCLPEN LL_AHB1_GRP1_DisableClockSleep |
<> | 149:156823d33999 | 466 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 467 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOA |
<> | 149:156823d33999 | 468 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOB |
<> | 149:156823d33999 | 469 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOC |
<> | 149:156823d33999 | 470 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOD |
<> | 149:156823d33999 | 471 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOE (*) |
<> | 149:156823d33999 | 472 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOH |
<> | 149:156823d33999 | 473 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOF (*) |
<> | 149:156823d33999 | 474 | * @arg @ref LL_AHB1_GRP1_PERIPH_GPIOG (*) |
<> | 149:156823d33999 | 475 | * @arg @ref LL_AHB1_GRP1_PERIPH_CRC |
<> | 149:156823d33999 | 476 | * @arg @ref LL_AHB1_GRP1_PERIPH_FLASH |
<> | 149:156823d33999 | 477 | * @arg @ref LL_AHB1_GRP1_PERIPH_SRAM |
<> | 149:156823d33999 | 478 | * @arg @ref LL_AHB1_GRP1_PERIPH_DMA1 |
<> | 149:156823d33999 | 479 | * @arg @ref LL_AHB1_GRP1_PERIPH_DMA2 (*) |
<> | 149:156823d33999 | 480 | * @arg @ref LL_AHB1_GRP1_PERIPH_CRYP (*) |
<> | 149:156823d33999 | 481 | * @arg @ref LL_AHB1_GRP1_PERIPH_FSMC (*) |
<> | 149:156823d33999 | 482 | * |
<> | 149:156823d33999 | 483 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 484 | * @retval None |
<> | 149:156823d33999 | 485 | */ |
<> | 149:156823d33999 | 486 | __STATIC_INLINE void LL_AHB1_GRP1_DisableClockSleep(uint32_t Periphs) |
<> | 149:156823d33999 | 487 | { |
<> | 149:156823d33999 | 488 | CLEAR_BIT(RCC->AHBLPENR, Periphs); |
<> | 149:156823d33999 | 489 | } |
<> | 149:156823d33999 | 490 | |
<> | 149:156823d33999 | 491 | /** |
<> | 149:156823d33999 | 492 | * @} |
<> | 149:156823d33999 | 493 | */ |
<> | 149:156823d33999 | 494 | |
<> | 149:156823d33999 | 495 | /** @defgroup BUS_LL_EF_APB1 APB1 |
<> | 149:156823d33999 | 496 | * @{ |
<> | 149:156823d33999 | 497 | */ |
<> | 149:156823d33999 | 498 | |
<> | 149:156823d33999 | 499 | /** |
<> | 149:156823d33999 | 500 | * @brief Enable APB1 peripherals clock. |
<> | 149:156823d33999 | 501 | * @rmtoll APB1ENR TIM2EN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 502 | * APB1ENR TIM3EN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 503 | * APB1ENR TIM4EN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 504 | * APB1ENR TIM5EN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 505 | * APB1ENR TIM6EN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 506 | * APB1ENR TIM7EN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 507 | * APB1ENR LCDEN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 508 | * APB1ENR WWDGEN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 509 | * APB1ENR SPI2EN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 510 | * APB1ENR SPI3EN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 511 | * APB1ENR USART2EN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 512 | * APB1ENR USART3EN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 513 | * APB1ENR UART4EN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 514 | * APB1ENR UART5EN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 515 | * APB1ENR I2C1EN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 516 | * APB1ENR I2C2EN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 517 | * APB1ENR USBEN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 518 | * APB1ENR PWREN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 519 | * APB1ENR DACEN LL_APB1_GRP1_EnableClock\n |
<> | 149:156823d33999 | 520 | * APB1ENR COMPEN LL_APB1_GRP1_EnableClock |
<> | 149:156823d33999 | 521 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 522 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 |
<> | 149:156823d33999 | 523 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 |
<> | 149:156823d33999 | 524 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 |
<> | 149:156823d33999 | 525 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 (*) |
<> | 149:156823d33999 | 526 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 |
<> | 149:156823d33999 | 527 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 |
<> | 149:156823d33999 | 528 | * @arg @ref LL_APB1_GRP1_PERIPH_LCD (*) |
<> | 149:156823d33999 | 529 | * @arg @ref LL_APB1_GRP1_PERIPH_WWDG |
<> | 149:156823d33999 | 530 | * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 |
<> | 149:156823d33999 | 531 | * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 (*) |
<> | 149:156823d33999 | 532 | * @arg @ref LL_APB1_GRP1_PERIPH_USART2 |
<> | 149:156823d33999 | 533 | * @arg @ref LL_APB1_GRP1_PERIPH_USART3 |
<> | 149:156823d33999 | 534 | * @arg @ref LL_APB1_GRP1_PERIPH_UART4 (*) |
<> | 149:156823d33999 | 535 | * @arg @ref LL_APB1_GRP1_PERIPH_UART5 (*) |
<> | 149:156823d33999 | 536 | * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 |
<> | 149:156823d33999 | 537 | * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 |
<> | 149:156823d33999 | 538 | * @arg @ref LL_APB1_GRP1_PERIPH_USB |
<> | 149:156823d33999 | 539 | * @arg @ref LL_APB1_GRP1_PERIPH_PWR |
<> | 149:156823d33999 | 540 | * @arg @ref LL_APB1_GRP1_PERIPH_DAC1 |
<> | 149:156823d33999 | 541 | * @arg @ref LL_APB1_GRP1_PERIPH_COMP |
<> | 149:156823d33999 | 542 | * @arg @ref LL_APB1_GRP1_PERIPH_OPAMP (*) |
<> | 149:156823d33999 | 543 | * |
<> | 149:156823d33999 | 544 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 545 | * @retval None |
<> | 149:156823d33999 | 546 | */ |
<> | 149:156823d33999 | 547 | __STATIC_INLINE void LL_APB1_GRP1_EnableClock(uint32_t Periphs) |
<> | 149:156823d33999 | 548 | { |
<> | 149:156823d33999 | 549 | __IO uint32_t tmpreg; |
<> | 149:156823d33999 | 550 | SET_BIT(RCC->APB1ENR, Periphs); |
<> | 149:156823d33999 | 551 | /* Delay after an RCC peripheral clock enabling */ |
<> | 149:156823d33999 | 552 | tmpreg = READ_BIT(RCC->APB1ENR, Periphs); |
<> | 149:156823d33999 | 553 | (void)tmpreg; |
<> | 149:156823d33999 | 554 | } |
<> | 149:156823d33999 | 555 | |
<> | 149:156823d33999 | 556 | /** |
<> | 149:156823d33999 | 557 | * @brief Check if APB1 peripheral clock is enabled or not |
<> | 149:156823d33999 | 558 | * @rmtoll APB1ENR TIM2EN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 559 | * APB1ENR TIM3EN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 560 | * APB1ENR TIM4EN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 561 | * APB1ENR TIM5EN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 562 | * APB1ENR TIM6EN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 563 | * APB1ENR TIM7EN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 564 | * APB1ENR LCDEN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 565 | * APB1ENR WWDGEN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 566 | * APB1ENR SPI2EN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 567 | * APB1ENR SPI3EN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 568 | * APB1ENR USART2EN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 569 | * APB1ENR USART3EN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 570 | * APB1ENR UART4EN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 571 | * APB1ENR UART5EN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 572 | * APB1ENR I2C1EN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 573 | * APB1ENR I2C2EN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 574 | * APB1ENR USBEN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 575 | * APB1ENR PWREN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 576 | * APB1ENR DACEN LL_APB1_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 577 | * APB1ENR COMPEN LL_APB1_GRP1_IsEnabledClock |
<> | 149:156823d33999 | 578 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 579 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 |
<> | 149:156823d33999 | 580 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 |
<> | 149:156823d33999 | 581 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 |
<> | 149:156823d33999 | 582 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 (*) |
<> | 149:156823d33999 | 583 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 |
<> | 149:156823d33999 | 584 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 |
<> | 149:156823d33999 | 585 | * @arg @ref LL_APB1_GRP1_PERIPH_LCD (*) |
<> | 149:156823d33999 | 586 | * @arg @ref LL_APB1_GRP1_PERIPH_WWDG |
<> | 149:156823d33999 | 587 | * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 |
<> | 149:156823d33999 | 588 | * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 (*) |
<> | 149:156823d33999 | 589 | * @arg @ref LL_APB1_GRP1_PERIPH_USART2 |
<> | 149:156823d33999 | 590 | * @arg @ref LL_APB1_GRP1_PERIPH_USART3 |
<> | 149:156823d33999 | 591 | * @arg @ref LL_APB1_GRP1_PERIPH_UART4 (*) |
<> | 149:156823d33999 | 592 | * @arg @ref LL_APB1_GRP1_PERIPH_UART5 (*) |
<> | 149:156823d33999 | 593 | * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 |
<> | 149:156823d33999 | 594 | * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 |
<> | 149:156823d33999 | 595 | * @arg @ref LL_APB1_GRP1_PERIPH_USB |
<> | 149:156823d33999 | 596 | * @arg @ref LL_APB1_GRP1_PERIPH_PWR |
<> | 149:156823d33999 | 597 | * @arg @ref LL_APB1_GRP1_PERIPH_DAC1 |
<> | 149:156823d33999 | 598 | * @arg @ref LL_APB1_GRP1_PERIPH_COMP |
<> | 149:156823d33999 | 599 | * @arg @ref LL_APB1_GRP1_PERIPH_OPAMP (*) |
<> | 149:156823d33999 | 600 | * |
<> | 149:156823d33999 | 601 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 602 | * @retval State of Periphs (1 or 0). |
<> | 149:156823d33999 | 603 | */ |
<> | 149:156823d33999 | 604 | __STATIC_INLINE uint32_t LL_APB1_GRP1_IsEnabledClock(uint32_t Periphs) |
<> | 149:156823d33999 | 605 | { |
<> | 149:156823d33999 | 606 | return (READ_BIT(RCC->APB1ENR, Periphs) == Periphs); |
<> | 149:156823d33999 | 607 | } |
<> | 149:156823d33999 | 608 | |
<> | 149:156823d33999 | 609 | /** |
<> | 149:156823d33999 | 610 | * @brief Disable APB1 peripherals clock. |
<> | 149:156823d33999 | 611 | * @rmtoll APB1ENR TIM2EN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 612 | * APB1ENR TIM3EN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 613 | * APB1ENR TIM4EN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 614 | * APB1ENR TIM5EN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 615 | * APB1ENR TIM6EN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 616 | * APB1ENR TIM7EN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 617 | * APB1ENR LCDEN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 618 | * APB1ENR WWDGEN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 619 | * APB1ENR SPI2EN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 620 | * APB1ENR SPI3EN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 621 | * APB1ENR USART2EN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 622 | * APB1ENR USART3EN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 623 | * APB1ENR UART4EN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 624 | * APB1ENR UART5EN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 625 | * APB1ENR I2C1EN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 626 | * APB1ENR I2C2EN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 627 | * APB1ENR USBEN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 628 | * APB1ENR PWREN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 629 | * APB1ENR DACEN LL_APB1_GRP1_DisableClock\n |
<> | 149:156823d33999 | 630 | * APB1ENR COMPEN LL_APB1_GRP1_DisableClock |
<> | 149:156823d33999 | 631 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 632 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 |
<> | 149:156823d33999 | 633 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 |
<> | 149:156823d33999 | 634 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 |
<> | 149:156823d33999 | 635 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 (*) |
<> | 149:156823d33999 | 636 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 |
<> | 149:156823d33999 | 637 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 |
<> | 149:156823d33999 | 638 | * @arg @ref LL_APB1_GRP1_PERIPH_LCD (*) |
<> | 149:156823d33999 | 639 | * @arg @ref LL_APB1_GRP1_PERIPH_WWDG |
<> | 149:156823d33999 | 640 | * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 |
<> | 149:156823d33999 | 641 | * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 (*) |
<> | 149:156823d33999 | 642 | * @arg @ref LL_APB1_GRP1_PERIPH_USART2 |
<> | 149:156823d33999 | 643 | * @arg @ref LL_APB1_GRP1_PERIPH_USART3 |
<> | 149:156823d33999 | 644 | * @arg @ref LL_APB1_GRP1_PERIPH_UART4 (*) |
<> | 149:156823d33999 | 645 | * @arg @ref LL_APB1_GRP1_PERIPH_UART5 (*) |
<> | 149:156823d33999 | 646 | * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 |
<> | 149:156823d33999 | 647 | * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 |
<> | 149:156823d33999 | 648 | * @arg @ref LL_APB1_GRP1_PERIPH_USB |
<> | 149:156823d33999 | 649 | * @arg @ref LL_APB1_GRP1_PERIPH_PWR |
<> | 149:156823d33999 | 650 | * @arg @ref LL_APB1_GRP1_PERIPH_DAC1 |
<> | 149:156823d33999 | 651 | * @arg @ref LL_APB1_GRP1_PERIPH_COMP |
<> | 149:156823d33999 | 652 | * @arg @ref LL_APB1_GRP1_PERIPH_OPAMP (*) |
<> | 149:156823d33999 | 653 | * |
<> | 149:156823d33999 | 654 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 655 | * @retval None |
<> | 149:156823d33999 | 656 | */ |
<> | 149:156823d33999 | 657 | __STATIC_INLINE void LL_APB1_GRP1_DisableClock(uint32_t Periphs) |
<> | 149:156823d33999 | 658 | { |
<> | 149:156823d33999 | 659 | CLEAR_BIT(RCC->APB1ENR, Periphs); |
<> | 149:156823d33999 | 660 | } |
<> | 149:156823d33999 | 661 | |
<> | 149:156823d33999 | 662 | /** |
<> | 149:156823d33999 | 663 | * @brief Force APB1 peripherals reset. |
<> | 149:156823d33999 | 664 | * @rmtoll APB1RSTR TIM2RST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 665 | * APB1RSTR TIM3RST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 666 | * APB1RSTR TIM4RST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 667 | * APB1RSTR TIM5RST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 668 | * APB1RSTR TIM6RST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 669 | * APB1RSTR TIM7RST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 670 | * APB1RSTR LCDRST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 671 | * APB1RSTR WWDGRST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 672 | * APB1RSTR SPI2RST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 673 | * APB1RSTR SPI3RST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 674 | * APB1RSTR USART2RST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 675 | * APB1RSTR USART3RST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 676 | * APB1RSTR UART4RST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 677 | * APB1RSTR UART5RST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 678 | * APB1RSTR I2C1RST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 679 | * APB1RSTR I2C2RST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 680 | * APB1RSTR USBRST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 681 | * APB1RSTR PWRRST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 682 | * APB1RSTR DACRST LL_APB1_GRP1_ForceReset\n |
<> | 149:156823d33999 | 683 | * APB1RSTR COMPRST LL_APB1_GRP1_ForceReset |
<> | 149:156823d33999 | 684 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 685 | * @arg @ref LL_APB1_GRP1_PERIPH_ALL |
<> | 149:156823d33999 | 686 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 |
<> | 149:156823d33999 | 687 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 |
<> | 149:156823d33999 | 688 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 |
<> | 149:156823d33999 | 689 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 (*) |
<> | 149:156823d33999 | 690 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 |
<> | 149:156823d33999 | 691 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 |
<> | 149:156823d33999 | 692 | * @arg @ref LL_APB1_GRP1_PERIPH_LCD (*) |
<> | 149:156823d33999 | 693 | * @arg @ref LL_APB1_GRP1_PERIPH_WWDG |
<> | 149:156823d33999 | 694 | * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 |
<> | 149:156823d33999 | 695 | * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 (*) |
<> | 149:156823d33999 | 696 | * @arg @ref LL_APB1_GRP1_PERIPH_USART2 |
<> | 149:156823d33999 | 697 | * @arg @ref LL_APB1_GRP1_PERIPH_USART3 |
<> | 149:156823d33999 | 698 | * @arg @ref LL_APB1_GRP1_PERIPH_UART4 (*) |
<> | 149:156823d33999 | 699 | * @arg @ref LL_APB1_GRP1_PERIPH_UART5 (*) |
<> | 149:156823d33999 | 700 | * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 |
<> | 149:156823d33999 | 701 | * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 |
<> | 149:156823d33999 | 702 | * @arg @ref LL_APB1_GRP1_PERIPH_USB |
<> | 149:156823d33999 | 703 | * @arg @ref LL_APB1_GRP1_PERIPH_PWR |
<> | 149:156823d33999 | 704 | * @arg @ref LL_APB1_GRP1_PERIPH_DAC1 |
<> | 149:156823d33999 | 705 | * @arg @ref LL_APB1_GRP1_PERIPH_COMP |
<> | 149:156823d33999 | 706 | * @arg @ref LL_APB1_GRP1_PERIPH_OPAMP (*) |
<> | 149:156823d33999 | 707 | * |
<> | 149:156823d33999 | 708 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 709 | * @retval None |
<> | 149:156823d33999 | 710 | */ |
<> | 149:156823d33999 | 711 | __STATIC_INLINE void LL_APB1_GRP1_ForceReset(uint32_t Periphs) |
<> | 149:156823d33999 | 712 | { |
<> | 149:156823d33999 | 713 | SET_BIT(RCC->APB1RSTR, Periphs); |
<> | 149:156823d33999 | 714 | } |
<> | 149:156823d33999 | 715 | |
<> | 149:156823d33999 | 716 | /** |
<> | 149:156823d33999 | 717 | * @brief Release APB1 peripherals reset. |
<> | 149:156823d33999 | 718 | * @rmtoll APB1RSTR TIM2RST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 719 | * APB1RSTR TIM3RST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 720 | * APB1RSTR TIM4RST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 721 | * APB1RSTR TIM5RST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 722 | * APB1RSTR TIM6RST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 723 | * APB1RSTR TIM7RST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 724 | * APB1RSTR LCDRST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 725 | * APB1RSTR WWDGRST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 726 | * APB1RSTR SPI2RST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 727 | * APB1RSTR SPI3RST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 728 | * APB1RSTR USART2RST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 729 | * APB1RSTR USART3RST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 730 | * APB1RSTR UART4RST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 731 | * APB1RSTR UART5RST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 732 | * APB1RSTR I2C1RST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 733 | * APB1RSTR I2C2RST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 734 | * APB1RSTR USBRST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 735 | * APB1RSTR PWRRST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 736 | * APB1RSTR DACRST LL_APB1_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 737 | * APB1RSTR COMPRST LL_APB1_GRP1_ReleaseReset |
<> | 149:156823d33999 | 738 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 739 | * @arg @ref LL_APB1_GRP1_PERIPH_ALL |
<> | 149:156823d33999 | 740 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 |
<> | 149:156823d33999 | 741 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 |
<> | 149:156823d33999 | 742 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 |
<> | 149:156823d33999 | 743 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 (*) |
<> | 149:156823d33999 | 744 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 |
<> | 149:156823d33999 | 745 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 |
<> | 149:156823d33999 | 746 | * @arg @ref LL_APB1_GRP1_PERIPH_LCD (*) |
<> | 149:156823d33999 | 747 | * @arg @ref LL_APB1_GRP1_PERIPH_WWDG |
<> | 149:156823d33999 | 748 | * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 |
<> | 149:156823d33999 | 749 | * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 (*) |
<> | 149:156823d33999 | 750 | * @arg @ref LL_APB1_GRP1_PERIPH_USART2 |
<> | 149:156823d33999 | 751 | * @arg @ref LL_APB1_GRP1_PERIPH_USART3 |
<> | 149:156823d33999 | 752 | * @arg @ref LL_APB1_GRP1_PERIPH_UART4 (*) |
<> | 149:156823d33999 | 753 | * @arg @ref LL_APB1_GRP1_PERIPH_UART5 (*) |
<> | 149:156823d33999 | 754 | * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 |
<> | 149:156823d33999 | 755 | * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 |
<> | 149:156823d33999 | 756 | * @arg @ref LL_APB1_GRP1_PERIPH_USB |
<> | 149:156823d33999 | 757 | * @arg @ref LL_APB1_GRP1_PERIPH_PWR |
<> | 149:156823d33999 | 758 | * @arg @ref LL_APB1_GRP1_PERIPH_DAC1 |
<> | 149:156823d33999 | 759 | * @arg @ref LL_APB1_GRP1_PERIPH_COMP |
<> | 149:156823d33999 | 760 | * @arg @ref LL_APB1_GRP1_PERIPH_OPAMP (*) |
<> | 149:156823d33999 | 761 | * |
<> | 149:156823d33999 | 762 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 763 | * @retval None |
<> | 149:156823d33999 | 764 | */ |
<> | 149:156823d33999 | 765 | __STATIC_INLINE void LL_APB1_GRP1_ReleaseReset(uint32_t Periphs) |
<> | 149:156823d33999 | 766 | { |
<> | 149:156823d33999 | 767 | CLEAR_BIT(RCC->APB1RSTR, Periphs); |
<> | 149:156823d33999 | 768 | } |
<> | 149:156823d33999 | 769 | |
<> | 149:156823d33999 | 770 | /** |
<> | 149:156823d33999 | 771 | * @brief Enable APB1 peripherals clock during Low Power (Sleep) mode. |
<> | 149:156823d33999 | 772 | * @rmtoll APB1LPENR TIM2LPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 773 | * APB1LPENR TIM3LPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 774 | * APB1LPENR TIM4LPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 775 | * APB1LPENR TIM5LPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 776 | * APB1LPENR TIM6LPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 777 | * APB1LPENR TIM7LPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 778 | * APB1LPENR LCDLPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 779 | * APB1LPENR WWDGLPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 780 | * APB1LPENR SPI2LPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 781 | * APB1LPENR SPI3LPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 782 | * APB1LPENR USART2LPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 783 | * APB1LPENR USART3LPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 784 | * APB1LPENR UART4LPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 785 | * APB1LPENR UART5LPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 786 | * APB1LPENR I2C1LPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 787 | * APB1LPENR I2C2LPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 788 | * APB1LPENR USBLPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 789 | * APB1LPENR PWRLPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 790 | * APB1LPENR DACLPEN LL_APB1_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 791 | * APB1LPENR COMPLPEN LL_APB1_GRP1_EnableClockSleep |
<> | 149:156823d33999 | 792 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 793 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 |
<> | 149:156823d33999 | 794 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 |
<> | 149:156823d33999 | 795 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 |
<> | 149:156823d33999 | 796 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 (*) |
<> | 149:156823d33999 | 797 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 |
<> | 149:156823d33999 | 798 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 |
<> | 149:156823d33999 | 799 | * @arg @ref LL_APB1_GRP1_PERIPH_LCD (*) |
<> | 149:156823d33999 | 800 | * @arg @ref LL_APB1_GRP1_PERIPH_WWDG |
<> | 149:156823d33999 | 801 | * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 |
<> | 149:156823d33999 | 802 | * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 (*) |
<> | 149:156823d33999 | 803 | * @arg @ref LL_APB1_GRP1_PERIPH_USART2 |
<> | 149:156823d33999 | 804 | * @arg @ref LL_APB1_GRP1_PERIPH_USART3 |
<> | 149:156823d33999 | 805 | * @arg @ref LL_APB1_GRP1_PERIPH_UART4 (*) |
<> | 149:156823d33999 | 806 | * @arg @ref LL_APB1_GRP1_PERIPH_UART5 (*) |
<> | 149:156823d33999 | 807 | * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 |
<> | 149:156823d33999 | 808 | * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 |
<> | 149:156823d33999 | 809 | * @arg @ref LL_APB1_GRP1_PERIPH_USB |
<> | 149:156823d33999 | 810 | * @arg @ref LL_APB1_GRP1_PERIPH_PWR |
<> | 149:156823d33999 | 811 | * @arg @ref LL_APB1_GRP1_PERIPH_DAC1 |
<> | 149:156823d33999 | 812 | * @arg @ref LL_APB1_GRP1_PERIPH_COMP |
<> | 149:156823d33999 | 813 | * @arg @ref LL_APB1_GRP1_PERIPH_OPAMP (*) |
<> | 149:156823d33999 | 814 | * |
<> | 149:156823d33999 | 815 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 816 | * @retval None |
<> | 149:156823d33999 | 817 | */ |
<> | 149:156823d33999 | 818 | __STATIC_INLINE void LL_APB1_GRP1_EnableClockSleep(uint32_t Periphs) |
<> | 149:156823d33999 | 819 | { |
<> | 149:156823d33999 | 820 | __IO uint32_t tmpreg; |
<> | 149:156823d33999 | 821 | SET_BIT(RCC->APB1LPENR, Periphs); |
<> | 149:156823d33999 | 822 | /* Delay after an RCC peripheral clock enabling */ |
<> | 149:156823d33999 | 823 | tmpreg = READ_BIT(RCC->APB1LPENR, Periphs); |
<> | 149:156823d33999 | 824 | (void)tmpreg; |
<> | 149:156823d33999 | 825 | } |
<> | 149:156823d33999 | 826 | |
<> | 149:156823d33999 | 827 | /** |
<> | 149:156823d33999 | 828 | * @brief Disable APB1 peripherals clock during Low Power (Sleep) mode. |
<> | 149:156823d33999 | 829 | * @rmtoll APB1LPENR TIM2LPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 830 | * APB1LPENR TIM3LPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 831 | * APB1LPENR TIM4LPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 832 | * APB1LPENR TIM5LPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 833 | * APB1LPENR TIM6LPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 834 | * APB1LPENR TIM7LPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 835 | * APB1LPENR LCDLPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 836 | * APB1LPENR WWDGLPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 837 | * APB1LPENR SPI2LPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 838 | * APB1LPENR SPI3LPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 839 | * APB1LPENR USART2LPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 840 | * APB1LPENR USART3LPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 841 | * APB1LPENR UART4LPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 842 | * APB1LPENR UART5LPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 843 | * APB1LPENR I2C1LPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 844 | * APB1LPENR I2C2LPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 845 | * APB1LPENR USBLPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 846 | * APB1LPENR PWRLPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 847 | * APB1LPENR DACLPEN LL_APB1_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 848 | * APB1LPENR COMPLPEN LL_APB1_GRP1_DisableClockSleep |
<> | 149:156823d33999 | 849 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 850 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM2 |
<> | 149:156823d33999 | 851 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM3 |
<> | 149:156823d33999 | 852 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM4 |
<> | 149:156823d33999 | 853 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM5 (*) |
<> | 149:156823d33999 | 854 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM6 |
<> | 149:156823d33999 | 855 | * @arg @ref LL_APB1_GRP1_PERIPH_TIM7 |
<> | 149:156823d33999 | 856 | * @arg @ref LL_APB1_GRP1_PERIPH_LCD (*) |
<> | 149:156823d33999 | 857 | * @arg @ref LL_APB1_GRP1_PERIPH_WWDG |
<> | 149:156823d33999 | 858 | * @arg @ref LL_APB1_GRP1_PERIPH_SPI2 |
<> | 149:156823d33999 | 859 | * @arg @ref LL_APB1_GRP1_PERIPH_SPI3 (*) |
<> | 149:156823d33999 | 860 | * @arg @ref LL_APB1_GRP1_PERIPH_USART2 |
<> | 149:156823d33999 | 861 | * @arg @ref LL_APB1_GRP1_PERIPH_USART3 |
<> | 149:156823d33999 | 862 | * @arg @ref LL_APB1_GRP1_PERIPH_UART4 (*) |
<> | 149:156823d33999 | 863 | * @arg @ref LL_APB1_GRP1_PERIPH_UART5 (*) |
<> | 149:156823d33999 | 864 | * @arg @ref LL_APB1_GRP1_PERIPH_I2C1 |
<> | 149:156823d33999 | 865 | * @arg @ref LL_APB1_GRP1_PERIPH_I2C2 |
<> | 149:156823d33999 | 866 | * @arg @ref LL_APB1_GRP1_PERIPH_USB |
<> | 149:156823d33999 | 867 | * @arg @ref LL_APB1_GRP1_PERIPH_PWR |
<> | 149:156823d33999 | 868 | * @arg @ref LL_APB1_GRP1_PERIPH_DAC1 |
<> | 149:156823d33999 | 869 | * @arg @ref LL_APB1_GRP1_PERIPH_COMP |
<> | 149:156823d33999 | 870 | * @arg @ref LL_APB1_GRP1_PERIPH_OPAMP (*) |
<> | 149:156823d33999 | 871 | * |
<> | 149:156823d33999 | 872 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 873 | * @retval None |
<> | 149:156823d33999 | 874 | */ |
<> | 149:156823d33999 | 875 | __STATIC_INLINE void LL_APB1_GRP1_DisableClockSleep(uint32_t Periphs) |
<> | 149:156823d33999 | 876 | { |
<> | 149:156823d33999 | 877 | CLEAR_BIT(RCC->APB1LPENR, Periphs); |
<> | 149:156823d33999 | 878 | } |
<> | 149:156823d33999 | 879 | |
<> | 149:156823d33999 | 880 | /** |
<> | 149:156823d33999 | 881 | * @} |
<> | 149:156823d33999 | 882 | */ |
<> | 149:156823d33999 | 883 | |
<> | 149:156823d33999 | 884 | /** @defgroup BUS_LL_EF_APB2 APB2 |
<> | 149:156823d33999 | 885 | * @{ |
<> | 149:156823d33999 | 886 | */ |
<> | 149:156823d33999 | 887 | |
<> | 149:156823d33999 | 888 | /** |
<> | 149:156823d33999 | 889 | * @brief Enable APB2 peripherals clock. |
<> | 149:156823d33999 | 890 | * @rmtoll APB2ENR SYSCFGEN LL_APB2_GRP1_EnableClock\n |
<> | 149:156823d33999 | 891 | * APB2ENR TIM9EN LL_APB2_GRP1_EnableClock\n |
<> | 149:156823d33999 | 892 | * APB2ENR TIM10EN LL_APB2_GRP1_EnableClock\n |
<> | 149:156823d33999 | 893 | * APB2ENR TIM11EN LL_APB2_GRP1_EnableClock\n |
<> | 149:156823d33999 | 894 | * APB2ENR ADC1EN LL_APB2_GRP1_EnableClock\n |
<> | 149:156823d33999 | 895 | * APB2ENR SDIOEN LL_APB2_GRP1_EnableClock\n |
<> | 149:156823d33999 | 896 | * APB2ENR SPI1EN LL_APB2_GRP1_EnableClock\n |
<> | 149:156823d33999 | 897 | * APB2ENR USART1EN LL_APB2_GRP1_EnableClock |
<> | 149:156823d33999 | 898 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 899 | * @arg @ref LL_APB2_GRP1_PERIPH_SYSCFG |
<> | 149:156823d33999 | 900 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM9 |
<> | 149:156823d33999 | 901 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM10 |
<> | 149:156823d33999 | 902 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM11 |
<> | 149:156823d33999 | 903 | * @arg @ref LL_APB2_GRP1_PERIPH_ADC1 |
<> | 149:156823d33999 | 904 | * @arg @ref LL_APB2_GRP1_PERIPH_SDIO (*) |
<> | 149:156823d33999 | 905 | * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 |
<> | 149:156823d33999 | 906 | * @arg @ref LL_APB2_GRP1_PERIPH_USART1 |
<> | 149:156823d33999 | 907 | * |
<> | 149:156823d33999 | 908 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 909 | * @retval None |
<> | 149:156823d33999 | 910 | */ |
<> | 149:156823d33999 | 911 | __STATIC_INLINE void LL_APB2_GRP1_EnableClock(uint32_t Periphs) |
<> | 149:156823d33999 | 912 | { |
<> | 149:156823d33999 | 913 | __IO uint32_t tmpreg; |
<> | 149:156823d33999 | 914 | SET_BIT(RCC->APB2ENR, Periphs); |
<> | 149:156823d33999 | 915 | /* Delay after an RCC peripheral clock enabling */ |
<> | 149:156823d33999 | 916 | tmpreg = READ_BIT(RCC->APB2ENR, Periphs); |
<> | 149:156823d33999 | 917 | (void)tmpreg; |
<> | 149:156823d33999 | 918 | } |
<> | 149:156823d33999 | 919 | |
<> | 149:156823d33999 | 920 | /** |
<> | 149:156823d33999 | 921 | * @brief Check if APB2 peripheral clock is enabled or not |
<> | 149:156823d33999 | 922 | * @rmtoll APB2ENR SYSCFGEN LL_APB2_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 923 | * APB2ENR TIM9EN LL_APB2_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 924 | * APB2ENR TIM10EN LL_APB2_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 925 | * APB2ENR TIM11EN LL_APB2_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 926 | * APB2ENR ADC1EN LL_APB2_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 927 | * APB2ENR SDIOEN LL_APB2_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 928 | * APB2ENR SPI1EN LL_APB2_GRP1_IsEnabledClock\n |
<> | 149:156823d33999 | 929 | * APB2ENR USART1EN LL_APB2_GRP1_IsEnabledClock |
<> | 149:156823d33999 | 930 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 931 | * @arg @ref LL_APB2_GRP1_PERIPH_SYSCFG |
<> | 149:156823d33999 | 932 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM9 |
<> | 149:156823d33999 | 933 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM10 |
<> | 149:156823d33999 | 934 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM11 |
<> | 149:156823d33999 | 935 | * @arg @ref LL_APB2_GRP1_PERIPH_ADC1 |
<> | 149:156823d33999 | 936 | * @arg @ref LL_APB2_GRP1_PERIPH_SDIO (*) |
<> | 149:156823d33999 | 937 | * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 |
<> | 149:156823d33999 | 938 | * @arg @ref LL_APB2_GRP1_PERIPH_USART1 |
<> | 149:156823d33999 | 939 | * |
<> | 149:156823d33999 | 940 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 941 | * @retval State of Periphs (1 or 0). |
<> | 149:156823d33999 | 942 | */ |
<> | 149:156823d33999 | 943 | __STATIC_INLINE uint32_t LL_APB2_GRP1_IsEnabledClock(uint32_t Periphs) |
<> | 149:156823d33999 | 944 | { |
<> | 149:156823d33999 | 945 | return (READ_BIT(RCC->APB2ENR, Periphs) == Periphs); |
<> | 149:156823d33999 | 946 | } |
<> | 149:156823d33999 | 947 | |
<> | 149:156823d33999 | 948 | /** |
<> | 149:156823d33999 | 949 | * @brief Disable APB2 peripherals clock. |
<> | 149:156823d33999 | 950 | * @rmtoll APB2ENR SYSCFGEN LL_APB2_GRP1_DisableClock\n |
<> | 149:156823d33999 | 951 | * APB2ENR TIM9EN LL_APB2_GRP1_DisableClock\n |
<> | 149:156823d33999 | 952 | * APB2ENR TIM10EN LL_APB2_GRP1_DisableClock\n |
<> | 149:156823d33999 | 953 | * APB2ENR TIM11EN LL_APB2_GRP1_DisableClock\n |
<> | 149:156823d33999 | 954 | * APB2ENR ADC1EN LL_APB2_GRP1_DisableClock\n |
<> | 149:156823d33999 | 955 | * APB2ENR SDIOEN LL_APB2_GRP1_DisableClock\n |
<> | 149:156823d33999 | 956 | * APB2ENR SPI1EN LL_APB2_GRP1_DisableClock\n |
<> | 149:156823d33999 | 957 | * APB2ENR USART1EN LL_APB2_GRP1_DisableClock |
<> | 149:156823d33999 | 958 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 959 | * @arg @ref LL_APB2_GRP1_PERIPH_SYSCFG |
<> | 149:156823d33999 | 960 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM9 |
<> | 149:156823d33999 | 961 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM10 |
<> | 149:156823d33999 | 962 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM11 |
<> | 149:156823d33999 | 963 | * @arg @ref LL_APB2_GRP1_PERIPH_ADC1 |
<> | 149:156823d33999 | 964 | * @arg @ref LL_APB2_GRP1_PERIPH_SDIO (*) |
<> | 149:156823d33999 | 965 | * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 |
<> | 149:156823d33999 | 966 | * @arg @ref LL_APB2_GRP1_PERIPH_USART1 |
<> | 149:156823d33999 | 967 | * |
<> | 149:156823d33999 | 968 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 969 | * @retval None |
<> | 149:156823d33999 | 970 | */ |
<> | 149:156823d33999 | 971 | __STATIC_INLINE void LL_APB2_GRP1_DisableClock(uint32_t Periphs) |
<> | 149:156823d33999 | 972 | { |
<> | 149:156823d33999 | 973 | CLEAR_BIT(RCC->APB2ENR, Periphs); |
<> | 149:156823d33999 | 974 | } |
<> | 149:156823d33999 | 975 | |
<> | 149:156823d33999 | 976 | /** |
<> | 149:156823d33999 | 977 | * @brief Force APB2 peripherals reset. |
<> | 149:156823d33999 | 978 | * @rmtoll APB2RSTR SYSCFGRST LL_APB2_GRP1_ForceReset\n |
<> | 149:156823d33999 | 979 | * APB2RSTR TIM9RST LL_APB2_GRP1_ForceReset\n |
<> | 149:156823d33999 | 980 | * APB2RSTR TIM10RST LL_APB2_GRP1_ForceReset\n |
<> | 149:156823d33999 | 981 | * APB2RSTR TIM11RST LL_APB2_GRP1_ForceReset\n |
<> | 149:156823d33999 | 982 | * APB2RSTR ADC1RST LL_APB2_GRP1_ForceReset\n |
<> | 149:156823d33999 | 983 | * APB2RSTR SDIORST LL_APB2_GRP1_ForceReset\n |
<> | 149:156823d33999 | 984 | * APB2RSTR SPI1RST LL_APB2_GRP1_ForceReset\n |
<> | 149:156823d33999 | 985 | * APB2RSTR USART1RST LL_APB2_GRP1_ForceReset |
<> | 149:156823d33999 | 986 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 987 | * @arg @ref LL_APB2_GRP1_PERIPH_ALL |
<> | 149:156823d33999 | 988 | * @arg @ref LL_APB2_GRP1_PERIPH_SYSCFG |
<> | 149:156823d33999 | 989 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM9 |
<> | 149:156823d33999 | 990 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM10 |
<> | 149:156823d33999 | 991 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM11 |
<> | 149:156823d33999 | 992 | * @arg @ref LL_APB2_GRP1_PERIPH_ADC1 |
<> | 149:156823d33999 | 993 | * @arg @ref LL_APB2_GRP1_PERIPH_SDIO (*) |
<> | 149:156823d33999 | 994 | * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 |
<> | 149:156823d33999 | 995 | * @arg @ref LL_APB2_GRP1_PERIPH_USART1 |
<> | 149:156823d33999 | 996 | * |
<> | 149:156823d33999 | 997 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 998 | * @retval None |
<> | 149:156823d33999 | 999 | */ |
<> | 149:156823d33999 | 1000 | __STATIC_INLINE void LL_APB2_GRP1_ForceReset(uint32_t Periphs) |
<> | 149:156823d33999 | 1001 | { |
<> | 149:156823d33999 | 1002 | SET_BIT(RCC->APB2RSTR, Periphs); |
<> | 149:156823d33999 | 1003 | } |
<> | 149:156823d33999 | 1004 | |
<> | 149:156823d33999 | 1005 | /** |
<> | 149:156823d33999 | 1006 | * @brief Release APB2 peripherals reset. |
<> | 149:156823d33999 | 1007 | * @rmtoll APB2RSTR SYSCFGRST LL_APB2_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 1008 | * APB2RSTR TIM9RST LL_APB2_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 1009 | * APB2RSTR TIM10RST LL_APB2_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 1010 | * APB2RSTR TIM11RST LL_APB2_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 1011 | * APB2RSTR ADC1RST LL_APB2_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 1012 | * APB2RSTR SDIORST LL_APB2_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 1013 | * APB2RSTR SPI1RST LL_APB2_GRP1_ReleaseReset\n |
<> | 149:156823d33999 | 1014 | * APB2RSTR USART1RST LL_APB2_GRP1_ReleaseReset |
<> | 149:156823d33999 | 1015 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 1016 | * @arg @ref LL_APB2_GRP1_PERIPH_ALL |
<> | 149:156823d33999 | 1017 | * @arg @ref LL_APB2_GRP1_PERIPH_SYSCFG |
<> | 149:156823d33999 | 1018 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM9 |
<> | 149:156823d33999 | 1019 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM10 |
<> | 149:156823d33999 | 1020 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM11 |
<> | 149:156823d33999 | 1021 | * @arg @ref LL_APB2_GRP1_PERIPH_ADC1 |
<> | 149:156823d33999 | 1022 | * @arg @ref LL_APB2_GRP1_PERIPH_SDIO (*) |
<> | 149:156823d33999 | 1023 | * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 |
<> | 149:156823d33999 | 1024 | * @arg @ref LL_APB2_GRP1_PERIPH_USART1 |
<> | 149:156823d33999 | 1025 | * |
<> | 149:156823d33999 | 1026 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 1027 | * @retval None |
<> | 149:156823d33999 | 1028 | */ |
<> | 149:156823d33999 | 1029 | __STATIC_INLINE void LL_APB2_GRP1_ReleaseReset(uint32_t Periphs) |
<> | 149:156823d33999 | 1030 | { |
<> | 149:156823d33999 | 1031 | CLEAR_BIT(RCC->APB2RSTR, Periphs); |
<> | 149:156823d33999 | 1032 | } |
<> | 149:156823d33999 | 1033 | |
<> | 149:156823d33999 | 1034 | /** |
<> | 149:156823d33999 | 1035 | * @brief Enable APB2 peripherals clock during Low Power (Sleep) mode. |
<> | 149:156823d33999 | 1036 | * @rmtoll APB2LPENR SYSCFGLPEN LL_APB2_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 1037 | * APB2LPENR TIM9LPEN LL_APB2_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 1038 | * APB2LPENR TIM10LPEN LL_APB2_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 1039 | * APB2LPENR TIM11LPEN LL_APB2_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 1040 | * APB2LPENR ADC1LPEN LL_APB2_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 1041 | * APB2LPENR SDIOLPEN LL_APB2_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 1042 | * APB2LPENR SPI1LPEN LL_APB2_GRP1_EnableClockSleep\n |
<> | 149:156823d33999 | 1043 | * APB2LPENR USART1LPEN LL_APB2_GRP1_EnableClockSleep |
<> | 149:156823d33999 | 1044 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 1045 | * @arg @ref LL_APB2_GRP1_PERIPH_SYSCFG |
<> | 149:156823d33999 | 1046 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM9 |
<> | 149:156823d33999 | 1047 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM10 |
<> | 149:156823d33999 | 1048 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM11 |
<> | 149:156823d33999 | 1049 | * @arg @ref LL_APB2_GRP1_PERIPH_ADC1 |
<> | 149:156823d33999 | 1050 | * @arg @ref LL_APB2_GRP1_PERIPH_SDIO (*) |
<> | 149:156823d33999 | 1051 | * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 |
<> | 149:156823d33999 | 1052 | * @arg @ref LL_APB2_GRP1_PERIPH_USART1 |
<> | 149:156823d33999 | 1053 | * |
<> | 149:156823d33999 | 1054 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 1055 | * @retval None |
<> | 149:156823d33999 | 1056 | */ |
<> | 149:156823d33999 | 1057 | __STATIC_INLINE void LL_APB2_GRP1_EnableClockSleep(uint32_t Periphs) |
<> | 149:156823d33999 | 1058 | { |
<> | 149:156823d33999 | 1059 | __IO uint32_t tmpreg; |
<> | 149:156823d33999 | 1060 | SET_BIT(RCC->APB2LPENR, Periphs); |
<> | 149:156823d33999 | 1061 | /* Delay after an RCC peripheral clock enabling */ |
<> | 149:156823d33999 | 1062 | tmpreg = READ_BIT(RCC->APB2LPENR, Periphs); |
<> | 149:156823d33999 | 1063 | (void)tmpreg; |
<> | 149:156823d33999 | 1064 | } |
<> | 149:156823d33999 | 1065 | |
<> | 149:156823d33999 | 1066 | /** |
<> | 149:156823d33999 | 1067 | * @brief Disable APB2 peripherals clock during Low Power (Sleep) mode. |
<> | 149:156823d33999 | 1068 | * @rmtoll APB2LPENR SYSCFGLPEN LL_APB2_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 1069 | * APB2LPENR TIM9LPEN LL_APB2_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 1070 | * APB2LPENR TIM10LPEN LL_APB2_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 1071 | * APB2LPENR TIM11LPEN LL_APB2_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 1072 | * APB2LPENR ADC1LPEN LL_APB2_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 1073 | * APB2LPENR SDIOLPEN LL_APB2_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 1074 | * APB2LPENR SPI1LPEN LL_APB2_GRP1_DisableClockSleep\n |
<> | 149:156823d33999 | 1075 | * APB2LPENR USART1LPEN LL_APB2_GRP1_DisableClockSleep |
<> | 149:156823d33999 | 1076 | * @param Periphs This parameter can be a combination of the following values: |
<> | 149:156823d33999 | 1077 | * @arg @ref LL_APB2_GRP1_PERIPH_SYSCFG |
<> | 149:156823d33999 | 1078 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM9 |
<> | 149:156823d33999 | 1079 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM10 |
<> | 149:156823d33999 | 1080 | * @arg @ref LL_APB2_GRP1_PERIPH_TIM11 |
<> | 149:156823d33999 | 1081 | * @arg @ref LL_APB2_GRP1_PERIPH_ADC1 |
<> | 149:156823d33999 | 1082 | * @arg @ref LL_APB2_GRP1_PERIPH_SDIO (*) |
<> | 149:156823d33999 | 1083 | * @arg @ref LL_APB2_GRP1_PERIPH_SPI1 |
<> | 149:156823d33999 | 1084 | * @arg @ref LL_APB2_GRP1_PERIPH_USART1 |
<> | 149:156823d33999 | 1085 | * |
<> | 149:156823d33999 | 1086 | * (*) value not defined in all devices. |
<> | 149:156823d33999 | 1087 | * @retval None |
<> | 149:156823d33999 | 1088 | */ |
<> | 149:156823d33999 | 1089 | __STATIC_INLINE void LL_APB2_GRP1_DisableClockSleep(uint32_t Periphs) |
<> | 149:156823d33999 | 1090 | { |
<> | 149:156823d33999 | 1091 | CLEAR_BIT(RCC->APB2LPENR, Periphs); |
<> | 149:156823d33999 | 1092 | } |
<> | 149:156823d33999 | 1093 | |
<> | 149:156823d33999 | 1094 | /** |
<> | 149:156823d33999 | 1095 | * @} |
<> | 149:156823d33999 | 1096 | */ |
<> | 149:156823d33999 | 1097 | |
<> | 149:156823d33999 | 1098 | |
<> | 149:156823d33999 | 1099 | /** |
<> | 149:156823d33999 | 1100 | * @} |
<> | 149:156823d33999 | 1101 | */ |
<> | 149:156823d33999 | 1102 | |
<> | 149:156823d33999 | 1103 | /** |
<> | 149:156823d33999 | 1104 | * @} |
<> | 149:156823d33999 | 1105 | */ |
<> | 149:156823d33999 | 1106 | |
<> | 149:156823d33999 | 1107 | #endif /* defined(RCC) */ |
<> | 149:156823d33999 | 1108 | |
<> | 149:156823d33999 | 1109 | /** |
<> | 149:156823d33999 | 1110 | * @} |
<> | 149:156823d33999 | 1111 | */ |
<> | 149:156823d33999 | 1112 | |
<> | 149:156823d33999 | 1113 | #ifdef __cplusplus |
<> | 149:156823d33999 | 1114 | } |
<> | 149:156823d33999 | 1115 | #endif |
<> | 149:156823d33999 | 1116 | |
<> | 149:156823d33999 | 1117 | #endif /* __STM32L1xx_LL_BUS_H */ |
<> | 149:156823d33999 | 1118 | |
<> | 149:156823d33999 | 1119 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |