Skip to content

Commit

Permalink
[architecture] include noinline in modm_fastcode attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbridejc committed Feb 8, 2022
1 parent e6efd55 commit 845840e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modm/architecture/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
*/
#define modm_always_inline

/// Specifies that a function should never be inlined
#define modm_noinline

/// Attached to a variable or a function this means that it is meant to be possibly unused.
#define modm_unused

Expand Down Expand Up @@ -125,6 +128,7 @@
#define MODM_ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))

#define modm_always_inline inline __attribute__((always_inline))
#define modm_noinline __attribute__((noinline))
#define modm_unused __attribute__((unused))
#define modm_aligned(n) __attribute__((aligned(n)))
#define modm_packed __attribute__((packed))
Expand Down Expand Up @@ -155,7 +159,7 @@
# define modm_fastdata
# define modm_faststack
#else
# define modm_fastcode modm_section(".fastcode")
# define modm_fastcode modm_section(".fastcode") modm_noinline
# define modm_ramcode modm_fastcode
# define modm_fastdata modm_section(".fastdata")
# define modm_faststack modm_section(".faststack")
Expand Down

0 comments on commit 845840e

Please sign in to comment.