1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

For OpenPilot use the minimal stack size (512 words) for eventdispatcher as

this is necessary for object saving.  Creating a new define to override this
for CopterControl down to 96.
This commit is contained in:
James Cotton 2011-07-12 12:34:40 -05:00
parent 557771d3ef
commit 15a2b85729
2 changed files with 21 additions and 15 deletions

View File

@ -97,7 +97,7 @@
#define PIOS_SYSTEM_STACK_SIZE 560
#define PIOS_STABILIZATION_STACK_SIZE 524
#define PIOS_TELEM_STACK_SIZE 500
#define PIOS_EVENTDISPATCHER_STACK_SIZE 96
#define IDLE_COUNTS_PER_SEC_AT_NO_LOAD 1995998
//#define PIOS_QUATERNION_STABILIZATION

View File

@ -28,7 +28,13 @@
// Private constants
#define MAX_QUEUE_SIZE 20
#define STACK_SIZE 96
#if defined(PIOS_EVENTDISPATCHER_STACK_SIZE)
#define STACK_SIZE PIOS_EVENTDISPATCHER_STACK_SIZE
#else
#define STACK_SIZE configMINIMAL_STACK_SIZE
#endif /* PIOS_EVENTDISPATCHER_STACK_SIZE */
#define TASK_PRIORITY (tskIDLE_PRIORITY + 3)
#define MAX_UPDATE_PERIOD_MS 1000