Changed licensing checks.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13368 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2020-02-19 13:02:26 +00:00
parent a5e60e7a66
commit 25fc65f129
1 changed files with 11 additions and 4 deletions

View File

@ -154,10 +154,6 @@
#error "malformed chlicense.h" #error "malformed chlicense.h"
#endif #endif
#if CH_CUSTOMER_LIC_OSLIB == FALSE
#error "ChibiOS/LIB not licensed"
#endif
#if (CH_LICENSE_FEATURES != CH_FEATURES_FULL) && \ #if (CH_LICENSE_FEATURES != CH_FEATURES_FULL) && \
(CH_LICENSE_FEATURES != CH_FEATURES_INTERMEDIATE) && \ (CH_LICENSE_FEATURES != CH_FEATURES_INTERMEDIATE) && \
(CH_LICENSE_FEATURES != CH_FEATURES_BASIC) (CH_LICENSE_FEATURES != CH_FEATURES_BASIC)
@ -196,11 +192,22 @@
#define CH_CFG_USE_OBJ_FIFOS FALSE #define CH_CFG_USE_OBJ_FIFOS FALSE
#define CH_CFG_USE_PIPES FALSE #define CH_CFG_USE_PIPES FALSE
#define CH_CFG_USE_OBJ_CACHES FALSE #define CH_CFG_USE_OBJ_CACHES FALSE
#define CH_CFG_USE_DELEGATES FALSE
#define CH_CFG_USE_JOBS FALSE #define CH_CFG_USE_JOBS FALSE
#endif /* (CH_CUSTOMER_LIC_OSLIB == FALSE) || #endif /* (CH_CUSTOMER_LIC_OSLIB == FALSE) ||
(CH_LICENSE_FEATURES == CH_FEATURES_BASIC) */ (CH_LICENSE_FEATURES == CH_FEATURES_BASIC) */
/* Restrictions in unlicensed mode.*/
#if (CH_CUSTOMER_LIC_OSLIB == FALSE)
/* Restricted subsystems.*/
#undef CH_CFG_USE_MAILBOXES
#define CH_CFG_USE_MAILBOXES FALSE
#endif /* CH_CUSTOMER_LIC_OSLIB == FALSE */
/*===========================================================================*/ /*===========================================================================*/
/* Module data structures and types. */ /* Module data structures and types. */
/*===========================================================================*/ /*===========================================================================*/