libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Functions | |
uint32_t | sdram_timing (struct sdram_timing *t) |
void | sdram_command (enum fmc_sdram_bank bank, enum fmc_sdram_command cmd, int autorefresh, int modereg) |
This library supports the Flexible Memory Controller in the STM32F4xx and STM32F7xx series of ARM Cortex Microcontrollers by ST Microelectronics.
void sdram_command | ( | enum fmc_sdram_bank | bank, |
enum fmc_sdram_command | cmd, | ||
int | autorefresh, | ||
int | modereg | ||
) |
Definition at line 63 of file fmc_common_f47.c.
References FMC_SDCMR, FMC_SDCMR_CTB1, FMC_SDCMR_CTB2, FMC_SDCMR_MODE_AUTO_REFRESH, FMC_SDCMR_MODE_CLOCK_CONFIG_ENA, FMC_SDCMR_MODE_LOAD_MODE_REGISTER, FMC_SDCMR_MODE_PALL, FMC_SDCMR_MODE_POWER_DOWN, FMC_SDCMR_MODE_SELF_REFRESH, FMC_SDCMR_MRD_SHIFT, FMC_SDCMR_NRFS_SHIFT, FMC_SDSR, FMC_SDSR_BUSY, SDRAM_AUTO_REFRESH, SDRAM_BANK1, SDRAM_BANK2, SDRAM_BOTH_BANKS, SDRAM_CLK_CONF, SDRAM_LOAD_MODE, SDRAM_NORMAL, SDRAM_PALL, SDRAM_POWER_DOWN, and SDRAM_SELF_REFRESH.
uint32_t sdram_timing | ( | struct sdram_timing * | t | ) |
Definition at line 43 of file fmc_common_f47.c.
References FMC_SDTR_TMRD_SHIFT, FMC_SDTR_TRAS_SHIFT, FMC_SDTR_TRC_SHIFT, FMC_SDTR_TRCD_SHIFT, FMC_SDTR_TRP_SHIFT, FMC_SDTR_TWR_SHIFT, FMC_SDTR_TXSR_SHIFT, sdram_timing::tmrd, sdram_timing::tras, sdram_timing::trc, sdram_timing::trcd, sdram_timing::trp, sdram_timing::twr, and sdram_timing::txsr.