summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAditya Naik2020-08-10 12:55:36 -0400
committerAditya Naik2020-08-10 12:55:36 -0400
commita3120f845c6e2f4cfb7a12810881024a802fc7f4 (patch)
treef6a6597f68a308ffc5343c6c1f52b165dcdd4327 /src
parent77d909de362508ee81868d424a4f15fbb24cb6c1 (diff)
Dataflow state machine work
Diffstat (limited to 'src')
-rw-r--r--src/master_posix.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/master_posix.c b/src/master_posix.c
index 74cb38a..ac5ff55 100644
--- a/src/master_posix.c
+++ b/src/master_posix.c
@@ -55,10 +55,14 @@
#define BUS_DEVICE_LIMIT 2
-hs_func_t hs_jumptable[NUM_STATES] = {
+hs_func_t hs_jumptable[NUM_HS_STATES] = {
HS_STATE_TABLE(EXPAND_AS_JUMPTABLE)
};
+/* df_func_t df_jumptable[NUM_HS_STATES] = { */
+/* DF_STATE_TABLE(EXPAND_AS_JUMPTABLE) */
+/* }; */
+
device_info_t *device_info[BUS_DEVICE_LIMIT] = {NULL};
subscription_info_t* subs_info[BUS_DEVICE_LIMIT];
uint32_t allocated[4]={0};
@@ -219,7 +223,7 @@ static void *routing_func(void *pvArgs)
dataflow_status_t device_dataflow(uint8_t i2c_addr, uint32_t SOR_code, volatile uint8_t rbuf_idx)
{
- uint8_t dev_idx = GET_IDX_FROM_ADDR(i2c_addr);
+ uint8_t dev_idx = GET_IDX_FROM_ADDR(i2c_addr);
dataflow_status_t df_status = DF_IDLE;
uint8_t CTS_buf[2] = {0x2, 0xFF};