Initialize PWM timer. Note that if you setup both A and B pins, you need to use the same settings for both or you randomly get the settings for one of them controlling the same timer.
function constructor extends .Modelica.Icons.Function; import Modelica_DeviceDrivers.EmbeddedTargets.AVR.Functions; import Modelica_DeviceDrivers.EmbeddedTargets.AVR.Types; input Functions.Timers.Timer timer; input Types.TimerNumber pin = Types.TimerNumber.A; input Integer initialValue = 0; input Boolean inverted = false; output Init pwm; end constructor;