aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/ch.txt36
-rw-r--r--ports/AVR/chcore.h4
-rw-r--r--ports/MSP430/chcore.h2
-rw-r--r--readme.txt10
-rw-r--r--test/test.h2
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
@@ -363,6 +363,24 @@
/** @} */
/**
+ * @defgroup AVRCONF Configuration Options
+ * @{
+ * <p>
+ * The AVR port allows some architecture-specific configurations settings
+ * that can be specified externally, as example on the compiler command line:
+ * <ul>
+ * <li>@p INT_REQUIRED_STACK, this value represent the amount of stack space
+ * used by the interrupt handlers.<br>
+ * 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.<br>
+ * The default value is set into <b>./ports/AVR/chcore.h</b>.</li>
+ * </ul>
+ * </p>
+ * @ingroup AVR
+ */
+/** @} */
+
+/**
* @defgroup MSP430 MSP430
* @{
* <p>
@@ -379,6 +397,24 @@
/** @} */
/**
+ * @defgroup MSP430CONF Configuration Options
+ * @{
+ * <p>
+ * The MSP430 port allows some architecture-specific configurations settings
+ * that can be specified externally, as example on the compiler command line:
+ * <ul>
+ * <li>@p INT_REQUIRED_STACK, this value represent the amount of stack space
+ * used by the interrupt handlers.<br>
+ * 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.<br>
+ * The default value is set into <b>./ports/MSP430/chcore.h</b>.</li>
+ * </ul>
+ * </p>
+ * @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