diff options
Diffstat (limited to 'os/ports/IAR')
-rw-r--r-- | os/ports/IAR/ARMCMx/chcore.h | 6 | ||||
-rw-r--r-- | os/ports/IAR/STM8/chcore.h | 4 | ||||
-rw-r--r-- | os/ports/IAR/STM8/port.dox | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/os/ports/IAR/ARMCMx/chcore.h b/os/ports/IAR/ARMCMx/chcore.h index 0ea154f00..3fd627715 100644 --- a/os/ports/IAR/ARMCMx/chcore.h +++ b/os/ports/IAR/ARMCMx/chcore.h @@ -170,17 +170,17 @@ struct intctx {}; */
#define PORT_OPTIMIZED_ISPREEMPTIONREQUIRED
-#if (CH_TIME_QUANTUM > 0) || defined(__DOXYGEN__)
+#if (CH_CFG_TIME_QUANTUM > 0) || defined(__DOXYGEN__)
/**
* @brief Inline-able version of this kernel function.
*/
#define chSchIsPreemptionRequired() \
(currp->p_preempt ? firstprio(&rlist.r_queue) > currp->p_prio : \
firstprio(&rlist.r_queue) >= currp->p_prio)
-#else /* CH_TIME_QUANTUM == 0 */
+#else /* CH_CFG_TIME_QUANTUM == 0 */
#define chSchIsPreemptionRequired() \
(firstprio(&rlist.r_queue) > currp->p_prio)
-#endif /* CH_TIME_QUANTUM == 0 */
+#endif /* CH_CFG_TIME_QUANTUM == 0 */
#endif /* _FROM_ASM_ */
diff --git a/os/ports/IAR/STM8/chcore.h b/os/ports/IAR/STM8/chcore.h index 29bf5087c..431b7f65d 100644 --- a/os/ports/IAR/STM8/chcore.h +++ b/os/ports/IAR/STM8/chcore.h @@ -322,12 +322,12 @@ typedef struct { ThreadsQueue r_queue;
tprio_t r_prio;
Thread *r_current;
-#if CH_USE_REGISTRY
+#if CH_CFG_USE_REGISTRY
Thread *r_newer;
Thread *r_older;
#endif
/* End of the fields shared with the Thread structure.*/
-#if CH_TIME_QUANTUM > 0
+#if CH_CFG_TIME_QUANTUM > 0
cnt_t r_preempt;
#endif
} ReadyList;
diff --git a/os/ports/IAR/STM8/port.dox b/os/ports/IAR/STM8/port.dox index c0eb35cdd..1a95b79bf 100644 --- a/os/ports/IAR/STM8/port.dox +++ b/os/ports/IAR/STM8/port.dox @@ -57,7 +57,7 @@ * kernel files should be loaded in the first 64K. Note that this is not
* a problem because upper addresses can be used by the user code, the
* kernel can context switch code running there.
- * - The configuration option @p CH_OPTIMIZE_SPEED is not currently supported
+ * - The configuration option @p CH_CFG_OPTIMIZE_SPEED is not currently supported
* because the missing support of the @p inline "C" keyword in the
* compiler.
* .
|