CARME-M4 BSP  V1.5
stm32f4xx_syscfg.c File Reference

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

#include "stm32f4xx_syscfg.h"
#include "stm32f4xx_rcc.h"
+ Include dependency graph for stm32f4xx_syscfg.c:

Go to the source code of this file.

Macros

#define SYSCFG_OFFSET   (SYSCFG_BASE - PERIPH_BASE)
 
#define MEMRMP_OFFSET   SYSCFG_OFFSET
 
#define UFB_MODE_BitNumber   ((uint8_t)0x8)
 
#define UFB_MODE_BB   (PERIPH_BB_BASE + (MEMRMP_OFFSET * 32) + (UFB_MODE_BitNumber * 4))
 
#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_MemorySwappingBank (FunctionalState NewState)
 Enables or disables the Interal FLASH Bank Swapping. 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.3.0
Date
08-November-2013
===============================================================================
                    ##### How to use this driver #####
===============================================================================
   [..] This driver provides functions for:
           
      (#) Remapping the memory accessible in the code area using SYSCFG_MemoryRemapConfig()
           
      (#) Swapping the internal flash Bank1 and Bank2 this features is only visible for 
          STM32F42xxx/43xxx devices Devices. 
               
      (#) Manage the EXTI lines connection to the GPIOs using SYSCFG_EXTILineConfig()
             
      (#) Select the ETHERNET media interface (RMII/RII) using SYSCFG_ETH_MediaInterfaceConfig()
 
      -@- SYSCFG APB clock must be enabled to get write access to SYSCFG registers,
          using RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);
Attention

© COPYRIGHT 2013 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.

Definition in file stm32f4xx_syscfg.c.