Change license restrictions.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7552 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
c7da76627c
commit
ea6e4f54b0
|
@ -109,20 +109,20 @@
|
||||||
* @details This setting defines which features are available under the
|
* @details This setting defines which features are available under the
|
||||||
* current licensing scheme. The possible settings are:
|
* current licensing scheme. The possible settings are:
|
||||||
* - @p CH_FEATURES_FULL if all features are available.
|
* - @p CH_FEATURES_FULL if all features are available.
|
||||||
* - @p CH_FEATURES_INTERMEDIATE means that the following modules
|
* - @p CH_FEATURES_INTERMEDIATE means that the following
|
||||||
* are restricted:
|
* functionalities are disabled:
|
||||||
* - Tickless mode.
|
* - High Resolution mode.
|
||||||
* - Condition Variables.
|
|
||||||
* - Time Measurement.
|
* - Time Measurement.
|
||||||
* - Statistics.
|
* - Statistics.
|
||||||
* .
|
* .
|
||||||
* - @p CH_FEATURES_BASIC means that the following modules
|
* - @p CH_FEATURES_BASIC means that the following functionalities
|
||||||
* are restricted:
|
* are disabled:
|
||||||
* - Tickless mode.
|
* - High Resolution mode.
|
||||||
* - Condition Variables.
|
|
||||||
* - Time Measurement.
|
* - Time Measurement.
|
||||||
* - Statistics.
|
* - Statistics.
|
||||||
|
* - Tickless mode.
|
||||||
* - Recursive Mutexes.
|
* - Recursive Mutexes.
|
||||||
|
* - Condition Variables.
|
||||||
* - Dynamic threading.
|
* - Dynamic threading.
|
||||||
* .
|
* .
|
||||||
* .
|
* .
|
||||||
|
@ -160,7 +160,7 @@
|
||||||
#define CH_LICENSE_ID_CODE CH_CUSTOMER_ID_CODE
|
#define CH_LICENSE_ID_CODE CH_CUSTOMER_ID_CODE
|
||||||
#define CH_LICENSE_MODIFIABLE_CODE TRUE
|
#define CH_LICENSE_MODIFIABLE_CODE TRUE
|
||||||
#define CH_LICENSE_FEATURES CH_FEATURES_FULL
|
#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
|
#elif CH_LICENSE == CH_LICENSE_COMMERCIAL_FULL
|
||||||
#include "chcustomer.h"
|
#include "chcustomer.h"
|
||||||
|
@ -191,12 +191,8 @@
|
||||||
#elif (CH_LICENSE_FEATURES == CH_FEATURES_INTERMEDIATE) || \
|
#elif (CH_LICENSE_FEATURES == CH_FEATURES_INTERMEDIATE) || \
|
||||||
(CH_LICENSE_FEATURES == CH_FEATURES_BASIC)
|
(CH_LICENSE_FEATURES == CH_FEATURES_BASIC)
|
||||||
/* Restrictions in basic and intermediate modes.*/
|
/* Restrictions in basic and intermediate modes.*/
|
||||||
#if CH_CFG_ST_TIMEDELTA > 0
|
#if CH_CFG_ST_TIMEDELTA > 2
|
||||||
#error "CH_CFG_ST_TIMEDELTA > 0, tick-less functionality restricted"
|
#error "CH_CFG_ST_TIMEDELTA > 2, High Resolution Time functionality restricted"
|
||||||
#endif
|
|
||||||
|
|
||||||
#if CH_CFG_USE_CONDVARS
|
|
||||||
#error "CH_CFG_USE_CONDVARS == TRUE, Condition Variables functionality restricted"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CH_CFG_USE_TM
|
#if CH_CFG_USE_TM
|
||||||
|
@ -209,10 +205,18 @@
|
||||||
|
|
||||||
#if CH_LICENSE_FEATURES == CH_FEATURES_BASIC
|
#if CH_LICENSE_FEATURES == CH_FEATURES_BASIC
|
||||||
/* Restrictions in basic mode.*/
|
/* 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
|
#if CH_CFG_USE_MUTEXES_RECURSIVE
|
||||||
#error "CH_CFG_USE_MUTEXES_RECURSIVE == TRUE, Recursive Mutexes functionality restricted"
|
#error "CH_CFG_USE_MUTEXES_RECURSIVE == TRUE, Recursive Mutexes functionality restricted"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if CH_CFG_USE_CONDVARS
|
||||||
|
#error "CH_CFG_USE_CONDVARS == TRUE, Condition Variables functionality restricted"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if CH_CFG_USE_DYNAMIC
|
#if CH_CFG_USE_DYNAMIC
|
||||||
#error "CH_CFG_USE_DYNAMIC == TRUE, Dynamic Threads functionality restricted"
|
#error "CH_CFG_USE_DYNAMIC == TRUE, Dynamic Threads functionality restricted"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue