PCCARD Controller functions.
More...
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.
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
-
void FSMC_PCCARDDeInit |
( |
void |
| ) |
|
Deinitializes the FSMC PCCARD Bank registers to their default reset values.
- Parameters
-
- Return values
-
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
-
Fills each FSMC_PCCARDInitStruct member with its default value.
- Parameters
-
- Return values
-