use bulk typedefs in functions, add monitoring of msg queue usage to stackmon

This commit is contained in:
2017-12-24 16:09:21 +01:00
parent 45910e7f04
commit ad2e19d4fe
10 changed files with 26 additions and 15 deletions
+1 -1
View File
@@ -36,6 +36,6 @@ struct rx_que_item {
};
#define HP_SCHED_CAPACITY 5
#define RX_QUE_CAPACITY 16
#define RX_QUE_CAPACITY 10
#endif //GEX_SCHED_QUEUE_H
+8 -2
View File
@@ -4,9 +4,9 @@
#include "platform.h"
#include "comm/messages.h"
#include "utils/hexdump.h"
#include "task_msg.h"
#include "sched_queue.h"
volatile uint32_t msgQueHighWaterMark = 0;
/**
* Process data received from TinyFrame.
@@ -27,5 +27,11 @@ void TaskMessaging(const void * argument)
assert_param(slot.len>0 && slot.len<=64); // check the len is within bounds
TF_Accept(comm, slot.data, slot.len);
#if USE_STACK_MONITOR
uint32_t count;
count = (uint32_t) uxQueueMessagesWaiting(queRxDataHandle); // this seems to return N+1, hence we don't add the +1 for the one just removed.
msgQueHighWaterMark = MAX(msgQueHighWaterMark, count);
#endif
}
}
+1
View File
@@ -10,6 +10,7 @@
#if USE_STACK_MONITOR
extern volatile uint32_t jobQueHighWaterMark;
extern volatile uint32_t msgQueHighWaterMark;
#endif
extern osThreadId tskJobRunnerHandle;