Skip to content

Commit

Permalink
Merge pull request #14 from Jbsco/main
Browse files Browse the repository at this point in the history
Writing out Codespell typo fixes
  • Loading branch information
dinkelk authored Dec 21, 2023
2 parents 06c456a + f4d14bb commit 6375f58
Show file tree
Hide file tree
Showing 28 changed files with 38 additions and 36 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/style_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ jobs:
working-directory: ${{ env.EXAMPLE_DIR }}
- name: Check all style
run: bash adamant_example/docker/env/github_run.sh "redo adamant_example/style_all"
continue-on-error: true
- name: Archive logs for failed style checks
if: always()
uses: actions/upload-artifact@v3
with:
name: failed_style_logs
path: adamant_example/build/failed_style_logs
if-no-files-found: ignore
- run: echo "Finished with status - ${{ job.status }}."
if: always()
3 changes: 2 additions & 1 deletion .github/workflows/test_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ jobs:
working-directory: ${{ env.EXAMPLE_DIR }}
- name: Run all unit tests
run: bash adamant_example/docker/env/github_run.sh "redo adamant_example/test_all"
continue-on-error: true
- name: Archive logs for failed unit tests
if: always()
uses: actions/upload-artifact@v3
with:
name: failed_test_logs
path: adamant_example/build/failed_test_logs
if-no-files-found: ignore
- run: echo "Finished with status - ${{ job.status }}."
if: always()
2 changes: 1 addition & 1 deletion alire.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# then uses these dependencies via the `alr printenv` GPR_BUILD_PATH to
# compile targets within this repository. This alire.toml itself only points
# to a simple hello world program that demonstrates tasking, LED blinking,
# and UART transmition on the Raspberry Pi Pico.
# and UART transmission on the Raspberry Pi Pico.
#

name = "adamant_example"
Expand Down
2 changes: 1 addition & 1 deletion gnd/hydra/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Hydra

This includes common configuration files for the Example Project use with [Hydra](TODO). Note that Hydra is not yet publically available, but will be made so in the future.
This includes common configuration files for the Example Project use with [Hydra](TODO). Note that Hydra is not yet publicly available, but will be made so in the future.
2 changes: 1 addition & 1 deletion src/assembly/linux/linux_example.assembly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ components:
init_base:
- "T_Send_Count => 2"
- type: Splitter
description: This component splits the event stream between events to printed to the terminal and those fowarded out of the socket interface.
description: This component splits the event stream between events to printed to the terminal and those forwarded out of the socket interface.
name: Event_Splitter_2_Instance
generic_types:
- "T => Event.T"
Expand Down
2 changes: 1 addition & 1 deletion src/assembly/linux/start_up.ads
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package Start_Up is

-- Note: This task termination prototype will only work on a native
-- platform. Ada.Task_Termination has a different package spec for
-- embedded plaforms that use Ravenscar.
-- embedded platforms that use Ravenscar.
protected Task_Termination is
procedure Handler (Cause : Ada.Task_Termination.Cause_Of_Termination; T : Ada.Task_Identification.Task_Id; X : Ada.Exceptions.Exception_Occurrence);
end Task_Termination;
Expand Down
2 changes: 1 addition & 1 deletion src/assembly/pico/pico_example.product_packets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: This is the set of packets for the data product packetizer in the Pico Example assembly.
packets:
- name: Housekeeping_Packet
description: This packet contains houskeeping data.
description: This packet contains housekeeping data.
id: 1
data_products:
- name: Oscillator_A.Oscillator_Value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ begin
-- The Pico's power regulator dynamically adjusts it's switching frequency
-- based on load. This introduces noise that can affect ADC readings. The
-- Pico datasheet recommends setting Power Save pin high while performing
-- ADC measurements to minimize this noise, at tne expense of higher power
-- ADC measurements to minimize this noise, at the expense of higher power
-- consumption.
Pico.SMPS_PS.Configure (Output, Pull_Up);
Pico.SMPS_PS.Clear;
Expand Down
2 changes: 1 addition & 1 deletion src/components/c_demo/test/tests-implementation.adb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ package body Tests.Implementation is
-- Tests:
-------------------------------------------------------------------------

-- This unit test excersizes the c_demo component and makes sure it works
-- This unit test exercises the c_demo component and makes sure it works
-- correctly.
overriding procedure Test_C (Self : in out Instance) is
T : Component.C_Demo.Implementation.Tester.Instance_Access renames Self.Tester;
Expand Down
2 changes: 1 addition & 1 deletion src/components/c_demo/test/tests-implementation.ads
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ private
overriding procedure Set_Up_Test (Self : in out Instance);
overriding procedure Tear_Down_Test (Self : in out Instance);

-- This unit test excersizes the c_demo component and makes sure it works
-- This unit test exercises the c_demo component and makes sure it works
-- correctly.
overriding procedure Test_C (Self : in out Instance);

Expand Down
2 changes: 1 addition & 1 deletion src/components/c_demo/test/tests.c_demo.tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
description: This is a unit test suite for the c_demo component.
tests:
- name: Test_C
description: This unit test excersizes the c_demo component and makes sure it works correctly.
description: This unit test exercises the c_demo component and makes sure it works correctly.
2 changes: 1 addition & 1 deletion src/components/counter/counter_action/counter_action.ads
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- An action to perfrom when the count is
-- An action to perform when the count is
-- updated.
with Interfaces; use Interfaces;
package Counter_Action is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ package Component.Counter.Implementation.Tester is
not overriding function Dispatch_N (Self : in out Instance; N : in Positive := 1) return Natural;

---------------------------------------
-- Auxillery test functions:
-- Auxiliary test functions:
---------------------------------------
function Check_Count (Self : in Instance; Value : in Unsigned_32) return Boolean;

Expand Down
4 changes: 2 additions & 2 deletions src/components/counter/test/tests-implementation.adb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ package body Tests.Implementation is
-- Tests:
-------------------------------------------------------------------------

-- This unit test excersizes the counter component and makes sure it, well, counts!
-- This unit test exercises the counter component and makes sure it, well, counts!
overriding procedure Test_1 (Self : in out Instance) is
Value : Packed_U32.T;
begin
Expand All @@ -64,7 +64,7 @@ package body Tests.Implementation is

-- This unit test tests all the commands for the counter component
overriding procedure Test_Commands (Self : in out Instance) is
-- Helper function which sends arbitraty numbers times.
-- Helper function which sends arbitrary numbers times.
procedure Go is
begin
Self.Tester.Tick_T_Send ((Time => (1, 1), Count => 1));
Expand Down
2 changes: 1 addition & 1 deletion src/components/counter/test/tests-implementation.ads
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ private
overriding procedure Set_Up_Test (Self : in out Instance);
overriding procedure Tear_Down_Test (Self : in out Instance);

-- This unit test excersizes the counter component and makes sure it, well, counts!
-- This unit test exercises the counter component and makes sure it, well, counts!
overriding procedure Test_1 (Self : in out Instance);
-- This unit test tests all the commands for the counter component
overriding procedure Test_Commands (Self : in out Instance);
Expand Down
2 changes: 1 addition & 1 deletion src/components/counter/test/tests.counter.tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
description: This is a unit test suite for the counter component
tests:
- name: Test_1
description: This unit test excersizes the counter component and makes sure it, well, counts!
description: This unit test exercises the counter component and makes sure it, well, counts!
- name: Test_Commands
description: This unit test tests all the commands for the counter component
2 changes: 1 addition & 1 deletion src/components/cpp_demo/test/tests-implementation.adb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ package body Tests.Implementation is
-- Tests:
-------------------------------------------------------------------------

-- This unit test excersizes the c_demo component and makes sure it works
-- This unit test exercises the c_demo component and makes sure it works
-- correctly.
overriding procedure Test_Cpp (Self : in out Instance) is
T : Component.Cpp_Demo.Implementation.Tester.Instance_Access renames Self.Tester;
Expand Down
2 changes: 1 addition & 1 deletion src/components/cpp_demo/test/tests-implementation.ads
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ private
overriding procedure Set_Up_Test (Self : in out Instance);
overriding procedure Tear_Down_Test (Self : in out Instance);

-- This unit test excersizes the c_demo component and makes sure it works
-- This unit test exercises the c_demo component and makes sure it works
-- correctly.
overriding procedure Test_Cpp (Self : in out Instance);

Expand Down
2 changes: 1 addition & 1 deletion src/components/cpp_demo/test/tests.cpp_demo.tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
description: This is a unit test suite for the cpp_demo component.
tests:
- name: Test_Cpp
description: This unit test excersizes the cpp_demo component and makes sure it works correctly.
description: This unit test exercises the cpp_demo component and makes sure it works correctly.
2 changes: 1 addition & 1 deletion src/components/oscillator/test/oscillator.tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
description: This is a unit test suite for the oscillator component
tests:
- name: Test_Parameters
description: This unit test excersizes the parameters within the component
description: This unit test exercises the parameters within the component
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ package body Oscillator_Tests.Implementation is
-- Tests:
-------------------------------------------------------------------------

-- This unit test excersizes the parameters within the component
-- This unit test exercises the parameters within the component
overriding procedure Test_Parameters (Self : in out Instance) is
T : Component.Oscillator.Implementation.Tester.Instance_Access renames Self.Tester;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ private
overriding procedure Set_Up_Test (Self : in out Instance);
overriding procedure Tear_Down_Test (Self : in out Instance);

-- This unit test excersizes the parameters within the component
-- This unit test exercises the parameters within the component
overriding procedure Test_Parameters (Self : in out Instance);

-- Test data and state:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private
Parameter_Table_Length : Natural := 0;
-- Temporary storage to allow safe copying between Default and Working.
-- We declare this here, instead of as a temporary variable within a function
-- because if a timeout error occurs, we have no gaurantee that the downstream
-- because if a timeout error occurs, we have no guarantee that the downstream
-- component is not reading/writing from this data. If it is declared here, then
-- at least only this data can be corrupted, and not the stack, which would be
-- a much worse situation. The assembly should be designed that timeout errors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ events:
description: A command was received with invalid parameters.
param_type: Invalid_Command_Info.T
- name: Parameter_Table_Copy_Timeout
description: A timeout occured while waiting for a parameter table copy operation to complete.
description: A timeout occurred while waiting for a parameter table copy operation to complete.
- name: Parameter_Table_Copy_Failure
description: A parameter table copy failed.
param_type: Parameters_Memory_Region_Release.T
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ package body Component.Parameter_Manager.Implementation.Tester is
Self.Invalid_Command_Received_History.Push (Arg);
end Invalid_Command_Received;

-- A timeout occured while waiting for a parameter table copy operation to complete.
-- A timeout occurred while waiting for a parameter table copy operation to complete.
overriding procedure Parameter_Table_Copy_Timeout (Self : in out Instance) is
Arg : constant Natural := 0;
begin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ package Component.Parameter_Manager.Implementation.Tester is
overriding procedure Finished_Parameter_Table_Copy (Self : in out Instance; Arg : in Packed_Parameter_Table_Copy_Type.T);
-- A command was received with invalid parameters.
overriding procedure Invalid_Command_Received (Self : in out Instance; Arg : in Invalid_Command_Info.T);
-- A timeout occured while waiting for a parameter table copy operation to complete.
-- A timeout occurred while waiting for a parameter table copy operation to complete.
overriding procedure Parameter_Table_Copy_Timeout (Self : in out Instance);
-- A parameter table copy failed.
overriding procedure Parameter_Table_Copy_Failure (Self : in out Instance; Arg : in Parameters_Memory_Region_Release.T);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ package body Parameter_Manager_Tests.Implementation is
Task_Send_Response_Twice := True;
Natural_Assert.Eq (T.Dispatch_All, 1);

-- Copy to working should have occured now. Check data:
-- Copy to working should have occurred now. Check data:
Natural_Assert.Eq (T.Default_Parameters_Memory_Region_Recv_Sync_History.Get_Count, 1);
Parameters_Memory_Region_Assert.Eq (
T.Default_Parameters_Memory_Region_Recv_Sync_History.Get (1),
Expand Down Expand Up @@ -190,7 +190,7 @@ package body Parameter_Manager_Tests.Implementation is
Task_Send_Response_Twice := True;
Natural_Assert.Eq (T.Dispatch_All, 1);

-- Copy to working should have occured now. Check data:
-- Copy to working should have occurred now. Check data:
Natural_Assert.Eq (T.Working_Parameters_Memory_Region_Recv_Sync_History.Get_Count, 1);
Parameters_Memory_Region_Assert.Eq (
T.Working_Parameters_Memory_Region_Recv_Sync_History.Get (1),
Expand Down Expand Up @@ -241,7 +241,7 @@ package body Parameter_Manager_Tests.Implementation is
Task_Send_Response := True;
Natural_Assert.Eq (T.Dispatch_All, 1);

-- Copy from working should have occured now. Check data:
-- Copy from working should have occurred now. Check data:
Natural_Assert.Eq (T.Working_Parameters_Memory_Region_Recv_Sync_History.Get_Count, 1);
Parameters_Memory_Region_Assert.Eq (
T.Working_Parameters_Memory_Region_Recv_Sync_History.Get (1),
Expand Down Expand Up @@ -276,7 +276,7 @@ package body Parameter_Manager_Tests.Implementation is
Task_Send_Response_Twice := True;
Natural_Assert.Eq (T.Dispatch_All, 1);

-- Copy from working should have occured now. Check data:
-- Copy from working should have occurred now. Check data:
Natural_Assert.Eq (T.Working_Parameters_Memory_Region_Recv_Sync_History.Get_Count, 2);
Parameters_Memory_Region_Assert.Eq (
T.Working_Parameters_Memory_Region_Recv_Sync_History.Get (2),
Expand Down Expand Up @@ -315,7 +315,7 @@ package body Parameter_Manager_Tests.Implementation is
Task_Send_Response_Twice := True;
Natural_Assert.Eq (T.Dispatch_All, 1);

-- Copy from working should have occured now. Check data:
-- Copy from working should have occurred now. Check data:
Natural_Assert.Eq (T.Default_Parameters_Memory_Region_Recv_Sync_History.Get_Count, 2);
Parameters_Memory_Region_Assert.Eq (
T.Default_Parameters_Memory_Region_Recv_Sync_History.Get (2),
Expand Down Expand Up @@ -354,7 +354,7 @@ package body Parameter_Manager_Tests.Implementation is
Task_Send_Response := True;
Natural_Assert.Eq (T.Dispatch_All, 1);

-- Copy from working should have occured now. Check data:
-- Copy from working should have occurred now. Check data:
Natural_Assert.Eq (T.Default_Parameters_Memory_Region_Recv_Sync_History.Get_Count, 3);
Parameters_Memory_Region_Assert.Eq (
T.Default_Parameters_Memory_Region_Recv_Sync_History.Get (3),
Expand Down Expand Up @@ -394,7 +394,7 @@ package body Parameter_Manager_Tests.Implementation is
Task_Send_Timeout := True;
Natural_Assert.Eq (T.Dispatch_All, 1);

-- Copy from working should have occured now. Check data:
-- Copy from working should have occurred now. Check data:
Natural_Assert.Eq (T.Working_Parameters_Memory_Region_Recv_Sync_History.Get_Count, 1);
Parameters_Memory_Region_Assert.Eq (
T.Working_Parameters_Memory_Region_Recv_Sync_History.Get (1),
Expand Down Expand Up @@ -423,7 +423,7 @@ package body Parameter_Manager_Tests.Implementation is
Task_Send_Timeout := True;
Natural_Assert.Eq (T.Dispatch_All, 1);

-- Copy from working should have occured now. Check data:
-- Copy from working should have occurred now. Check data:
Natural_Assert.Eq (T.Working_Parameters_Memory_Region_Recv_Sync_History.Get_Count, 1);
-- No copy to default:
Natural_Assert.Eq (T.Default_Parameters_Memory_Region_Recv_Sync_History.Get_Count, 1);
Expand Down
2 changes: 1 addition & 1 deletion src/pico_util/adc/main.adb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ begin
-- The Pico's power regulator dynamically adjusts it's switching frequency
-- based on load. This introduces noise that can affect ADC readings. The
-- Pico datasheet recommends setting Power Save pin high while performing
-- ADC measurements to minimize this noise, at tne expense of higher power
-- ADC measurements to minimize this noise, at the expense of higher power
-- consumption.
Pico.SMPS_PS.Configure (Output, Pull_Up);
Pico.SMPS_PS.Clear;
Expand Down

0 comments on commit 6375f58

Please sign in to comment.