From aa2eb80fdb2e4e3b6eedacb8426e40db255cbe68 Mon Sep 17 00:00:00 2001
From: gdisirio
Date: Mon, 29 Dec 2008 12:12:53 +0000
Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@558
35acf78f-673a-0410-8e92-d51de3d6d3f4
---
docs/ch.txt | 36 ++++++++++++++++++++++++++++++++++++
ports/AVR/chcore.h | 4 +++-
ports/MSP430/chcore.h | 2 ++
readme.txt | 10 ++++++----
test/test.h | 2 +-
5 files changed, 48 insertions(+), 6 deletions(-)
diff --git a/docs/ch.txt b/docs/ch.txt
index 326fddc00..ad7421f3b 100644
--- a/docs/ch.txt
+++ b/docs/ch.txt
@@ -362,6 +362,24 @@
*/
/** @} */
+/**
+ * @defgroup AVRCONF Configuration Options
+ * @{
+ *
+ * The AVR port allows some architecture-specific configurations settings
+ * that can be specified externally, as example on the compiler command line:
+ *
+ * - @p INT_REQUIRED_STACK, this value represent the amount of stack space
+ * used by the interrupt handlers.
+ * The default for this value is @p 32, this space is allocated for each
+ * thread so be careful in order to not waste precious RAM space.
+ * The default value is set into ./ports/AVR/chcore.h.
+ *
+ *
+ * @ingroup AVR
+ */
+/** @} */
+
/**
* @defgroup MSP430 MSP430
* @{
@@ -378,6 +396,24 @@
*/
/** @} */
+/**
+ * @defgroup MSP430CONF Configuration Options
+ * @{
+ *
+ * The MSP430 port allows some architecture-specific configurations settings
+ * that can be specified externally, as example on the compiler command line:
+ *
+ * - @p INT_REQUIRED_STACK, this value represent the amount of stack space
+ * used by the interrupt handlers.
+ * The default for this value is @p 32, this space is allocated for each
+ * thread so be careful in order to not waste precious RAM space.
+ * The default value is set into ./ports/MSP430/chcore.h.
+ *
+ *
+ * @ingroup MSP430
+ */
+/** @} */
+
/**
* @defgroup Kernel Kernel
* @{
diff --git a/ports/AVR/chcore.h b/ports/AVR/chcore.h
index 210b4c366..ddeaf33ef 100644
--- a/ports/AVR/chcore.h
+++ b/ports/AVR/chcore.h
@@ -104,7 +104,9 @@ typedef struct {
tp->p_ctx.sp->pch = (int)threadstart; \
}
-#define INT_REQUIRED_STACK 8
+#ifndef INT_REQUIRED_STACK
+#define INT_REQUIRED_STACK 32
+#endif
#define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1)
diff --git a/ports/MSP430/chcore.h b/ports/MSP430/chcore.h
index 996f88912..bf8e0d82d 100644
--- a/ports/MSP430/chcore.h
+++ b/ports/MSP430/chcore.h
@@ -81,7 +81,9 @@ typedef struct {
#define IDLE_THREAD_STACK_SIZE 0
+#ifndef INT_REQUIRED_STACK
#define INT_REQUIRED_STACK 32
+#endif
#define STACK_ALIGN(n) ((((n) - 1) | sizeof(stkalign_t)) + 1)
diff --git a/readme.txt b/readme.txt
index 806d434bc..be5b6a015 100644
--- a/readme.txt
+++ b/readme.txt
@@ -73,10 +73,12 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process,
*** Releases ***
*****************************************************************************
-*** 1.0.0 RC1 ***
-- NEW: Added new macros CH_KERNEL_VERSION set to "1.0.0 RC1", CH_KERNEL_MAJOR
+*** 1.0.0rc1 ***
+- NEW: Added new macros CH_KERNEL_VERSION set to "1.0.0rc1", CH_KERNEL_MAJOR
set to 1, CH_KERNEL_MINOR set to 0, CH_KERNEL_PATCH set to 0.
The macros will be updated to reflect the actual kernel version number.
+- NEW: Made all the port-specific configuration settings externally
+ configurable, see the documentation.
- FIX: Disabled the configuration option CH_USE_MESSAGES_PRIORITY from the
MSP430 demo, the default for this option should be off.
- FIX: Fixed a bug that prevented the THREAD_EXT_FIELDS to be compiled into
@@ -84,8 +86,8 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process,
- FIX: Removed some references to deprecated APIs from the test suite.
- FIX: Set the INT_REQUIRED_STACK configuration value for the ARM7 and ARMCM3
ports to a safer 0x10, it was previously 0 (correct but trimmed to specific
- compiler settings). Now it is possible to redefine that value externally
- without have to edit ./port/ARM7/chcore.h.
+ compiler settings).
+- FIX: Set the INT_REQUIRED_STACK configuration value for the AVR port to 32.
- Removed deprecated threads APIs: chThdCreate() and chThdCreateFast().
- Removed deprecated events APIs: chEvtWait(), chEvtWaitTimeout(), chEvtSend(),
chEvtSendI(), EventMask().
diff --git a/test/test.h b/test/test.h
index 1ba3f0316..4c6de614a 100644
--- a/test/test.h
+++ b/test/test.h
@@ -25,7 +25,7 @@
#define DELAY_BETWEEN_TESTS 200
#if defined(CH_ARCHITECTURE_AVR) || defined(CH_ARCHITECTURE_MSP430)
-#define THREADS_STACK_SIZE 64
+#define THREADS_STACK_SIZE 48
#elif defined(CH_ARCHITECTURE_WIN32SIM)
#define THREADS_STACK_SIZE 512
#else