Header updates to match
This commit is contained in:
@@ -32,6 +32,7 @@
|
|||||||
#define PDB_EVT_PE_HARD_SENT EVENT_MASK(4)
|
#define PDB_EVT_PE_HARD_SENT EVENT_MASK(4)
|
||||||
#define PDB_EVT_PE_I_OVRTEMP EVENT_MASK(5)
|
#define PDB_EVT_PE_I_OVRTEMP EVENT_MASK(5)
|
||||||
#define PDB_EVT_PE_PPS_REQUEST EVENT_MASK(6)
|
#define PDB_EVT_PE_PPS_REQUEST EVENT_MASK(6)
|
||||||
|
#define PDB_EVT_PE_MSG_RX_PEND EVENT_MASK(7) /* Never SEND THIS DIRECTLY*/
|
||||||
|
|
||||||
class PolicyEngine {
|
class PolicyEngine {
|
||||||
public:
|
public:
|
||||||
@@ -123,7 +124,7 @@ private:
|
|||||||
static QueueHandle_t messagesWaiting;
|
static QueueHandle_t messagesWaiting;
|
||||||
static bool messageWaiting();
|
static bool messageWaiting();
|
||||||
//Read a pending message into the temp message
|
//Read a pending message into the temp message
|
||||||
static void readMessage();
|
static bool readMessage();
|
||||||
static void start_pps_timer();
|
static void start_pps_timer();
|
||||||
static void stop_pps_timer();
|
static void stop_pps_timer();
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
/* Events for the Protocol RX thread */
|
/* Events for the Protocol RX thread */
|
||||||
#define PDB_EVT_PRLRX_RESET EVENT_MASK(0)
|
#define PDB_EVT_PRLRX_RESET EVENT_MASK(0)
|
||||||
#define PDB_EVT_PRLRX_I_GCRCSENT EVENT_MASK(1)
|
#define PDB_EVT_PRLRX_I_GCRCSENT EVENT_MASK(1)
|
||||||
|
#define PDB_EVT_PRLRX_I_RXPEND EVENT_MASK(2)
|
||||||
|
|
||||||
class ProtocolReceive {
|
class ProtocolReceive {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ private:
|
|||||||
static const size_t TaskStackSize = 1024 / 4;
|
static const size_t TaskStackSize = 1024 / 4;
|
||||||
static uint32_t TaskBuffer[TaskStackSize];
|
static uint32_t TaskBuffer[TaskStackSize];
|
||||||
static osStaticThreadDef_t TaskControlBlock;
|
static osStaticThreadDef_t TaskControlBlock;
|
||||||
|
static bool messageSending;
|
||||||
/*
|
/*
|
||||||
* Protocol TX machine states
|
* Protocol TX machine states
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user