tests/mpu_stack_guard: error unless __MPU_PRESENT

This commit is contained in:
Kaspar Schleiser 2020-02-17 13:54:00 +01:00
parent 950a206bad
commit b154784421

View File

@ -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