• R/O
  • SSH
  • HTTPS

chibios: Commit


Commit MetaInfo

Revision13801 (tree)
Time2020-08-01 18:54:04
Authorgdisirio

Log Message

Strong checks on port implementations in RT.

Change Summary

Incremental Difference

--- trunk/os/rt/include/chport.h (revision 13800)
+++ trunk/os/rt/include/chport.h (revision 13801)
@@ -45,6 +45,79 @@
4545 /* Derived constants and error checks. */
4646 /*===========================================================================*/
4747
48+/* Required macros checks.*/
49+#if !defined(PORT_COMPILER_NAME)
50+#error "PORT_COMPILER_NAME not defined in chconf.h"
51+#endif
52+
53+#if !defined(PORT_IDLE_THREAD_STACK_SIZE)
54+#error "PORT_IDLE_THREAD_STACK_SIZE not defined in chconf.h"
55+#endif
56+
57+#if !defined(PORT_INT_REQUIRED_STACK)
58+#error "PORT_INT_REQUIRED_STACK not defined in chconf.h"
59+#endif
60+
61+#if !defined(PORT_SUPPORTS_RT)
62+#error "PORT_SUPPORTS_RT not defined in chconf.h"
63+#endif
64+
65+#if !defined(PORT_NATURAL_ALIGN)
66+#error "PORT_NATURAL_ALIGN not defined in chconf.h"
67+#endif
68+
69+#if !defined(PORT_STACK_ALIGN)
70+#error "PORT_STACK_ALIGN not defined in chconf.h"
71+#endif
72+
73+#if !defined(PORT_WORKING_AREA_ALIGN)
74+#error "PORT_WORKING_AREA_ALIGN not defined in chconf.h"
75+#endif
76+
77+#if !defined(PORT_ARCHITECTURE_NAME)
78+#error "PORT_ARCHITECTURE_NAME not defined in chconf.h"
79+#endif
80+
81+#if !defined(PORT_CORE_VARIANT_NAME)
82+#error "PORT_CORE_VARIANT_NAME not defined in chconf.h"
83+#endif
84+
85+#if !defined(PORT_INFO)
86+#error "PORT_INFO not defined in chconf.h"
87+#endif
88+
89+#if !defined(PORT_IRQ_IS_VALID_PRIORITY)
90+#error "PORT_IRQ_IS_VALID_PRIORITY not defined in chconf.h"
91+#endif
92+
93+#if !defined(PORT_IRQ_IS_VALID_KERNEL_PRIORITY)
94+#error "PORT_IRQ_IS_VALID_KERNEL_PRIORITY not defined in chconf.h"
95+#endif
96+
97+#if !defined(PORT_SETUP_CONTEXT)
98+#error "PORT_SETUP_CONTEXT not defined in chconf.h"
99+#endif
100+
101+#if !defined(PORT_WA_SIZE)
102+#error "PORT_WA_SIZE not defined in chconf.h"
103+#endif
104+
105+#if !defined(PORT_IRQ_PROLOGUE)
106+#error "PORT_IRQ_PROLOGUE not defined in chconf.h"
107+#endif
108+
109+#if !defined(PORT_IRQ_EPILOGUE)
110+#error "PORT_IRQ_EPILOGUE not defined in chconf.h"
111+#endif
112+
113+#if !defined(PORT_IRQ_HANDLER)
114+#error "PORT_IRQ_HANDLER not defined in chconf.h"
115+#endif
116+
117+#if !defined(PORT_FAST_IRQ_HANDLER)
118+#error "PORT_FAST_IRQ_HANDLER not defined in chconf.h"
119+#endif
120+
48121 /* Just in case the port layer does not export the following definitions.*/
49122 #if !defined(PORT_CORES_NUMBER)
50123 #define PORT_CORES_NUMBER 1
Show on old repository browser