Skip to content

Commit

Permalink
#546 Added null implementations in unit tests for CCM macros
Browse files Browse the repository at this point in the history
  • Loading branch information
krichardsson committed May 14, 2020
1 parent 8c925aa commit ee7751b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/modules/interface/static_mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@
* end up in the CCM. The current implementation puts is in CCM but
* that might change later.
*/
#define NO_DMA_CCM_SAFE_ZERO_INIT __attribute__((section(".ccmbss")))
#if defined(UNIT_TEST_MODE)
#define NO_DMA_CCM_SAFE_ZERO_INIT
#else
#define NO_DMA_CCM_SAFE_ZERO_INIT __attribute__((section(".ccmbss")))
#endif

/**
* @brief Macro to force a variable to be placed in the CCM
Expand All @@ -63,7 +67,11 @@
* to the variable when declared, this value will be silently ignored
* without a warning!
*/
#define FORCE_CCM_ZERO_INIT __attribute__((section(".ccmbss")))
#if defined(UNIT_TEST_MODE)
#define FORCE_CCM_ZERO_INIT
#else
#define FORCE_CCM_ZERO_INIT __attribute__((section(".ccmbss")))
#endif


/**
Expand Down

0 comments on commit ee7751b

Please sign in to comment.