exti working but something is fucked up in the job queue or tinyframe

This commit is contained in:
2018-01-26 23:01:19 +01:00
parent 255f96c754
commit 45b4fb45e9
10 changed files with 310 additions and 66 deletions
+3
View File
@@ -30,10 +30,12 @@ struct sched_que_item {
union {
TF_ID frame_id; // typically used to pass frame id to the callback
void *data1; // arbitrary pointer or int
uint32_t d32_1; // passing a number
};
/** Data word 2 */
union {
uint32_t d32; // passing a number
uint32_t d32_2; // passing a number
uint8_t *buf; // uchar buffer
const uint8_t *cbuf; // const uchar buffer
const char *str; // string
@@ -43,6 +45,7 @@ struct sched_que_item {
union {
uint32_t len; // typically length of the buffer
void *data3; // arbitrary pointer
uint32_t d32_3; // passing a number
};
};
+2 -1
View File
@@ -17,11 +17,12 @@ static void que_safe_post(struct rx_sched_combined_que_item *slot)
if (inIRQ()) {
BaseType_t xHigherPriorityTaskWoken = pdFALSE;
assert_param(pdPASS == xQueueSendFromISR(queMsgJobHandle, slot, &xHigherPriorityTaskWoken));
portYIELD_FROM_ISR(xHigherPriorityTaskWoken);
#if USE_STACK_MONITOR
count = (uint32_t) uxQueueMessagesWaitingFromISR(queMsgJobHandle);
#endif
portYIELD_FROM_ISR(xHigherPriorityTaskWoken);
} else {
assert_param(pdPASS == xQueueSend(queMsgJobHandle, slot, MSG_QUE_POST_TIMEOUT));