2 ******************************************************************************
3 * @file stm32f4xx_flash_ramfunc.h
4 * @author MCD Application Team
7 * @brief Header file of FLASH RAMFUNC driver.
8 ******************************************************************************
11 * <h2><center>© COPYRIGHT 2016 STMicroelectronics</center></h2>
13 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 * You may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at:
17 * http://www.st.com/software_license_agreement_liberty_v2
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
25 ******************************************************************************
29 /* Define to prevent recursive inclusion -------------------------------------*/
30 #ifndef __STM32F4xx_FLASH_RAMFUNC_H
31 #define __STM32F4xx_FLASH_RAMFUNC_H
37 /* Includes ------------------------------------------------------------------*/
38 #include "stm32f4xx.h"
40 /** @addtogroup STM32F4xx_StdPeriph_Driver
44 /** @addtogroup FLASH RAMFUNC
48 /* Exported types ------------------------------------------------------------*/
49 /* Private define ------------------------------------------------------------*/
51 * @brief __RAM_FUNC definition
53 #if defined ( __CC_ARM )
56 RAM functions are defined using the toolchain options.
57 Functions that are executed in RAM should reside in a separate source module.
58 Using the 'Options for File' dialog you can simply change the 'Code / Const'
59 area of a module to a memory space in physical RAM.
60 Available memory areas are declared in the 'Target' tab of the 'Options for Target'
63 #define __RAM_FUNC void
65 #elif defined ( __ICCARM__ )
68 RAM functions are defined using a specific toolchain keyword "__ramfunc".
70 #define __RAM_FUNC __ramfunc void
72 #elif defined ( __GNUC__ )
75 RAM functions are defined using a specific toolchain attribute
76 "__attribute__((section(".RamFunc")))".
78 #define __RAM_FUNC void __attribute__((section(".RamFunc")))
81 /* Exported constants --------------------------------------------------------*/
82 /* Exported macro ------------------------------------------------------------*/
83 /* Exported functions --------------------------------------------------------*/
84 __RAM_FUNC
FLASH_FlashInterfaceCmd(FunctionalState NewState
);
85 __RAM_FUNC
FLASH_FlashSleepModeCmd(FunctionalState NewState
);
92 #endif /* __STM32F4xx_FLASH_RAMFUNC_H */
102 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/