From bb42a06ea099afc1070c8421e2695bb037434e97 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 16 Apr 2016 10:25:03 +0000 Subject: More licensing checks. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9288 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/include/chchecks.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'os/rt') diff --git a/os/rt/include/chchecks.h b/os/rt/include/chchecks.h index 2b663df55..60f2b4c51 100644 --- a/os/rt/include/chchecks.h +++ b/os/rt/include/chchecks.h @@ -40,6 +40,10 @@ /* Derived constants and error checks. */ /*===========================================================================*/ +#if CH_CUSTOMER_LICENSED_RT == FALSE +#error "ChibiOS/RT not licensed" +#endif + #if (CH_LICENSE_FEATURES != CH_FEATURES_FULL) && \ (CH_LICENSE_FEATURES != CH_FEATURES_INTERMEDIATE) && \ (CH_LICENSE_FEATURES == CH_FEATURES_BASIC) @@ -56,7 +60,7 @@ #define CH_CFG_ST_FREQUENCY 1000 #endif -/* Statistics and trace buffer restricted.*/ +/* Restricted subsystems.*/ #undef CH_DBG_STATISTICS #undef CH_DBG_TRACE_MASK @@ -73,7 +77,7 @@ #undef CH_CFG_ST_TIMEDELTA #define CH_CFG_ST_TIMEDELTA 0 -/* Several subsystems restricted.*/ +/* Restricted subsystems.*/ #undef CH_CFG_USE_TM #undef CH_CFG_USE_MUTEXES #undef CH_CFG_USE_CONDVARS -- cgit v1.2.3