meh
Fork of mbed by
TARGET_NUCLEO_F091RC/stm32f0xx_hal.h@108:34e6b704fe68, 2015-10-02 (annotated)
- Committer:
- Kojto
- Date:
- Fri Oct 02 07:35:07 2015 +0200
- Revision:
- 108:34e6b704fe68
- Parent:
- 93:e188a91d3eaa
Release 108 of the mbed library
Changes:
- new platforms - ELMO_F411RE, WIZNET_7500P, ARM_MPS2_BEID
- EFM32 - bugfixes in rtc, serial
- Cortex A cmsis - update files
- STML4 - RAM fixes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 90:cb3d968589d8 | 1 | /** |
Kojto | 90:cb3d968589d8 | 2 | ****************************************************************************** |
Kojto | 90:cb3d968589d8 | 3 | * @file stm32f0xx_hal.h |
Kojto | 90:cb3d968589d8 | 4 | * @author MCD Application Team |
Kojto | 108:34e6b704fe68 | 5 | * @version V1.3.0 |
Kojto | 108:34e6b704fe68 | 6 | * @date 26-June-2015 |
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 | 108:34e6b704fe68 | 12 | * <h2><center>© COPYRIGHT(c) 2015 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 __STM32F0xx_HAL_H |
Kojto | 90:cb3d968589d8 | 41 | #define __STM32F0xx_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 "stm32f0xx_hal_conf.h" |
Kojto | 90:cb3d968589d8 | 49 | |
Kojto | 90:cb3d968589d8 | 50 | /** @addtogroup STM32F0xx_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 | 108:34e6b704fe68 | 58 | /* Private macros ------------------------------------------------------------*/ |
Kojto | 108:34e6b704fe68 | 59 | /** @addtogroup HAL_Private_Macros |
Kojto | 108:34e6b704fe68 | 60 | * @{ |
Kojto | 108:34e6b704fe68 | 61 | */ |
Kojto | 108:34e6b704fe68 | 62 | #if defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F042x6) || defined(STM32F048xx) || \ |
Kojto | 108:34e6b704fe68 | 63 | defined(STM32F030x6) || defined(STM32F031x6) || defined(STM32F038xx) || defined(STM32F070x6) || \ |
Kojto | 108:34e6b704fe68 | 64 | defined(STM32F070xB) || defined(STM32F030x6) |
Kojto | 108:34e6b704fe68 | 65 | #define IS_SYSCFG_FASTMODEPLUS(__PIN__) ((((__PIN__) & SYSCFG_FASTMODEPLUS_PA9) == SYSCFG_FASTMODEPLUS_PA9) || \ |
Kojto | 108:34e6b704fe68 | 66 | (((__PIN__) & SYSCFG_FASTMODEPLUS_PA10) == SYSCFG_FASTMODEPLUS_PA10) || \ |
Kojto | 108:34e6b704fe68 | 67 | (((__PIN__) & SYSCFG_FASTMODEPLUS_PB6) == SYSCFG_FASTMODEPLUS_PB6) || \ |
Kojto | 108:34e6b704fe68 | 68 | (((__PIN__) & SYSCFG_FASTMODEPLUS_PB7) == SYSCFG_FASTMODEPLUS_PB7) || \ |
Kojto | 108:34e6b704fe68 | 69 | (((__PIN__) & SYSCFG_FASTMODEPLUS_PB8) == SYSCFG_FASTMODEPLUS_PB8) || \ |
Kojto | 108:34e6b704fe68 | 70 | (((__PIN__) & SYSCFG_FASTMODEPLUS_PB9) == SYSCFG_FASTMODEPLUS_PB9)) |
Kojto | 108:34e6b704fe68 | 71 | #else |
Kojto | 108:34e6b704fe68 | 72 | #define IS_SYSCFG_FASTMODEPLUS(__PIN__) ((((__PIN__) & SYSCFG_FASTMODEPLUS_PB6) == SYSCFG_FASTMODEPLUS_PB6) || \ |
Kojto | 108:34e6b704fe68 | 73 | (((__PIN__) & SYSCFG_FASTMODEPLUS_PB7) == SYSCFG_FASTMODEPLUS_PB7) || \ |
Kojto | 108:34e6b704fe68 | 74 | (((__PIN__) & SYSCFG_FASTMODEPLUS_PB8) == SYSCFG_FASTMODEPLUS_PB8) || \ |
Kojto | 108:34e6b704fe68 | 75 | (((__PIN__) & SYSCFG_FASTMODEPLUS_PB9) == SYSCFG_FASTMODEPLUS_PB9)) |
Kojto | 108:34e6b704fe68 | 76 | #endif |
Kojto | 108:34e6b704fe68 | 77 | #if defined(SYSCFG_CFGR1_PA11_PA12_RMP) |
Kojto | 108:34e6b704fe68 | 78 | #define IS_HAL_REMAP_PIN(RMP) ((RMP) == HAL_REMAP_PA11_PA12) |
Kojto | 108:34e6b704fe68 | 79 | #endif /* SYSCFG_CFGR1_PA11_PA12_RMP */ |
Kojto | 108:34e6b704fe68 | 80 | #if defined(STM32F091xC) || defined(STM32F098xx) |
Kojto | 108:34e6b704fe68 | 81 | #define IS_HAL_SYSCFG_IRDA_ENV_SEL(SEL) (((SEL) == HAL_SYSCFG_IRDA_ENV_SEL_TIM16) || \ |
Kojto | 108:34e6b704fe68 | 82 | ((SEL) == HAL_SYSCFG_IRDA_ENV_SEL_USART1) || \ |
Kojto | 108:34e6b704fe68 | 83 | ((SEL) == HAL_SYSCFG_IRDA_ENV_SEL_USART4)) |
Kojto | 108:34e6b704fe68 | 84 | #endif /* STM32F091xC || STM32F098xx */ |
Kojto | 108:34e6b704fe68 | 85 | /** |
Kojto | 108:34e6b704fe68 | 86 | * @} |
Kojto | 108:34e6b704fe68 | 87 | */ |
Kojto | 108:34e6b704fe68 | 88 | |
Kojto | 90:cb3d968589d8 | 89 | /* Exported types ------------------------------------------------------------*/ |
Kojto | 90:cb3d968589d8 | 90 | /* Exported constants --------------------------------------------------------*/ |
Kojto | 90:cb3d968589d8 | 91 | /** @defgroup HAL_Exported_Constants HAL Exported Constants |
Kojto | 108:34e6b704fe68 | 92 | * @{ |
Kojto | 90:cb3d968589d8 | 93 | */ |
Kojto | 90:cb3d968589d8 | 94 | |
Kojto | 90:cb3d968589d8 | 95 | #if defined(SYSCFG_CFGR1_PA11_PA12_RMP) |
Kojto | 90:cb3d968589d8 | 96 | /** @defgroup HAL_Pin_remapping HAL Pin remapping |
Kojto | 90:cb3d968589d8 | 97 | * @{ |
Kojto | 90:cb3d968589d8 | 98 | */ |
Kojto | 90:cb3d968589d8 | 99 | #define HAL_REMAP_PA11_PA12 (SYSCFG_CFGR1_PA11_PA12_RMP) /*!< PA11 and PA12 remapping bit for small packages (28 and 20 pins). |
Kojto | 90:cb3d968589d8 | 100 | 0: No remap (pin pair PA9/10 mapped on the pins) |
Kojto | 90:cb3d968589d8 | 101 | 1: Remap (pin pair PA11/12 mapped instead of PA9/10) */ |
Kojto | 90:cb3d968589d8 | 102 | |
Kojto | 90:cb3d968589d8 | 103 | /** |
Kojto | 90:cb3d968589d8 | 104 | * @} |
Kojto | 90:cb3d968589d8 | 105 | */ |
Kojto | 90:cb3d968589d8 | 106 | #endif /* SYSCFG_CFGR1_PA11_PA12_RMP */ |
Kojto | 90:cb3d968589d8 | 107 | |
Kojto | 93:e188a91d3eaa | 108 | #if defined(STM32F091xC) || defined(STM32F098xx) |
Kojto | 90:cb3d968589d8 | 109 | /** @defgroup HAL_IRDA_ENV_SEL HAL IRDA Enveloppe Selection |
Kojto | 93:e188a91d3eaa | 110 | * @note Applicable on STM32F09x |
Kojto | 90:cb3d968589d8 | 111 | * @{ |
Kojto | 90:cb3d968589d8 | 112 | */ |
Kojto | 90:cb3d968589d8 | 113 | #define HAL_SYSCFG_IRDA_ENV_SEL_TIM16 (SYSCFG_CFGR1_IRDA_ENV_SEL_0 & SYSCFG_CFGR1_IRDA_ENV_SEL_1) /* 00: Timer16 is selected as IRDA Modulation enveloppe source */ |
Kojto | 90:cb3d968589d8 | 114 | #define HAL_SYSCFG_IRDA_ENV_SEL_USART1 (SYSCFG_CFGR1_IRDA_ENV_SEL_0) /* 01: USART1 is selected as IRDA Modulation enveloppe source */ |
Kojto | 90:cb3d968589d8 | 115 | #define HAL_SYSCFG_IRDA_ENV_SEL_USART4 (SYSCFG_CFGR1_IRDA_ENV_SEL_1) /* 10: USART4 is selected as IRDA Modulation enveloppe source */ |
Kojto | 90:cb3d968589d8 | 116 | |
Kojto | 90:cb3d968589d8 | 117 | /** |
Kojto | 90:cb3d968589d8 | 118 | * @} |
Kojto | 90:cb3d968589d8 | 119 | */ |
Kojto | 93:e188a91d3eaa | 120 | #endif /* STM32F091xC || STM32F098xx */ |
Kojto | 90:cb3d968589d8 | 121 | |
Kojto | 90:cb3d968589d8 | 122 | |
Kojto | 108:34e6b704fe68 | 123 | /** @defgroup SYSCFG_FastModePlus_GPIO Fast-mode Plus on GPIO |
Kojto | 90:cb3d968589d8 | 124 | * @{ |
Kojto | 90:cb3d968589d8 | 125 | */ |
Kojto | 90:cb3d968589d8 | 126 | |
Kojto | 108:34e6b704fe68 | 127 | /** @brief Fast-mode Plus driving capability on a specific GPIO |
Kojto | 108:34e6b704fe68 | 128 | */ |
Kojto | 108:34e6b704fe68 | 129 | #if defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F042x6) || defined(STM32F048xx) || \ |
Kojto | 108:34e6b704fe68 | 130 | defined(STM32F030x6) || defined(STM32F031x6) || defined(STM32F038xx) || defined(STM32F070x6) || \ |
Kojto | 108:34e6b704fe68 | 131 | defined(STM32F070xB) || defined(STM32F030x6) |
Kojto | 108:34e6b704fe68 | 132 | #define SYSCFG_FASTMODEPLUS_PA9 SYSCFG_CFGR1_I2C_FMP_PA9 /*!< Enable Fast-mode Plus on PA9 */ |
Kojto | 108:34e6b704fe68 | 133 | #define SYSCFG_FASTMODEPLUS_PA10 SYSCFG_CFGR1_I2C_FMP_PA10 /*!< Enable Fast-mode Plus on PA10 */ |
Kojto | 90:cb3d968589d8 | 134 | #endif |
Kojto | 108:34e6b704fe68 | 135 | #define SYSCFG_FASTMODEPLUS_PB6 SYSCFG_CFGR1_I2C_FMP_PB6 /*!< Enable Fast-mode Plus on PB6 */ |
Kojto | 108:34e6b704fe68 | 136 | #define SYSCFG_FASTMODEPLUS_PB7 SYSCFG_CFGR1_I2C_FMP_PB7 /*!< Enable Fast-mode Plus on PB7 */ |
Kojto | 108:34e6b704fe68 | 137 | #define SYSCFG_FASTMODEPLUS_PB8 SYSCFG_CFGR1_I2C_FMP_PB8 /*!< Enable Fast-mode Plus on PB8 */ |
Kojto | 108:34e6b704fe68 | 138 | #define SYSCFG_FASTMODEPLUS_PB9 SYSCFG_CFGR1_I2C_FMP_PB9 /*!< Enable Fast-mode Plus on PB9 */ |
Kojto | 90:cb3d968589d8 | 139 | |
Kojto | 90:cb3d968589d8 | 140 | /** |
Kojto | 108:34e6b704fe68 | 141 | * @} |
Kojto | 108:34e6b704fe68 | 142 | */ |
Kojto | 108:34e6b704fe68 | 143 | |
Kojto | 90:cb3d968589d8 | 144 | |
Kojto | 90:cb3d968589d8 | 145 | #if defined(STM32F091xC) || defined (STM32F098xx) |
Kojto | 90:cb3d968589d8 | 146 | /** @defgroup HAL_ISR_Wrapper HAL ISR Wrapper |
Kojto | 93:e188a91d3eaa | 147 | * @brief ISR Wrapper |
Kojto | 93:e188a91d3eaa | 148 | * @note applicable on STM32F09x |
Kojto | 90:cb3d968589d8 | 149 | * @{ |
Kojto | 90:cb3d968589d8 | 150 | */ |
Kojto | 93:e188a91d3eaa | 151 | #define HAL_SYSCFG_ITLINE0 ((uint32_t) 0x00000000) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 152 | #define HAL_SYSCFG_ITLINE1 ((uint32_t) 0x00000001) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 153 | #define HAL_SYSCFG_ITLINE2 ((uint32_t) 0x00000002) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 154 | #define HAL_SYSCFG_ITLINE3 ((uint32_t) 0x00000003) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 155 | #define HAL_SYSCFG_ITLINE4 ((uint32_t) 0x00000004) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 156 | #define HAL_SYSCFG_ITLINE5 ((uint32_t) 0x00000005) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 157 | #define HAL_SYSCFG_ITLINE6 ((uint32_t) 0x00000006) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 158 | #define HAL_SYSCFG_ITLINE7 ((uint32_t) 0x00000007) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 159 | #define HAL_SYSCFG_ITLINE8 ((uint32_t) 0x00000008) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 160 | #define HAL_SYSCFG_ITLINE9 ((uint32_t) 0x00000009) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 161 | #define HAL_SYSCFG_ITLINE10 ((uint32_t) 0x0000000A) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 162 | #define HAL_SYSCFG_ITLINE11 ((uint32_t) 0x0000000B) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 163 | #define HAL_SYSCFG_ITLINE12 ((uint32_t) 0x0000000C) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 164 | #define HAL_SYSCFG_ITLINE13 ((uint32_t) 0x0000000D) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 165 | #define HAL_SYSCFG_ITLINE14 ((uint32_t) 0x0000000E) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 166 | #define HAL_SYSCFG_ITLINE15 ((uint32_t) 0x0000000F) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 167 | #define HAL_SYSCFG_ITLINE16 ((uint32_t) 0x00000010) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 168 | #define HAL_SYSCFG_ITLINE17 ((uint32_t) 0x00000011) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 169 | #define HAL_SYSCFG_ITLINE18 ((uint32_t) 0x00000012) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 170 | #define HAL_SYSCFG_ITLINE19 ((uint32_t) 0x00000013) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 171 | #define HAL_SYSCFG_ITLINE20 ((uint32_t) 0x00000014) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 172 | #define HAL_SYSCFG_ITLINE21 ((uint32_t) 0x00000015) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 173 | #define HAL_SYSCFG_ITLINE22 ((uint32_t) 0x00000016) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 174 | #define HAL_SYSCFG_ITLINE23 ((uint32_t) 0x00000017) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 175 | #define HAL_SYSCFG_ITLINE24 ((uint32_t) 0x00000018) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 176 | #define HAL_SYSCFG_ITLINE25 ((uint32_t) 0x00000019) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 177 | #define HAL_SYSCFG_ITLINE26 ((uint32_t) 0x0000001A) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 178 | #define HAL_SYSCFG_ITLINE27 ((uint32_t) 0x0000001B) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 179 | #define HAL_SYSCFG_ITLINE28 ((uint32_t) 0x0000001C) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 180 | #define HAL_SYSCFG_ITLINE29 ((uint32_t) 0x0000001D) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 181 | #define HAL_SYSCFG_ITLINE30 ((uint32_t) 0x0000001E) /*!< Internal define for macro handling */ |
Kojto | 93:e188a91d3eaa | 182 | #define HAL_SYSCFG_ITLINE31 ((uint32_t) 0x0000001F) /*!< Internal define for macro handling */ |
Kojto | 90:cb3d968589d8 | 183 | |
Kojto | 93:e188a91d3eaa | 184 | #define HAL_ITLINE_EWDG ((uint32_t) ((HAL_SYSCFG_ITLINE0 << 0x18) | SYSCFG_ITLINE0_SR_EWDG)) /*!< EWDG has expired .... */ |
Kojto | 90:cb3d968589d8 | 185 | #if defined(STM32F091xC) |
Kojto | 93:e188a91d3eaa | 186 | #define HAL_ITLINE_PVDOUT ((uint32_t) ((HAL_SYSCFG_ITLINE1 << 0x18) | SYSCFG_ITLINE1_SR_PVDOUT)) /*!< Power voltage detection Interrupt .... */ |
Kojto | 90:cb3d968589d8 | 187 | #endif |
Kojto | 93:e188a91d3eaa | 188 | #define HAL_ITLINE_VDDIO2 ((uint32_t) ((HAL_SYSCFG_ITLINE1 << 0x18) | SYSCFG_ITLINE1_SR_VDDIO2)) /*!< VDDIO2 Interrupt .... */ |
Kojto | 93:e188a91d3eaa | 189 | #define HAL_ITLINE_RTC_WAKEUP ((uint32_t) ((HAL_SYSCFG_ITLINE2 << 0x18) | SYSCFG_ITLINE2_SR_RTC_WAKEUP)) /*!< RTC WAKEUP -> exti[20] Interrupt */ |
Kojto | 93:e188a91d3eaa | 190 | #define HAL_ITLINE_RTC_TSTAMP ((uint32_t) ((HAL_SYSCFG_ITLINE2 << 0x18) | SYSCFG_ITLINE2_SR_RTC_TSTAMP)) /*!< RTC Time Stamp -> exti[19] interrupt */ |
Kojto | 93:e188a91d3eaa | 191 | #define HAL_ITLINE_RTC_ALRA ((uint32_t) ((HAL_SYSCFG_ITLINE2 << 0x18) | SYSCFG_ITLINE2_SR_RTC_ALRA)) /*!< RTC Alarm -> exti[17] interrupt .... */ |
Kojto | 93:e188a91d3eaa | 192 | #define HAL_ITLINE_FLASH_ITF ((uint32_t) ((HAL_SYSCFG_ITLINE3 << 0x18) | SYSCFG_ITLINE3_SR_FLASH_ITF)) /*!< Flash ITF Interrupt */ |
Kojto | 93:e188a91d3eaa | 193 | #define HAL_ITLINE_CRS ((uint32_t) ((HAL_SYSCFG_ITLINE4 << 0x18) | SYSCFG_ITLINE4_SR_CRS)) /*!< CRS Interrupt */ |
Kojto | 93:e188a91d3eaa | 194 | #define HAL_ITLINE_CLK_CTRL ((uint32_t) ((HAL_SYSCFG_ITLINE4 << 0x18) | SYSCFG_ITLINE4_SR_CLK_CTRL)) /*!< CLK Control Interrupt */ |
Kojto | 93:e188a91d3eaa | 195 | #define HAL_ITLINE_EXTI0 ((uint32_t) ((HAL_SYSCFG_ITLINE5 << 0x18) | SYSCFG_ITLINE5_SR_EXTI0)) /*!< External Interrupt 0 */ |
Kojto | 93:e188a91d3eaa | 196 | #define HAL_ITLINE_EXTI1 ((uint32_t) ((HAL_SYSCFG_ITLINE5 << 0x18) | SYSCFG_ITLINE5_SR_EXTI1)) /*!< External Interrupt 1 */ |
Kojto | 93:e188a91d3eaa | 197 | #define HAL_ITLINE_EXTI2 ((uint32_t) ((HAL_SYSCFG_ITLINE6 << 0x18) | SYSCFG_ITLINE6_SR_EXTI2)) /*!< External Interrupt 2 */ |
Kojto | 93:e188a91d3eaa | 198 | #define HAL_ITLINE_EXTI3 ((uint32_t) ((HAL_SYSCFG_ITLINE6 << 0x18) | SYSCFG_ITLINE6_SR_EXTI3)) /*!< External Interrupt 3 */ |
Kojto | 93:e188a91d3eaa | 199 | #define HAL_ITLINE_EXTI4 ((uint32_t) ((HAL_SYSCFG_ITLINE7 << 0x18) | SYSCFG_ITLINE7_SR_EXTI4)) /*!< EXTI4 Interrupt */ |
Kojto | 93:e188a91d3eaa | 200 | #define HAL_ITLINE_EXTI5 ((uint32_t) ((HAL_SYSCFG_ITLINE7 << 0x18) | SYSCFG_ITLINE7_SR_EXTI5)) /*!< EXTI5 Interrupt */ |
Kojto | 93:e188a91d3eaa | 201 | #define HAL_ITLINE_EXTI6 ((uint32_t) ((HAL_SYSCFG_ITLINE7 << 0x18) | SYSCFG_ITLINE7_SR_EXTI6)) /*!< EXTI6 Interrupt */ |
Kojto | 93:e188a91d3eaa | 202 | #define HAL_ITLINE_EXTI7 ((uint32_t) ((HAL_SYSCFG_ITLINE7 << 0x18) | SYSCFG_ITLINE7_SR_EXTI7)) /*!< EXTI7 Interrupt */ |
Kojto | 93:e188a91d3eaa | 203 | #define HAL_ITLINE_EXTI8 ((uint32_t) ((HAL_SYSCFG_ITLINE7 << 0x18) | SYSCFG_ITLINE7_SR_EXTI8)) /*!< EXTI8 Interrupt */ |
Kojto | 93:e188a91d3eaa | 204 | #define HAL_ITLINE_EXTI9 ((uint32_t) ((HAL_SYSCFG_ITLINE7 << 0x18) | SYSCFG_ITLINE7_SR_EXTI9)) /*!< EXTI9 Interrupt */ |
Kojto | 93:e188a91d3eaa | 205 | #define HAL_ITLINE_EXTI10 ((uint32_t) ((HAL_SYSCFG_ITLINE7 << 0x18) | SYSCFG_ITLINE7_SR_EXTI10)) /*!< EXTI10 Interrupt */ |
Kojto | 93:e188a91d3eaa | 206 | #define HAL_ITLINE_EXTI11 ((uint32_t) ((HAL_SYSCFG_ITLINE7 << 0x18) | SYSCFG_ITLINE7_SR_EXTI11)) /*!< EXTI11 Interrupt */ |
Kojto | 93:e188a91d3eaa | 207 | #define HAL_ITLINE_EXTI12 ((uint32_t) ((HAL_SYSCFG_ITLINE7 << 0x18) | SYSCFG_ITLINE7_SR_EXTI12)) /*!< EXTI12 Interrupt */ |
Kojto | 93:e188a91d3eaa | 208 | #define HAL_ITLINE_EXTI13 ((uint32_t) ((HAL_SYSCFG_ITLINE7 << 0x18) | SYSCFG_ITLINE7_SR_EXTI13)) /*!< EXTI13 Interrupt */ |
Kojto | 93:e188a91d3eaa | 209 | #define HAL_ITLINE_EXTI14 ((uint32_t) ((HAL_SYSCFG_ITLINE7 << 0x18) | SYSCFG_ITLINE7_SR_EXTI14)) /*!< EXTI14 Interrupt */ |
Kojto | 93:e188a91d3eaa | 210 | #define HAL_ITLINE_EXTI15 ((uint32_t) ((HAL_SYSCFG_ITLINE7 << 0x18) | SYSCFG_ITLINE7_SR_EXTI15)) /*!< EXTI15 Interrupt */ |
Kojto | 93:e188a91d3eaa | 211 | #define HAL_ITLINE_TSC_EOA ((uint32_t) ((HAL_SYSCFG_ITLINE8 << 0x18) | SYSCFG_ITLINE8_SR_TSC_EOA)) /*!< Touch control EOA Interrupt */ |
Kojto | 93:e188a91d3eaa | 212 | #define HAL_ITLINE_TSC_MCE ((uint32_t) ((HAL_SYSCFG_ITLINE8 << 0x18) | SYSCFG_ITLINE8_SR_TSC_MCE)) /*!< Touch control MCE Interrupt */ |
Kojto | 93:e188a91d3eaa | 213 | #define HAL_ITLINE_DMA1_CH1 ((uint32_t) ((HAL_SYSCFG_ITLINE9 << 0x18) | SYSCFG_ITLINE9_SR_DMA1_CH1)) /*!< DMA1 Channel 1 Interrupt */ |
Kojto | 93:e188a91d3eaa | 214 | #define HAL_ITLINE_DMA1_CH2 ((uint32_t) ((HAL_SYSCFG_ITLINE10 << 0x18) | SYSCFG_ITLINE10_SR_DMA1_CH2)) /*!< DMA1 Channel 2 Interrupt */ |
Kojto | 93:e188a91d3eaa | 215 | #define HAL_ITLINE_DMA1_CH3 ((uint32_t) ((HAL_SYSCFG_ITLINE10 << 0x18) | SYSCFG_ITLINE10_SR_DMA1_CH3)) /*!< DMA1 Channel 3 Interrupt */ |
Kojto | 93:e188a91d3eaa | 216 | #define HAL_ITLINE_DMA2_CH1 ((uint32_t) ((HAL_SYSCFG_ITLINE10 << 0x18) | SYSCFG_ITLINE10_SR_DMA2_CH1)) /*!< DMA2 Channel 1 Interrupt */ |
Kojto | 93:e188a91d3eaa | 217 | #define HAL_ITLINE_DMA2_CH2 ((uint32_t) ((HAL_SYSCFG_ITLINE10 << 0x18) | SYSCFG_ITLINE10_SR_DMA2_CH2)) /*!< DMA2 Channel 2 Interrupt */ |
Kojto | 93:e188a91d3eaa | 218 | #define HAL_ITLINE_DMA1_CH4 ((uint32_t) ((HAL_SYSCFG_ITLINE11 << 0x18) | SYSCFG_ITLINE11_SR_DMA1_CH4)) /*!< DMA1 Channel 4 Interrupt */ |
Kojto | 93:e188a91d3eaa | 219 | #define HAL_ITLINE_DMA1_CH5 ((uint32_t) ((HAL_SYSCFG_ITLINE11 << 0x18) | SYSCFG_ITLINE11_SR_DMA1_CH5)) /*!< DMA1 Channel 5 Interrupt */ |
Kojto | 93:e188a91d3eaa | 220 | #define HAL_ITLINE_DMA1_CH6 ((uint32_t) ((HAL_SYSCFG_ITLINE11 << 0x18) | SYSCFG_ITLINE11_SR_DMA1_CH6)) /*!< DMA1 Channel 6 Interrupt */ |
Kojto | 93:e188a91d3eaa | 221 | #define HAL_ITLINE_DMA1_CH7 ((uint32_t) ((HAL_SYSCFG_ITLINE11 << 0x18) | SYSCFG_ITLINE11_SR_DMA1_CH7)) /*!< DMA1 Channel 7 Interrupt */ |
Kojto | 93:e188a91d3eaa | 222 | #define HAL_ITLINE_DMA2_CH3 ((uint32_t) ((HAL_SYSCFG_ITLINE11 << 0x18) | SYSCFG_ITLINE11_SR_DMA2_CH3)) /*!< DMA2 Channel 3 Interrupt */ |
Kojto | 93:e188a91d3eaa | 223 | #define HAL_ITLINE_DMA2_CH4 ((uint32_t) ((HAL_SYSCFG_ITLINE11 << 0x18) | SYSCFG_ITLINE11_SR_DMA2_CH4)) /*!< DMA2 Channel 4 Interrupt */ |
Kojto | 93:e188a91d3eaa | 224 | #define HAL_ITLINE_DMA2_CH5 ((uint32_t) ((HAL_SYSCFG_ITLINE11 << 0x18) | SYSCFG_ITLINE11_SR_DMA2_CH5)) /*!< DMA2 Channel 5 Interrupt */ |
Kojto | 93:e188a91d3eaa | 225 | #define HAL_ITLINE_ADC ((uint32_t) ((HAL_SYSCFG_ITLINE12 << 0x18) | SYSCFG_ITLINE12_SR_ADC)) /*!< ADC Interrupt */ |
Kojto | 93:e188a91d3eaa | 226 | #define HAL_ITLINE_COMP1 ((uint32_t) ((HAL_SYSCFG_ITLINE12 << 0x18) | SYSCFG_ITLINE12_SR_COMP1)) /*!< COMP1 Interrupt -> exti[21] */ |
Kojto | 93:e188a91d3eaa | 227 | #define HAL_ITLINE_COMP2 ((uint32_t) ((HAL_SYSCFG_ITLINE12 << 0x18) | SYSCFG_ITLINE12_SR_COMP2)) /*!< COMP2 Interrupt -> exti[21] */ |
Kojto | 93:e188a91d3eaa | 228 | #define HAL_ITLINE_TIM1_BRK ((uint32_t) ((HAL_SYSCFG_ITLINE13 << 0x18) | SYSCFG_ITLINE13_SR_TIM1_BRK)) /*!< TIM1 BRK Interrupt */ |
Kojto | 93:e188a91d3eaa | 229 | #define HAL_ITLINE_TIM1_UPD ((uint32_t) ((HAL_SYSCFG_ITLINE13 << 0x18) | SYSCFG_ITLINE13_SR_TIM1_UPD)) /*!< TIM1 UPD Interrupt */ |
Kojto | 93:e188a91d3eaa | 230 | #define HAL_ITLINE_TIM1_TRG ((uint32_t) ((HAL_SYSCFG_ITLINE13 << 0x18) | SYSCFG_ITLINE13_SR_TIM1_TRG)) /*!< TIM1 TRG Interrupt */ |
Kojto | 93:e188a91d3eaa | 231 | #define HAL_ITLINE_TIM1_CCU ((uint32_t) ((HAL_SYSCFG_ITLINE13 << 0x18) | SYSCFG_ITLINE13_SR_TIM1_CCU)) /*!< TIM1 CCU Interrupt */ |
Kojto | 93:e188a91d3eaa | 232 | #define HAL_ITLINE_TIM1_CC ((uint32_t) ((HAL_SYSCFG_ITLINE14 << 0x18) | SYSCFG_ITLINE14_SR_TIM1_CC)) /*!< TIM1 CC Interrupt */ |
Kojto | 93:e188a91d3eaa | 233 | #define HAL_ITLINE_TIM2 ((uint32_t) ((HAL_SYSCFG_ITLINE15 << 0x18) | SYSCFG_ITLINE15_SR_TIM2_GLB)) /*!< TIM2 Interrupt */ |
Kojto | 93:e188a91d3eaa | 234 | #define HAL_ITLINE_TIM3 ((uint32_t) ((HAL_SYSCFG_ITLINE16 << 0x18) | SYSCFG_ITLINE16_SR_TIM3_GLB)) /*!< TIM3 Interrupt */ |
Kojto | 93:e188a91d3eaa | 235 | #define HAL_ITLINE_DAC ((uint32_t) ((HAL_SYSCFG_ITLINE17 << 0x18) | SYSCFG_ITLINE17_SR_DAC)) /*!< DAC Interrupt */ |
Kojto | 93:e188a91d3eaa | 236 | #define HAL_ITLINE_TIM6 ((uint32_t) ((HAL_SYSCFG_ITLINE17 << 0x18) | SYSCFG_ITLINE17_SR_TIM6_GLB)) /*!< TIM6 Interrupt */ |
Kojto | 93:e188a91d3eaa | 237 | #define HAL_ITLINE_TIM7 ((uint32_t) ((HAL_SYSCFG_ITLINE18 << 0x18) | SYSCFG_ITLINE18_SR_TIM7_GLB)) /*!< TIM7 Interrupt */ |
Kojto | 93:e188a91d3eaa | 238 | #define HAL_ITLINE_TIM14 ((uint32_t) ((HAL_SYSCFG_ITLINE19 << 0x18) | SYSCFG_ITLINE19_SR_TIM14_GLB)) /*!< TIM14 Interrupt */ |
Kojto | 93:e188a91d3eaa | 239 | #define HAL_ITLINE_TIM15 ((uint32_t) ((HAL_SYSCFG_ITLINE20 << 0x18) | SYSCFG_ITLINE20_SR_TIM15_GLB)) /*!< TIM15 Interrupt */ |
Kojto | 93:e188a91d3eaa | 240 | #define HAL_ITLINE_TIM16 ((uint32_t) ((HAL_SYSCFG_ITLINE21 << 0x18) | SYSCFG_ITLINE21_SR_TIM16_GLB)) /*!< TIM16 Interrupt */ |
Kojto | 93:e188a91d3eaa | 241 | #define HAL_ITLINE_TIM17 ((uint32_t) ((HAL_SYSCFG_ITLINE22 << 0x18) | SYSCFG_ITLINE22_SR_TIM17_GLB)) /*!< TIM17 Interrupt */ |
Kojto | 93:e188a91d3eaa | 242 | #define HAL_ITLINE_I2C1 ((uint32_t) ((HAL_SYSCFG_ITLINE23 << 0x18) | SYSCFG_ITLINE23_SR_I2C1_GLB)) /*!< I2C1 Interrupt -> exti[23] */ |
Kojto | 93:e188a91d3eaa | 243 | #define HAL_ITLINE_I2C2 ((uint32_t) ((HAL_SYSCFG_ITLINE24 << 0x18) | SYSCFG_ITLINE24_SR_I2C2_GLB)) /*!< I2C2 Interrupt */ |
Kojto | 93:e188a91d3eaa | 244 | #define HAL_ITLINE_SPI1 ((uint32_t) ((HAL_SYSCFG_ITLINE25 << 0x18) | SYSCFG_ITLINE25_SR_SPI1)) /*!< I2C1 Interrupt -> exti[23] */ |
Kojto | 93:e188a91d3eaa | 245 | #define HAL_ITLINE_SPI2 ((uint32_t) ((HAL_SYSCFG_ITLINE26 << 0x18) | SYSCFG_ITLINE26_SR_SPI2)) /*!< SPI1 Interrupt */ |
Kojto | 90:cb3d968589d8 | 246 | #define HAL_ITLINE_USART1 ((uint32_t) ((HAL_SYSCFG_ITLINE27 << 0x18) | SYSCFG_ITLINE27_SR_USART1_GLB)) /*!< USART1 GLB Interrupt -> exti[25] */ |
Kojto | 90:cb3d968589d8 | 247 | #define HAL_ITLINE_USART2 ((uint32_t) ((HAL_SYSCFG_ITLINE28 << 0x18) | SYSCFG_ITLINE28_SR_USART2_GLB)) /*!< USART2 GLB Interrupt -> exti[26] */ |
Kojto | 93:e188a91d3eaa | 248 | #define HAL_ITLINE_USART3 ((uint32_t) ((HAL_SYSCFG_ITLINE29 << 0x18) | SYSCFG_ITLINE29_SR_USART3_GLB)) /*!< USART3 Interrupt .... */ |
Kojto | 93:e188a91d3eaa | 249 | #define HAL_ITLINE_USART4 ((uint32_t) ((HAL_SYSCFG_ITLINE29 << 0x18) | SYSCFG_ITLINE29_SR_USART4_GLB)) /*!< USART4 Interrupt .... */ |
Kojto | 93:e188a91d3eaa | 250 | #define HAL_ITLINE_USART5 ((uint32_t) ((HAL_SYSCFG_ITLINE29 << 0x18) | SYSCFG_ITLINE29_SR_USART5_GLB)) /*!< USART5 Interrupt .... */ |
Kojto | 93:e188a91d3eaa | 251 | #define HAL_ITLINE_USART6 ((uint32_t) ((HAL_SYSCFG_ITLINE29 << 0x18) | SYSCFG_ITLINE29_SR_USART6_GLB)) /*!< USART6 Interrupt .... */ |
Kojto | 93:e188a91d3eaa | 252 | #define HAL_ITLINE_USART7 ((uint32_t) ((HAL_SYSCFG_ITLINE29 << 0x18) | SYSCFG_ITLINE29_SR_USART7_GLB)) /*!< USART7 Interrupt .... */ |
Kojto | 93:e188a91d3eaa | 253 | #define HAL_ITLINE_USART8 ((uint32_t) ((HAL_SYSCFG_ITLINE29 << 0x18) | SYSCFG_ITLINE29_SR_USART8_GLB)) /*!< USART8 Interrupt .... */ |
Kojto | 93:e188a91d3eaa | 254 | #define HAL_ITLINE_CAN ((uint32_t) ((HAL_SYSCFG_ITLINE30 << 0x18) | SYSCFG_ITLINE30_SR_CAN)) /*!< CAN Interrupt */ |
Kojto | 93:e188a91d3eaa | 255 | #define HAL_ITLINE_CEC ((uint32_t) ((HAL_SYSCFG_ITLINE30 << 0x18) | SYSCFG_ITLINE30_SR_CEC)) /*!< CEC Interrupt -> exti[27] */ |
Kojto | 90:cb3d968589d8 | 256 | /** |
Kojto | 90:cb3d968589d8 | 257 | * @} |
Kojto | 90:cb3d968589d8 | 258 | */ |
Kojto | 90:cb3d968589d8 | 259 | #endif /* STM32F091xC || STM32F098xx */ |
Kojto | 90:cb3d968589d8 | 260 | |
Kojto | 90:cb3d968589d8 | 261 | /** |
Kojto | 90:cb3d968589d8 | 262 | * @} |
Kojto | 90:cb3d968589d8 | 263 | */ |
Kojto | 90:cb3d968589d8 | 264 | |
Kojto | 90:cb3d968589d8 | 265 | /* Exported macros -----------------------------------------------------------*/ |
Kojto | 90:cb3d968589d8 | 266 | /** @defgroup HAL_Exported_Macros HAL Exported Macros |
Kojto | 90:cb3d968589d8 | 267 | * @{ |
Kojto | 90:cb3d968589d8 | 268 | */ |
Kojto | 90:cb3d968589d8 | 269 | |
Kojto | 90:cb3d968589d8 | 270 | /** @defgroup HAL_Freeze_Unfreeze_Peripherals HAL Freeze Unfreeze Peripherals |
Kojto | 90:cb3d968589d8 | 271 | * @brief Freeze/Unfreeze Peripherals in Debug mode |
Kojto | 90:cb3d968589d8 | 272 | * @{ |
Kojto | 90:cb3d968589d8 | 273 | */ |
Kojto | 90:cb3d968589d8 | 274 | |
Kojto | 90:cb3d968589d8 | 275 | #if defined(DBGMCU_APB1_FZ_DBG_CAN_STOP) |
Kojto | 90:cb3d968589d8 | 276 | #define __HAL_FREEZE_CAN_DBGMCU() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_CAN_STOP)) |
Kojto | 90:cb3d968589d8 | 277 | #define __HAL_UNFREEZE_CAN_DBGMCU() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_CAN_STOP)) |
Kojto | 90:cb3d968589d8 | 278 | #endif /* DBGMCU_APB1_FZ_DBG_CAN_STOP */ |
Kojto | 90:cb3d968589d8 | 279 | |
Kojto | 90:cb3d968589d8 | 280 | #if defined(DBGMCU_APB1_FZ_DBG_RTC_STOP) |
Kojto | 108:34e6b704fe68 | 281 | #define __HAL_DBGMCU_FREEZE_RTC() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_RTC_STOP)) |
Kojto | 108:34e6b704fe68 | 282 | #define __HAL_DBGMCU_UNFREEZE_RTC() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_RTC_STOP)) |
Kojto | 90:cb3d968589d8 | 283 | #endif /* DBGMCU_APB1_FZ_DBG_RTC_STOP */ |
Kojto | 90:cb3d968589d8 | 284 | |
Kojto | 90:cb3d968589d8 | 285 | #if defined(DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT) |
Kojto | 108:34e6b704fe68 | 286 | #define __HAL_DBGMCU_FREEZE_I2C1_TIMEOUT() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT)) |
Kojto | 108:34e6b704fe68 | 287 | #define __HAL_DBGMCU_UNFREEZE_I2C1_TIMEOUT() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT)) |
Kojto | 90:cb3d968589d8 | 288 | #endif /* DBGMCU_APB1_FZ_DBG_I2C1_SMBUS_TIMEOUT */ |
Kojto | 90:cb3d968589d8 | 289 | |
Kojto | 90:cb3d968589d8 | 290 | #if defined(DBGMCU_APB1_FZ_DBG_IWDG_STOP) |
Kojto | 108:34e6b704fe68 | 291 | #define __HAL_DBGMCU_FREEZE_IWDG() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_IWDG_STOP)) |
Kojto | 108:34e6b704fe68 | 292 | #define __HAL_DBGMCU_UNFREEZE_IWDG() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_IWDG_STOP)) |
Kojto | 90:cb3d968589d8 | 293 | #endif /* DBGMCU_APB1_FZ_DBG_IWDG_STOP */ |
Kojto | 90:cb3d968589d8 | 294 | |
Kojto | 90:cb3d968589d8 | 295 | #if defined(DBGMCU_APB1_FZ_DBG_WWDG_STOP) |
Kojto | 108:34e6b704fe68 | 296 | #define __HAL_DBGMCU_FREEZE_WWDG() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_WWDG_STOP)) |
Kojto | 108:34e6b704fe68 | 297 | #define __HAL_DBGMCU_UNFREEZE_WWDG() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_WWDG_STOP)) |
Kojto | 90:cb3d968589d8 | 298 | #endif /* DBGMCU_APB1_FZ_DBG_WWDG_STOP */ |
Kojto | 90:cb3d968589d8 | 299 | |
Kojto | 90:cb3d968589d8 | 300 | #if defined(DBGMCU_APB1_FZ_DBG_TIM2_STOP) |
Kojto | 108:34e6b704fe68 | 301 | #define __HAL_DBGMCU_FREEZE_TIM2() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM2_STOP)) |
Kojto | 108:34e6b704fe68 | 302 | #define __HAL_DBGMCU_UNFREEZE_TIM2() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM2_STOP)) |
Kojto | 90:cb3d968589d8 | 303 | #endif /* DBGMCU_APB1_FZ_DBG_TIM2_STOP */ |
Kojto | 90:cb3d968589d8 | 304 | |
Kojto | 90:cb3d968589d8 | 305 | #if defined(DBGMCU_APB1_FZ_DBG_TIM3_STOP) |
Kojto | 108:34e6b704fe68 | 306 | #define __HAL_DBGMCU_FREEZE_TIM3() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM3_STOP)) |
Kojto | 108:34e6b704fe68 | 307 | #define __HAL_DBGMCU_UNFREEZE_TIM3() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM3_STOP)) |
Kojto | 90:cb3d968589d8 | 308 | #endif /* DBGMCU_APB1_FZ_DBG_TIM3_STOP */ |
Kojto | 90:cb3d968589d8 | 309 | |
Kojto | 90:cb3d968589d8 | 310 | #if defined(DBGMCU_APB1_FZ_DBG_TIM6_STOP) |
Kojto | 108:34e6b704fe68 | 311 | #define __HAL_DBGMCU_FREEZE_TIM6() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM6_STOP)) |
Kojto | 108:34e6b704fe68 | 312 | #define __HAL_DBGMCU_UNFREEZE_TIM6() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM6_STOP)) |
Kojto | 90:cb3d968589d8 | 313 | #endif /* DBGMCU_APB1_FZ_DBG_TIM6_STOP */ |
Kojto | 90:cb3d968589d8 | 314 | |
Kojto | 90:cb3d968589d8 | 315 | #if defined(DBGMCU_APB1_FZ_DBG_TIM7_STOP) |
Kojto | 108:34e6b704fe68 | 316 | #define __HAL_DBGMCU_FREEZE_TIM7() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM7_STOP)) |
Kojto | 108:34e6b704fe68 | 317 | #define __HAL_DBGMCU_UNFREEZE_TIM7() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM7_STOP)) |
Kojto | 90:cb3d968589d8 | 318 | #endif /* DBGMCU_APB1_FZ_DBG_TIM7_STOP */ |
Kojto | 90:cb3d968589d8 | 319 | |
Kojto | 90:cb3d968589d8 | 320 | #if defined(DBGMCU_APB1_FZ_DBG_TIM14_STOP) |
Kojto | 108:34e6b704fe68 | 321 | #define __HAL_DBGMCU_FREEZE_TIM14() (DBGMCU->APB1FZ |= (DBGMCU_APB1_FZ_DBG_TIM14_STOP)) |
Kojto | 108:34e6b704fe68 | 322 | #define __HAL_DBGMCU_UNFREEZE_TIM14() (DBGMCU->APB1FZ &= ~(DBGMCU_APB1_FZ_DBG_TIM14_STOP)) |
Kojto | 90:cb3d968589d8 | 323 | #endif /* DBGMCU_APB1_FZ_DBG_TIM14_STOP */ |
Kojto | 90:cb3d968589d8 | 324 | |
Kojto | 90:cb3d968589d8 | 325 | #if defined(DBGMCU_APB2_FZ_DBG_TIM1_STOP) |
Kojto | 108:34e6b704fe68 | 326 | #define __HAL_DBGMCU_FREEZE_TIM1() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM1_STOP)) |
Kojto | 108:34e6b704fe68 | 327 | #define __HAL_DBGMCU_UNFREEZE_TIM1() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM1_STOP)) |
Kojto | 90:cb3d968589d8 | 328 | #endif /* DBGMCU_APB2_FZ_DBG_TIM1_STOP */ |
Kojto | 90:cb3d968589d8 | 329 | |
Kojto | 90:cb3d968589d8 | 330 | #if defined(DBGMCU_APB2_FZ_DBG_TIM15_STOP) |
Kojto | 108:34e6b704fe68 | 331 | #define __HAL_DBGMCU_FREEZE_TIM15() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM15_STOP)) |
Kojto | 108:34e6b704fe68 | 332 | #define __HAL_DBGMCU_UNFREEZE_TIM15() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM15_STOP)) |
Kojto | 90:cb3d968589d8 | 333 | #endif /* DBGMCU_APB2_FZ_DBG_TIM15_STOP */ |
Kojto | 90:cb3d968589d8 | 334 | |
Kojto | 90:cb3d968589d8 | 335 | #if defined(DBGMCU_APB2_FZ_DBG_TIM16_STOP) |
Kojto | 108:34e6b704fe68 | 336 | #define __HAL_DBGMCU_FREEZE_TIM16() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM16_STOP)) |
Kojto | 108:34e6b704fe68 | 337 | #define __HAL_DBGMCU_UNFREEZE_TIM16() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM16_STOP)) |
Kojto | 90:cb3d968589d8 | 338 | #endif /* DBGMCU_APB2_FZ_DBG_TIM16_STOP */ |
Kojto | 90:cb3d968589d8 | 339 | |
Kojto | 90:cb3d968589d8 | 340 | #if defined(DBGMCU_APB2_FZ_DBG_TIM17_STOP) |
Kojto | 108:34e6b704fe68 | 341 | #define __HAL_DBGMCU_FREEZE_TIM17() (DBGMCU->APB2FZ |= (DBGMCU_APB2_FZ_DBG_TIM17_STOP)) |
Kojto | 108:34e6b704fe68 | 342 | #define __HAL_DBGMCU_UNFREEZE_TIM17() (DBGMCU->APB2FZ &= ~(DBGMCU_APB2_FZ_DBG_TIM17_STOP)) |
Kojto | 90:cb3d968589d8 | 343 | #endif /* DBGMCU_APB2_FZ_DBG_TIM17_STOP */ |
Kojto | 90:cb3d968589d8 | 344 | |
Kojto | 90:cb3d968589d8 | 345 | /** |
Kojto | 90:cb3d968589d8 | 346 | * @} |
Kojto | 90:cb3d968589d8 | 347 | */ |
Kojto | 90:cb3d968589d8 | 348 | |
Kojto | 90:cb3d968589d8 | 349 | /** @defgroup Memory_Mapping_Selection Memory Mapping Selection |
Kojto | 90:cb3d968589d8 | 350 | * @{ |
Kojto | 90:cb3d968589d8 | 351 | */ |
Kojto | 90:cb3d968589d8 | 352 | #if defined(SYSCFG_CFGR1_MEM_MODE) |
Kojto | 90:cb3d968589d8 | 353 | /** @brief Main Flash memory mapped at 0x00000000 |
Kojto | 90:cb3d968589d8 | 354 | */ |
Kojto | 108:34e6b704fe68 | 355 | #define __HAL_SYSCFG_REMAPMEMORY_FLASH() (SYSCFG->CFGR1 &= ~(SYSCFG_CFGR1_MEM_MODE)) |
Kojto | 90:cb3d968589d8 | 356 | #endif /* SYSCFG_CFGR1_MEM_MODE */ |
Kojto | 90:cb3d968589d8 | 357 | |
Kojto | 90:cb3d968589d8 | 358 | #if defined(SYSCFG_CFGR1_MEM_MODE_0) |
Kojto | 90:cb3d968589d8 | 359 | /** @brief System Flash memory mapped at 0x00000000 |
Kojto | 90:cb3d968589d8 | 360 | */ |
Kojto | 108:34e6b704fe68 | 361 | #define __HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH() do {SYSCFG->CFGR1 &= ~(SYSCFG_CFGR1_MEM_MODE); \ |
Kojto | 90:cb3d968589d8 | 362 | SYSCFG->CFGR1 |= SYSCFG_CFGR1_MEM_MODE_0; \ |
Kojto | 90:cb3d968589d8 | 363 | }while(0) |
Kojto | 90:cb3d968589d8 | 364 | #endif /* SYSCFG_CFGR1_MEM_MODE_0 */ |
Kojto | 90:cb3d968589d8 | 365 | |
Kojto | 90:cb3d968589d8 | 366 | #if defined(SYSCFG_CFGR1_MEM_MODE_0) && defined(SYSCFG_CFGR1_MEM_MODE_1) |
Kojto | 90:cb3d968589d8 | 367 | /** @brief Embedded SRAM mapped at 0x00000000 |
Kojto | 90:cb3d968589d8 | 368 | */ |
Kojto | 108:34e6b704fe68 | 369 | #define __HAL_SYSCFG_REMAPMEMORY_SRAM() do {SYSCFG->CFGR1 &= ~(SYSCFG_CFGR1_MEM_MODE); \ |
Kojto | 90:cb3d968589d8 | 370 | SYSCFG->CFGR1 |= (SYSCFG_CFGR1_MEM_MODE_0 | SYSCFG_CFGR1_MEM_MODE_1); \ |
Kojto | 90:cb3d968589d8 | 371 | }while(0) |
Kojto | 90:cb3d968589d8 | 372 | #endif /* SYSCFG_CFGR1_MEM_MODE_0 && SYSCFG_CFGR1_MEM_MODE_1 */ |
Kojto | 90:cb3d968589d8 | 373 | /** |
Kojto | 90:cb3d968589d8 | 374 | * @} |
Kojto | 90:cb3d968589d8 | 375 | */ |
Kojto | 90:cb3d968589d8 | 376 | |
Kojto | 90:cb3d968589d8 | 377 | |
Kojto | 90:cb3d968589d8 | 378 | #if defined(SYSCFG_CFGR1_PA11_PA12_RMP) |
Kojto | 90:cb3d968589d8 | 379 | /** @defgroup HAL_Pin_remap HAL Pin remap |
Kojto | 90:cb3d968589d8 | 380 | * @brief Pin remapping enable/disable macros |
Kojto | 90:cb3d968589d8 | 381 | * @param __PIN_REMAP__: This parameter can be a value of @ref HAL_Pin_remapping |
Kojto | 90:cb3d968589d8 | 382 | * @{ |
Kojto | 90:cb3d968589d8 | 383 | */ |
Kojto | 90:cb3d968589d8 | 384 | #define __HAL_REMAP_PIN_ENABLE(__PIN_REMAP__) do {assert_param(IS_HAL_REMAP_PIN((__PIN_REMAP__))); \ |
Kojto | 90:cb3d968589d8 | 385 | SYSCFG->CFGR1 |= (__PIN_REMAP__); \ |
Kojto | 90:cb3d968589d8 | 386 | }while(0) |
Kojto | 90:cb3d968589d8 | 387 | #define __HAL_REMAP_PIN_DISABLE(__PIN_REMAP__) do {assert_param(IS_HAL_REMAP_PIN((__PIN_REMAP__))); \ |
Kojto | 90:cb3d968589d8 | 388 | SYSCFG->CFGR1 &= ~(__PIN_REMAP__); \ |
Kojto | 90:cb3d968589d8 | 389 | }while(0) |
Kojto | 90:cb3d968589d8 | 390 | /** |
Kojto | 90:cb3d968589d8 | 391 | * @} |
Kojto | 90:cb3d968589d8 | 392 | */ |
Kojto | 90:cb3d968589d8 | 393 | #endif /* SYSCFG_CFGR1_PA11_PA12_RMP */ |
Kojto | 90:cb3d968589d8 | 394 | |
Kojto | 108:34e6b704fe68 | 395 | /** @brief Fast-mode Plus driving capability enable/disable macros |
Kojto | 108:34e6b704fe68 | 396 | * @param __FASTMODEPLUS__: This parameter can be a value of @ref SYSCFG_FastModePlus_GPIO values. |
Kojto | 108:34e6b704fe68 | 397 | * That you can find above these macros. |
Kojto | 90:cb3d968589d8 | 398 | */ |
Kojto | 108:34e6b704fe68 | 399 | #define __HAL_SYSCFG_FASTMODEPLUS_ENABLE(__FASTMODEPLUS__) do {assert_param(IS_SYSCFG_FASTMODEPLUS((__FASTMODEPLUS__)));\ |
Kojto | 108:34e6b704fe68 | 400 | SET_BIT(SYSCFG->CFGR1, (__FASTMODEPLUS__));\ |
Kojto | 90:cb3d968589d8 | 401 | }while(0) |
Kojto | 90:cb3d968589d8 | 402 | |
Kojto | 108:34e6b704fe68 | 403 | #define __HAL_SYSCFG_FASTMODEPLUS_DISABLE(__FASTMODEPLUS__) do {assert_param(IS_SYSCFG_FASTMODEPLUS((__FASTMODEPLUS__)));\ |
Kojto | 108:34e6b704fe68 | 404 | CLEAR_BIT(SYSCFG->CFGR1, (__FASTMODEPLUS__));\ |
Kojto | 90:cb3d968589d8 | 405 | }while(0) |
Kojto | 90:cb3d968589d8 | 406 | #if defined(SYSCFG_CFGR2_LOCKUP_LOCK) |
Kojto | 90:cb3d968589d8 | 407 | /** @defgroup Cortex_Lockup_Enable Cortex Lockup Enable |
Kojto | 90:cb3d968589d8 | 408 | * @{ |
Kojto | 90:cb3d968589d8 | 409 | */ |
Kojto | 90:cb3d968589d8 | 410 | /** @brief SYSCFG Break Lockup lock |
Kojto | 90:cb3d968589d8 | 411 | * Enables and locks the connection of Cortex-M0 LOCKUP (Hardfault) output to TIM1/15/16/17 Break input |
Kojto | 90:cb3d968589d8 | 412 | * @note The selected configuration is locked and can be unlocked by system reset |
Kojto | 90:cb3d968589d8 | 413 | */ |
Kojto | 90:cb3d968589d8 | 414 | #define __HAL_SYSCFG_BREAK_LOCKUP_LOCK() do {SYSCFG->CFGR2 &= ~(SYSCFG_CFGR2_LOCKUP_LOCK); \ |
Kojto | 90:cb3d968589d8 | 415 | SYSCFG->CFGR2 |= SYSCFG_CFGR2_LOCKUP_LOCK; \ |
Kojto | 90:cb3d968589d8 | 416 | }while(0) |
Kojto | 90:cb3d968589d8 | 417 | /** |
Kojto | 90:cb3d968589d8 | 418 | * @} |
Kojto | 90:cb3d968589d8 | 419 | */ |
Kojto | 90:cb3d968589d8 | 420 | #endif /* SYSCFG_CFGR2_LOCKUP_LOCK */ |
Kojto | 90:cb3d968589d8 | 421 | |
Kojto | 90:cb3d968589d8 | 422 | #if defined(SYSCFG_CFGR2_PVD_LOCK) |
Kojto | 90:cb3d968589d8 | 423 | /** @defgroup PVD_Lock_Enable PVD Lock |
Kojto | 90:cb3d968589d8 | 424 | * @{ |
Kojto | 90:cb3d968589d8 | 425 | */ |
Kojto | 90:cb3d968589d8 | 426 | /** @brief SYSCFG Break PVD lock |
Kojto | 90:cb3d968589d8 | 427 | * Enables and locks the PVD connection with Timer1/8/15/16/17 Break Input, , as well as the PVDE and PLS[2:0] in the PWR_CR register |
Kojto | 90:cb3d968589d8 | 428 | * @note The selected configuration is locked and can be unlocked by system reset |
Kojto | 90:cb3d968589d8 | 429 | */ |
Kojto | 90:cb3d968589d8 | 430 | #define __HAL_SYSCFG_BREAK_PVD_LOCK() do {SYSCFG->CFGR2 &= ~(SYSCFG_CFGR2_PVD_LOCK); \ |
Kojto | 90:cb3d968589d8 | 431 | SYSCFG->CFGR2 |= SYSCFG_CFGR2_PVD_LOCK; \ |
Kojto | 90:cb3d968589d8 | 432 | }while(0) |
Kojto | 90:cb3d968589d8 | 433 | /** |
Kojto | 90:cb3d968589d8 | 434 | * @} |
Kojto | 90:cb3d968589d8 | 435 | */ |
Kojto | 90:cb3d968589d8 | 436 | #endif /* SYSCFG_CFGR2_PVD_LOCK */ |
Kojto | 90:cb3d968589d8 | 437 | |
Kojto | 90:cb3d968589d8 | 438 | #if defined(SYSCFG_CFGR2_SRAM_PARITY_LOCK) |
Kojto | 90:cb3d968589d8 | 439 | /** @defgroup SRAM_Parity_Lock SRAM Parity Lock |
Kojto | 90:cb3d968589d8 | 440 | * @{ |
Kojto | 90:cb3d968589d8 | 441 | */ |
Kojto | 90:cb3d968589d8 | 442 | /** @brief SYSCFG Break SRAM PARITY lock |
Kojto | 90:cb3d968589d8 | 443 | * Enables and locks the SRAM_PARITY error signal with Break Input of TIMER1/8/15/16/17 |
Kojto | 90:cb3d968589d8 | 444 | * @note The selected configuration is locked and can be unlocked by system reset |
Kojto | 90:cb3d968589d8 | 445 | */ |
Kojto | 90:cb3d968589d8 | 446 | #define __HAL_SYSCFG_BREAK_SRAMPARITY_LOCK() do {SYSCFG->CFGR2 &= ~(SYSCFG_CFGR2_SRAM_PARITY_LOCK); \ |
Kojto | 90:cb3d968589d8 | 447 | SYSCFG->CFGR2 |= SYSCFG_CFGR2_SRAM_PARITY_LOCK; \ |
Kojto | 90:cb3d968589d8 | 448 | }while(0) |
Kojto | 90:cb3d968589d8 | 449 | /** |
Kojto | 90:cb3d968589d8 | 450 | * @} |
Kojto | 90:cb3d968589d8 | 451 | */ |
Kojto | 90:cb3d968589d8 | 452 | #endif /* SYSCFG_CFGR2_SRAM_PARITY_LOCK */ |
Kojto | 90:cb3d968589d8 | 453 | |
Kojto | 90:cb3d968589d8 | 454 | #if defined(SYSCFG_CFGR2_SRAM_PEF) |
Kojto | 90:cb3d968589d8 | 455 | /** @defgroup HAL_SYSCFG_Parity_check_on_RAM HAL SYSCFG Parity check on RAM |
Kojto | 90:cb3d968589d8 | 456 | * @brief Parity check on RAM disable macro |
Kojto | 90:cb3d968589d8 | 457 | * @note Disabling the parity check on RAM locks the configuration bit. |
Kojto | 90:cb3d968589d8 | 458 | * To re-enable the parity check on RAM perform a system reset. |
Kojto | 90:cb3d968589d8 | 459 | * @{ |
Kojto | 90:cb3d968589d8 | 460 | */ |
Kojto | 90:cb3d968589d8 | 461 | #define __HAL_SYSCFG_RAM_PARITYCHECK_DISABLE() (SYSCFG->CFGR2 |= SYSCFG_CFGR2_SRAM_PEF) |
Kojto | 90:cb3d968589d8 | 462 | /** |
Kojto | 90:cb3d968589d8 | 463 | * @} |
Kojto | 90:cb3d968589d8 | 464 | */ |
Kojto | 90:cb3d968589d8 | 465 | #endif /* SYSCFG_CFGR2_SRAM_PEF */ |
Kojto | 90:cb3d968589d8 | 466 | |
Kojto | 90:cb3d968589d8 | 467 | |
Kojto | 90:cb3d968589d8 | 468 | #if defined(STM32F091xC) || defined (STM32F098xx) |
Kojto | 90:cb3d968589d8 | 469 | /** @defgroup HAL_ISR_wrapper_check HAL ISR wrapper check |
Kojto | 90:cb3d968589d8 | 470 | * @brief ISR wrapper check |
Kojto | 93:e188a91d3eaa | 471 | * @note This feature is applicable on STM32F09x |
Kojto | 93:e188a91d3eaa | 472 | * @note Allow to determine interrupt source per line. |
Kojto | 90:cb3d968589d8 | 473 | * @{ |
Kojto | 90:cb3d968589d8 | 474 | */ |
Kojto | 90:cb3d968589d8 | 475 | #define __HAL_GET_PENDING_IT(__SOURCE__) (SYSCFG->IT_LINE_SR[((__SOURCE__) >> 0x18)] & ((__SOURCE__) & 0x00FFFFFF)) |
Kojto | 90:cb3d968589d8 | 476 | /** |
Kojto | 90:cb3d968589d8 | 477 | * @} |
Kojto | 90:cb3d968589d8 | 478 | */ |
Kojto | 90:cb3d968589d8 | 479 | #endif /* (STM32F091xC) || defined (STM32F098xx)*/ |
Kojto | 90:cb3d968589d8 | 480 | |
Kojto | 90:cb3d968589d8 | 481 | #if defined(STM32F091xC) || defined (STM32F098xx) |
Kojto | 90:cb3d968589d8 | 482 | /** @defgroup HAL_SYSCFG_IRDA_modulation_envelope_selection HAL SYSCFG IRDA modulation envelope selection |
Kojto | 90:cb3d968589d8 | 483 | * @brief selection of the modulation envelope signal macro, using bits [7:6] of SYS_CTRL(CFGR1) register |
Kojto | 93:e188a91d3eaa | 484 | * @note This feature is applicable on STM32F09x |
Kojto | 90:cb3d968589d8 | 485 | * @param __SOURCE__: This parameter can be a value of @ref HAL_IRDA_ENV_SEL |
Kojto | 90:cb3d968589d8 | 486 | * @{ |
Kojto | 90:cb3d968589d8 | 487 | */ |
Kojto | 90:cb3d968589d8 | 488 | #define __HAL_SYSCFG_IRDA_ENV_SELECTION(__SOURCE__) do {assert_param(IS_HAL_SYSCFG_IRDA_ENV_SEL((__SOURCE__))); \ |
Kojto | 90:cb3d968589d8 | 489 | SYSCFG->CFGR1 &= ~(SYSCFG_CFGR1_IRDA_ENV_SEL); \ |
Kojto | 90:cb3d968589d8 | 490 | SYSCFG->CFGR1 |= (__SOURCE__); \ |
Kojto | 90:cb3d968589d8 | 491 | }while(0) |
Kojto | 90:cb3d968589d8 | 492 | |
Kojto | 90:cb3d968589d8 | 493 | #define __HAL_SYSCFG_GET_IRDA_ENV_SELECTION() ((SYSCFG->CFGR1) & 0x000000C0) |
Kojto | 90:cb3d968589d8 | 494 | /** |
Kojto | 90:cb3d968589d8 | 495 | * @} |
Kojto | 90:cb3d968589d8 | 496 | */ |
Kojto | 90:cb3d968589d8 | 497 | #endif /* (STM32F091xC) || defined (STM32F098xx)*/ |
Kojto | 90:cb3d968589d8 | 498 | |
Kojto | 90:cb3d968589d8 | 499 | /** |
Kojto | 90:cb3d968589d8 | 500 | * @} |
Kojto | 108:34e6b704fe68 | 501 | */ |
Kojto | 108:34e6b704fe68 | 502 | |
Kojto | 90:cb3d968589d8 | 503 | /* Exported functions --------------------------------------------------------*/ |
Kojto | 108:34e6b704fe68 | 504 | |
Kojto | 108:34e6b704fe68 | 505 | /** @addtogroup HAL_Exported_Functions |
Kojto | 90:cb3d968589d8 | 506 | * @{ |
Kojto | 90:cb3d968589d8 | 507 | */ |
Kojto | 90:cb3d968589d8 | 508 | |
Kojto | 108:34e6b704fe68 | 509 | /** @addtogroup HAL_Exported_Functions_Group1 |
Kojto | 90:cb3d968589d8 | 510 | * @{ |
Kojto | 90:cb3d968589d8 | 511 | */ |
Kojto | 90:cb3d968589d8 | 512 | /* Initialization and de-initialization functions ******************************/ |
Kojto | 90:cb3d968589d8 | 513 | HAL_StatusTypeDef HAL_Init(void); |
Kojto | 90:cb3d968589d8 | 514 | HAL_StatusTypeDef HAL_DeInit(void); |
Kojto | 90:cb3d968589d8 | 515 | void HAL_MspInit(void); |
Kojto | 90:cb3d968589d8 | 516 | void HAL_MspDeInit(void); |
Kojto | 90:cb3d968589d8 | 517 | HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority); |
Kojto | 90:cb3d968589d8 | 518 | /** |
Kojto | 90:cb3d968589d8 | 519 | * @} |
Kojto | 90:cb3d968589d8 | 520 | */ |
Kojto | 90:cb3d968589d8 | 521 | |
Kojto | 108:34e6b704fe68 | 522 | /** @addtogroup HAL_Exported_Functions_Group2 |
Kojto | 90:cb3d968589d8 | 523 | * @{ |
Kojto | 90:cb3d968589d8 | 524 | */ |
Kojto | 108:34e6b704fe68 | 525 | |
Kojto | 108:34e6b704fe68 | 526 | /* Peripheral Control functions ************************************************/ |
Kojto | 90:cb3d968589d8 | 527 | void HAL_IncTick(void); |
Kojto | 90:cb3d968589d8 | 528 | void HAL_Delay(__IO uint32_t Delay); |
Kojto | 90:cb3d968589d8 | 529 | uint32_t HAL_GetTick(void); |
Kojto | 90:cb3d968589d8 | 530 | void HAL_SuspendTick(void); |
Kojto | 90:cb3d968589d8 | 531 | void HAL_ResumeTick(void); |
Kojto | 90:cb3d968589d8 | 532 | uint32_t HAL_GetHalVersion(void); |
Kojto | 90:cb3d968589d8 | 533 | uint32_t HAL_GetREVID(void); |
Kojto | 90:cb3d968589d8 | 534 | uint32_t HAL_GetDEVID(void); |
Kojto | 108:34e6b704fe68 | 535 | void HAL_DBGMCU_EnableDBGStopMode(void); |
Kojto | 108:34e6b704fe68 | 536 | void HAL_DBGMCU_DisableDBGStopMode(void); |
Kojto | 108:34e6b704fe68 | 537 | void HAL_DBGMCU_EnableDBGStandbyMode(void); |
Kojto | 108:34e6b704fe68 | 538 | void HAL_DBGMCU_DisableDBGStandbyMode(void); |
Kojto | 90:cb3d968589d8 | 539 | /** |
Kojto | 90:cb3d968589d8 | 540 | * @} |
Kojto | 90:cb3d968589d8 | 541 | */ |
Kojto | 90:cb3d968589d8 | 542 | |
Kojto | 90:cb3d968589d8 | 543 | /** |
Kojto | 90:cb3d968589d8 | 544 | * @} |
Kojto | 108:34e6b704fe68 | 545 | */ |
Kojto | 108:34e6b704fe68 | 546 | |
Kojto | 108:34e6b704fe68 | 547 | /** |
Kojto | 108:34e6b704fe68 | 548 | * @} |
Kojto | 90:cb3d968589d8 | 549 | */ |
Kojto | 90:cb3d968589d8 | 550 | |
Kojto | 90:cb3d968589d8 | 551 | /** |
Kojto | 90:cb3d968589d8 | 552 | * @} |
Kojto | 108:34e6b704fe68 | 553 | */ |
Kojto | 90:cb3d968589d8 | 554 | |
Kojto | 90:cb3d968589d8 | 555 | #ifdef __cplusplus |
Kojto | 90:cb3d968589d8 | 556 | } |
Kojto | 90:cb3d968589d8 | 557 | #endif |
Kojto | 90:cb3d968589d8 | 558 | |
Kojto | 90:cb3d968589d8 | 559 | #endif /* __STM32F0xx_HAL_H */ |
Kojto | 90:cb3d968589d8 | 560 | |
Kojto | 90:cb3d968589d8 | 561 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |