MISRA-related changes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10083 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
0cde2e51c7
commit
9683ccfa78
|
@ -39,9 +39,9 @@
|
||||||
* @note Cannot use the sizeof operator in this macro.
|
* @note Cannot use the sizeof operator in this macro.
|
||||||
*/
|
*/
|
||||||
#if (SIZEOF_PTR == 4) || defined(__DOXYGEN__)
|
#if (SIZEOF_PTR == 4) || defined(__DOXYGEN__)
|
||||||
#define CH_HEAP_ALIGNMENT 8
|
#define CH_HEAP_ALIGNMENT 8U
|
||||||
#elif (SIZEOF_PTR == 2)
|
#elif (SIZEOF_PTR == 2)
|
||||||
#define CH_HEAP_ALIGNMENT 4
|
#define CH_HEAP_ALIGNMENT 4U
|
||||||
#else
|
#else
|
||||||
#error "unsupported pointer size"
|
#error "unsupported pointer size"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -118,11 +118,11 @@
|
||||||
/* Derived constants and error checks. */
|
/* Derived constants and error checks. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
#if !defined(CH_CUSTOMER_LICENSED_PORT_CM0)
|
#if !defined(CH_CUSTOMER_LIC_PORT_CM0)
|
||||||
#error "CH_CUSTOMER_LICENSED_PORT_CM0 not defined"
|
#error "CH_CUSTOMER_LIC_PORT_CM0 not defined"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CH_CUSTOMER_LICENSED_PORT_CM0 == FALSE
|
#if CH_CUSTOMER_LIC_PORT_CM0 == FALSE
|
||||||
#error "ChibiOS Cortex-M0 port not licensed"
|
#error "ChibiOS Cortex-M0 port not licensed"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -186,11 +186,11 @@
|
||||||
*/
|
*/
|
||||||
#if (CORTEX_MODEL == 3) || defined(__DOXYGEN__)
|
#if (CORTEX_MODEL == 3) || defined(__DOXYGEN__)
|
||||||
|
|
||||||
#if !defined(CH_CUSTOMER_LICENSED_PORT_CM3)
|
#if !defined(CH_CUSTOMER_LIC_PORT_CM3)
|
||||||
#error "CH_CUSTOMER_LICENSED_PORT_CM3 not defined"
|
#error "CH_CUSTOMER_LIC_PORT_CM3 not defined"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CH_CUSTOMER_LICENSED_PORT_CM3 == FALSE
|
#if CH_CUSTOMER_LIC_PORT_CM3 == FALSE
|
||||||
#error "ChibiOS Cortex-M3 port not licensed"
|
#error "ChibiOS Cortex-M3 port not licensed"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -215,11 +215,11 @@
|
||||||
|
|
||||||
#elif (CORTEX_MODEL == 4)
|
#elif (CORTEX_MODEL == 4)
|
||||||
|
|
||||||
#if !defined(CH_CUSTOMER_LICENSED_PORT_CM4)
|
#if !defined(CH_CUSTOMER_LIC_PORT_CM4)
|
||||||
#error "CH_CUSTOMER_LICENSED_PORT_CM4 not defined"
|
#error "CH_CUSTOMER_LIC_PORT_CM4 not defined"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CH_CUSTOMER_LICENSED_PORT_CM4 == FALSE
|
#if CH_CUSTOMER_LIC_PORT_CM4 == FALSE
|
||||||
#error "ChibiOS Cortex-M4 port not licensed"
|
#error "ChibiOS Cortex-M4 port not licensed"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -241,11 +241,11 @@
|
||||||
|
|
||||||
#elif (CORTEX_MODEL == 7)
|
#elif (CORTEX_MODEL == 7)
|
||||||
|
|
||||||
#if !defined(CH_CUSTOMER_LICENSED_PORT_CM7)
|
#if !defined(CH_CUSTOMER_LIC_PORT_CM7)
|
||||||
#error "CH_CUSTOMER_LICENSED_PORT_CM7 not defined"
|
#error "CH_CUSTOMER_LIC_PORT_CM7 not defined"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CH_CUSTOMER_LICENSED_PORT_CM7 == FALSE
|
#if CH_CUSTOMER_LIC_PORT_CM7 == FALSE
|
||||||
#error "ChibiOS Cortex-M7 port not licensed"
|
#error "ChibiOS Cortex-M7 port not licensed"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -179,11 +179,11 @@
|
||||||
*/
|
*/
|
||||||
#if (PPC_VARIANT == PPC_VARIANT_e200z0) || defined(__DOXYGEN__)
|
#if (PPC_VARIANT == PPC_VARIANT_e200z0) || defined(__DOXYGEN__)
|
||||||
|
|
||||||
#if !defined(CH_CUSTOMER_LICENSED_PORT_E200Z0)
|
#if !defined(CH_CUSTOMER_LIC_PORT_E200Z0)
|
||||||
#error "CH_CUSTOMER_LICENSED_PORT_E200Z0 not defined"
|
#error "CH_CUSTOMER_LIC_PORT_E200Z0 not defined"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CH_CUSTOMER_LICENSED_PORT_E200Z0 == FALSE
|
#if CH_CUSTOMER_LIC_PORT_E200Z0 == FALSE
|
||||||
#error "ChibiOS Power e200z0 port not licensed"
|
#error "ChibiOS Power e200z0 port not licensed"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -191,11 +191,11 @@
|
||||||
|
|
||||||
#elif PPC_VARIANT == PPC_VARIANT_e200z2
|
#elif PPC_VARIANT == PPC_VARIANT_e200z2
|
||||||
|
|
||||||
#if !defined(CH_CUSTOMER_LICENSED_PORT_E200Z2)
|
#if !defined(CH_CUSTOMER_LIC_PORT_E200Z2)
|
||||||
#error "CH_CUSTOMER_LICENSED_PORT_E200Z2 not defined"
|
#error "CH_CUSTOMER_LIC_PORT_E200Z2 not defined"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CH_CUSTOMER_LICENSED_PORT_E200Z2 == FALSE
|
#if CH_CUSTOMER_LIC_PORT_E200Z2 == FALSE
|
||||||
#error "ChibiOS Power e200z2 port not licensed"
|
#error "ChibiOS Power e200z2 port not licensed"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -203,11 +203,11 @@
|
||||||
|
|
||||||
#elif PPC_VARIANT == PPC_VARIANT_e200z3
|
#elif PPC_VARIANT == PPC_VARIANT_e200z3
|
||||||
|
|
||||||
#if !defined(CH_CUSTOMER_LICENSED_PORT_E200Z3)
|
#if !defined(CH_CUSTOMER_LIC_PORT_E200Z3)
|
||||||
#error "CH_CUSTOMER_LICENSED_PORT_E200Z3 not defined"
|
#error "CH_CUSTOMER_LIC_PORT_E200Z3 not defined"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CH_CUSTOMER_LICENSED_PORT_E200Z3 == FALSE
|
#if CH_CUSTOMER_LIC_PORT_E200Z3 == FALSE
|
||||||
#error "ChibiOS Power e200z3 port not licensed"
|
#error "ChibiOS Power e200z3 port not licensed"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -215,11 +215,11 @@
|
||||||
|
|
||||||
#elif PPC_VARIANT == PPC_VARIANT_e200z4
|
#elif PPC_VARIANT == PPC_VARIANT_e200z4
|
||||||
|
|
||||||
#if !defined(CH_CUSTOMER_LICENSED_PORT_E200Z4)
|
#if !defined(CH_CUSTOMER_LIC_PORT_E200Z4)
|
||||||
#error "CH_CUSTOMER_LICENSED_PORT_E200Z4 not defined"
|
#error "CH_CUSTOMER_LIC_PORT_E200Z4 not defined"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CH_CUSTOMER_LICENSED_PORT_E200Z4 == FALSE
|
#if CH_CUSTOMER_LIC_PORT_E200Z4 == FALSE
|
||||||
#error "ChibiOS Power e200z4 port not licensed"
|
#error "ChibiOS Power e200z4 port not licensed"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue