mbed library sources
Fork of mbed-src by
targets/cmsis/TARGET_STM/TARGET_NUCLEO_F030R8/stm32f0xx_syscfg.h@76:aeb1df146756, 2014-01-27 (annotated)
- Committer:
- mbed_official
- Date:
- Mon Jan 27 14:30:07 2014 +0000
- Revision:
- 76:aeb1df146756
- Child:
- 106:ced8cbb51063
Synchronized with git revision a31ec9c5f7bcb5c8a1b2eced103f6a1dfa921abd
Full URL: https://github.com/mbedmicro/mbed/commit/a31ec9c5f7bcb5c8a1b2eced103f6a1dfa921abd/
Add NUCLEO_L152RE
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 76:aeb1df146756 | 1 | /** |
mbed_official | 76:aeb1df146756 | 2 | ****************************************************************************** |
mbed_official | 76:aeb1df146756 | 3 | * @file stm32f0xx_syscfg.h |
mbed_official | 76:aeb1df146756 | 4 | * @author MCD Application Team |
mbed_official | 76:aeb1df146756 | 5 | * @version V1.3.0 |
mbed_official | 76:aeb1df146756 | 6 | * @date 16-January-2014 |
mbed_official | 76:aeb1df146756 | 7 | * @brief This file contains all the functions prototypes for the SYSCFG firmware |
mbed_official | 76:aeb1df146756 | 8 | * library. |
mbed_official | 76:aeb1df146756 | 9 | ****************************************************************************** |
mbed_official | 76:aeb1df146756 | 10 | * @attention |
mbed_official | 76:aeb1df146756 | 11 | * |
mbed_official | 76:aeb1df146756 | 12 | * <h2><center>© COPYRIGHT 2014 STMicroelectronics</center></h2> |
mbed_official | 76:aeb1df146756 | 13 | * |
mbed_official | 76:aeb1df146756 | 14 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); |
mbed_official | 76:aeb1df146756 | 15 | * You may not use this file except in compliance with the License. |
mbed_official | 76:aeb1df146756 | 16 | * You may obtain a copy of the License at: |
mbed_official | 76:aeb1df146756 | 17 | * |
mbed_official | 76:aeb1df146756 | 18 | * http://www.st.com/software_license_agreement_liberty_v2 |
mbed_official | 76:aeb1df146756 | 19 | * |
mbed_official | 76:aeb1df146756 | 20 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 76:aeb1df146756 | 21 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 76:aeb1df146756 | 22 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 76:aeb1df146756 | 23 | * See the License for the specific language governing permissions and |
mbed_official | 76:aeb1df146756 | 24 | * limitations under the License. |
mbed_official | 76:aeb1df146756 | 25 | * |
mbed_official | 76:aeb1df146756 | 26 | ****************************************************************************** |
mbed_official | 76:aeb1df146756 | 27 | */ |
mbed_official | 76:aeb1df146756 | 28 | |
mbed_official | 76:aeb1df146756 | 29 | /*!< Define to prevent recursive inclusion -------------------------------------*/ |
mbed_official | 76:aeb1df146756 | 30 | #ifndef __STM32F0XX_SYSCFG_H |
mbed_official | 76:aeb1df146756 | 31 | #define __STM32F0XX_SYSCFG_H |
mbed_official | 76:aeb1df146756 | 32 | |
mbed_official | 76:aeb1df146756 | 33 | #ifdef __cplusplus |
mbed_official | 76:aeb1df146756 | 34 | extern "C" { |
mbed_official | 76:aeb1df146756 | 35 | #endif |
mbed_official | 76:aeb1df146756 | 36 | |
mbed_official | 76:aeb1df146756 | 37 | /*!< Includes ------------------------------------------------------------------*/ |
mbed_official | 76:aeb1df146756 | 38 | #include "stm32f0xx.h" |
mbed_official | 76:aeb1df146756 | 39 | |
mbed_official | 76:aeb1df146756 | 40 | /** @addtogroup STM32F0xx_StdPeriph_Driver |
mbed_official | 76:aeb1df146756 | 41 | * @{ |
mbed_official | 76:aeb1df146756 | 42 | */ |
mbed_official | 76:aeb1df146756 | 43 | |
mbed_official | 76:aeb1df146756 | 44 | /** @addtogroup SYSCFG |
mbed_official | 76:aeb1df146756 | 45 | * @{ |
mbed_official | 76:aeb1df146756 | 46 | */ |
mbed_official | 76:aeb1df146756 | 47 | /* Exported types ------------------------------------------------------------*/ |
mbed_official | 76:aeb1df146756 | 48 | /* Exported constants --------------------------------------------------------*/ |
mbed_official | 76:aeb1df146756 | 49 | |
mbed_official | 76:aeb1df146756 | 50 | /** @defgroup SYSCFG_Exported_Constants |
mbed_official | 76:aeb1df146756 | 51 | * @{ |
mbed_official | 76:aeb1df146756 | 52 | */ |
mbed_official | 76:aeb1df146756 | 53 | |
mbed_official | 76:aeb1df146756 | 54 | /** @defgroup SYSCFG_EXTI_Port_Sources |
mbed_official | 76:aeb1df146756 | 55 | * @{ |
mbed_official | 76:aeb1df146756 | 56 | */ |
mbed_official | 76:aeb1df146756 | 57 | #define EXTI_PortSourceGPIOA ((uint8_t)0x00) |
mbed_official | 76:aeb1df146756 | 58 | #define EXTI_PortSourceGPIOB ((uint8_t)0x01) |
mbed_official | 76:aeb1df146756 | 59 | #define EXTI_PortSourceGPIOC ((uint8_t)0x02) |
mbed_official | 76:aeb1df146756 | 60 | #define EXTI_PortSourceGPIOD ((uint8_t)0x03) /*!< not available for STM32F031 devices */ |
mbed_official | 76:aeb1df146756 | 61 | #define EXTI_PortSourceGPIOE ((uint8_t)0x04) /*!< only available for STM32F072 devices */ |
mbed_official | 76:aeb1df146756 | 62 | #define EXTI_PortSourceGPIOF ((uint8_t)0x05) |
mbed_official | 76:aeb1df146756 | 63 | |
mbed_official | 76:aeb1df146756 | 64 | #define IS_EXTI_PORT_SOURCE(PORTSOURCE) (((PORTSOURCE) == EXTI_PortSourceGPIOA) || \ |
mbed_official | 76:aeb1df146756 | 65 | ((PORTSOURCE) == EXTI_PortSourceGPIOB) || \ |
mbed_official | 76:aeb1df146756 | 66 | ((PORTSOURCE) == EXTI_PortSourceGPIOC) || \ |
mbed_official | 76:aeb1df146756 | 67 | ((PORTSOURCE) == EXTI_PortSourceGPIOD) || \ |
mbed_official | 76:aeb1df146756 | 68 | ((PORTSOURCE) == EXTI_PortSourceGPIOE) || \ |
mbed_official | 76:aeb1df146756 | 69 | ((PORTSOURCE) == EXTI_PortSourceGPIOF)) |
mbed_official | 76:aeb1df146756 | 70 | /** |
mbed_official | 76:aeb1df146756 | 71 | * @} |
mbed_official | 76:aeb1df146756 | 72 | */ |
mbed_official | 76:aeb1df146756 | 73 | |
mbed_official | 76:aeb1df146756 | 74 | /** @defgroup SYSCFG_EXTI_Pin_sources |
mbed_official | 76:aeb1df146756 | 75 | * @{ |
mbed_official | 76:aeb1df146756 | 76 | */ |
mbed_official | 76:aeb1df146756 | 77 | #define EXTI_PinSource0 ((uint8_t)0x00) |
mbed_official | 76:aeb1df146756 | 78 | #define EXTI_PinSource1 ((uint8_t)0x01) |
mbed_official | 76:aeb1df146756 | 79 | #define EXTI_PinSource2 ((uint8_t)0x02) |
mbed_official | 76:aeb1df146756 | 80 | #define EXTI_PinSource3 ((uint8_t)0x03) |
mbed_official | 76:aeb1df146756 | 81 | #define EXTI_PinSource4 ((uint8_t)0x04) |
mbed_official | 76:aeb1df146756 | 82 | #define EXTI_PinSource5 ((uint8_t)0x05) |
mbed_official | 76:aeb1df146756 | 83 | #define EXTI_PinSource6 ((uint8_t)0x06) |
mbed_official | 76:aeb1df146756 | 84 | #define EXTI_PinSource7 ((uint8_t)0x07) |
mbed_official | 76:aeb1df146756 | 85 | #define EXTI_PinSource8 ((uint8_t)0x08) |
mbed_official | 76:aeb1df146756 | 86 | #define EXTI_PinSource9 ((uint8_t)0x09) |
mbed_official | 76:aeb1df146756 | 87 | #define EXTI_PinSource10 ((uint8_t)0x0A) |
mbed_official | 76:aeb1df146756 | 88 | #define EXTI_PinSource11 ((uint8_t)0x0B) |
mbed_official | 76:aeb1df146756 | 89 | #define EXTI_PinSource12 ((uint8_t)0x0C) |
mbed_official | 76:aeb1df146756 | 90 | #define EXTI_PinSource13 ((uint8_t)0x0D) |
mbed_official | 76:aeb1df146756 | 91 | #define EXTI_PinSource14 ((uint8_t)0x0E) |
mbed_official | 76:aeb1df146756 | 92 | #define EXTI_PinSource15 ((uint8_t)0x0F) |
mbed_official | 76:aeb1df146756 | 93 | |
mbed_official | 76:aeb1df146756 | 94 | #define IS_EXTI_PIN_SOURCE(PINSOURCE) (((PINSOURCE) == EXTI_PinSource0) || \ |
mbed_official | 76:aeb1df146756 | 95 | ((PINSOURCE) == EXTI_PinSource1) || \ |
mbed_official | 76:aeb1df146756 | 96 | ((PINSOURCE) == EXTI_PinSource2) || \ |
mbed_official | 76:aeb1df146756 | 97 | ((PINSOURCE) == EXTI_PinSource3) || \ |
mbed_official | 76:aeb1df146756 | 98 | ((PINSOURCE) == EXTI_PinSource4) || \ |
mbed_official | 76:aeb1df146756 | 99 | ((PINSOURCE) == EXTI_PinSource5) || \ |
mbed_official | 76:aeb1df146756 | 100 | ((PINSOURCE) == EXTI_PinSource6) || \ |
mbed_official | 76:aeb1df146756 | 101 | ((PINSOURCE) == EXTI_PinSource7) || \ |
mbed_official | 76:aeb1df146756 | 102 | ((PINSOURCE) == EXTI_PinSource8) || \ |
mbed_official | 76:aeb1df146756 | 103 | ((PINSOURCE) == EXTI_PinSource9) || \ |
mbed_official | 76:aeb1df146756 | 104 | ((PINSOURCE) == EXTI_PinSource10) || \ |
mbed_official | 76:aeb1df146756 | 105 | ((PINSOURCE) == EXTI_PinSource11) || \ |
mbed_official | 76:aeb1df146756 | 106 | ((PINSOURCE) == EXTI_PinSource12) || \ |
mbed_official | 76:aeb1df146756 | 107 | ((PINSOURCE) == EXTI_PinSource13) || \ |
mbed_official | 76:aeb1df146756 | 108 | ((PINSOURCE) == EXTI_PinSource14) || \ |
mbed_official | 76:aeb1df146756 | 109 | ((PINSOURCE) == EXTI_PinSource15)) |
mbed_official | 76:aeb1df146756 | 110 | /** |
mbed_official | 76:aeb1df146756 | 111 | * @} |
mbed_official | 76:aeb1df146756 | 112 | */ |
mbed_official | 76:aeb1df146756 | 113 | |
mbed_official | 76:aeb1df146756 | 114 | /** @defgroup SYSCFG_Memory_Remap_Config |
mbed_official | 76:aeb1df146756 | 115 | * @{ |
mbed_official | 76:aeb1df146756 | 116 | */ |
mbed_official | 76:aeb1df146756 | 117 | #define SYSCFG_MemoryRemap_Flash ((uint8_t)0x00) |
mbed_official | 76:aeb1df146756 | 118 | #define SYSCFG_MemoryRemap_SystemMemory ((uint8_t)0x01) |
mbed_official | 76:aeb1df146756 | 119 | #define SYSCFG_MemoryRemap_SRAM ((uint8_t)0x03) |
mbed_official | 76:aeb1df146756 | 120 | |
mbed_official | 76:aeb1df146756 | 121 | |
mbed_official | 76:aeb1df146756 | 122 | #define IS_SYSCFG_MEMORY_REMAP(REMAP) (((REMAP) == SYSCFG_MemoryRemap_Flash) || \ |
mbed_official | 76:aeb1df146756 | 123 | ((REMAP) == SYSCFG_MemoryRemap_SystemMemory) || \ |
mbed_official | 76:aeb1df146756 | 124 | ((REMAP) == SYSCFG_MemoryRemap_SRAM)) |
mbed_official | 76:aeb1df146756 | 125 | |
mbed_official | 76:aeb1df146756 | 126 | /** |
mbed_official | 76:aeb1df146756 | 127 | * @} |
mbed_official | 76:aeb1df146756 | 128 | */ |
mbed_official | 76:aeb1df146756 | 129 | |
mbed_official | 76:aeb1df146756 | 130 | /** @defgroup SYSCFG_DMA_Remap_Config |
mbed_official | 76:aeb1df146756 | 131 | * @{ |
mbed_official | 76:aeb1df146756 | 132 | */ |
mbed_official | 76:aeb1df146756 | 133 | #define SYSCFG_DMARemap_TIM3 SYSCFG_CFGR1_TIM3_DMA_RMP /* Remap TIM3 DMA requests from channel4 to channel6, |
mbed_official | 76:aeb1df146756 | 134 | available only for STM32F072 devices */ |
mbed_official | 76:aeb1df146756 | 135 | #define SYSCFG_DMARemap_TIM2 SYSCFG_CFGR1_TIM2_DMA_RMP /* Remap TIM2 DMA requests from channel3/4 to channel7, |
mbed_official | 76:aeb1df146756 | 136 | available only for STM32F072 devices */ |
mbed_official | 76:aeb1df146756 | 137 | #define SYSCFG_DMARemap_TIM1 SYSCFG_CFGR1_TIM1_DMA_RMP /* Remap TIM1 DMA requests from channel2/3/4 to channel6, |
mbed_official | 76:aeb1df146756 | 138 | available only for STM32F072 devices */ |
mbed_official | 76:aeb1df146756 | 139 | #define SYSCFG_DMARemap_I2C1 SYSCFG_CFGR1_I2C1_DMA_RMP /* Remap I2C1 DMA requests from channel3/2 to channel7/6, |
mbed_official | 76:aeb1df146756 | 140 | available only for STM32F072 devices */ |
mbed_official | 76:aeb1df146756 | 141 | #define SYSCFG_DMARemap_USART3 SYSCFG_CFGR1_USART3_DMA_RMP /* Remap USART3 DMA requests from channel6/7 to channel3/2, |
mbed_official | 76:aeb1df146756 | 142 | available only for STM32F072 devices */ |
mbed_official | 76:aeb1df146756 | 143 | #define SYSCFG_DMARemap_USART2 SYSCFG_CFGR1_USART2_DMA_RMP /* Remap USART2 DMA requests from channel4/5 to channel6/7, |
mbed_official | 76:aeb1df146756 | 144 | available only for STM32F072 devices */ |
mbed_official | 76:aeb1df146756 | 145 | #define SYSCFG_DMARemap_SPI2 SYSCFG_CFGR1_SPI2_DMA_RMP /* Remap SPI2 DMA requests from channel4/5 to channel6/7, |
mbed_official | 76:aeb1df146756 | 146 | available only for STM32F072 devices */ |
mbed_official | 76:aeb1df146756 | 147 | #define SYSCFG_DMARemap_TIM17_2 SYSCFG_CFGR1_TIM17_DMA_RMP2 /* Remap TIM17 DMA requests from channel1/2 to channel7, |
mbed_official | 76:aeb1df146756 | 148 | available only for STM32F072 devices */ |
mbed_official | 76:aeb1df146756 | 149 | #define SYSCFG_DMARemap_TIM16_2 SYSCFG_CFGR1_TIM16_DMA_RMP2 /* Remap TIM16 DMA requests from channel3/4 to channel6, |
mbed_official | 76:aeb1df146756 | 150 | available only for STM32F072 devices */ |
mbed_official | 76:aeb1df146756 | 151 | #define SYSCFG_DMARemap_TIM17 SYSCFG_CFGR1_TIM17_DMA_RMP /* Remap TIM17 DMA requests from channel1 to channel2 */ |
mbed_official | 76:aeb1df146756 | 152 | #define SYSCFG_DMARemap_TIM16 SYSCFG_CFGR1_TIM16_DMA_RMP /* Remap TIM16 DMA requests from channel3 to channel4 */ |
mbed_official | 76:aeb1df146756 | 153 | #define SYSCFG_DMARemap_USART1Rx SYSCFG_CFGR1_USART1RX_DMA_RMP /* Remap USART1 Rx DMA requests from channel3 to channel5 */ |
mbed_official | 76:aeb1df146756 | 154 | #define SYSCFG_DMARemap_USART1Tx SYSCFG_CFGR1_USART1TX_DMA_RMP /* Remap USART1 Tx DMA requests from channel2 to channel4 */ |
mbed_official | 76:aeb1df146756 | 155 | #define SYSCFG_DMARemap_ADC1 SYSCFG_CFGR1_ADC_DMA_RMP /* Remap ADC1 DMA requests from channel1 to channel2 */ |
mbed_official | 76:aeb1df146756 | 156 | |
mbed_official | 76:aeb1df146756 | 157 | #define IS_SYSCFG_DMA_REMAP(REMAP) (((REMAP) == SYSCFG_DMARemap_TIM17) || \ |
mbed_official | 76:aeb1df146756 | 158 | ((REMAP) == SYSCFG_DMARemap_TIM16) || \ |
mbed_official | 76:aeb1df146756 | 159 | ((REMAP) == SYSCFG_DMARemap_USART1Rx) || \ |
mbed_official | 76:aeb1df146756 | 160 | ((REMAP) == SYSCFG_DMARemap_USART1Tx) || \ |
mbed_official | 76:aeb1df146756 | 161 | ((REMAP) == SYSCFG_CFGR1_TIM3_DMA_RMP) || \ |
mbed_official | 76:aeb1df146756 | 162 | ((REMAP) == SYSCFG_CFGR1_TIM2_DMA_RMP) || \ |
mbed_official | 76:aeb1df146756 | 163 | ((REMAP) == SYSCFG_CFGR1_TIM1_DMA_RMP) || \ |
mbed_official | 76:aeb1df146756 | 164 | ((REMAP) == SYSCFG_CFGR1_I2C1_DMA_RMP) || \ |
mbed_official | 76:aeb1df146756 | 165 | ((REMAP) == SYSCFG_CFGR1_USART3_DMA_RMP) || \ |
mbed_official | 76:aeb1df146756 | 166 | ((REMAP) == SYSCFG_CFGR1_USART2_DMA_RMP) || \ |
mbed_official | 76:aeb1df146756 | 167 | ((REMAP) == SYSCFG_CFGR1_SPI2_DMA_RMP) || \ |
mbed_official | 76:aeb1df146756 | 168 | ((REMAP) == SYSCFG_CFGR1_TIM17_DMA_RMP2) || \ |
mbed_official | 76:aeb1df146756 | 169 | ((REMAP) == SYSCFG_CFGR1_TIM16_DMA_RMP2) || \ |
mbed_official | 76:aeb1df146756 | 170 | ((REMAP) == SYSCFG_DMARemap_ADC1)) |
mbed_official | 76:aeb1df146756 | 171 | |
mbed_official | 76:aeb1df146756 | 172 | /** |
mbed_official | 76:aeb1df146756 | 173 | * @} |
mbed_official | 76:aeb1df146756 | 174 | */ |
mbed_official | 76:aeb1df146756 | 175 | |
mbed_official | 76:aeb1df146756 | 176 | /** @defgroup SYSCFG_I2C_FastModePlus_Config |
mbed_official | 76:aeb1df146756 | 177 | * @{ |
mbed_official | 76:aeb1df146756 | 178 | */ |
mbed_official | 76:aeb1df146756 | 179 | #define SYSCFG_I2CFastModePlus_PB6 SYSCFG_CFGR1_I2C_FMP_PB6 /* Enable Fast Mode Plus on PB6 */ |
mbed_official | 76:aeb1df146756 | 180 | #define SYSCFG_I2CFastModePlus_PB7 SYSCFG_CFGR1_I2C_FMP_PB7 /* Enable Fast Mode Plus on PB7 */ |
mbed_official | 76:aeb1df146756 | 181 | #define SYSCFG_I2CFastModePlus_PB8 SYSCFG_CFGR1_I2C_FMP_PB8 /* Enable Fast Mode Plus on PB8 */ |
mbed_official | 76:aeb1df146756 | 182 | #define SYSCFG_I2CFastModePlus_PB9 SYSCFG_CFGR1_I2C_FMP_PB9 /* Enable Fast Mode Plus on PB9 */ |
mbed_official | 76:aeb1df146756 | 183 | #define SYSCFG_I2CFastModePlus_I2C1 SYSCFG_CFGR1_I2C_FMP_I2C1 /* Enable Fast Mode Plus on PB10, PB11, PF6 and PF7(only for STM32F0031 and STM32F030 devices) */ |
mbed_official | 76:aeb1df146756 | 184 | #define SYSCFG_I2CFastModePlus_I2C2 SYSCFG_CFGR1_I2C_FMP_I2C2 /* Enable Fast Mode Plus on I2C2 pins, available only for STM32F072 devices */ |
mbed_official | 76:aeb1df146756 | 185 | #define SYSCFG_I2CFastModePlus_PA9 SYSCFG_CFGR1_I2C_FMP_PA9 /* Enable Fast Mode Plus on PA9 (only for STM32F031 and STM32F030 devices) */ |
mbed_official | 76:aeb1df146756 | 186 | #define SYSCFG_I2CFastModePlus_PA10 SYSCFG_CFGR1_I2C_FMP_PA10/* Enable Fast Mode Plus on PA10(only for STM32F031 and STM32F030 devices) */ |
mbed_official | 76:aeb1df146756 | 187 | |
mbed_official | 76:aeb1df146756 | 188 | #define IS_SYSCFG_I2C_FMP(PIN) (((PIN) == SYSCFG_I2CFastModePlus_PB6) || \ |
mbed_official | 76:aeb1df146756 | 189 | ((PIN) == SYSCFG_I2CFastModePlus_PB7) || \ |
mbed_official | 76:aeb1df146756 | 190 | ((PIN) == SYSCFG_I2CFastModePlus_PB8) || \ |
mbed_official | 76:aeb1df146756 | 191 | ((PIN) == SYSCFG_I2CFastModePlus_PB9) || \ |
mbed_official | 76:aeb1df146756 | 192 | ((PIN) == SYSCFG_I2CFastModePlus_I2C1) || \ |
mbed_official | 76:aeb1df146756 | 193 | ((PIN) == SYSCFG_I2CFastModePlus_I2C2) || \ |
mbed_official | 76:aeb1df146756 | 194 | ((PIN) == SYSCFG_I2CFastModePlus_PA9) || \ |
mbed_official | 76:aeb1df146756 | 195 | ((PIN) == SYSCFG_I2CFastModePlus_PA10)) |
mbed_official | 76:aeb1df146756 | 196 | |
mbed_official | 76:aeb1df146756 | 197 | |
mbed_official | 76:aeb1df146756 | 198 | /** |
mbed_official | 76:aeb1df146756 | 199 | * @} |
mbed_official | 76:aeb1df146756 | 200 | */ |
mbed_official | 76:aeb1df146756 | 201 | |
mbed_official | 76:aeb1df146756 | 202 | /** @defgroup SYSCFG_Lock_Config |
mbed_official | 76:aeb1df146756 | 203 | * @{ |
mbed_official | 76:aeb1df146756 | 204 | */ |
mbed_official | 76:aeb1df146756 | 205 | #define SYSCFG_Break_PVD SYSCFG_CFGR2_PVD_LOCK /*!< Connects the PVD event to the Break Input of TIM1, not available for STM32F030 devices */ |
mbed_official | 76:aeb1df146756 | 206 | #define SYSCFG_Break_SRAMParity SYSCFG_CFGR2_SRAM_PARITY_LOCK /*!< Connects the SRAM_PARITY error signal to the Break Input of TIM1 */ |
mbed_official | 76:aeb1df146756 | 207 | #define SYSCFG_Break_Lockup SYSCFG_CFGR2_LOCKUP_LOCK /*!< Connects Lockup output of CortexM0 to the break input of TIM1 */ |
mbed_official | 76:aeb1df146756 | 208 | |
mbed_official | 76:aeb1df146756 | 209 | #define IS_SYSCFG_LOCK_CONFIG(CONFIG) (((CONFIG) == SYSCFG_Break_PVD) || \ |
mbed_official | 76:aeb1df146756 | 210 | ((CONFIG) == SYSCFG_Break_SRAMParity) || \ |
mbed_official | 76:aeb1df146756 | 211 | ((CONFIG) == SYSCFG_Break_Lockup)) |
mbed_official | 76:aeb1df146756 | 212 | |
mbed_official | 76:aeb1df146756 | 213 | /** |
mbed_official | 76:aeb1df146756 | 214 | * @} |
mbed_official | 76:aeb1df146756 | 215 | */ |
mbed_official | 76:aeb1df146756 | 216 | |
mbed_official | 76:aeb1df146756 | 217 | /** @defgroup SYSCFG_flags_definition |
mbed_official | 76:aeb1df146756 | 218 | * @{ |
mbed_official | 76:aeb1df146756 | 219 | */ |
mbed_official | 76:aeb1df146756 | 220 | |
mbed_official | 76:aeb1df146756 | 221 | #define SYSCFG_FLAG_PE SYSCFG_CFGR2_SRAM_PE |
mbed_official | 76:aeb1df146756 | 222 | |
mbed_official | 76:aeb1df146756 | 223 | #define IS_SYSCFG_FLAG(FLAG) (((FLAG) == SYSCFG_FLAG_PE)) |
mbed_official | 76:aeb1df146756 | 224 | |
mbed_official | 76:aeb1df146756 | 225 | /** |
mbed_official | 76:aeb1df146756 | 226 | * @} |
mbed_official | 76:aeb1df146756 | 227 | */ |
mbed_official | 76:aeb1df146756 | 228 | |
mbed_official | 76:aeb1df146756 | 229 | /** |
mbed_official | 76:aeb1df146756 | 230 | * @} |
mbed_official | 76:aeb1df146756 | 231 | */ |
mbed_official | 76:aeb1df146756 | 232 | |
mbed_official | 76:aeb1df146756 | 233 | /* Exported macro ------------------------------------------------------------*/ |
mbed_official | 76:aeb1df146756 | 234 | /* Exported functions ------------------------------------------------------- */ |
mbed_official | 76:aeb1df146756 | 235 | |
mbed_official | 76:aeb1df146756 | 236 | /* Function used to set the SYSCFG configuration to the default reset state **/ |
mbed_official | 76:aeb1df146756 | 237 | void SYSCFG_DeInit(void); |
mbed_official | 76:aeb1df146756 | 238 | |
mbed_official | 76:aeb1df146756 | 239 | /* SYSCFG configuration functions *********************************************/ |
mbed_official | 76:aeb1df146756 | 240 | void SYSCFG_MemoryRemapConfig(uint32_t SYSCFG_MemoryRemap); |
mbed_official | 76:aeb1df146756 | 241 | void SYSCFG_DMAChannelRemapConfig(uint32_t SYSCFG_DMARemap, FunctionalState NewState); |
mbed_official | 76:aeb1df146756 | 242 | void SYSCFG_I2CFastModePlusConfig(uint32_t SYSCFG_I2CFastModePlus, FunctionalState NewState); |
mbed_official | 76:aeb1df146756 | 243 | void SYSCFG_EXTILineConfig(uint8_t EXTI_PortSourceGPIOx, uint8_t EXTI_PinSourcex); |
mbed_official | 76:aeb1df146756 | 244 | void SYSCFG_BreakConfig(uint32_t SYSCFG_Break); |
mbed_official | 76:aeb1df146756 | 245 | FlagStatus SYSCFG_GetFlagStatus(uint32_t SYSCFG_Flag); |
mbed_official | 76:aeb1df146756 | 246 | void SYSCFG_ClearFlag(uint32_t SYSCFG_Flag); |
mbed_official | 76:aeb1df146756 | 247 | |
mbed_official | 76:aeb1df146756 | 248 | #ifdef __cplusplus |
mbed_official | 76:aeb1df146756 | 249 | } |
mbed_official | 76:aeb1df146756 | 250 | #endif |
mbed_official | 76:aeb1df146756 | 251 | |
mbed_official | 76:aeb1df146756 | 252 | #endif /*__STM32F0XX_SYSCFG_H */ |
mbed_official | 76:aeb1df146756 | 253 | |
mbed_official | 76:aeb1df146756 | 254 | /** |
mbed_official | 76:aeb1df146756 | 255 | * @} |
mbed_official | 76:aeb1df146756 | 256 | */ |
mbed_official | 76:aeb1df146756 | 257 | |
mbed_official | 76:aeb1df146756 | 258 | /** |
mbed_official | 76:aeb1df146756 | 259 | * @} |
mbed_official | 76:aeb1df146756 | 260 | */ |
mbed_official | 76:aeb1df146756 | 261 | |
mbed_official | 76:aeb1df146756 | 262 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |