diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-16 10:44:16 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-04-16 10:44:16 +0000 |
commit | c3615cd90efe574cd82517591e3f6689d873b3e9 (patch) | |
tree | faab347582e54e7a4e9e21f1161e5206d53bd7b0 /os/common/ports/ARMCMx/chcore_v6m.h | |
parent | bb42a06ea099afc1070c8421e2695bb037434e97 (diff) | |
download | ChibiOS-c3615cd90efe574cd82517591e3f6689d873b3e9.tar.gz ChibiOS-c3615cd90efe574cd82517591e3f6689d873b3e9.tar.bz2 ChibiOS-c3615cd90efe574cd82517591e3f6689d873b3e9.zip |
Added licensing checks to ports.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9289 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common/ports/ARMCMx/chcore_v6m.h')
-rw-r--r-- | os/common/ports/ARMCMx/chcore_v6m.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/os/common/ports/ARMCMx/chcore_v6m.h b/os/common/ports/ARMCMx/chcore_v6m.h index 06039ecc6..07fb06afa 100644 --- a/os/common/ports/ARMCMx/chcore_v6m.h +++ b/os/common/ports/ARMCMx/chcore_v6m.h @@ -118,6 +118,14 @@ /* Derived constants and error checks. */
/*===========================================================================*/
+#if !defined(CH_CUSTOMER_LICENSED_PORT_CM0)
+#error "CH_CUSTOMER_LICENSED_PORT_CM0 not defined"
+#endif
+
+#if CH_CUSTOMER_LICENSED_PORT_CM0 == FALSE
+#error "ChibiOS Cortex-M0 port not licensed"
+#endif
+
/**
* @name Architecture and Compiler
* @{
|