robertobucher / pysimCoder

Block diagram editor and real time code generator for Python
GNU General Public License v3.0
143 stars 31 forks source link

NuttX: Fixed problems when using multiple same blocks #15

Closed michallenc closed 3 years ago

michallenc commented 3 years ago

Global static variables (mostly file descriptors and structures) were causing problems when multiple blocks of the same driver were used. This change should fix all of those global variables in NuttX subfolder. Integer parameter or pointer parameter was used to get file descriptors and structures to the functions based on some drivers without those problems (ENC or GPIO).