mirror of https://github.com/FOME-Tech/openblt.git
Refs #1838. Added STM32L4P5xx support to the flash driver.
git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@1082 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
parent
57b517eabe
commit
fda0af2658
|
@ -810,12 +810,12 @@ static blt_int32u FlashGetBank(blt_addr address)
|
|||
{
|
||||
blt_int32u bank = FLASH_BANK_1;
|
||||
|
||||
/* multiple banks is only supported on certain STM32L4xx derivatives. */
|
||||
/* multiple banks is only supported on certain STM32L4xx derivatives. */
|
||||
#if defined (STM32L471xx) || defined (STM32L475xx) || defined (STM32L476xx) || \
|
||||
defined (STM32L485xx) || defined (STM32L486xx) || defined (STM32L496xx) || \
|
||||
defined (STM32L4A6xx) || defined (STM32L4R5xx) || defined (STM32L4R7xx) || \
|
||||
defined (STM32L4R9xx) || defined (STM32L4S5xx) || defined (STM32L4S7xx) || \
|
||||
defined (STM32L4S9xx)
|
||||
defined (STM32L4S9xx) || defined (STM32L4P5xx)
|
||||
/* check flash bank mode selection bit to determine if banks 1 and 2 are swapped */
|
||||
if (READ_BIT(SYSCFG->MEMRMP, SYSCFG_MEMRMP_FB_MODE) == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue