summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-08-17 17:43:18 +0200
committerKeith Packard <keithp@keithp.com>2013-08-17 17:44:01 +0200
commita0dd93ccf0920260b41c4003955617fd0cd1c8b4 (patch)
tree0f896e5f5c932328ddb90ce4a43fc14866425abb /src
parent9a22a300009679a14d66214a5d61e9e6a177279f (diff)
altos: Set default LPC stack to 512 bytes, Em to 384 bytes
The default for lpc has been raised to 512 bytes, but Em doesn't have enough RAM for that. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/easymini-v0.1/ao_pins.h2
-rw-r--r--src/lpc/ao_arch.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/easymini-v0.1/ao_pins.h b/src/easymini-v0.1/ao_pins.h
index 6f102dbe..c09fb4c2 100644
--- a/src/easymini-v0.1/ao_pins.h
+++ b/src/easymini-v0.1/ao_pins.h
@@ -18,6 +18,8 @@
#define HAS_BEEP 1
#define HAS_LED 1
+#define AO_STACK_SIZE 384
+
#define IS_FLASH_LOADER 0
/* Crystal on the board */
diff --git a/src/lpc/ao_arch.h b/src/lpc/ao_arch.h
index a8d3cfc4..d04bf2c8 100644
--- a/src/lpc/ao_arch.h
+++ b/src/lpc/ao_arch.h
@@ -24,7 +24,9 @@
* LPC11U14 definitions and code fragments for AltOS
*/
-#define AO_STACK_SIZE 320
+#ifndef AO_STACK_SIZE
+#define AO_STACK_SIZE 512
+#endif
#define AO_LED_TYPE uint16_t