tests/mpu_stack_guard: error unless __MPU_PRESENT
This commit is contained in:
parent
950a206bad
commit
b154784421
@ -22,6 +22,14 @@
|
|||||||
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
|
#include "mpu.h"
|
||||||
|
|
||||||
|
/* RIOT's MPU headers gracefully fail when no MPU is present.
|
||||||
|
* Use this to catch if RIOT's features are correctly gating MPU use.
|
||||||
|
*/
|
||||||
|
#if !__MPU_PRESENT
|
||||||
|
#error "(!__MPU_PRESENT)"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define CANARY_VALUE 0xdeadbeef
|
#define CANARY_VALUE 0xdeadbeef
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user