discoverpixy
stm32f4xx_flash_ramfunc.h
Go to the documentation of this file.
1 
29 /* Define to prevent recursive inclusion -------------------------------------*/
30 #ifndef __STM32F4xx_FLASH_RAMFUNC_H
31 #define __STM32F4xx_FLASH_RAMFUNC_H
32 
33 #ifdef __cplusplus
34  extern "C" {
35 #endif
36 
37 /* Includes ------------------------------------------------------------------*/
38 #include "stm32f4xx.h"
39 
48 /* Exported types ------------------------------------------------------------*/
49 /* Private define ------------------------------------------------------------*/
53 #if defined ( __CC_ARM )
54 /* ARM Compiler
55  ------------
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'
61  dialog.
62 */
63 #define __RAM_FUNC void
64 
65 #elif defined ( __ICCARM__ )
66 /* ICCARM Compiler
67  ---------------
68  RAM functions are defined using a specific toolchain keyword "__ramfunc".
69 */
70 #define __RAM_FUNC __ramfunc void
71 
72 #elif defined ( __GNUC__ )
73 /* GNU Compiler
74  ------------
75  RAM functions are defined using a specific toolchain attribute
76  "__attribute__((section(".RamFunc")))".
77 */
78 #define __RAM_FUNC void __attribute__((section(".RamFunc")))
79 
80 #endif
81 /* Exported constants --------------------------------------------------------*/
82 /* Exported macro ------------------------------------------------------------*/
83 /* Exported functions --------------------------------------------------------*/
84 __RAM_FUNC FLASH_FlashInterfaceCmd(FunctionalState NewState);
85 __RAM_FUNC FLASH_FlashSleepModeCmd(FunctionalState NewState);
86 
87 
88 #ifdef __cplusplus
89 }
90 #endif
91 
92 #endif /* __STM32F4xx_FLASH_RAMFUNC_H */
93 
102 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
103 
__RAM_FUNC FLASH_FlashSleepModeCmd(FunctionalState NewState)
Enable/Disable the flash sleep while System Run.
Definition: stm32f4xx_flash_ramfunc.c:128
CMSIS Cortex-M4 Device Peripheral Access Layer Header File. This file contains all the peripheral reg...
__RAM_FUNC FLASH_FlashInterfaceCmd(FunctionalState NewState)
__RAM_FUNC definition
Definition: stm32f4xx_flash_ramfunc.c:105