altos/stm32f4: Align stack to 8 bytes
[fw/altos] / src / stm32f4 / ao_arch.h
index 73eb793fbd0164b5657e4285db724bdb0dd1511a..d4c78f603dc32e04b0dacf6e1dca1c040b792281 100644 (file)
 #include <stm32f4.h>
 
 #ifndef AO_STACK_SIZE
-#define AO_STACK_SIZE  512
+#define AO_STACK_SIZE  1024
 #endif
 
+#define AO_STACK_ALIGNMENT __attribute__ ((aligned(8)))
+
 #define AO_PORT_TYPE   uint16_t
 
 #define ao_arch_nop()          asm("nop")