% Single line comments start with "%".  Multi-line comments are enclosed
% within tags of "%{}%".

% Example2

%{
  Blink LED2 every second.
}%

module Example2 :

% Instruct the Esterel compiler to generate #include "example2.h":

type ForceTheIncludeDirective;

       % Interface Declaration (objects a module imports or exports).:

       input  Second_Tick;      % Time Base Tick from IRQ

       output LED2_TOGGLE;      % LED2 Output

       % Statement Body:

        every Second_Tick do
                emit  LED2_TOGGLE;     % Toggle the LED every second
        end every

end module