FSMC. Fixed bank base definitions.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7402 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
barthess 2014-10-15 19:29:35 +00:00
parent 18e6c991a7
commit 46c3999c09
1 changed files with 44 additions and 0 deletions

View File

@ -35,6 +35,50 @@
/* Driver constants. */
/*===========================================================================*/
/*
* (Re)define if needed base address constants supplied in ST's CMSIS
*/
#if (defined(STM32F427xx) || defined(STM32F437xx) || \
defined(STM32F429xx) || defined(STM32F439xx))
#if !defined(FSMC_Bank1_R_BASE)
#define FSMC_Bank1_R_BASE (FMC_R_BASE + 0x0000)
#endif
#if !defined(FSMC_Bank1E_R_BASE)
#define FSMC_Bank1E_R_BASE (FMC_R_BASE + 0x0104)
#endif
#if !defined(FSMC_Bank2_R_BASE)
#define FSMC_Bank2_R_BASE (FMC_R_BASE + 0x0060)
#endif
#if !defined(FSMC_Bank3_R_BASE)
#define FSMC_Bank3_R_BASE (FMC_R_BASE + 0x0080)
#endif
#if !defined(FSMC_Bank4_R_BASE)
#define FSMC_Bank4_R_BASE (FMC_R_BASE + 0x00A0)
#endif
#if !defined(FSMC_Bank5_R_BASE)
#define FSMC_Bank5_R_BASE (FMC_R_BASE + 0x0140)
#endif
#if !defined(FSMC_Bank_R_BASE)
#define FSMC_Bank6_R_BASE (FMC_R_BASE + 0x0144)
#endif
#else
#if !defined(FSMC_Bank1_R_BASE)
#define FSMC_Bank1_R_BASE (FSMC_R_BASE + 0x0000)
#endif
#if !defined(FSMC_Bank1E_R_BASE)
#define FSMC_Bank1E_R_BASE (FSMC_R_BASE + 0x0104)
#endif
#if !defined(FSMC_Bank2_R_BASE)
#define FSMC_Bank2_R_BASE (FSMC_R_BASE + 0x0060)
#endif
#if !defined(FSMC_Bank3_R_BASE)
#define FSMC_Bank3_R_BASE (FSMC_R_BASE + 0x0080)
#endif
#if !defined(FSMC_Bank4_R_BASE)
#define FSMC_Bank4_R_BASE (FSMC_R_BASE + 0x00A0)
#endif
#endif
/*
* Base bank mappings
*/