robertobucher / pysimCoder

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

CodeGen/nuttx/devices/nuttx_ADC.c: add a SW Trigger field to xblk #86

Closed zdebanos closed 3 months ago

zdebanos commented 3 months ago

If this option is turned on, the device is opened in a BLOCKING way, otherwise not. Also, it triggers the ANIOC_TRIGGER ioctl call. This commit makes the code more readable as the ANIOC_TRIGGER is not defined by a CONFIG NuttX macro.