altos: Make STM clock configuration per-product. Fix 32MHz CPU speed
[fw/altos] / src / avr / ao_arch.h
index 2be4abeece26db527dd25b6ccbd9193d139e7b2b..b816279e29f540f14a49f63f41083365ee051f45 100644 (file)
@@ -37,7 +37,7 @@
  * AVR definitions and code fragments for AltOS
  */
 
-#define AO_STACK_SIZE  128
+#define AO_STACK_SIZE  116
 
 /* Various definitions to make GCC look more like SDCC */
 
@@ -105,7 +105,6 @@ extern uint8_t      ao_cpu_sleep_disable;
                asm("push r14" "\n\t" "push r13" "\n\t" "push r12" "\n\t" "push r11" "\n\t" "push r10"); \
                asm("push r9" "\n\t" "push r8" "\n\t" "push r7" "\n\t" "push r6" "\n\t" "push r5"); \
                asm("push r4" "\n\t" "push r3" "\n\t" "push r2" "\n\t" "push r1" "\n\t" "push r0"); \
-               cli();                                                  \
                asm("in r0, __SREG__" "\n\t" "push r0");                \
                sei();                                                  \
        } while (0)