mbed library sources

Dependents:   frdm_kl05z_gpio_test

Fork of mbed-src by mbed official

Committer:
shaoziyang
Date:
Sat Sep 13 14:25:46 2014 +0000
Revision:
323:9e901b0a5aa1
Parent:
130:1dec54e4aec3
test with CLOCK_SETUP = 0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 130:1dec54e4aec3 1 /**
mbed_official 130:1dec54e4aec3 2 ******************************************************************************
mbed_official 130:1dec54e4aec3 3 * @file stm32f0xx_syscfg.h
mbed_official 130:1dec54e4aec3 4 * @author MCD Application Team
mbed_official 130:1dec54e4aec3 5 * @version V1.3.0
mbed_official 130:1dec54e4aec3 6 * @date 16-January-2014
mbed_official 130:1dec54e4aec3 7 * @brief This file contains all the functions prototypes for the SYSCFG firmware
mbed_official 130:1dec54e4aec3 8 * library.
mbed_official 130:1dec54e4aec3 9 ******************************************************************************
mbed_official 130:1dec54e4aec3 10 * @attention
mbed_official 130:1dec54e4aec3 11 *
mbed_official 130:1dec54e4aec3 12 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
mbed_official 130:1dec54e4aec3 13 *
mbed_official 130:1dec54e4aec3 14 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 130:1dec54e4aec3 15 * are permitted provided that the following conditions are met:
mbed_official 130:1dec54e4aec3 16 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 130:1dec54e4aec3 17 * this list of conditions and the following disclaimer.
mbed_official 130:1dec54e4aec3 18 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 130:1dec54e4aec3 19 * this list of conditions and the following disclaimer in the documentation
mbed_official 130:1dec54e4aec3 20 * and/or other materials provided with the distribution.
mbed_official 130:1dec54e4aec3 21 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 130:1dec54e4aec3 22 * may be used to endorse or promote products derived from this software
mbed_official 130:1dec54e4aec3 23 * without specific prior written permission.
mbed_official 130:1dec54e4aec3 24 *
mbed_official 130:1dec54e4aec3 25 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 130:1dec54e4aec3 26 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 130:1dec54e4aec3 27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 130:1dec54e4aec3 28 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 130:1dec54e4aec3 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 130:1dec54e4aec3 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 130:1dec54e4aec3 31 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 130:1dec54e4aec3 32 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 130:1dec54e4aec3 33 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 130:1dec54e4aec3 34 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 130:1dec54e4aec3 35 *
mbed_official 130:1dec54e4aec3 36 ******************************************************************************
mbed_official 130:1dec54e4aec3 37 */
mbed_official 130:1dec54e4aec3 38
mbed_official 130:1dec54e4aec3 39 /*!< Define to prevent recursive inclusion -------------------------------------*/
mbed_official 130:1dec54e4aec3 40 #ifndef __STM32F0XX_SYSCFG_H
mbed_official 130:1dec54e4aec3 41 #define __STM32F0XX_SYSCFG_H
mbed_official 130:1dec54e4aec3 42
mbed_official 130:1dec54e4aec3 43 #ifdef __cplusplus
mbed_official 130:1dec54e4aec3 44 extern "C" {
mbed_official 130:1dec54e4aec3 45 #endif
mbed_official 130:1dec54e4aec3 46
mbed_official 130:1dec54e4aec3 47 /*!< Includes ------------------------------------------------------------------*/
mbed_official 130:1dec54e4aec3 48 #include "stm32f0xx.h"
mbed_official 130:1dec54e4aec3 49
mbed_official 130:1dec54e4aec3 50 /** @addtogroup STM32F0xx_StdPeriph_Driver
mbed_official 130:1dec54e4aec3 51 * @{
mbed_official 130:1dec54e4aec3 52 */
mbed_official 130:1dec54e4aec3 53
mbed_official 130:1dec54e4aec3 54 /** @addtogroup SYSCFG
mbed_official 130:1dec54e4aec3 55 * @{
mbed_official 130:1dec54e4aec3 56 */
mbed_official 130:1dec54e4aec3 57 /* Exported types ------------------------------------------------------------*/
mbed_official 130:1dec54e4aec3 58 /* Exported constants --------------------------------------------------------*/
mbed_official 130:1dec54e4aec3 59
mbed_official 130:1dec54e4aec3 60 /** @defgroup SYSCFG_Exported_Constants
mbed_official 130:1dec54e4aec3 61 * @{
mbed_official 130:1dec54e4aec3 62 */
mbed_official 130:1dec54e4aec3 63
mbed_official 130:1dec54e4aec3 64 /** @defgroup SYSCFG_EXTI_Port_Sources
mbed_official 130:1dec54e4aec3 65 * @{
mbed_official 130:1dec54e4aec3 66 */
mbed_official 130:1dec54e4aec3 67 #define EXTI_PortSourceGPIOA ((uint8_t)0x00)
mbed_official 130:1dec54e4aec3 68 #define EXTI_PortSourceGPIOB ((uint8_t)0x01)
mbed_official 130:1dec54e4aec3 69 #define EXTI_PortSourceGPIOC ((uint8_t)0x02)
mbed_official 130:1dec54e4aec3 70 #define EXTI_PortSourceGPIOD ((uint8_t)0x03) /*!< not available for STM32F031 devices */
mbed_official 130:1dec54e4aec3 71 #define EXTI_PortSourceGPIOE ((uint8_t)0x04) /*!< only available for STM32F072 devices */
mbed_official 130:1dec54e4aec3 72 #define EXTI_PortSourceGPIOF ((uint8_t)0x05)
mbed_official 130:1dec54e4aec3 73
mbed_official 130:1dec54e4aec3 74 #define IS_EXTI_PORT_SOURCE(PORTSOURCE) (((PORTSOURCE) == EXTI_PortSourceGPIOA) || \
mbed_official 130:1dec54e4aec3 75 ((PORTSOURCE) == EXTI_PortSourceGPIOB) || \
mbed_official 130:1dec54e4aec3 76 ((PORTSOURCE) == EXTI_PortSourceGPIOC) || \
mbed_official 130:1dec54e4aec3 77 ((PORTSOURCE) == EXTI_PortSourceGPIOD) || \
mbed_official 130:1dec54e4aec3 78 ((PORTSOURCE) == EXTI_PortSourceGPIOE) || \
mbed_official 130:1dec54e4aec3 79 ((PORTSOURCE) == EXTI_PortSourceGPIOF))
mbed_official 130:1dec54e4aec3 80 /**
mbed_official 130:1dec54e4aec3 81 * @}
mbed_official 130:1dec54e4aec3 82 */
mbed_official 130:1dec54e4aec3 83
mbed_official 130:1dec54e4aec3 84 /** @defgroup SYSCFG_EXTI_Pin_sources
mbed_official 130:1dec54e4aec3 85 * @{
mbed_official 130:1dec54e4aec3 86 */
mbed_official 130:1dec54e4aec3 87 #define EXTI_PinSource0 ((uint8_t)0x00)
mbed_official 130:1dec54e4aec3 88 #define EXTI_PinSource1 ((uint8_t)0x01)
mbed_official 130:1dec54e4aec3 89 #define EXTI_PinSource2 ((uint8_t)0x02)
mbed_official 130:1dec54e4aec3 90 #define EXTI_PinSource3 ((uint8_t)0x03)
mbed_official 130:1dec54e4aec3 91 #define EXTI_PinSource4 ((uint8_t)0x04)
mbed_official 130:1dec54e4aec3 92 #define EXTI_PinSource5 ((uint8_t)0x05)
mbed_official 130:1dec54e4aec3 93 #define EXTI_PinSource6 ((uint8_t)0x06)
mbed_official 130:1dec54e4aec3 94 #define EXTI_PinSource7 ((uint8_t)0x07)
mbed_official 130:1dec54e4aec3 95 #define EXTI_PinSource8 ((uint8_t)0x08)
mbed_official 130:1dec54e4aec3 96 #define EXTI_PinSource9 ((uint8_t)0x09)
mbed_official 130:1dec54e4aec3 97 #define EXTI_PinSource10 ((uint8_t)0x0A)
mbed_official 130:1dec54e4aec3 98 #define EXTI_PinSource11 ((uint8_t)0x0B)
mbed_official 130:1dec54e4aec3 99 #define EXTI_PinSource12 ((uint8_t)0x0C)
mbed_official 130:1dec54e4aec3 100 #define EXTI_PinSource13 ((uint8_t)0x0D)
mbed_official 130:1dec54e4aec3 101 #define EXTI_PinSource14 ((uint8_t)0x0E)
mbed_official 130:1dec54e4aec3 102 #define EXTI_PinSource15 ((uint8_t)0x0F)
mbed_official 130:1dec54e4aec3 103
mbed_official 130:1dec54e4aec3 104 #define IS_EXTI_PIN_SOURCE(PINSOURCE) (((PINSOURCE) == EXTI_PinSource0) || \
mbed_official 130:1dec54e4aec3 105 ((PINSOURCE) == EXTI_PinSource1) || \
mbed_official 130:1dec54e4aec3 106 ((PINSOURCE) == EXTI_PinSource2) || \
mbed_official 130:1dec54e4aec3 107 ((PINSOURCE) == EXTI_PinSource3) || \
mbed_official 130:1dec54e4aec3 108 ((PINSOURCE) == EXTI_PinSource4) || \
mbed_official 130:1dec54e4aec3 109 ((PINSOURCE) == EXTI_PinSource5) || \
mbed_official 130:1dec54e4aec3 110 ((PINSOURCE) == EXTI_PinSource6) || \
mbed_official 130:1dec54e4aec3 111 ((PINSOURCE) == EXTI_PinSource7) || \
mbed_official 130:1dec54e4aec3 112 ((PINSOURCE) == EXTI_PinSource8) || \
mbed_official 130:1dec54e4aec3 113 ((PINSOURCE) == EXTI_PinSource9) || \
mbed_official 130:1dec54e4aec3 114 ((PINSOURCE) == EXTI_PinSource10) || \
mbed_official 130:1dec54e4aec3 115 ((PINSOURCE) == EXTI_PinSource11) || \
mbed_official 130:1dec54e4aec3 116 ((PINSOURCE) == EXTI_PinSource12) || \
mbed_official 130:1dec54e4aec3 117 ((PINSOURCE) == EXTI_PinSource13) || \
mbed_official 130:1dec54e4aec3 118 ((PINSOURCE) == EXTI_PinSource14) || \
mbed_official 130:1dec54e4aec3 119 ((PINSOURCE) == EXTI_PinSource15))
mbed_official 130:1dec54e4aec3 120 /**
mbed_official 130:1dec54e4aec3 121 * @}
mbed_official 130:1dec54e4aec3 122 */
mbed_official 130:1dec54e4aec3 123
mbed_official 130:1dec54e4aec3 124 /** @defgroup SYSCFG_Memory_Remap_Config
mbed_official 130:1dec54e4aec3 125 * @{
mbed_official 130:1dec54e4aec3 126 */
mbed_official 130:1dec54e4aec3 127 #define SYSCFG_MemoryRemap_Flash ((uint8_t)0x00)
mbed_official 130:1dec54e4aec3 128 #define SYSCFG_MemoryRemap_SystemMemory ((uint8_t)0x01)
mbed_official 130:1dec54e4aec3 129 #define SYSCFG_MemoryRemap_SRAM ((uint8_t)0x03)
mbed_official 130:1dec54e4aec3 130
mbed_official 130:1dec54e4aec3 131
mbed_official 130:1dec54e4aec3 132 #define IS_SYSCFG_MEMORY_REMAP(REMAP) (((REMAP) == SYSCFG_MemoryRemap_Flash) || \
mbed_official 130:1dec54e4aec3 133 ((REMAP) == SYSCFG_MemoryRemap_SystemMemory) || \
mbed_official 130:1dec54e4aec3 134 ((REMAP) == SYSCFG_MemoryRemap_SRAM))
mbed_official 130:1dec54e4aec3 135
mbed_official 130:1dec54e4aec3 136 /**
mbed_official 130:1dec54e4aec3 137 * @}
mbed_official 130:1dec54e4aec3 138 */
mbed_official 130:1dec54e4aec3 139
mbed_official 130:1dec54e4aec3 140 /** @defgroup SYSCFG_DMA_Remap_Config
mbed_official 130:1dec54e4aec3 141 * @{
mbed_official 130:1dec54e4aec3 142 */
mbed_official 130:1dec54e4aec3 143 #define SYSCFG_DMARemap_TIM3 SYSCFG_CFGR1_TIM3_DMA_RMP /* Remap TIM3 DMA requests from channel4 to channel6,
mbed_official 130:1dec54e4aec3 144 available only for STM32F072 devices */
mbed_official 130:1dec54e4aec3 145 #define SYSCFG_DMARemap_TIM2 SYSCFG_CFGR1_TIM2_DMA_RMP /* Remap TIM2 DMA requests from channel3/4 to channel7,
mbed_official 130:1dec54e4aec3 146 available only for STM32F072 devices */
mbed_official 130:1dec54e4aec3 147 #define SYSCFG_DMARemap_TIM1 SYSCFG_CFGR1_TIM1_DMA_RMP /* Remap TIM1 DMA requests from channel2/3/4 to channel6,
mbed_official 130:1dec54e4aec3 148 available only for STM32F072 devices */
mbed_official 130:1dec54e4aec3 149 #define SYSCFG_DMARemap_I2C1 SYSCFG_CFGR1_I2C1_DMA_RMP /* Remap I2C1 DMA requests from channel3/2 to channel7/6,
mbed_official 130:1dec54e4aec3 150 available only for STM32F072 devices */
mbed_official 130:1dec54e4aec3 151 #define SYSCFG_DMARemap_USART3 SYSCFG_CFGR1_USART3_DMA_RMP /* Remap USART3 DMA requests from channel6/7 to channel3/2,
mbed_official 130:1dec54e4aec3 152 available only for STM32F072 devices */
mbed_official 130:1dec54e4aec3 153 #define SYSCFG_DMARemap_USART2 SYSCFG_CFGR1_USART2_DMA_RMP /* Remap USART2 DMA requests from channel4/5 to channel6/7,
mbed_official 130:1dec54e4aec3 154 available only for STM32F072 devices */
mbed_official 130:1dec54e4aec3 155 #define SYSCFG_DMARemap_SPI2 SYSCFG_CFGR1_SPI2_DMA_RMP /* Remap SPI2 DMA requests from channel4/5 to channel6/7,
mbed_official 130:1dec54e4aec3 156 available only for STM32F072 devices */
mbed_official 130:1dec54e4aec3 157 #define SYSCFG_DMARemap_TIM17_2 SYSCFG_CFGR1_TIM17_DMA_RMP2 /* Remap TIM17 DMA requests from channel1/2 to channel7,
mbed_official 130:1dec54e4aec3 158 available only for STM32F072 devices */
mbed_official 130:1dec54e4aec3 159 #define SYSCFG_DMARemap_TIM16_2 SYSCFG_CFGR1_TIM16_DMA_RMP2 /* Remap TIM16 DMA requests from channel3/4 to channel6,
mbed_official 130:1dec54e4aec3 160 available only for STM32F072 devices */
mbed_official 130:1dec54e4aec3 161 #define SYSCFG_DMARemap_TIM17 SYSCFG_CFGR1_TIM17_DMA_RMP /* Remap TIM17 DMA requests from channel1 to channel2 */
mbed_official 130:1dec54e4aec3 162 #define SYSCFG_DMARemap_TIM16 SYSCFG_CFGR1_TIM16_DMA_RMP /* Remap TIM16 DMA requests from channel3 to channel4 */
mbed_official 130:1dec54e4aec3 163 #define SYSCFG_DMARemap_USART1Rx SYSCFG_CFGR1_USART1RX_DMA_RMP /* Remap USART1 Rx DMA requests from channel3 to channel5 */
mbed_official 130:1dec54e4aec3 164 #define SYSCFG_DMARemap_USART1Tx SYSCFG_CFGR1_USART1TX_DMA_RMP /* Remap USART1 Tx DMA requests from channel2 to channel4 */
mbed_official 130:1dec54e4aec3 165 #define SYSCFG_DMARemap_ADC1 SYSCFG_CFGR1_ADC_DMA_RMP /* Remap ADC1 DMA requests from channel1 to channel2 */
mbed_official 130:1dec54e4aec3 166
mbed_official 130:1dec54e4aec3 167 #define IS_SYSCFG_DMA_REMAP(REMAP) (((REMAP) == SYSCFG_DMARemap_TIM17) || \
mbed_official 130:1dec54e4aec3 168 ((REMAP) == SYSCFG_DMARemap_TIM16) || \
mbed_official 130:1dec54e4aec3 169 ((REMAP) == SYSCFG_DMARemap_USART1Rx) || \
mbed_official 130:1dec54e4aec3 170 ((REMAP) == SYSCFG_DMARemap_USART1Tx) || \
mbed_official 130:1dec54e4aec3 171 ((REMAP) == SYSCFG_CFGR1_TIM3_DMA_RMP) || \
mbed_official 130:1dec54e4aec3 172 ((REMAP) == SYSCFG_CFGR1_TIM2_DMA_RMP) || \
mbed_official 130:1dec54e4aec3 173 ((REMAP) == SYSCFG_CFGR1_TIM1_DMA_RMP) || \
mbed_official 130:1dec54e4aec3 174 ((REMAP) == SYSCFG_CFGR1_I2C1_DMA_RMP) || \
mbed_official 130:1dec54e4aec3 175 ((REMAP) == SYSCFG_CFGR1_USART3_DMA_RMP) || \
mbed_official 130:1dec54e4aec3 176 ((REMAP) == SYSCFG_CFGR1_USART2_DMA_RMP) || \
mbed_official 130:1dec54e4aec3 177 ((REMAP) == SYSCFG_CFGR1_SPI2_DMA_RMP) || \
mbed_official 130:1dec54e4aec3 178 ((REMAP) == SYSCFG_CFGR1_TIM17_DMA_RMP2) || \
mbed_official 130:1dec54e4aec3 179 ((REMAP) == SYSCFG_CFGR1_TIM16_DMA_RMP2) || \
mbed_official 130:1dec54e4aec3 180 ((REMAP) == SYSCFG_DMARemap_ADC1))
mbed_official 130:1dec54e4aec3 181
mbed_official 130:1dec54e4aec3 182 /**
mbed_official 130:1dec54e4aec3 183 * @}
mbed_official 130:1dec54e4aec3 184 */
mbed_official 130:1dec54e4aec3 185
mbed_official 130:1dec54e4aec3 186 /** @defgroup SYSCFG_I2C_FastModePlus_Config
mbed_official 130:1dec54e4aec3 187 * @{
mbed_official 130:1dec54e4aec3 188 */
mbed_official 130:1dec54e4aec3 189 #define SYSCFG_I2CFastModePlus_PB6 SYSCFG_CFGR1_I2C_FMP_PB6 /* Enable Fast Mode Plus on PB6 */
mbed_official 130:1dec54e4aec3 190 #define SYSCFG_I2CFastModePlus_PB7 SYSCFG_CFGR1_I2C_FMP_PB7 /* Enable Fast Mode Plus on PB7 */
mbed_official 130:1dec54e4aec3 191 #define SYSCFG_I2CFastModePlus_PB8 SYSCFG_CFGR1_I2C_FMP_PB8 /* Enable Fast Mode Plus on PB8 */
mbed_official 130:1dec54e4aec3 192 #define SYSCFG_I2CFastModePlus_PB9 SYSCFG_CFGR1_I2C_FMP_PB9 /* Enable Fast Mode Plus on PB9 */
mbed_official 130:1dec54e4aec3 193 #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 130:1dec54e4aec3 194 #define SYSCFG_I2CFastModePlus_I2C2 SYSCFG_CFGR1_I2C_FMP_I2C2 /* Enable Fast Mode Plus on I2C2 pins, available only for STM32F072 devices */
mbed_official 130:1dec54e4aec3 195 #define SYSCFG_I2CFastModePlus_PA9 SYSCFG_CFGR1_I2C_FMP_PA9 /* Enable Fast Mode Plus on PA9 (only for STM32F031 and STM32F030 devices) */
mbed_official 130:1dec54e4aec3 196 #define SYSCFG_I2CFastModePlus_PA10 SYSCFG_CFGR1_I2C_FMP_PA10/* Enable Fast Mode Plus on PA10(only for STM32F031 and STM32F030 devices) */
mbed_official 130:1dec54e4aec3 197
mbed_official 130:1dec54e4aec3 198 #define IS_SYSCFG_I2C_FMP(PIN) (((PIN) == SYSCFG_I2CFastModePlus_PB6) || \
mbed_official 130:1dec54e4aec3 199 ((PIN) == SYSCFG_I2CFastModePlus_PB7) || \
mbed_official 130:1dec54e4aec3 200 ((PIN) == SYSCFG_I2CFastModePlus_PB8) || \
mbed_official 130:1dec54e4aec3 201 ((PIN) == SYSCFG_I2CFastModePlus_PB9) || \
mbed_official 130:1dec54e4aec3 202 ((PIN) == SYSCFG_I2CFastModePlus_I2C1) || \
mbed_official 130:1dec54e4aec3 203 ((PIN) == SYSCFG_I2CFastModePlus_I2C2) || \
mbed_official 130:1dec54e4aec3 204 ((PIN) == SYSCFG_I2CFastModePlus_PA9) || \
mbed_official 130:1dec54e4aec3 205 ((PIN) == SYSCFG_I2CFastModePlus_PA10))
mbed_official 130:1dec54e4aec3 206
mbed_official 130:1dec54e4aec3 207
mbed_official 130:1dec54e4aec3 208 /**
mbed_official 130:1dec54e4aec3 209 * @}
mbed_official 130:1dec54e4aec3 210 */
mbed_official 130:1dec54e4aec3 211
mbed_official 130:1dec54e4aec3 212 /** @defgroup SYSCFG_Lock_Config
mbed_official 130:1dec54e4aec3 213 * @{
mbed_official 130:1dec54e4aec3 214 */
mbed_official 130:1dec54e4aec3 215 #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 130:1dec54e4aec3 216 #define SYSCFG_Break_SRAMParity SYSCFG_CFGR2_SRAM_PARITY_LOCK /*!< Connects the SRAM_PARITY error signal to the Break Input of TIM1 */
mbed_official 130:1dec54e4aec3 217 #define SYSCFG_Break_Lockup SYSCFG_CFGR2_LOCKUP_LOCK /*!< Connects Lockup output of CortexM0 to the break input of TIM1 */
mbed_official 130:1dec54e4aec3 218
mbed_official 130:1dec54e4aec3 219 #define IS_SYSCFG_LOCK_CONFIG(CONFIG) (((CONFIG) == SYSCFG_Break_PVD) || \
mbed_official 130:1dec54e4aec3 220 ((CONFIG) == SYSCFG_Break_SRAMParity) || \
mbed_official 130:1dec54e4aec3 221 ((CONFIG) == SYSCFG_Break_Lockup))
mbed_official 130:1dec54e4aec3 222
mbed_official 130:1dec54e4aec3 223 /**
mbed_official 130:1dec54e4aec3 224 * @}
mbed_official 130:1dec54e4aec3 225 */
mbed_official 130:1dec54e4aec3 226
mbed_official 130:1dec54e4aec3 227 /** @defgroup SYSCFG_flags_definition
mbed_official 130:1dec54e4aec3 228 * @{
mbed_official 130:1dec54e4aec3 229 */
mbed_official 130:1dec54e4aec3 230
mbed_official 130:1dec54e4aec3 231 #define SYSCFG_FLAG_PE SYSCFG_CFGR2_SRAM_PE
mbed_official 130:1dec54e4aec3 232
mbed_official 130:1dec54e4aec3 233 #define IS_SYSCFG_FLAG(FLAG) (((FLAG) == SYSCFG_FLAG_PE))
mbed_official 130:1dec54e4aec3 234
mbed_official 130:1dec54e4aec3 235 /**
mbed_official 130:1dec54e4aec3 236 * @}
mbed_official 130:1dec54e4aec3 237 */
mbed_official 130:1dec54e4aec3 238
mbed_official 130:1dec54e4aec3 239 /**
mbed_official 130:1dec54e4aec3 240 * @}
mbed_official 130:1dec54e4aec3 241 */
mbed_official 130:1dec54e4aec3 242
mbed_official 130:1dec54e4aec3 243 /* Exported macro ------------------------------------------------------------*/
mbed_official 130:1dec54e4aec3 244 /* Exported functions ------------------------------------------------------- */
mbed_official 130:1dec54e4aec3 245
mbed_official 130:1dec54e4aec3 246 /* Function used to set the SYSCFG configuration to the default reset state **/
mbed_official 130:1dec54e4aec3 247 void SYSCFG_DeInit(void);
mbed_official 130:1dec54e4aec3 248
mbed_official 130:1dec54e4aec3 249 /* SYSCFG configuration functions *********************************************/
mbed_official 130:1dec54e4aec3 250 void SYSCFG_MemoryRemapConfig(uint32_t SYSCFG_MemoryRemap);
mbed_official 130:1dec54e4aec3 251 void SYSCFG_DMAChannelRemapConfig(uint32_t SYSCFG_DMARemap, FunctionalState NewState);
mbed_official 130:1dec54e4aec3 252 void SYSCFG_I2CFastModePlusConfig(uint32_t SYSCFG_I2CFastModePlus, FunctionalState NewState);
mbed_official 130:1dec54e4aec3 253 void SYSCFG_EXTILineConfig(uint8_t EXTI_PortSourceGPIOx, uint8_t EXTI_PinSourcex);
mbed_official 130:1dec54e4aec3 254 void SYSCFG_BreakConfig(uint32_t SYSCFG_Break);
mbed_official 130:1dec54e4aec3 255 FlagStatus SYSCFG_GetFlagStatus(uint32_t SYSCFG_Flag);
mbed_official 130:1dec54e4aec3 256 void SYSCFG_ClearFlag(uint32_t SYSCFG_Flag);
mbed_official 130:1dec54e4aec3 257
mbed_official 130:1dec54e4aec3 258 #ifdef __cplusplus
mbed_official 130:1dec54e4aec3 259 }
mbed_official 130:1dec54e4aec3 260 #endif
mbed_official 130:1dec54e4aec3 261
mbed_official 130:1dec54e4aec3 262 #endif /*__STM32F0XX_SYSCFG_H */
mbed_official 130:1dec54e4aec3 263
mbed_official 130:1dec54e4aec3 264 /**
mbed_official 130:1dec54e4aec3 265 * @}
mbed_official 130:1dec54e4aec3 266 */
mbed_official 130:1dec54e4aec3 267
mbed_official 130:1dec54e4aec3 268 /**
mbed_official 130:1dec54e4aec3 269 * @}
mbed_official 130:1dec54e4aec3 270 */
mbed_official 130:1dec54e4aec3 271
mbed_official 130:1dec54e4aec3 272 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/