samd21: Shrink default stack to 512 bytes
authorKeith Packard <keithp@keithp.com>
Mon, 7 Nov 2022 03:29:41 +0000 (19:29 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 7 Nov 2022 03:29:41 +0000 (19:29 -0800)
Kinda needed to get TM v4.0 to fit.

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

index af2ca3e5ab881254931c9ebb812d33dbb61e8a3d..a5f68dafa6701ccf121ddc145e53d24106f9c6f6 100644 (file)
@@ -192,7 +192,10 @@ bool
 ao_usb_waiting(void);
 
 #define AO_CMD_LEN             128
-#define AO_STACK_SIZE          2048
+
+#ifndef AO_STACK_SIZE
+#define AO_STACK_SIZE          512
+#endif
 
 #ifndef HAS_BOOT_LOADER
 #define HAS_BOOT_LOADER                        1