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_PWM.c: set CPOL and DCPOL in CG_INIT, too #78

Closed zdebanos closed 4 months ago

zdebanos commented 4 months ago

These attributes should be set in the INIT phase too. It takes some time to init all the blocks and it may happen that during the INIT phase, an undefined channel polarity can cause trouble.