CARME-M4 BSP  V1.5
PCCARD Controller functions

PCCARD Controller functions. More...

+ Collaboration diagram for PCCARD Controller functions:

Functions

void FSMC_PCCARDDeInit (void)
 De-initializes 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 #####
 ===============================================================================  

 [..]  he following sequence should be followed to configure the FSMC to interface 
       with 16-bit PC Card compatible memory connected to the PCCARD Bank:
 
  (#)  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);

  (#) 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();    
       
  (#) 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.
      
  (#) Initialize the PCCARD Controller by calling the function
      FSMC_PCCARDInit(&FSMC_PCCARDInitStructure); 

  (#) Then enable the PCCARD Bank:
      FSMC_PCCARDCmd(ENABLE);  

  (#) 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
NewStatenew state of the PCCARD Memory Bank. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 709 of file stm32f4xx_fsmc.c.

void FSMC_PCCARDDeInit ( void  )

De-initializes the FSMC PCCARD Bank registers to their default reset values.

Parameters
None
Return values
None

Definition at line 614 of file stm32f4xx_fsmc.c.

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

Definition at line 631 of file stm32f4xx_fsmc.c.

void FSMC_PCCARDStructInit ( FSMC_PCCARDInitTypeDef FSMC_PCCARDInitStruct)

Fills each FSMC_PCCARDInitStruct member with its default value.

Parameters
FSMC_PCCARDInitStructpointer to a FSMC_PCCARDInitTypeDef structure which will be initialized.
Return values
None

Definition at line 683 of file stm32f4xx_fsmc.c.