From ea6e4f54b0584bc9ff2b34e9ce0cb56acdb6000c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 1 Dec 2014 13:22:49 +0000 Subject: Change license restrictions. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7552 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/include/chlicense.h | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'os') diff --git a/os/rt/include/chlicense.h b/os/rt/include/chlicense.h index b04e1231b..a77bc35d8 100644 --- a/os/rt/include/chlicense.h +++ b/os/rt/include/chlicense.h @@ -109,20 +109,20 @@ * @details This setting defines which features are available under the * current licensing scheme. The possible settings are: * - @p CH_FEATURES_FULL if all features are available. - * - @p CH_FEATURES_INTERMEDIATE means that the following modules - * are restricted: - * - Tickless mode. - * - Condition Variables. + * - @p CH_FEATURES_INTERMEDIATE means that the following + * functionalities are disabled: + * - High Resolution mode. * - Time Measurement. * - Statistics. * . - * - @p CH_FEATURES_BASIC means that the following modules - * are restricted: - * - Tickless mode. - * - Condition Variables. + * - @p CH_FEATURES_BASIC means that the following functionalities + * are disabled: + * - High Resolution mode. * - Time Measurement. * - Statistics. + * - Tickless mode. * - Recursive Mutexes. + * - Condition Variables. * - Dynamic threading. * . * . @@ -160,7 +160,7 @@ #define CH_LICENSE_ID_CODE CH_CUSTOMER_ID_CODE #define CH_LICENSE_MODIFIABLE_CODE TRUE #define CH_LICENSE_FEATURES CH_FEATURES_FULL -#define CH_LICENSE_DEPLOY_LIMIT 200 +#define CH_LICENSE_DEPLOY_LIMIT 2000 #elif CH_LICENSE == CH_LICENSE_COMMERCIAL_FULL #include "chcustomer.h" @@ -191,12 +191,8 @@ #elif (CH_LICENSE_FEATURES == CH_FEATURES_INTERMEDIATE) || \ (CH_LICENSE_FEATURES == CH_FEATURES_BASIC) /* Restrictions in basic and intermediate modes.*/ - #if CH_CFG_ST_TIMEDELTA > 0 - #error "CH_CFG_ST_TIMEDELTA > 0, tick-less functionality restricted" - #endif - - #if CH_CFG_USE_CONDVARS - #error "CH_CFG_USE_CONDVARS == TRUE, Condition Variables functionality restricted" + #if CH_CFG_ST_TIMEDELTA > 2 + #error "CH_CFG_ST_TIMEDELTA > 2, High Resolution Time functionality restricted" #endif #if CH_CFG_USE_TM @@ -209,10 +205,18 @@ #if CH_LICENSE_FEATURES == CH_FEATURES_BASIC /* Restrictions in basic mode.*/ + #if CH_CFG_ST_TIMEDELTA > 0 + #error "CH_CFG_ST_TIMEDELTA > 0, Tick-Less functionality restricted" + #endif + #if CH_CFG_USE_MUTEXES_RECURSIVE #error "CH_CFG_USE_MUTEXES_RECURSIVE == TRUE, Recursive Mutexes functionality restricted" #endif + #if CH_CFG_USE_CONDVARS + #error "CH_CFG_USE_CONDVARS == TRUE, Condition Variables functionality restricted" + #endif + #if CH_CFG_USE_DYNAMIC #error "CH_CFG_USE_DYNAMIC == TRUE, Dynamic Threads functionality restricted" #endif -- cgit v1.2.3