STM32F2 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F2 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
stm32f2xx_syscfg.c File Reference

This file provides firmware functions to manage the SYSCFG peripheral. More...

#include "stm32f2xx_syscfg.h"
#include "stm32f2xx_rcc.h"

Macros

#define SYSCFG_OFFSET   (SYSCFG_BASE - PERIPH_BASE)
 
#define PMC_OFFSET   (SYSCFG_OFFSET + 0x04)
 
#define MII_RMII_SEL_BitNumber   ((uint8_t)0x17)
 
#define PMC_MII_RMII_SEL_BB   (PERIPH_BB_BASE + (PMC_OFFSET * 32) + (MII_RMII_SEL_BitNumber * 4))
 
#define CMPCR_OFFSET   (SYSCFG_OFFSET + 0x20)
 
#define CMP_PD_BitNumber   ((uint8_t)0x00)
 
#define CMPCR_CMP_PD_BB   (PERIPH_BB_BASE + (CMPCR_OFFSET * 32) + (CMP_PD_BitNumber * 4))
 

Functions

void SYSCFG_DeInit (void)
 Deinitializes the Alternate Functions (remap and EXTI configuration) registers to their default reset values. More...
 
void SYSCFG_MemoryRemapConfig (uint8_t SYSCFG_MemoryRemap)
 Changes the mapping of the specified pin. More...
 
void SYSCFG_EXTILineConfig (uint8_t EXTI_PortSourceGPIOx, uint8_t EXTI_PinSourcex)
 Selects the GPIO pin used as EXTI Line. More...
 
void SYSCFG_ETH_MediaInterfaceConfig (uint32_t SYSCFG_ETH_MediaInterface)
 Selects the ETHERNET media interface. More...
 
void SYSCFG_CompensationCellCmd (FunctionalState NewState)
 Enables or disables the I/O Compensation Cell. More...
 
FlagStatus SYSCFG_GetCompensationCellStatus (void)
 Checks whether the I/O Compensation Cell ready flag is set or not. More...
 

Detailed Description

This file provides firmware functions to manage the SYSCFG peripheral.

Author
MCD Application Team
Version
V1.1.2
Date
05-March-2012
*  
*          ===================================================================
*                                 How to use this driver
*          ===================================================================
*                  
*          This driver provides functions for:
*          
*          1. Remapping the memory accessible in the code area using SYSCFG_MemoryRemapConfig()
*              
*          2. Manage the EXTI lines connection to the GPIOs using SYSCFG_EXTILineConfig()
*            
*          3. Select the ETHERNET media interface (RMII/RII) using SYSCFG_ETH_MediaInterfaceConfig()
*
*  @note  SYSCFG APB clock must be enabled to get write access to SYSCFG registers,
*         using RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);
*                 
*  
Attention

© COPYRIGHT 2012 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.