From 867c7c95aa67ea1f19286c3593500214101bacd9 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 5 Sep 2013 09:01:21 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6262 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/src/chsys.c | 8 ++++---- os/rt/src/chthreads.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'os/rt/src') diff --git a/os/rt/src/chsys.c b/os/rt/src/chsys.c index c0be6422b..94f1afd51 100644 --- a/os/rt/src/chsys.c +++ b/os/rt/src/chsys.c @@ -261,7 +261,7 @@ void chSysRestoreStatusX(syssts_t sts) { } } -#if CH_PORT_SUPPORTS_RT || defined(__DOXYGEN__) +#if PORT_SUPPORTS_RT || defined(__DOXYGEN__) /** * @brief Realtime window test. * @details This function verifies if the current realtime counter value @@ -270,7 +270,7 @@ void chSysRestoreStatusX(syssts_t sts) { * @note When start==end then the function returns always true because the * whole time range is specified. * @note This function is only available if the port layer supports the - * option @p CH_PORT_SUPPORTS_RT. + * option @p PORT_SUPPORTS_RT. * * @param[in] cnt the counter value to be tested * @param[in] start the start of the time window (inclusive) @@ -291,7 +291,7 @@ bool chSysIsCounterWithinX(rtcnt_t cnt, rtcnt_t start, rtcnt_t end) { * @note The real delay is always few cycles in excess of the specified * value. * @note This function is only available if the port layer supports the - * option @p CH_PORT_SUPPORTS_RT. + * option @p PORT_SUPPORTS_RT. * * @param[in] cycles number of cycles * @@ -303,6 +303,6 @@ void chSysPolledDelayX(rtcnt_t cycles) { while (chSysIsCounterWithinX(chSysGetRealtimeCounterX(), start, end)) ; } -#endif /* CH_PORT_SUPPORTS_RT */ +#endif /* PORT_SUPPORTS_RT */ /** @} */ diff --git a/os/rt/src/chthreads.c b/os/rt/src/chthreads.c index 35f53a072..042d90c5e 100644 --- a/os/rt/src/chthreads.c +++ b/os/rt/src/chthreads.c @@ -181,7 +181,7 @@ thread_t *chThdCreateI(void *wsp, size_t size, thread_t *tp = wsp; chDbgCheckClassI(); - chDbgCheck((wsp != NULL) && (size >= THD_WA_SIZE(0)) && + chDbgCheck((wsp != NULL) && (size >= THD_WORKING_AREA_SIZE(0)) && (prio <= HIGHPRIO) && (pf != NULL)); PORT_SETUP_CONTEXT(tp, wsp, size, pf, arg); -- cgit v1.2.3