stm32f7: enable fsmc

This uses the existing f4 code as a new shared common base code.
This commit is contained in:
Oliver Meier
2019-04-01 00:52:30 +02:00
committed by Karl Palsson
parent 4fc7196463
commit 16cfc6d848
7 changed files with 338 additions and 236 deletions

View File

@@ -1,3 +1,11 @@
/** @addtogroup fmc_file FMC peripheral API
@ingroup peripheral_apis
@author @htmlonly © @endhtmlonly 2012 Ken Sarkies ksarkies@internode.on.net
This library supports the Flexible Memory Controller in the STM32F4xx and
STM32F7xx series of ARM Cortex Microcontrollers by ST Microelectronics.
*/
/*
*
* This file is part of the libopencm3 project.
@@ -21,6 +29,8 @@
#include <stdint.h>
#include <libopencm3/stm32/fsmc.h>
/**@{*/
/*
* Install various timing values into the correct place in the
* SDRAM Timing Control Register format.
@@ -97,3 +107,5 @@ sdram_command(enum fmc_sdram_bank bank,
/* Send the next command */
FMC_SDCMR = tmp_reg;
}
/**@}*/

View File

@@ -49,7 +49,7 @@ OBJS += dma_common_f24.o
OBJS += exti_common_all.o
OBJS += flash.o flash_common_all.o flash_common_f.o flash_common_f24.o
OBJS += flash_common_idcache.o
OBJS += fmc.o
OBJS += fmc_common_f47.o
OBJS += gpio_common_all.o gpio_common_f0234.o gpio.o
OBJS += hash_common_f24.o
OBJS += i2c_common_v1.o

View File

@@ -50,6 +50,7 @@ OBJS += desig.o
OBJS += dma_common_f24.o
OBJS += exti_common_all.o
OBJS += flash_common_all.o flash_common_f.o flash_common_f24.o flash.o
OBJS += fmc_common_f47.o
OBJS += gpio.o gpio_common_all.o gpio_common_f0234.o
OBJS += i2c_common_v2.o
OBJS += iwdg_common_all.o