Skip to content

Commit

Permalink
Added PiXtend 2S support
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoralves authored Feb 7, 2018
1 parent 5402d26 commit 32d37fd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions glue_generator_src/glue_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ extern unsigned long long common_ticktime__;\r\n\
IEC_BOOL *bool_input[BUFFER_SIZE][8];\r\n\
IEC_BOOL *bool_output[BUFFER_SIZE][8];\r\n\
\r\n\
//Bytes\r\n\
IEC_BYTE *byte_input[BUFFER_SIZE];\r\n\
IEC_BYTE *byte_output[BUFFER_SIZE];\r\n\
\r\n\
//Analog I/O\r\n\
IEC_UINT *int_input[BUFFER_SIZE];\r\n\
IEC_UINT *int_output[BUFFER_SIZE];\r\n\
Expand Down Expand Up @@ -175,6 +179,9 @@ void glueVar(char *varName, char *varType)
case 'X':
glueVars << "\tbool_input[" << pos1 << "][" << pos2 << "] = " << varName << ";\r\n";
break;
case 'B':
glueVars << "\tbyte_input[" << pos1 << "] = " << varName << ";\r\n";
break;
case 'W':
glueVars << "\tint_input[" << pos1 << "] = " << varName << ";\r\n";
break;
Expand All @@ -188,6 +195,9 @@ void glueVar(char *varName, char *varType)
case 'X':
glueVars << "\tbool_output[" << pos1 << "][" << pos2 << "] = " << varName << ";\r\n";
break;
case 'B':
glueVars << "\tbyte_output[" << pos1 << "] = " << varName << ";\r\n";
break;
case 'W':
glueVars << "\tint_output[" << pos1 << "] = " << varName << ";\r\n";
break;
Expand Down

0 comments on commit 32d37fd

Please sign in to comment.