altos: Set default LPC stack to 512 bytes, Em to 384 bytes
authorKeith Packard <keithp@keithp.com>
Sat, 17 Aug 2013 15:43:18 +0000 (17:43 +0200)
committerKeith Packard <keithp@keithp.com>
Sun, 25 Aug 2013 23:22:48 +0000 (16:22 -0700)
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>
src/easymini-v0.1/ao_pins.h
src/lpc/ao_arch.h

index 6f102dbecfb41a4b785310e3004b85489047f0e7..c09fb4c2c58d2e199ceeae64ebd9e96bac4f323f 100644 (file)
@@ -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 */
index a8d3cfc4435a0d03c77501e75ac0000684b1f5e0..d04bf2c8b06d210a59b39ce39653fdcf14df0304 100644 (file)
@@ -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