PCCARD Controller functions.
More...
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.
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
-
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
-
- Return values
-
Definition at line 614 of file stm32f4xx_fsmc.c.
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
-
Definition at line 631 of file stm32f4xx_fsmc.c.
Fills each FSMC_PCCARDInitStruct member with its default value.
- Parameters
-
- Return values
-
Definition at line 683 of file stm32f4xx_fsmc.c.