From f081b654b39e6dfd73ab7536c02dc8e3be742fee Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 17 Sep 2019 14:53:05 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12997 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/sb/host/sb.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/os/sb/host/sb.h b/os/sb/host/sb.h index e5c08bfad..967f28e26 100644 --- a/os/sb/host/sb.h +++ b/os/sb/host/sb.h @@ -91,6 +91,16 @@ #error "ChibiOS/SB not licensed" #endif +#if (CH_LICENSE_FEATURES != CH_FEATURES_FULL) && \ + (CH_LICENSE_FEATURES != CH_FEATURES_INTERMEDIATE) && \ + (CH_LICENSE_FEATURES != CH_FEATURES_BASIC) +#error "invalid CH_LICENSE_FEATURES setting" +#endif + +#if CH_LICENSE_FEATURES != CH_FEATURES_FULL +#error "ChibiOS/SB insufficient features level" +#endif + #if CH_CFG_ST_RESOLUTION != 32 #error "SandBox requires CH_CFG_ST_RESOLUTION == 32" #endif