Customer CR.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2951 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2011-05-13 17:20:39 +00:00
parent 16feb88c2d
commit 85f17ebe01
44 changed files with 705 additions and 2 deletions

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -35,6 +35,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
@ -59,6 +60,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.
@ -93,11 +95,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
} }
/** /**

View File

@ -206,8 +206,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

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -88,6 +88,9 @@
to 2.2.4). to 2.2.4).
- FIX: Fixed spurious characters generated by Serial over USB driver (bug - FIX: Fixed spurious characters generated by Serial over USB driver (bug
3276379). 3276379).
- 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 (backported to 2.2.4).
- NEW: Added new SDC driver model, Secure Digital Card. - NEW: Added new SDC driver model, Secure Digital Card.
- NEW: SDC driver implementation for STM32. - NEW: SDC driver implementation for STM32.
- NEW: Updated the STM32 header file to the latest version 3.4.0, had to - NEW: Updated the STM32 header file to the latest version 3.4.0, had to

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/

View File

@ -90,6 +90,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. */
/*===========================================================================*/ /*===========================================================================*/