Backported customer CR.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_2.2.x@2962 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
eb6a871d45
commit
ca66c93fc7
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 128
|
#define CH_MEMCORE_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 128
|
#define CH_MEMCORE_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 512
|
#define CH_MEMCORE_SIZE 512
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0x20000
|
#define CH_MEMCORE_SIZE 0x20000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 128
|
#define CH_MEMCORE_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 128
|
#define CH_MEMCORE_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 128
|
#define CH_MEMCORE_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0x20000
|
#define CH_MEMCORE_SIZE 0x20000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -35,8 +35,11 @@
|
||||||
#ifndef _CHSYS_H_
|
#ifndef _CHSYS_H_
|
||||||
#define _CHSYS_H_
|
#define _CHSYS_H_
|
||||||
|
|
||||||
|
#if !CH_NO_IDLE_THREAD || defined(__DOXYGEN__)
|
||||||
/**
|
/**
|
||||||
* @brief Returns a pointer to the idle thread.
|
* @brief Returns a pointer to the idle thread.
|
||||||
|
* @pre In order to use this function the option @p CH_NO_IDLE_THREAD
|
||||||
|
* must be disabled.
|
||||||
* @note The reference counter of the idle thread is not incremented but
|
* @note The reference counter of the idle thread is not incremented but
|
||||||
* it is not strictly required being the idle thread a static
|
* it is not strictly required being the idle thread a static
|
||||||
* object.
|
* object.
|
||||||
|
@ -46,6 +49,7 @@
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
#define chSysGetIdleThread() ((Thread *)_idle_thread_wa)
|
#define chSysGetIdleThread() ((Thread *)_idle_thread_wa)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Halts the system.
|
* @brief Halts the system.
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
|
|
||||||
#include "ch.h"
|
#include "ch.h"
|
||||||
|
|
||||||
|
#if !CH_NO_IDLE_THREAD || defined(__DOXYGEN__)
|
||||||
/**
|
/**
|
||||||
* @brief Idle thread working area.
|
* @brief Idle thread working area.
|
||||||
* @see IDLE_THREAD_STACK_SIZE
|
* @see IDLE_THREAD_STACK_SIZE
|
||||||
|
@ -65,6 +66,7 @@ void _idle_thread(void *p) {
|
||||||
IDLE_LOOP_HOOK();
|
IDLE_LOOP_HOOK();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif /* CH_NO_IDLE_THREAD */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief ChibiOS/RT initialization.
|
* @brief ChibiOS/RT initialization.
|
||||||
|
@ -99,11 +101,13 @@ void chSysInit(void) {
|
||||||
currp->p_state = THD_STATE_CURRENT;
|
currp->p_state = THD_STATE_CURRENT;
|
||||||
chSysEnable();
|
chSysEnable();
|
||||||
|
|
||||||
|
#if !CH_NO_IDLE_THREAD
|
||||||
/* This thread has the lowest priority in the system, its role is just to
|
/* This thread has the lowest priority in the system, its role is just to
|
||||||
serve interrupts in its context while keeping the lowest energy saving
|
serve interrupts in its context while keeping the lowest energy saving
|
||||||
mode compatible with the system status.*/
|
mode compatible with the system status.*/
|
||||||
chThdCreateStatic(_idle_thread_wa, sizeof(_idle_thread_wa), IDLEPRIO,
|
chThdCreateStatic(_idle_thread_wa, sizeof(_idle_thread_wa), IDLEPRIO,
|
||||||
(tfunc_t)_idle_thread, NULL);
|
(tfunc_t)_idle_thread, NULL);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -212,8 +212,7 @@ Thread *chThdCreateStatic(void *wsp, size_t size,
|
||||||
tprio_t chThdSetPriority(tprio_t newprio) {
|
tprio_t chThdSetPriority(tprio_t newprio) {
|
||||||
tprio_t oldprio;
|
tprio_t oldprio;
|
||||||
|
|
||||||
chDbgCheck((newprio >= LOWPRIO) && (newprio <= HIGHPRIO),
|
chDbgCheck(newprio <= HIGHPRIO, "chThdSetPriority");
|
||||||
"chThdSetPriority");
|
|
||||||
|
|
||||||
chSysLock();
|
chSysLock();
|
||||||
#if CH_USE_MUTEXES
|
#if CH_USE_MUTEXES
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -78,6 +78,9 @@
|
||||||
applied the same fix to the STM8S SPI driver (bug 3288758).
|
applied the same fix to the STM8S SPI driver (bug 3288758).
|
||||||
- FIX: Fixed missing state transition in ADC driver (bug 3288149).
|
- FIX: Fixed missing state transition in ADC driver (bug 3288149).
|
||||||
- FIX: Fixed missing state transition in SPI driver (bug 3288112).
|
- FIX: Fixed missing state transition in SPI driver (bug 3288112).
|
||||||
|
- NEW: Added an option to the kernel to not spawn the Idle Thread from within
|
||||||
|
chSysInit(), this way the application can spawn a custom idle thread or
|
||||||
|
even use the main() thread as idle thread.
|
||||||
|
|
||||||
*** 2.2.3 ***
|
*** 2.2.3 ***
|
||||||
- FIX: Fixed insufficient idle thread stack in Cortex-M0-GCC port
|
- FIX: Fixed insufficient idle thread stack in Cortex-M0-GCC port
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0x20000
|
#define CH_MEMCORE_SIZE 0x20000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 0
|
#define CH_MEMCORE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -96,6 +96,23 @@
|
||||||
#define CH_MEMCORE_SIZE 128
|
#define CH_MEMCORE_SIZE 128
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Idle thread automatic spawn suppression.
|
||||||
|
* @details When this option is activated the function @p chSysInit()
|
||||||
|
* does not spawn the idle thread automatically. The application has
|
||||||
|
* then the responsibility to do one of the following:
|
||||||
|
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||||
|
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||||
|
* an endless loop. In this scenario the @p main() thread acts as
|
||||||
|
* the idle thread.
|
||||||
|
* .
|
||||||
|
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||||
|
* enter a sleep state.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||||
|
#define CH_NO_IDLE_THREAD FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Performance options. */
|
/* Performance options. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
Loading…
Reference in New Issue