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
+2 -2
View File
@@ -18,7 +18,7 @@ static uint8_t bulkread_buffer[BULKREAD_MAX_CHUNK];
*/
static TF_Result bulkread_lst(TinyFrame *tf, TF_Msg *msg)
{
struct bulk_read *bulk = msg->userdata;
BulkRead *bulk = msg->userdata;
// this is a final call before timeout, to clean up
if (msg->data == NULL) {
@@ -69,7 +69,7 @@ close:
}
/** Start the bulk read flow */
void bulkread_start(TinyFrame *tf, struct bulk_read *bulk)
void bulkread_start(TinyFrame *tf, BulkRead *bulk)
{
assert_param(bulk);
assert_param(bulk->len);
+1 -1
View File
@@ -39,7 +39,7 @@ struct bulk_read {
* @param tf - tinyframe instance
* @param bulk - bulk read config structure (malloc'd or static)
*/
void bulkread_start(TinyFrame *tf, struct bulk_read *bulk);
void bulkread_start(TinyFrame *tf, BulkRead *bulk);
#endif //GEX_F072_MSG_BULKREAD_H
+2 -2
View File
@@ -15,7 +15,7 @@
*/
static TF_Result bulkwrite_lst(TinyFrame *tf, TF_Msg *msg)
{
struct bulk_write *bulk = msg->userdata;
BulkWrite *bulk = msg->userdata;
// this is a final call before timeout, to clean up
if (msg->data == NULL) {
@@ -60,7 +60,7 @@ close:
}
/** Start the bulk write flow */
void bulkwrite_start(TinyFrame *tf, struct bulk_write *bulk)
void bulkwrite_start(TinyFrame *tf, BulkWrite *bulk)
{
assert_param(bulk);
assert_param(bulk->len);
+1 -1
View File
@@ -35,7 +35,7 @@ struct bulk_write {
* @param tf - tinyframe instance
* @param bulk - bulk write config structure (malloc'd or static)
*/
void bulkwrite_start(TinyFrame *tf, struct bulk_write *bulk);
void bulkwrite_start(TinyFrame *tf, BulkWrite *bulk);
#endif //GEX_F072_MSG_BULKWRITE_H