forked from Imagelibrary/rtems
bsps/arm/stm32h7: Address missing prototype for SystemInit_ExtMemCtl
Updates &20
This commit is contained in:
committed by
Kinsey Moore
parent
f7c9ed4672
commit
64070bdf66
@@ -174,11 +174,13 @@
|
||||
/** @addtogroup STM32H7xx_System_Private_FunctionPrototypes
|
||||
* @{
|
||||
*/
|
||||
#ifndef __rtems__
|
||||
#if defined (DATA_IN_ExtSDRAM)
|
||||
#if defined(__rtems__)
|
||||
void SystemInit_ExtMemCtl(void);
|
||||
#else
|
||||
static void SystemInit_ExtMemCtl(void);
|
||||
#endif /* DATA_IN_ExtSDRAM */
|
||||
#endif /* __rtems__ */
|
||||
#endif /* DATA_IN_ExtSDRAM */
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
@@ -559,7 +561,12 @@ void SystemInit_ExtMemCtl(void)
|
||||
for (index = 0; index<1000; index++);
|
||||
|
||||
/* PALL command */
|
||||
#if defined(__rtems__)
|
||||
/* RTEMS build detects incorrect/misleading indentation */
|
||||
FMC_Bank5_6_R->SDCMR = 0x0000000A;
|
||||
#else
|
||||
FMC_Bank5_6_R->SDCMR = 0x0000000A;
|
||||
#endif
|
||||
timeout = 0xFFFF;
|
||||
while((tmpreg != 0) && (timeout-- > 0))
|
||||
{
|
||||
|
||||
@@ -178,11 +178,13 @@
|
||||
/** @addtogroup STM32H7xx_System_Private_FunctionPrototypes
|
||||
* @{
|
||||
*/
|
||||
#ifndef __rtems__
|
||||
#if defined (DATA_IN_ExtSRAM) || defined (DATA_IN_ExtSDRAM)
|
||||
#if defined(__rtems__)
|
||||
void SystemInit_ExtMemCtl(void);
|
||||
#else
|
||||
static void SystemInit_ExtMemCtl(void);
|
||||
#endif /* DATA_IN_ExtSRAM || DATA_IN_ExtSDRAM */
|
||||
#endif /* __rtems__ */
|
||||
#endif /* DATA_IN_ExtSRAM || DATA_IN_ExtSDRAM */
|
||||
|
||||
/**
|
||||
* @}
|
||||
|
||||
@@ -34,6 +34,9 @@
|
||||
*/
|
||||
|
||||
#include <stm32h7xx_hal.h>
|
||||
#ifdef __rtems__
|
||||
#include <bsp.h> /* for SystemInit_ExtMemCtl */
|
||||
#endif
|
||||
|
||||
#define DATA_IN_ExtSRAM
|
||||
#define DATA_IN_ExtSDRAM
|
||||
|
||||
Reference in New Issue
Block a user