STM32F4 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F4 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
PCCARD Controller functions

PCCARD Controller functions. More...

Functions

void FSMC_PCCARDDeInit (void)
 Deinitializes the FSMC PCCARD Bank registers to their default reset values. More...
 
void FSMC_PCCARDInit (FSMC_PCCARDInitTypeDef *FSMC_PCCARDInitStruct)
 Initializes the FSMC PCCARD Bank according to the specified parameters in the FSMC_PCCARDInitStruct. More...
 
void FSMC_PCCARDStructInit (FSMC_PCCARDInitTypeDef *FSMC_PCCARDInitStruct)
 Fills each FSMC_PCCARDInitStruct member with its default value. More...
 
void FSMC_PCCARDCmd (FunctionalState NewState)
 Enables or disables the PCCARD Memory Bank. More...
 

Detailed Description

PCCARD Controller functions.

 ===============================================================================
                    PCCARD Controller functions
 ===============================================================================  

 The following sequence should be followed to configure the FSMC to interface with
 16-bit PC Card compatible memory connected to the PCCARD Bank:
 
   1. Enable the clock for the FSMC and associated GPIOs using the following functions:
          RCC_AHB3PeriphClockCmd(RCC_AHB3Periph_FSMC, ENABLE);
          RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOx, ENABLE);

   2. FSMC pins configuration 
       - Connect the involved FSMC pins to AF12 using the following function 
          GPIO_PinAFConfig(GPIOx, GPIO_PinSourcex, GPIO_AF_FSMC); 
       - Configure these FSMC pins in alternate function mode by calling the function
          GPIO_Init();    
       
   3. Declare a FSMC_PCCARDInitTypeDef structure, for example:
          FSMC_PCCARDInitTypeDef  FSMC_PCCARDInitStructure;
      and fill the FSMC_PCCARDInitStructure variable with the allowed values of
      the structure member.
      
   4. Initialize the PCCARD Controller by calling the function
          FSMC_PCCARDInit(&FSMC_PCCARDInitStructure); 

   5. Then enable the PCCARD Bank:
          FSMC_PCCARDCmd(ENABLE);  

   6. At this stage you can read/write from/to the memory connected to the PCCARD Bank. 

Function Documentation

void FSMC_PCCARDCmd ( FunctionalState  NewState)

Enables or disables the PCCARD Memory Bank.

Parameters
NewState,:new state of the PCCARD Memory Bank. This parameter can be: ENABLE or DISABLE.
Return values
None
void FSMC_PCCARDDeInit ( void  )

Deinitializes the FSMC PCCARD Bank registers to their default reset values.

Parameters
None
Return values
None
void FSMC_PCCARDInit ( FSMC_PCCARDInitTypeDef FSMC_PCCARDInitStruct)

Initializes the FSMC PCCARD Bank according to the specified parameters in the FSMC_PCCARDInitStruct.

Parameters
FSMC_PCCARDInitStruct: pointer to a FSMC_PCCARDInitTypeDef structure that contains the configuration information for the FSMC PCCARD Bank.
Return values
None
void FSMC_PCCARDStructInit ( FSMC_PCCARDInitTypeDef FSMC_PCCARDInitStruct)

Fills each FSMC_PCCARDInitStruct member with its default value.

Parameters
FSMC_PCCARDInitStruct,:pointer to a FSMC_PCCARDInitTypeDef structure which will be initialized.
Return values
None