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