diff options
| author | Aditya Naik | 2020-08-10 12:55:36 -0400 |
|---|---|---|
| committer | Aditya Naik | 2020-08-10 12:55:36 -0400 |
| commit | a3120f845c6e2f4cfb7a12810881024a802fc7f4 (patch) | |
| tree | f6a6597f68a308ffc5343c6c1f52b165dcdd4327 /src | |
| parent | 77d909de362508ee81868d424a4f15fbb24cb6c1 (diff) | |
Dataflow state machine work
Diffstat (limited to 'src')
| -rw-r--r-- | src/master_posix.c | 8 |
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}; |
