From 9bbc74119ea1b3226666b770658ce510ac3b8e96 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 14 Mar 2018 12:29:24 +0000 Subject: Configuration files realignment. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11741 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- testhal/ATSAMA5D2/MATRIX/chconf.h | 7 ---- testhal/ATSAMA5D2/RTC/chconf.h | 7 ---- testhal/ATSAMA5D2/SDMMC/chconf.h | 7 ---- testhal/ATSAMA5D2/SECUMOD/chconf.h | 7 ---- testhal/ATSAMA5D2/SERIAL/chconf.h | 7 ---- testhal/ATSAMA5D2/SPI/chconf.h | 7 ---- testhal/ATSAMA5D2/TC/chconf.h | 7 ---- testhal/ATSAMA5D2/UART/chconf.h | 10 +----- testhal/AVR/MEGA/ADC/chconf.h | 31 ++++++++---------- testhal/AVR/MEGA/EXT/chconf.h | 31 ++++++++---------- testhal/AVR/MEGA/GPT/chconf.h | 31 ++++++++---------- testhal/AVR/MEGA/I2C/chconf.h | 31 ++++++++---------- testhal/AVR/MEGA/ICU/chconf.h | 31 ++++++++---------- testhal/AVR/MEGA/PWM/chconf.h | 31 ++++++++---------- testhal/AVR/MEGA/SPI/chconf.h | 31 ++++++++---------- testhal/AVR/XMEGA/SERIAL/chconf.h | 43 +++++++++---------------- testhal/AVR/XMEGA/TEST-SUITE-OSLIB/chconf.h | 43 +++++++++---------------- testhal/AVR/XMEGA/USART/chconf.h | 43 +++++++++---------------- testhal/AVR/XMEGA/WDT/chconf.h | 43 +++++++++---------------- testhal/AVR/multi/PAL/cfg-arduino_mega/chconf.h | 41 +++++++++-------------- testhal/AVR/multi/PAL/cfg-arduino_mini/chconf.h | 41 +++++++++-------------- testhal/AVR/multi/PAL/cfg-arduino_nano/chconf.h | 41 +++++++++-------------- testhal/AVR/multi/PAL/cfg-arduino_uno/chconf.h | 41 +++++++++-------------- 23 files changed, 223 insertions(+), 389 deletions(-) (limited to 'testhal') diff --git a/testhal/ATSAMA5D2/MATRIX/chconf.h b/testhal/ATSAMA5D2/MATRIX/chconf.h index 98659e9c9..468ffe85e 100755 --- a/testhal/ATSAMA5D2/MATRIX/chconf.h +++ b/testhal/ATSAMA5D2/MATRIX/chconf.h @@ -603,13 +603,6 @@ /* Port-specific settings (override port settings defaulted in chcore.h). */ /*===========================================================================*/ -/** - * @brief Trust zone configuration. - * @details If enabled the kernel is configured for the secure world - * and can access specific devices. - */ -#define CH_CFG_SEC_WORLD TRUE - #endif /* CHCONF_H */ /** @} */ diff --git a/testhal/ATSAMA5D2/RTC/chconf.h b/testhal/ATSAMA5D2/RTC/chconf.h index 49b16647b..b1e3841a8 100644 --- a/testhal/ATSAMA5D2/RTC/chconf.h +++ b/testhal/ATSAMA5D2/RTC/chconf.h @@ -603,13 +603,6 @@ /* Port-specific settings (override port settings defaulted in chcore.h). */ /*===========================================================================*/ -/** - * @brief Trust zone configuration. - * @details If enabled the kernel is configured for the secure world - * and can access specific devices. - */ -#define CH_CFG_SEC_WORLD TRUE - #endif /* CHCONF_H */ /** @} */ diff --git a/testhal/ATSAMA5D2/SDMMC/chconf.h b/testhal/ATSAMA5D2/SDMMC/chconf.h index d0f3b0374..3ab41afae 100644 --- a/testhal/ATSAMA5D2/SDMMC/chconf.h +++ b/testhal/ATSAMA5D2/SDMMC/chconf.h @@ -603,13 +603,6 @@ /* Port-specific settings (override port settings defaulted in chcore.h). */ /*===========================================================================*/ -/** - * @brief Trust zone configuration. - * @details If enabled the kernel is configured for the secure world - * and can access specific devices. - */ -#define CH_CFG_SEC_WORLD TRUE - #endif /* CHCONF_H */ /** @} */ diff --git a/testhal/ATSAMA5D2/SECUMOD/chconf.h b/testhal/ATSAMA5D2/SECUMOD/chconf.h index 49b16647b..b1e3841a8 100755 --- a/testhal/ATSAMA5D2/SECUMOD/chconf.h +++ b/testhal/ATSAMA5D2/SECUMOD/chconf.h @@ -603,13 +603,6 @@ /* Port-specific settings (override port settings defaulted in chcore.h). */ /*===========================================================================*/ -/** - * @brief Trust zone configuration. - * @details If enabled the kernel is configured for the secure world - * and can access specific devices. - */ -#define CH_CFG_SEC_WORLD TRUE - #endif /* CHCONF_H */ /** @} */ diff --git a/testhal/ATSAMA5D2/SERIAL/chconf.h b/testhal/ATSAMA5D2/SERIAL/chconf.h index 49b16647b..b1e3841a8 100755 --- a/testhal/ATSAMA5D2/SERIAL/chconf.h +++ b/testhal/ATSAMA5D2/SERIAL/chconf.h @@ -603,13 +603,6 @@ /* Port-specific settings (override port settings defaulted in chcore.h). */ /*===========================================================================*/ -/** - * @brief Trust zone configuration. - * @details If enabled the kernel is configured for the secure world - * and can access specific devices. - */ -#define CH_CFG_SEC_WORLD TRUE - #endif /* CHCONF_H */ /** @} */ diff --git a/testhal/ATSAMA5D2/SPI/chconf.h b/testhal/ATSAMA5D2/SPI/chconf.h index 49b16647b..b1e3841a8 100644 --- a/testhal/ATSAMA5D2/SPI/chconf.h +++ b/testhal/ATSAMA5D2/SPI/chconf.h @@ -603,13 +603,6 @@ /* Port-specific settings (override port settings defaulted in chcore.h). */ /*===========================================================================*/ -/** - * @brief Trust zone configuration. - * @details If enabled the kernel is configured for the secure world - * and can access specific devices. - */ -#define CH_CFG_SEC_WORLD TRUE - #endif /* CHCONF_H */ /** @} */ diff --git a/testhal/ATSAMA5D2/TC/chconf.h b/testhal/ATSAMA5D2/TC/chconf.h index 98659e9c9..468ffe85e 100755 --- a/testhal/ATSAMA5D2/TC/chconf.h +++ b/testhal/ATSAMA5D2/TC/chconf.h @@ -603,13 +603,6 @@ /* Port-specific settings (override port settings defaulted in chcore.h). */ /*===========================================================================*/ -/** - * @brief Trust zone configuration. - * @details If enabled the kernel is configured for the secure world - * and can access specific devices. - */ -#define CH_CFG_SEC_WORLD TRUE - #endif /* CHCONF_H */ /** @} */ diff --git a/testhal/ATSAMA5D2/UART/chconf.h b/testhal/ATSAMA5D2/UART/chconf.h index a279c96f4..522791d24 100644 --- a/testhal/ATSAMA5D2/UART/chconf.h +++ b/testhal/ATSAMA5D2/UART/chconf.h @@ -49,8 +49,7 @@ * @details Frequency of the system timer that drives the system ticks. This * setting also defines the system tick time unit. */ -//#define CH_CFG_ST_FREQUENCY 1000 /* periodic tick.*/ -#define CH_CFG_ST_FREQUENCY (83000000 / 32) /* tick-less.*/ +#define CH_CFG_ST_FREQUENCY 10000 /** * @brief Time intervals data size. @@ -604,13 +603,6 @@ /* Port-specific settings (override port settings defaulted in chcore.h). */ /*===========================================================================*/ -/** - * @brief Trust zone configuration. - * @details If enabled the kernel is configured for the secure world - * and can access specific devices. - */ -#define CH_CFG_SEC_WORLD TRUE - #endif /* CHCONF_H */ /** @} */ diff --git a/testhal/AVR/MEGA/ADC/chconf.h b/testhal/AVR/MEGA/ADC/chconf.h index 87fc42b29..b61c51e39 100644 --- a/testhal/AVR/MEGA/ADC/chconf.h +++ b/testhal/AVR/MEGA/ADC/chconf.h @@ -89,9 +89,10 @@ * disables the preemption for threads with equal priority and the * round robin becomes cooperative. Note that higher priority * threads can still preempt, the kernel is always preemptive. - * * @note Disabling the round robin preemption makes the kernel more compact * and generally faster. + * @note The round robin preemption is not supported in tickless mode and + * must be set to zero in that case. */ #define CH_CFG_TIME_QUANTUM 0 @@ -111,15 +112,9 @@ /** * @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. + * does not spawn the idle thread. The application @p main() + * function becomes the idle thread and must implement an + * infinite loop. */ #define CH_CFG_NO_IDLE_THREAD FALSE @@ -190,7 +185,8 @@ * @details If enabled then the threads are enqueued on semaphores by * priority rather than in FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE @@ -265,7 +261,8 @@ * @details If enabled then messages are served by priority rather than in * FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ #define CH_CFG_USE_MESSAGES_PRIORITY FALSE @@ -428,7 +425,7 @@ * @brief Debug option, trace buffer. * @details If enabled then the trace buffer is activated. * - * @note The default is @p FALSE. + * @note The default is @p CH_DBG_TRACE_MASK_DISABLED. */ #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED @@ -463,12 +460,12 @@ /** * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p Thread structure that + * @details If enabled then a field is added to the @p thread_t structure that * counts the system ticks occurred while executing the thread. * - * @note The default is @p TRUE. - * @note This debug option is defaulted to TRUE because it is required by - * some test cases into the test suite. + * @note The default is @p FALSE. + * @note This debug option is not currently compatible with the + * tickless mode. */ #define CH_DBG_THREADS_PROFILING FALSE diff --git a/testhal/AVR/MEGA/EXT/chconf.h b/testhal/AVR/MEGA/EXT/chconf.h index 87fc42b29..b61c51e39 100644 --- a/testhal/AVR/MEGA/EXT/chconf.h +++ b/testhal/AVR/MEGA/EXT/chconf.h @@ -89,9 +89,10 @@ * disables the preemption for threads with equal priority and the * round robin becomes cooperative. Note that higher priority * threads can still preempt, the kernel is always preemptive. - * * @note Disabling the round robin preemption makes the kernel more compact * and generally faster. + * @note The round robin preemption is not supported in tickless mode and + * must be set to zero in that case. */ #define CH_CFG_TIME_QUANTUM 0 @@ -111,15 +112,9 @@ /** * @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. + * does not spawn the idle thread. The application @p main() + * function becomes the idle thread and must implement an + * infinite loop. */ #define CH_CFG_NO_IDLE_THREAD FALSE @@ -190,7 +185,8 @@ * @details If enabled then the threads are enqueued on semaphores by * priority rather than in FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE @@ -265,7 +261,8 @@ * @details If enabled then messages are served by priority rather than in * FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ #define CH_CFG_USE_MESSAGES_PRIORITY FALSE @@ -428,7 +425,7 @@ * @brief Debug option, trace buffer. * @details If enabled then the trace buffer is activated. * - * @note The default is @p FALSE. + * @note The default is @p CH_DBG_TRACE_MASK_DISABLED. */ #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED @@ -463,12 +460,12 @@ /** * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p Thread structure that + * @details If enabled then a field is added to the @p thread_t structure that * counts the system ticks occurred while executing the thread. * - * @note The default is @p TRUE. - * @note This debug option is defaulted to TRUE because it is required by - * some test cases into the test suite. + * @note The default is @p FALSE. + * @note This debug option is not currently compatible with the + * tickless mode. */ #define CH_DBG_THREADS_PROFILING FALSE diff --git a/testhal/AVR/MEGA/GPT/chconf.h b/testhal/AVR/MEGA/GPT/chconf.h index 87fc42b29..b61c51e39 100644 --- a/testhal/AVR/MEGA/GPT/chconf.h +++ b/testhal/AVR/MEGA/GPT/chconf.h @@ -89,9 +89,10 @@ * disables the preemption for threads with equal priority and the * round robin becomes cooperative. Note that higher priority * threads can still preempt, the kernel is always preemptive. - * * @note Disabling the round robin preemption makes the kernel more compact * and generally faster. + * @note The round robin preemption is not supported in tickless mode and + * must be set to zero in that case. */ #define CH_CFG_TIME_QUANTUM 0 @@ -111,15 +112,9 @@ /** * @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. + * does not spawn the idle thread. The application @p main() + * function becomes the idle thread and must implement an + * infinite loop. */ #define CH_CFG_NO_IDLE_THREAD FALSE @@ -190,7 +185,8 @@ * @details If enabled then the threads are enqueued on semaphores by * priority rather than in FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE @@ -265,7 +261,8 @@ * @details If enabled then messages are served by priority rather than in * FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ #define CH_CFG_USE_MESSAGES_PRIORITY FALSE @@ -428,7 +425,7 @@ * @brief Debug option, trace buffer. * @details If enabled then the trace buffer is activated. * - * @note The default is @p FALSE. + * @note The default is @p CH_DBG_TRACE_MASK_DISABLED. */ #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED @@ -463,12 +460,12 @@ /** * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p Thread structure that + * @details If enabled then a field is added to the @p thread_t structure that * counts the system ticks occurred while executing the thread. * - * @note The default is @p TRUE. - * @note This debug option is defaulted to TRUE because it is required by - * some test cases into the test suite. + * @note The default is @p FALSE. + * @note This debug option is not currently compatible with the + * tickless mode. */ #define CH_DBG_THREADS_PROFILING FALSE diff --git a/testhal/AVR/MEGA/I2C/chconf.h b/testhal/AVR/MEGA/I2C/chconf.h index 87fc42b29..b61c51e39 100644 --- a/testhal/AVR/MEGA/I2C/chconf.h +++ b/testhal/AVR/MEGA/I2C/chconf.h @@ -89,9 +89,10 @@ * disables the preemption for threads with equal priority and the * round robin becomes cooperative. Note that higher priority * threads can still preempt, the kernel is always preemptive. - * * @note Disabling the round robin preemption makes the kernel more compact * and generally faster. + * @note The round robin preemption is not supported in tickless mode and + * must be set to zero in that case. */ #define CH_CFG_TIME_QUANTUM 0 @@ -111,15 +112,9 @@ /** * @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. + * does not spawn the idle thread. The application @p main() + * function becomes the idle thread and must implement an + * infinite loop. */ #define CH_CFG_NO_IDLE_THREAD FALSE @@ -190,7 +185,8 @@ * @details If enabled then the threads are enqueued on semaphores by * priority rather than in FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE @@ -265,7 +261,8 @@ * @details If enabled then messages are served by priority rather than in * FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ #define CH_CFG_USE_MESSAGES_PRIORITY FALSE @@ -428,7 +425,7 @@ * @brief Debug option, trace buffer. * @details If enabled then the trace buffer is activated. * - * @note The default is @p FALSE. + * @note The default is @p CH_DBG_TRACE_MASK_DISABLED. */ #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED @@ -463,12 +460,12 @@ /** * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p Thread structure that + * @details If enabled then a field is added to the @p thread_t structure that * counts the system ticks occurred while executing the thread. * - * @note The default is @p TRUE. - * @note This debug option is defaulted to TRUE because it is required by - * some test cases into the test suite. + * @note The default is @p FALSE. + * @note This debug option is not currently compatible with the + * tickless mode. */ #define CH_DBG_THREADS_PROFILING FALSE diff --git a/testhal/AVR/MEGA/ICU/chconf.h b/testhal/AVR/MEGA/ICU/chconf.h index 87fc42b29..b61c51e39 100644 --- a/testhal/AVR/MEGA/ICU/chconf.h +++ b/testhal/AVR/MEGA/ICU/chconf.h @@ -89,9 +89,10 @@ * disables the preemption for threads with equal priority and the * round robin becomes cooperative. Note that higher priority * threads can still preempt, the kernel is always preemptive. - * * @note Disabling the round robin preemption makes the kernel more compact * and generally faster. + * @note The round robin preemption is not supported in tickless mode and + * must be set to zero in that case. */ #define CH_CFG_TIME_QUANTUM 0 @@ -111,15 +112,9 @@ /** * @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. + * does not spawn the idle thread. The application @p main() + * function becomes the idle thread and must implement an + * infinite loop. */ #define CH_CFG_NO_IDLE_THREAD FALSE @@ -190,7 +185,8 @@ * @details If enabled then the threads are enqueued on semaphores by * priority rather than in FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE @@ -265,7 +261,8 @@ * @details If enabled then messages are served by priority rather than in * FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ #define CH_CFG_USE_MESSAGES_PRIORITY FALSE @@ -428,7 +425,7 @@ * @brief Debug option, trace buffer. * @details If enabled then the trace buffer is activated. * - * @note The default is @p FALSE. + * @note The default is @p CH_DBG_TRACE_MASK_DISABLED. */ #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED @@ -463,12 +460,12 @@ /** * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p Thread structure that + * @details If enabled then a field is added to the @p thread_t structure that * counts the system ticks occurred while executing the thread. * - * @note The default is @p TRUE. - * @note This debug option is defaulted to TRUE because it is required by - * some test cases into the test suite. + * @note The default is @p FALSE. + * @note This debug option is not currently compatible with the + * tickless mode. */ #define CH_DBG_THREADS_PROFILING FALSE diff --git a/testhal/AVR/MEGA/PWM/chconf.h b/testhal/AVR/MEGA/PWM/chconf.h index 87fc42b29..b61c51e39 100644 --- a/testhal/AVR/MEGA/PWM/chconf.h +++ b/testhal/AVR/MEGA/PWM/chconf.h @@ -89,9 +89,10 @@ * disables the preemption for threads with equal priority and the * round robin becomes cooperative. Note that higher priority * threads can still preempt, the kernel is always preemptive. - * * @note Disabling the round robin preemption makes the kernel more compact * and generally faster. + * @note The round robin preemption is not supported in tickless mode and + * must be set to zero in that case. */ #define CH_CFG_TIME_QUANTUM 0 @@ -111,15 +112,9 @@ /** * @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. + * does not spawn the idle thread. The application @p main() + * function becomes the idle thread and must implement an + * infinite loop. */ #define CH_CFG_NO_IDLE_THREAD FALSE @@ -190,7 +185,8 @@ * @details If enabled then the threads are enqueued on semaphores by * priority rather than in FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE @@ -265,7 +261,8 @@ * @details If enabled then messages are served by priority rather than in * FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ #define CH_CFG_USE_MESSAGES_PRIORITY FALSE @@ -428,7 +425,7 @@ * @brief Debug option, trace buffer. * @details If enabled then the trace buffer is activated. * - * @note The default is @p FALSE. + * @note The default is @p CH_DBG_TRACE_MASK_DISABLED. */ #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED @@ -463,12 +460,12 @@ /** * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p Thread structure that + * @details If enabled then a field is added to the @p thread_t structure that * counts the system ticks occurred while executing the thread. * - * @note The default is @p TRUE. - * @note This debug option is defaulted to TRUE because it is required by - * some test cases into the test suite. + * @note The default is @p FALSE. + * @note This debug option is not currently compatible with the + * tickless mode. */ #define CH_DBG_THREADS_PROFILING FALSE diff --git a/testhal/AVR/MEGA/SPI/chconf.h b/testhal/AVR/MEGA/SPI/chconf.h index 87fc42b29..b61c51e39 100644 --- a/testhal/AVR/MEGA/SPI/chconf.h +++ b/testhal/AVR/MEGA/SPI/chconf.h @@ -89,9 +89,10 @@ * disables the preemption for threads with equal priority and the * round robin becomes cooperative. Note that higher priority * threads can still preempt, the kernel is always preemptive. - * * @note Disabling the round robin preemption makes the kernel more compact * and generally faster. + * @note The round robin preemption is not supported in tickless mode and + * must be set to zero in that case. */ #define CH_CFG_TIME_QUANTUM 0 @@ -111,15 +112,9 @@ /** * @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. + * does not spawn the idle thread. The application @p main() + * function becomes the idle thread and must implement an + * infinite loop. */ #define CH_CFG_NO_IDLE_THREAD FALSE @@ -190,7 +185,8 @@ * @details If enabled then the threads are enqueued on semaphores by * priority rather than in FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE @@ -265,7 +261,8 @@ * @details If enabled then messages are served by priority rather than in * FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ #define CH_CFG_USE_MESSAGES_PRIORITY FALSE @@ -428,7 +425,7 @@ * @brief Debug option, trace buffer. * @details If enabled then the trace buffer is activated. * - * @note The default is @p FALSE. + * @note The default is @p CH_DBG_TRACE_MASK_DISABLED. */ #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED @@ -463,12 +460,12 @@ /** * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p Thread structure that + * @details If enabled then a field is added to the @p thread_t structure that * counts the system ticks occurred while executing the thread. * - * @note The default is @p TRUE. - * @note This debug option is defaulted to TRUE because it is required by - * some test cases into the test suite. + * @note The default is @p FALSE. + * @note This debug option is not currently compatible with the + * tickless mode. */ #define CH_DBG_THREADS_PROFILING FALSE diff --git a/testhal/AVR/XMEGA/SERIAL/chconf.h b/testhal/AVR/XMEGA/SERIAL/chconf.h index 04655a3fc..9b4b25770 100644 --- a/testhal/AVR/XMEGA/SERIAL/chconf.h +++ b/testhal/AVR/XMEGA/SERIAL/chconf.h @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -89,9 +89,10 @@ * disables the preemption for threads with equal priority and the * round robin becomes cooperative. Note that higher priority * threads can still preempt, the kernel is always preemptive. - * * @note Disabling the round robin preemption makes the kernel more compact * and generally faster. + * @note The round robin preemption is not supported in tickless mode and + * must be set to zero in that case. */ #define CH_CFG_TIME_QUANTUM 0 @@ -111,15 +112,9 @@ /** * @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. + * does not spawn the idle thread. The application @p main() + * function becomes the idle thread and must implement an + * infinite loop. */ #define CH_CFG_NO_IDLE_THREAD FALSE @@ -190,7 +185,8 @@ * @details If enabled then the threads are enqueued on semaphores by * priority rather than in FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE @@ -265,7 +261,8 @@ * @details If enabled then messages are served by priority rather than in * FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ #define CH_CFG_USE_MESSAGES_PRIORITY FALSE @@ -432,14 +429,6 @@ */ #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED -/** - * @brief Debug option, trace buffer. - * @details If enabled then the trace buffer is activated. - * - * @note The default is @p FALSE. - */ -#define CH_DBG_ENABLE_TRACE CH_DBG_TRACE_MASK_DISABLED - /** * @brief Trace buffer entries. * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is @@ -471,12 +460,12 @@ /** * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p Thread structure that + * @details If enabled then a field is added to the @p thread_t structure that * counts the system ticks occurred while executing the thread. * - * @note The default is @p TRUE. - * @note This debug option is defaulted to TRUE because it is required by - * some test cases into the test suite. + * @note The default is @p FALSE. + * @note This debug option is not currently compatible with the + * tickless mode. */ #define CH_DBG_THREADS_PROFILING FALSE @@ -514,9 +503,9 @@ /** * @brief Threads initialization hook. - * @details User initialization code added to the @p chThdInit() API. + * @details User initialization code added to the @p _thread_init() function. * - * @note It is invoked from within @p chThdInit() and implicitly from all + * @note It is invoked from within @p _thread_init() and implicitly from all * the threads creation APIs. */ #define CH_CFG_THREAD_INIT_HOOK(tp) { \ diff --git a/testhal/AVR/XMEGA/TEST-SUITE-OSLIB/chconf.h b/testhal/AVR/XMEGA/TEST-SUITE-OSLIB/chconf.h index 04655a3fc..9b4b25770 100644 --- a/testhal/AVR/XMEGA/TEST-SUITE-OSLIB/chconf.h +++ b/testhal/AVR/XMEGA/TEST-SUITE-OSLIB/chconf.h @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -89,9 +89,10 @@ * disables the preemption for threads with equal priority and the * round robin becomes cooperative. Note that higher priority * threads can still preempt, the kernel is always preemptive. - * * @note Disabling the round robin preemption makes the kernel more compact * and generally faster. + * @note The round robin preemption is not supported in tickless mode and + * must be set to zero in that case. */ #define CH_CFG_TIME_QUANTUM 0 @@ -111,15 +112,9 @@ /** * @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. + * does not spawn the idle thread. The application @p main() + * function becomes the idle thread and must implement an + * infinite loop. */ #define CH_CFG_NO_IDLE_THREAD FALSE @@ -190,7 +185,8 @@ * @details If enabled then the threads are enqueued on semaphores by * priority rather than in FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE @@ -265,7 +261,8 @@ * @details If enabled then messages are served by priority rather than in * FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ #define CH_CFG_USE_MESSAGES_PRIORITY FALSE @@ -432,14 +429,6 @@ */ #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED -/** - * @brief Debug option, trace buffer. - * @details If enabled then the trace buffer is activated. - * - * @note The default is @p FALSE. - */ -#define CH_DBG_ENABLE_TRACE CH_DBG_TRACE_MASK_DISABLED - /** * @brief Trace buffer entries. * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is @@ -471,12 +460,12 @@ /** * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p Thread structure that + * @details If enabled then a field is added to the @p thread_t structure that * counts the system ticks occurred while executing the thread. * - * @note The default is @p TRUE. - * @note This debug option is defaulted to TRUE because it is required by - * some test cases into the test suite. + * @note The default is @p FALSE. + * @note This debug option is not currently compatible with the + * tickless mode. */ #define CH_DBG_THREADS_PROFILING FALSE @@ -514,9 +503,9 @@ /** * @brief Threads initialization hook. - * @details User initialization code added to the @p chThdInit() API. + * @details User initialization code added to the @p _thread_init() function. * - * @note It is invoked from within @p chThdInit() and implicitly from all + * @note It is invoked from within @p _thread_init() and implicitly from all * the threads creation APIs. */ #define CH_CFG_THREAD_INIT_HOOK(tp) { \ diff --git a/testhal/AVR/XMEGA/USART/chconf.h b/testhal/AVR/XMEGA/USART/chconf.h index 04655a3fc..9b4b25770 100644 --- a/testhal/AVR/XMEGA/USART/chconf.h +++ b/testhal/AVR/XMEGA/USART/chconf.h @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -89,9 +89,10 @@ * disables the preemption for threads with equal priority and the * round robin becomes cooperative. Note that higher priority * threads can still preempt, the kernel is always preemptive. - * * @note Disabling the round robin preemption makes the kernel more compact * and generally faster. + * @note The round robin preemption is not supported in tickless mode and + * must be set to zero in that case. */ #define CH_CFG_TIME_QUANTUM 0 @@ -111,15 +112,9 @@ /** * @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. + * does not spawn the idle thread. The application @p main() + * function becomes the idle thread and must implement an + * infinite loop. */ #define CH_CFG_NO_IDLE_THREAD FALSE @@ -190,7 +185,8 @@ * @details If enabled then the threads are enqueued on semaphores by * priority rather than in FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE @@ -265,7 +261,8 @@ * @details If enabled then messages are served by priority rather than in * FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ #define CH_CFG_USE_MESSAGES_PRIORITY FALSE @@ -432,14 +429,6 @@ */ #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED -/** - * @brief Debug option, trace buffer. - * @details If enabled then the trace buffer is activated. - * - * @note The default is @p FALSE. - */ -#define CH_DBG_ENABLE_TRACE CH_DBG_TRACE_MASK_DISABLED - /** * @brief Trace buffer entries. * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is @@ -471,12 +460,12 @@ /** * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p Thread structure that + * @details If enabled then a field is added to the @p thread_t structure that * counts the system ticks occurred while executing the thread. * - * @note The default is @p TRUE. - * @note This debug option is defaulted to TRUE because it is required by - * some test cases into the test suite. + * @note The default is @p FALSE. + * @note This debug option is not currently compatible with the + * tickless mode. */ #define CH_DBG_THREADS_PROFILING FALSE @@ -514,9 +503,9 @@ /** * @brief Threads initialization hook. - * @details User initialization code added to the @p chThdInit() API. + * @details User initialization code added to the @p _thread_init() function. * - * @note It is invoked from within @p chThdInit() and implicitly from all + * @note It is invoked from within @p _thread_init() and implicitly from all * the threads creation APIs. */ #define CH_CFG_THREAD_INIT_HOOK(tp) { \ diff --git a/testhal/AVR/XMEGA/WDT/chconf.h b/testhal/AVR/XMEGA/WDT/chconf.h index 04655a3fc..9b4b25770 100644 --- a/testhal/AVR/XMEGA/WDT/chconf.h +++ b/testhal/AVR/XMEGA/WDT/chconf.h @@ -1,5 +1,5 @@ /* - ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio + ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -89,9 +89,10 @@ * disables the preemption for threads with equal priority and the * round robin becomes cooperative. Note that higher priority * threads can still preempt, the kernel is always preemptive. - * * @note Disabling the round robin preemption makes the kernel more compact * and generally faster. + * @note The round robin preemption is not supported in tickless mode and + * must be set to zero in that case. */ #define CH_CFG_TIME_QUANTUM 0 @@ -111,15 +112,9 @@ /** * @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. + * does not spawn the idle thread. The application @p main() + * function becomes the idle thread and must implement an + * infinite loop. */ #define CH_CFG_NO_IDLE_THREAD FALSE @@ -190,7 +185,8 @@ * @details If enabled then the threads are enqueued on semaphores by * priority rather than in FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE @@ -265,7 +261,8 @@ * @details If enabled then messages are served by priority rather than in * FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ #define CH_CFG_USE_MESSAGES_PRIORITY FALSE @@ -432,14 +429,6 @@ */ #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED -/** - * @brief Debug option, trace buffer. - * @details If enabled then the trace buffer is activated. - * - * @note The default is @p FALSE. - */ -#define CH_DBG_ENABLE_TRACE CH_DBG_TRACE_MASK_DISABLED - /** * @brief Trace buffer entries. * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is @@ -471,12 +460,12 @@ /** * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p Thread structure that + * @details If enabled then a field is added to the @p thread_t structure that * counts the system ticks occurred while executing the thread. * - * @note The default is @p TRUE. - * @note This debug option is defaulted to TRUE because it is required by - * some test cases into the test suite. + * @note The default is @p FALSE. + * @note This debug option is not currently compatible with the + * tickless mode. */ #define CH_DBG_THREADS_PROFILING FALSE @@ -514,9 +503,9 @@ /** * @brief Threads initialization hook. - * @details User initialization code added to the @p chThdInit() API. + * @details User initialization code added to the @p _thread_init() function. * - * @note It is invoked from within @p chThdInit() and implicitly from all + * @note It is invoked from within @p _thread_init() and implicitly from all * the threads creation APIs. */ #define CH_CFG_THREAD_INIT_HOOK(tp) { \ diff --git a/testhal/AVR/multi/PAL/cfg-arduino_mega/chconf.h b/testhal/AVR/multi/PAL/cfg-arduino_mega/chconf.h index 2f63e6f13..4ecd81a8e 100644 --- a/testhal/AVR/multi/PAL/cfg-arduino_mega/chconf.h +++ b/testhal/AVR/multi/PAL/cfg-arduino_mega/chconf.h @@ -89,9 +89,10 @@ * disables the preemption for threads with equal priority and the * round robin becomes cooperative. Note that higher priority * threads can still preempt, the kernel is always preemptive. - * * @note Disabling the round robin preemption makes the kernel more compact * and generally faster. + * @note The round robin preemption is not supported in tickless mode and + * must be set to zero in that case. */ #define CH_CFG_TIME_QUANTUM 0 @@ -111,15 +112,9 @@ /** * @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. + * does not spawn the idle thread. The application @p main() + * function becomes the idle thread and must implement an + * infinite loop. */ #define CH_CFG_NO_IDLE_THREAD FALSE @@ -190,7 +185,8 @@ * @details If enabled then the threads are enqueued on semaphores by * priority rather than in FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE @@ -265,7 +261,8 @@ * @details If enabled then messages are served by priority rather than in * FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ #define CH_CFG_USE_MESSAGES_PRIORITY FALSE @@ -432,14 +429,6 @@ */ #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED -/** - * @brief Debug option, trace buffer. - * @details If enabled then the trace buffer is activated. - * - * @note The default is @p FALSE. - */ -#define CH_DBG_ENABLE_TRACE CH_DBG_TRACE_MASK_DISABLED - /** * @brief Trace buffer entries. * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is @@ -471,12 +460,12 @@ /** * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p Thread structure that + * @details If enabled then a field is added to the @p thread_t structure that * counts the system ticks occurred while executing the thread. * - * @note The default is @p TRUE. - * @note This debug option is defaulted to TRUE because it is required by - * some test cases into the test suite. + * @note The default is @p FALSE. + * @note This debug option is not currently compatible with the + * tickless mode. */ #define CH_DBG_THREADS_PROFILING FALSE @@ -514,9 +503,9 @@ /** * @brief Threads initialization hook. - * @details User initialization code added to the @p chThdInit() API. + * @details User initialization code added to the @p _thread_init() function. * - * @note It is invoked from within @p chThdInit() and implicitly from all + * @note It is invoked from within @p _thread_init() and implicitly from all * the threads creation APIs. */ #define CH_CFG_THREAD_INIT_HOOK(tp) { \ diff --git a/testhal/AVR/multi/PAL/cfg-arduino_mini/chconf.h b/testhal/AVR/multi/PAL/cfg-arduino_mini/chconf.h index 2f63e6f13..4ecd81a8e 100644 --- a/testhal/AVR/multi/PAL/cfg-arduino_mini/chconf.h +++ b/testhal/AVR/multi/PAL/cfg-arduino_mini/chconf.h @@ -89,9 +89,10 @@ * disables the preemption for threads with equal priority and the * round robin becomes cooperative. Note that higher priority * threads can still preempt, the kernel is always preemptive. - * * @note Disabling the round robin preemption makes the kernel more compact * and generally faster. + * @note The round robin preemption is not supported in tickless mode and + * must be set to zero in that case. */ #define CH_CFG_TIME_QUANTUM 0 @@ -111,15 +112,9 @@ /** * @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. + * does not spawn the idle thread. The application @p main() + * function becomes the idle thread and must implement an + * infinite loop. */ #define CH_CFG_NO_IDLE_THREAD FALSE @@ -190,7 +185,8 @@ * @details If enabled then the threads are enqueued on semaphores by * priority rather than in FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE @@ -265,7 +261,8 @@ * @details If enabled then messages are served by priority rather than in * FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ #define CH_CFG_USE_MESSAGES_PRIORITY FALSE @@ -432,14 +429,6 @@ */ #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED -/** - * @brief Debug option, trace buffer. - * @details If enabled then the trace buffer is activated. - * - * @note The default is @p FALSE. - */ -#define CH_DBG_ENABLE_TRACE CH_DBG_TRACE_MASK_DISABLED - /** * @brief Trace buffer entries. * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is @@ -471,12 +460,12 @@ /** * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p Thread structure that + * @details If enabled then a field is added to the @p thread_t structure that * counts the system ticks occurred while executing the thread. * - * @note The default is @p TRUE. - * @note This debug option is defaulted to TRUE because it is required by - * some test cases into the test suite. + * @note The default is @p FALSE. + * @note This debug option is not currently compatible with the + * tickless mode. */ #define CH_DBG_THREADS_PROFILING FALSE @@ -514,9 +503,9 @@ /** * @brief Threads initialization hook. - * @details User initialization code added to the @p chThdInit() API. + * @details User initialization code added to the @p _thread_init() function. * - * @note It is invoked from within @p chThdInit() and implicitly from all + * @note It is invoked from within @p _thread_init() and implicitly from all * the threads creation APIs. */ #define CH_CFG_THREAD_INIT_HOOK(tp) { \ diff --git a/testhal/AVR/multi/PAL/cfg-arduino_nano/chconf.h b/testhal/AVR/multi/PAL/cfg-arduino_nano/chconf.h index 2f63e6f13..4ecd81a8e 100644 --- a/testhal/AVR/multi/PAL/cfg-arduino_nano/chconf.h +++ b/testhal/AVR/multi/PAL/cfg-arduino_nano/chconf.h @@ -89,9 +89,10 @@ * disables the preemption for threads with equal priority and the * round robin becomes cooperative. Note that higher priority * threads can still preempt, the kernel is always preemptive. - * * @note Disabling the round robin preemption makes the kernel more compact * and generally faster. + * @note The round robin preemption is not supported in tickless mode and + * must be set to zero in that case. */ #define CH_CFG_TIME_QUANTUM 0 @@ -111,15 +112,9 @@ /** * @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. + * does not spawn the idle thread. The application @p main() + * function becomes the idle thread and must implement an + * infinite loop. */ #define CH_CFG_NO_IDLE_THREAD FALSE @@ -190,7 +185,8 @@ * @details If enabled then the threads are enqueued on semaphores by * priority rather than in FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE @@ -265,7 +261,8 @@ * @details If enabled then messages are served by priority rather than in * FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ #define CH_CFG_USE_MESSAGES_PRIORITY FALSE @@ -432,14 +429,6 @@ */ #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED -/** - * @brief Debug option, trace buffer. - * @details If enabled then the trace buffer is activated. - * - * @note The default is @p FALSE. - */ -#define CH_DBG_ENABLE_TRACE CH_DBG_TRACE_MASK_DISABLED - /** * @brief Trace buffer entries. * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is @@ -471,12 +460,12 @@ /** * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p Thread structure that + * @details If enabled then a field is added to the @p thread_t structure that * counts the system ticks occurred while executing the thread. * - * @note The default is @p TRUE. - * @note This debug option is defaulted to TRUE because it is required by - * some test cases into the test suite. + * @note The default is @p FALSE. + * @note This debug option is not currently compatible with the + * tickless mode. */ #define CH_DBG_THREADS_PROFILING FALSE @@ -514,9 +503,9 @@ /** * @brief Threads initialization hook. - * @details User initialization code added to the @p chThdInit() API. + * @details User initialization code added to the @p _thread_init() function. * - * @note It is invoked from within @p chThdInit() and implicitly from all + * @note It is invoked from within @p _thread_init() and implicitly from all * the threads creation APIs. */ #define CH_CFG_THREAD_INIT_HOOK(tp) { \ diff --git a/testhal/AVR/multi/PAL/cfg-arduino_uno/chconf.h b/testhal/AVR/multi/PAL/cfg-arduino_uno/chconf.h index 2f63e6f13..4ecd81a8e 100644 --- a/testhal/AVR/multi/PAL/cfg-arduino_uno/chconf.h +++ b/testhal/AVR/multi/PAL/cfg-arduino_uno/chconf.h @@ -89,9 +89,10 @@ * disables the preemption for threads with equal priority and the * round robin becomes cooperative. Note that higher priority * threads can still preempt, the kernel is always preemptive. - * * @note Disabling the round robin preemption makes the kernel more compact * and generally faster. + * @note The round robin preemption is not supported in tickless mode and + * must be set to zero in that case. */ #define CH_CFG_TIME_QUANTUM 0 @@ -111,15 +112,9 @@ /** * @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. + * does not spawn the idle thread. The application @p main() + * function becomes the idle thread and must implement an + * infinite loop. */ #define CH_CFG_NO_IDLE_THREAD FALSE @@ -190,7 +185,8 @@ * @details If enabled then the threads are enqueued on semaphores by * priority rather than in FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE @@ -265,7 +261,8 @@ * @details If enabled then messages are served by priority rather than in * FIFO order. * - * @note The default is @p FALSE. Enable this if you have special requirements. + * @note The default is @p FALSE. Enable this if you have special + * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ #define CH_CFG_USE_MESSAGES_PRIORITY FALSE @@ -432,14 +429,6 @@ */ #define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED -/** - * @brief Debug option, trace buffer. - * @details If enabled then the trace buffer is activated. - * - * @note The default is @p FALSE. - */ -#define CH_DBG_ENABLE_TRACE CH_DBG_TRACE_MASK_DISABLED - /** * @brief Trace buffer entries. * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is @@ -471,12 +460,12 @@ /** * @brief Debug option, threads profiling. - * @details If enabled then a field is added to the @p Thread structure that + * @details If enabled then a field is added to the @p thread_t structure that * counts the system ticks occurred while executing the thread. * - * @note The default is @p TRUE. - * @note This debug option is defaulted to TRUE because it is required by - * some test cases into the test suite. + * @note The default is @p FALSE. + * @note This debug option is not currently compatible with the + * tickless mode. */ #define CH_DBG_THREADS_PROFILING FALSE @@ -514,9 +503,9 @@ /** * @brief Threads initialization hook. - * @details User initialization code added to the @p chThdInit() API. + * @details User initialization code added to the @p _thread_init() function. * - * @note It is invoked from within @p chThdInit() and implicitly from all + * @note It is invoked from within @p _thread_init() and implicitly from all * the threads creation APIs. */ #define CH_CFG_THREAD_INIT_HOOK(tp) { \ -- cgit v1.2.3