Skip to content

Commit d19a80d

Browse files
committed
added the ram_func define on the ipc_defs.h file
1 parent 7c08c8b commit d19a80d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

include/ipc_defs.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@
55
/*
66
* Defines
77
*/
8+
9+
/*
10+
* The ramfunc attribute specifies that a function will be placed in and
11+
* executed from RAM. The ramfunc // attribute allows the compiler to
12+
* optimize functions for RAM execution.
13+
* Use example:
14+
* __attribute__((ramfunc))
15+
* void f(void) {
16+
* ...
17+
* }
18+
*/
19+
#if defined(_FLASH)
20+
#ifndef ram_func
21+
#if __TI_COMPILER_VERSION__ >= 16006000
22+
#define ram_func __attribute__((ramfunc))
23+
#else
24+
#define ram_func
25+
#endif
26+
#endif
27+
#endif
28+
829
// gsxm blocks that master cpu1 reserverd for ipc driver app
930
#define APIPC_CPU01_TO_CPU02_GSxRAM GS3_ACCESS|GS4_ACCESS|GS5_ACCESS
1031
// gsxm blocks that master cpu2 reserverd for ipc driver app

0 commit comments

Comments
 (0)