X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm32f4%2Fao_arch.h;h=7dd4c80d79266b00856f43677a5fe1cfc04f476f;hb=2108da105ed9c915fc09d1251dc655bf11203d79;hp=083a4e5b448763779c24aa8d9d7c19e3a2ee021b;hpb=0b5ac831d2e63a091833c702b07b0331fba32e72;p=fw%2Faltos diff --git a/src/stm32f4/ao_arch.h b/src/stm32f4/ao_arch.h index 083a4e5b..7dd4c80d 100644 --- a/src/stm32f4/ao_arch.h +++ b/src/stm32f4/ao_arch.h @@ -19,17 +19,24 @@ #include #ifndef AO_STACK_SIZE -#define AO_STACK_SIZE 1024 +#define AO_STACK_SIZE 2048 +#endif + +#ifndef HAS_TASK_QUEUE +#define HAS_TASK_QUEUE 1 #endif #define AO_STACK_ALIGNMENT __attribute__ ((aligned(8))) #define AO_PORT_TYPE uint16_t +#define ao_arch_reboot() \ + (stm_scb.aircr = ((STM_SCB_AIRCR_VECTKEY_KEY << STM_SCB_AIRCR_VECTKEY) | \ + (1 << STM_SCB_AIRCR_SYSRESETREQ))) + #define ao_arch_nop() asm("nop") -#define ao_arch_task_members\ - uint32_t *sp; /* saved stack pointer */ +#define AO_ROMCONFIG_SYMBOL __attribute__((section(".romconfig"))) const #define ao_arch_naked_declare __attribute__((naked)) #define ao_arch_naked_define