diff --git a/firmware/controllers/core/common_headers.h b/firmware/controllers/core/common_headers.h index b3239ab3b5..6066db146f 100644 --- a/firmware/controllers/core/common_headers.h +++ b/firmware/controllers/core/common_headers.h @@ -39,3 +39,7 @@ #include "datalogging.h" #include "cli_registry.h" #endif /* __cplusplus */ + +#define EXPECTED_REMAINING_STACK 128 + +#define assertRemainingStack() (getCurrentRemainingStack() > EXPECTED_REMAINING_STACK) diff --git a/firmware/controllers/global_shared.h b/firmware/controllers/global_shared.h index c491c77fcd..ae04892306 100644 --- a/firmware/controllers/global_shared.h +++ b/firmware/controllers/global_shared.h @@ -27,8 +27,6 @@ #include "global.h" -#define EXPECTED_REMAINING_STACK 128 - /* * Stack debugging */ diff --git a/firmware/global.h b/firmware/global.h index 9cffd746fc..51a839b195 100644 --- a/firmware/global.h +++ b/firmware/global.h @@ -57,8 +57,6 @@ typedef unsigned int time_t; #define getCurrentRemainingStack() getRemainingStack(chThdGetSelfX()) -#define assertRemainingStack() (getCurrentRemainingStack() > EXPECTED_REMAINING_STACK) - #define EFI_ERROR_CODE 0xffffffff /**