altos/stm: Allow apps to define different stack size
authorKeith Packard <keithp@keithp.com>
Sat, 26 Mar 2016 22:59:26 +0000 (15:59 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 26 Mar 2016 23:07:20 +0000 (16:07 -0700)
While 512 bytes is a reasonable size, sometimes apps don't have that
much stack space.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_arch.h

index a6276c5ae306963e8ac76fc0e86b02ca9e76b2fa..f9508b8f2f4c92401c196e702720a74f70f50e70 100644 (file)
@@ -25,7 +25,9 @@
  * STM32L definitions and code fragments for AltOS
  */
 
+#ifndef AO_STACK_SIZE
 #define AO_STACK_SIZE  512
+#endif
 
 #define AO_LED_TYPE    uint16_t