Statistics
| Branch: | Tag: | Revision:

amiro-blt / Target / Modules / PowerManagement_1-1 / Boot / lib / stdperiphlib / STM32F4xx_StdPeriph_Driver / inc / stm32f4xx_syscfg.h @ 367c0652

History | View | Annotate | Download (7.16 KB)

1 69661903 Thomas Schöpping
/**
2
  ******************************************************************************
3
  * @file    stm32f4xx_syscfg.h
4
  * @author  MCD Application Team
5
  * @version V1.1.0
6
  * @date    11-January-2013
7
  * @brief   This file contains all the functions prototypes for the SYSCFG firmware
8
  *          library. 
9
  ******************************************************************************
10
  * @attention
11
  *
12
  * <h2><center>&copy; COPYRIGHT 2013 STMicroelectronics</center></h2>
13
  *
14
  * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
15
  * You may not use this file except in compliance with the License.
16
  * You may obtain a copy of the License at:
17
  *
18
  *        http://www.st.com/software_license_agreement_liberty_v2
19
  *
20
  * Unless required by applicable law or agreed to in writing, software 
21
  * distributed under the License is distributed on an "AS IS" BASIS, 
22
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23
  * See the License for the specific language governing permissions and
24
  * limitations under the License.
25
  *
26
  ******************************************************************************
27
  */
28
29
/* Define to prevent recursive inclusion -------------------------------------*/
30
#ifndef __STM32F4xx_SYSCFG_H
31
#define __STM32F4xx_SYSCFG_H
32
33
#ifdef __cplusplus
34
 extern "C" {
35
#endif
36
37
/* Includes ------------------------------------------------------------------*/
38
#include "stm32f4xx.h"
39
40
/** @addtogroup STM32F4xx_StdPeriph_Driver
41
  * @{
42
  */
43
44
/** @addtogroup SYSCFG
45
  * @{
46
  */ 
47
48
/* Exported types ------------------------------------------------------------*/
49
/* Exported constants --------------------------------------------------------*/
50
  
51
/** @defgroup SYSCFG_Exported_Constants 
52
  * @{
53
  */ 
54
55
/** @defgroup SYSCFG_EXTI_Port_Sources 
56
  * @{
57
  */ 
58
#define EXTI_PortSourceGPIOA       ((uint8_t)0x00)
59
#define EXTI_PortSourceGPIOB       ((uint8_t)0x01)
60
#define EXTI_PortSourceGPIOC       ((uint8_t)0x02)
61
#define EXTI_PortSourceGPIOD       ((uint8_t)0x03)
62
#define EXTI_PortSourceGPIOE       ((uint8_t)0x04)
63
#define EXTI_PortSourceGPIOF       ((uint8_t)0x05)
64
#define EXTI_PortSourceGPIOG       ((uint8_t)0x06)
65
#define EXTI_PortSourceGPIOH       ((uint8_t)0x07)
66
#define EXTI_PortSourceGPIOI       ((uint8_t)0x08)
67
  
68
#define IS_EXTI_PORT_SOURCE(PORTSOURCE) (((PORTSOURCE) == EXTI_PortSourceGPIOA) || \
69
                                         ((PORTSOURCE) == EXTI_PortSourceGPIOB) || \
70
                                         ((PORTSOURCE) == EXTI_PortSourceGPIOC) || \
71
                                         ((PORTSOURCE) == EXTI_PortSourceGPIOD) || \
72
                                         ((PORTSOURCE) == EXTI_PortSourceGPIOE) || \
73
                                         ((PORTSOURCE) == EXTI_PortSourceGPIOF) || \
74
                                         ((PORTSOURCE) == EXTI_PortSourceGPIOG) || \
75
                                         ((PORTSOURCE) == EXTI_PortSourceGPIOH) || \
76
                                         ((PORTSOURCE) == EXTI_PortSourceGPIOI))
77
                                         
78
/**
79
  * @}
80
  */ 
81
82
83
/** @defgroup SYSCFG_EXTI_Pin_Sources 
84
  * @{
85
  */ 
86
#define EXTI_PinSource0            ((uint8_t)0x00)
87
#define EXTI_PinSource1            ((uint8_t)0x01)
88
#define EXTI_PinSource2            ((uint8_t)0x02)
89
#define EXTI_PinSource3            ((uint8_t)0x03)
90
#define EXTI_PinSource4            ((uint8_t)0x04)
91
#define EXTI_PinSource5            ((uint8_t)0x05)
92
#define EXTI_PinSource6            ((uint8_t)0x06)
93
#define EXTI_PinSource7            ((uint8_t)0x07)
94
#define EXTI_PinSource8            ((uint8_t)0x08)
95
#define EXTI_PinSource9            ((uint8_t)0x09)
96
#define EXTI_PinSource10           ((uint8_t)0x0A)
97
#define EXTI_PinSource11           ((uint8_t)0x0B)
98
#define EXTI_PinSource12           ((uint8_t)0x0C)
99
#define EXTI_PinSource13           ((uint8_t)0x0D)
100
#define EXTI_PinSource14           ((uint8_t)0x0E)
101
#define EXTI_PinSource15           ((uint8_t)0x0F)
102
#define IS_EXTI_PIN_SOURCE(PINSOURCE) (((PINSOURCE) == EXTI_PinSource0)  || \
103
                                       ((PINSOURCE) == EXTI_PinSource1)  || \
104
                                       ((PINSOURCE) == EXTI_PinSource2)  || \
105
                                       ((PINSOURCE) == EXTI_PinSource3)  || \
106
                                       ((PINSOURCE) == EXTI_PinSource4)  || \
107
                                       ((PINSOURCE) == EXTI_PinSource5)  || \
108
                                       ((PINSOURCE) == EXTI_PinSource6)  || \
109
                                       ((PINSOURCE) == EXTI_PinSource7)  || \
110
                                       ((PINSOURCE) == EXTI_PinSource8)  || \
111
                                       ((PINSOURCE) == EXTI_PinSource9)  || \
112
                                       ((PINSOURCE) == EXTI_PinSource10) || \
113
                                       ((PINSOURCE) == EXTI_PinSource11) || \
114
                                       ((PINSOURCE) == EXTI_PinSource12) || \
115
                                       ((PINSOURCE) == EXTI_PinSource13) || \
116
                                       ((PINSOURCE) == EXTI_PinSource14) || \
117
                                       ((PINSOURCE) == EXTI_PinSource15))
118
/**
119
  * @}
120
  */ 
121
122
123
/** @defgroup SYSCFG_Memory_Remap_Config 
124
  * @{
125
  */ 
126
#define SYSCFG_MemoryRemap_Flash       ((uint8_t)0x00)
127
#define SYSCFG_MemoryRemap_SystemFlash ((uint8_t)0x01)
128
#define SYSCFG_MemoryRemap_SRAM        ((uint8_t)0x03)
129
#define SYSCFG_MemoryRemap_FSMC        ((uint8_t)0x02) 
130
131
#define IS_SYSCFG_MEMORY_REMAP_CONFING(REMAP) (((REMAP) == SYSCFG_MemoryRemap_Flash)       || \
132
                                               ((REMAP) == SYSCFG_MemoryRemap_SystemFlash) || \
133
                                               ((REMAP) == SYSCFG_MemoryRemap_SRAM)        || \
134
                                               ((REMAP) == SYSCFG_MemoryRemap_FSMC))
135
                                                                                              
136
/**
137
  * @}
138
  */ 
139
140
141
/** @defgroup SYSCFG_ETHERNET_Media_Interface 
142
  * @{
143
  */ 
144
#define SYSCFG_ETH_MediaInterface_MII    ((uint32_t)0x00000000)
145
#define SYSCFG_ETH_MediaInterface_RMII   ((uint32_t)0x00000001)
146
147
#define IS_SYSCFG_ETH_MEDIA_INTERFACE(INTERFACE) (((INTERFACE) == SYSCFG_ETH_MediaInterface_MII) || \
148
                                                 ((INTERFACE) == SYSCFG_ETH_MediaInterface_RMII))
149
/**
150
  * @}
151
  */ 
152
153
/**
154
  * @}
155
  */ 
156
157
/* Exported macro ------------------------------------------------------------*/
158
/* Exported functions --------------------------------------------------------*/ 
159
 
160
void       SYSCFG_DeInit(void);
161
void       SYSCFG_MemoryRemapConfig(uint8_t SYSCFG_MemoryRemap);
162
void       SYSCFG_EXTILineConfig(uint8_t EXTI_PortSourceGPIOx, uint8_t EXTI_PinSourcex);
163
void       SYSCFG_ETH_MediaInterfaceConfig(uint32_t SYSCFG_ETH_MediaInterface); 
164
void       SYSCFG_CompensationCellCmd(FunctionalState NewState); 
165
FlagStatus SYSCFG_GetCompensationCellStatus(void);
166
167
#ifdef __cplusplus
168
}
169
#endif
170
171
#endif /*__STM32F4xx_SYSCFG_H */
172
173
/**
174
  * @}
175
  */ 
176
177
/**
178
  * @}
179
  */ 
180
181
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/