Skip to content

Commit

Permalink
Merge pull request #14 from dinkelk/main
Browse files Browse the repository at this point in the history
fixing style issue in autocoded assembly ads that reference interrupt…
  • Loading branch information
dinkelk authored Dec 21, 2023
2 parents 1b5fae5 + e9c0184 commit 9042bec
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions gen/templates/assembly/name.ads
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ package {{ name }} is
-----------------------------------
-- Component Instances:
-----------------------------------
-- Remove some reference style checking to deal with incorrect capitalization in system packages.
pragma Style_Checks ("-rn");

{% for component in components.values() %}
{% if component.instance_description %}
{{ printMultiLine(component.instance_description, ' -- ') }}
Expand All @@ -83,6 +86,9 @@ package {{ name }} is
{% endfor %}

{% endif %}
-- Remove some reference style checking to deal with incorrect capitalization in system packages.
pragma Style_Checks ("+rn");

{% if task_list %}
-----------------------------------
-- Task Creation:
Expand Down Expand Up @@ -118,12 +124,16 @@ package {{ name }} is
{{ task.number }} => {{ task.component_name }}_{{ task.name }}_Task_Info'Access{{ "," if not loop.last }}
{% endfor %}
);

{% else %}
-- List of task infos for all tasks:
Task_List : aliased Task_Types.Task_Info_List := (1 .. 0 => null); -- empty

{% endif %}
{% if interrupt_list %}
-- Remove some reference style checking to deal with incorrect capitalization in system packages.
pragma Style_Checks ("-rn");

-- List of all interrupts used in the system:
Interrupt_List : aliased Interrupt_Types.Interrupt_Id_List := (
{% for interrupt in interrupt_list %}
Expand All @@ -132,6 +142,9 @@ package {{ name }} is
{% endfor %}
);

-- Remove some reference style checking to deal with incorrect capitalization in system packages.
pragma Style_Checks ("+rn");

{% else %}
-- List of all interrupts used in the system:
Interrupt_List : aliased Interrupt_Types.Interrupt_Id_List := (1 .. 0 => 0); -- empty
Expand Down

0 comments on commit 9042bec

Please sign in to comment.