...
ID | Operation | PARAM1 | PARAM2 | PARAM3 |
---|---|---|---|---|
0 | GPIO_SET | GPIO PORT | GPIO PIN | STATE |
1 | GPIO_TOGGLE | GPIO PORT | GPIO PIN | |
2 | GPIO_IT_TRIGGER | GPIO PORT | GPIO PIN | |
3 | ADC_SET_READING | GPIO PORT | GPIO PIN | READING |
4 | I2C_SET_READING | I2C PORT | I2C DATALEN | I2C LENDATA |
5 | SPI_SET_RXSPI PORT | SPI DATA | SPI LEN | |
6 | UART??? |
To create the task, create function called sim_init(int socket_num)
...