📄 local_shared_symbols.h
字号:
/***************************************************************************** * Core B * local_shared_symbols.h *****************************************************************************//* The recommended method for sharing data for the per-core approach is as follows. Refer to shared.c in the Core A project for further details on sharing data and code. For Core B抯 project: Declare the data items as external (via extern), as they will be supplied by the definitions for Core A抯 project. Refer to SDRAM_CoreB.c. In Project Options, in the Project|Link|LDF Preprocessing dialog, define the macro OTHERCORE in the Preprocessor Macro Definitions field. No value need be supplied. It may be useful to also define the DEBUG and RELEASE macros for the Debug and Release configurations, respectively. Add a header file, local_shared_symbols.h (this file). The header file should re-define the OTHERCORE macro to be the pathname to the .DXE file produced by Core A抯 project, and include the library header file shared_symbols.h. */#undef OTHERCORE#ifdef DEBUG#define OTHERCORE "Debug/SDRAM_CoreA.dxe"#endif#ifdef RELEASE#define OTHERCORE "Release/SDRAM_CoreA.dxe"#endif#include <shared_symbols.h>/* For each data item to be shared, add a RESOLVE command to local_shared_symbols.h, giving the symbol name and the OTHERCORE macro. */RESOLVE(_shared_variable, OTHERCORE)RESOLVE(_shared_function, OTHERCORE)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -